@charset "utf-8";
/* ==========================================================================
   株式会社創作工房 — base.css
   構造・レイアウト・タイポグラフィ。色とトーンはすべて CSS 変数に逃がしてあり、
   実際の値は themes.css 側で定義しています。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. リセット
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  letter-spacing: .04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: var(--on-brand); }

/* --------------------------------------------------------------------------
   2. レイアウト共通
   -------------------------------------------------------------------------- */
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}
.wrap--narrow { width: min(880px, calc(100% - 48px)); }

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* 見出しの組 ------------------------------------------------------------- */
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--center { text-align: center; }

.sec-label {
  display: block;
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--brand);
  margin-bottom: 14px;
}
.sec-head--center .sec-label { letter-spacing: .34em; }

.sec-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.55;
  letter-spacing: .08em;
  color: var(--heading);
}
.sec-title .em { color: var(--brand); }

.sec-lead {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 2.1;
}
.sec-head--center .sec-lead { margin-inline: auto; max-width: 46em; }

/* ボタン ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn .arw {
  width: 18px; height: 8px;
  flex: none;
  transition: transform .3s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover .arw { transform: translateX(5px); }

.btn--primary {
  background: var(--brand-grad);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: var(--shadow-brand-hi); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--heading);
  background: var(--surface-thin);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.btn-row--center { justify-content: center; }

/* テキストリンク --------------------------------------------------------- */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brand);
}
.link-more .arw { width: 16px; transition: transform .3s var(--ease); }
.link-more:hover .arw { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   3. ヘッダー
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color .45s var(--ease), padding .45s var(--ease),
              box-shadow .45s var(--ease), backdrop-filter .45s;
}
.header.is-stuck {
  padding: 12px 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-header);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo__mark {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--logo);
}
.logo__mark .dot { color: var(--brand); }
.logo__sub {
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: .3em;
  color: var(--logo-sub);
  margin-top: 4px;
}

.gnav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.gnav__link {
  position: relative;
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--nav);
  padding: 6px 0;
  transition: color .3s;
}
.gnav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.gnav__link:hover { color: var(--brand); }
.gnav__link:hover::after,
.gnav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.gnav__link[aria-current="page"] { color: var(--brand); }

.header .btn { padding: 12px 24px; font-size: 13px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 130;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .25s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.is-menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-menu-open .burger span:nth-child(2) { opacity: 0; }
.is-menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* モバイルメニュー ------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--drawer-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 80px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.is-menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .1em;
  color: var(--heading);
  transform: translateY(14px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .3s;
}
.is-menu-open .drawer a { transform: none; opacity: 1; }
.drawer a:nth-child(1) { transition-delay: .06s; }
.drawer a:nth-child(2) { transition-delay: .11s; }
.drawer a:nth-child(3) { transition-delay: .16s; }
.drawer a:nth-child(4) { transition-delay: .21s; }
.drawer a:nth-child(5) { transition-delay: .26s; }
.drawer a:nth-child(6) { transition-delay: .31s; }
.drawer a:nth-child(7) { transition-delay: .36s; }
.drawer a:hover { color: var(--brand); }
.drawer a small {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   4. ヒーロー
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg);
  isolation: isolate;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: 140px 0 100px;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--hero-accent, var(--brand));
  margin-bottom: 26px;
}
.hero__eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.42;
  letter-spacing: .05em;
  color: var(--hero-title);
}
.hero__title .em {
  color: var(--hero-accent, var(--brand));
  position: relative;
  white-space: nowrap;
}
.hero__title .em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: .28em;
  background: var(--hero-marker);
  z-index: -1;
  border-radius: 3px;
}

.hero__sub {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 18px);
  letter-spacing: .1em;
  color: var(--hero-accent, var(--brand));
}

.hero__lead {
  margin-top: 26px;
  max-width: 34em;
  font-size: 15px;
  line-height: 2.2;
  color: var(--hero-lead);
}

.hero__scroll {
  position: absolute;
  right: clamp(12px, 3vw, 34px);
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--hero-lead);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 74px;
  background: linear-gradient(to bottom, var(--hero-accent, var(--brand)), transparent);
}

/* ヒーローの装飾 --------------------------------------------------------- */
.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__deco span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: var(--hero-orb-opacity);
}
.hero__deco span:nth-child(1) {
  width: 420px; height: 420px;
  top: -80px; left: -100px;
  background: var(--orb-1);
  animation: drift 18s ease-in-out infinite;
}
.hero__deco span:nth-child(2) {
  width: 340px; height: 340px;
  bottom: -60px; left: 32%;
  background: var(--orb-2);
  animation: drift 22s ease-in-out infinite reverse;
}
.hero__deco span:nth-child(3) {
  width: 300px; height: 300px;
  top: 12%; right: 4%;
  background: var(--orb-3);
  animation: drift 26s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.12); }
}

/* --------------------------------------------------------------------------
   5. ビジュアル・プレースホルダー
   実写／イラストが入るまでの仮ビジュアル。差し替え方は README を参照。
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: linear-gradient(145deg, var(--ph-a, var(--brand)), var(--ph-b, var(--brand-2)));
  isolation: isolate;
}
.ph::before {
  /* やわらかい光 */
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.55), transparent 45%),
    radial-gradient(circle at 74% 68%, rgba(255,255,255,.3), transparent 42%);
  mix-blend-mode: soft-light;
}
.ph::after {
  /* きらめき */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,.6) 0 1.4px, transparent 2px);
  background-size: 70px 70px, 130px 130px;
  background-position: 0 0, 34px 46px;
  opacity: .5;
}
.ph__label {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  font-family: var(--font-latin);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--ph-label, rgba(255, 255, 255, .82));
  text-shadow: var(--ph-label-shadow, 0 1px 6px rgba(0, 0, 0, .3));
}
/* 実素材が入ったフレーム。仮ビジュアル用のグラデーションときらめきは打ち消す。
   ★ object-fit は cover ではなく contain。
     素材の縦横比はジャケット（正方形）・立ち絵（縦長）・かるた（3:4）とばらばらなので、
     枠に合わせて切り取るとキャラクターの頭や足が落ちる。収める側に倒して全体を見せる。 */
.ph--img {
  background: var(--frame-bg, var(--bg-alt));
  padding: var(--frame-pad, 0);
}
.ph--img::before,
.ph--img::after { display: none; }
.ph--img img,
.ph--img picture {
  position: absolute;
  inset: var(--frame-pad, 0);
  width: auto;
  height: auto;
  max-width: calc(100% - var(--frame-pad, 0px) * 2);
  max-height: calc(100% - var(--frame-pad, 0px) * 2);
  margin: auto;
}
.ph--img img { object-fit: contain; }

/* ヒーローの立ち絵。枠に入れず、背景の上に全身で立たせる。
   透過PNGなので切り取り線がなく、どの高さでも頭も足も欠けない。 */
.hero__chara {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(-28px, -2vw, 0px);
  min-height: clamp(340px, 46vw, 620px);
}
.hero__chara img {
  width: auto;
  max-width: none;
  height: clamp(300px, 42vw, 600px);
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(170, 110, 145, .28));
}
.hero__chara img:nth-child(1) { height: clamp(270px, 38vw, 540px); z-index: 1; }
.hero__chara img:nth-child(2) { z-index: 3; }
.hero__chara img:nth-child(3) { height: clamp(255px, 36vw, 510px); z-index: 2; }

.ph--hero {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-hero);
}
.ph--wide { aspect-ratio: 16 / 10; }
/* 作品カードは正方形。CDジャケットはそのまま、立ち絵やかるたは余白付きで全身が入る。 */
.ph--card {
  aspect-ratio: 1 / 1;
  --frame-pad: 14px;
  --frame-bg: var(--surface);
  border: 1px solid var(--card-line);
}
.ph--thumb { width: 76px; height: 76px; border-radius: 12px; flex: none; }

/* --------------------------------------------------------------------------
   6. SERVICE
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  /* 6項目なので 3列×2段。1行に詰めるより1枚あたりが広く取れて読みやすい */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.svc-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px) clamp(18px, 1.8vw, 26px) 28px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-card);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-color .45s, background-color .45s;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hi);
  border-color: var(--brand);
}
.svc-card__icon {
  width: 46px; height: 46px;
  margin-bottom: 18px;
  color: var(--brand);
}
.svc-card__icon svg { width: 100%; height: 100%; }
.svc-card__title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand);
  margin-bottom: 12px;
  /* カタカナ語が「キャラクターデザイ／ン」のように割れないようにする。
     改行位置は HTML 側の <br> で指定します。 */
  word-break: keep-all;
}
.svc-card__text {
  font-size: 13px;
  line-height: 2;
  color: var(--text-muted);
  flex: 1;
}
.svc-card__arw {
  align-self: flex-end;
  margin-top: 20px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--brand);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.svc-card:hover .svc-card__arw {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
  transform: translateX(4px);
}
.svc-card__arw svg { width: 13px; }

/* --------------------------------------------------------------------------
   7. WORKS
   -------------------------------------------------------------------------- */
.works { background: var(--works-bg); color: var(--works-text); }
.works .sec-title { color: var(--works-heading); }
.works .sec-lead { color: var(--works-muted); }
.works .btn--ghost {
  /* 案Bでは暗い面に載るため、明るい --surface-thin を打ち消す */
  background: transparent;
  color: var(--works-heading, var(--heading));
  border-color: var(--works-line, var(--line-strong));
}
.works .btn--ghost:hover { color: var(--brand); border-color: var(--brand); }

.works-grid {
  display: grid;
  /* 正方形フレームなので1行5枚だと1枚が小さすぎる。3列にしてジャケットを大きく見せる。 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
}
.work-card { display: block; }
.work-card .ph {
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: var(--shadow-work);
}
.work-card:hover .ph {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-work-hi);
}
.work-card__cat {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cat-bg, rgba(255, 255, 255, .22));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--cat-fg, #fff);
}
.work-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.work-card__title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.7;
  color: var(--works-heading, var(--heading));
}
.work-card__title small {
  display: block;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--brand);
  margin-bottom: 5px;
}
.work-card__body .arw { width: 16px; flex: none; color: var(--brand); transition: transform .3s var(--ease); }
.work-card:hover .arw { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   8. ABOUT
   -------------------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}
.about-layout--rev .about-layout__media { order: 2; }

/* --------------------------------------------------------------------------
   9. NEWS
   -------------------------------------------------------------------------- */
.news-list { display: grid; gap: 4px; }
.news-item {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, padding-left .3s var(--ease);
}
.news-item:hover { background: var(--surface-thin); padding-left: 16px; }
.news-item__meta { display: flex; align-items: center; gap: 14px; flex: none; }
.news-item__date {
  font-family: var(--font-latin);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.news-item__tag {
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--font-latin);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  background: var(--tag-bg);
  color: var(--tag-text);
}
.news-item__title {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--heading);
  flex: 1;
}
.news-item .arw { width: 16px; flex: none; color: var(--brand); transition: transform .3s var(--ease); }
.news-item:hover .arw { transform: translateX(5px); }

/* 一覧ページ用：本文まで表示する行 */
.news-item--full {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 8px;
}
.news-item--full:hover { background: none; padding-left: 8px; }
.news-item--full .news-item__title {
  flex: none;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.news-item__body {
  font-size: 14px;
  line-height: 2.05;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. CTA 帯
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--cta-bg);
  color: var(--cta-text);
  text-align: center;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.6;
}
.cta__text { margin-top: 16px; font-size: 14.5px; opacity: .9; }
.cta .btn--primary { background: var(--cta-btn-bg); color: var(--cta-btn-text); box-shadow: none; }
.cta .btn--primary:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }

/* --------------------------------------------------------------------------
   11. 下層ページ用ヘッダー
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 17vw, 210px) 0 clamp(52px, 7vw, 84px);
  background: var(--hero-bg);
  isolation: isolate;
}
.page-hero__label {
  font-family: var(--font-latin);
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1;
  color: var(--brand);
  opacity: .95;
}
.page-hero__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--hero-title);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb li:not(:last-child)::after { content: "／"; margin-left: 10px; opacity: .5; }
.breadcrumb a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   12. 汎用パーツ（下層ページ）
   -------------------------------------------------------------------------- */
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--heading);
  margin: 56px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--brand);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--brand);
  margin: 34px 0 10px;
}
.prose p { margin-bottom: 18px; font-size: 14.5px; line-height: 2.15; color: var(--text-muted); }
.prose ul { margin: 0 0 20px; display: grid; gap: 8px; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: .82em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

/* 定義テーブル ----------------------------------------------------------- */
.spec-table th,
.spec-table td {
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 2;
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 200px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--heading);
  white-space: nowrap;
}
.spec-table td { color: var(--text-muted); }

/* 未確定情報のマーカー（公開前に必ず差し替え） */
/* 事業内容の詳細ブロック ------------------------------------------------- */
.svc-detail {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}
.svc-detail:last-child { border-bottom: 0; }
.svc-detail--rev .svc-detail__media { order: 2; }
.svc-detail__no {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--brand);
  margin-bottom: 10px;
}
.svc-detail__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--heading);
  margin-bottom: 16px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-muted);
}

/* 実績カード（一覧ページ） ---------------------------------------------- */
.works-grid--page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}
.works-grid--page .work-card__title { font-size: 15px; }
.works-grid--page .work-card__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-muted);
}

/* 作品ごとのクレジット */
.work-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
}
.work-meta > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.work-meta dt {
  font-family: var(--font-latin);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brand);
}
.work-meta dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* フォーム --------------------------------------------------------------- */
/* hidden 属性は、ブラウザ既定の [hidden]{display:none} がクラス側の display 指定に
   負けてしまう。JS で hidden を立てても消えないので、ここで明示的に打ち消しておく。 */
[hidden] { display: none !important; }

.form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--heading);
}
.field__req {
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 10px;
  letter-spacing: .1em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--heading);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 190px; resize: vertical; line-height: 1.9; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field__note { font-size: 12.5px; color: var(--text-muted); }

/* Contact Form 7（WordPress 版）の出力に合わせた調整 ---------------------
   静的サイトでは使われません。CF7 は送信ボタンを <input type="submit"> で
   出力し、置換要素には ::after を付けられないため、矢印は背景画像で描いています。 */
.btn.wpcf7-submit {
  cursor: pointer;
  padding-right: 62px;
  -webkit-appearance: none;
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8' fill='none'%3E%3Cpath d='M0 4h16M12.5.8 16.6 4l-4.1 3.2' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E"),
    var(--brand-grad);
  background-repeat: no-repeat, no-repeat;
  background-position: right 30px center, center;
  background-size: 18px 8px, cover;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-position .3s var(--ease);
}
.btn.wpcf7-submit:hover { background-position: right 25px center, center; }

/* 入力エラーの注意書き */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: #d13a6a;
}
.field input.wpcf7-not-valid,
.field select.wpcf7-not-valid,
.field textarea.wpcf7-not-valid { border-color: #d13a6a; }

/* 送信結果の表示。CF7 本体が .wpcf7 form .wpcf7-response-output で
   2px の水色ボーダーを当ててくるため、同じ詳細度で上書きしている。 */
.wpcf7 form .wpcf7-response-output {
  margin: 4px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text);
}
.wpcf7 form .wpcf7-response-output:empty { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--brand); color: var(--brand); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #d13a6a; color: #d13a6a; }

/* 送信中のスピナー位置 */
.wpcf7-spinner { margin: 0 0 0 12px; }

.form-note {
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--surface-thin);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 2;
  color: var(--text-muted);
}

.contact-direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.contact-direct__item {
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  text-align: center;
}
.contact-direct__label {
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--brand);
  margin-bottom: 10px;
}
.contact-direct__value {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--heading);
}

/* --------------------------------------------------------------------------
   13. フッター
   -------------------------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(52px, 6vw, 72px) 0 30px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--footer-line);
}
.footer .logo__mark { color: var(--footer-logo); }
.footer .logo__sub { color: var(--footer-text); }
.footer__addr { margin-top: 18px; font-size: 12.5px; line-height: 2; opacity: .8; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(22px, 3.4vw, 46px);
  max-width: 640px;
}
.footer__nav a {
  display: block;
  font-size: 13px;
  letter-spacing: .06em;
  opacity: .85;
  transition: opacity .3s, color .3s;
}
.footer__nav a:hover { opacity: 1; color: var(--brand); }
.footer__nav a small {
  display: block;
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--brand);
  margin-bottom: 3px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  font-size: 11.5px;
  letter-spacing: .06em;
  opacity: .75;
}
.footer__sns { display: flex; gap: 16px; }
.footer__sns a {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--footer-line);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.footer__sns a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
  transform: translateY(-3px);
}
.footer__sns svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   14. スクロール演出
   -------------------------------------------------------------------------- */
/* JavaScript が動く環境でのみ隠す。無効時は最初から表示されます。 */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* キャラクター一覧（王立王子学園の王子たち） ---------------------------
   立ち絵は枠に入れず、台の上に立たせる。高さだけを決めて幅は成り行きに
   まかせるので、どの体型・ポーズでも頭と足が切れない。 */
.chara-grid {
  margin-top: clamp(28px, 3.4vw, 46px);
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 18px);
  list-style: none;
}
.chara-card { text-align: center; }
.chara-card__fig {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(168px, 19vw, 300px);
  padding: 10px 4px 0;
  border-radius: var(--radius-img);
  background: linear-gradient(175deg, var(--surface) 10%, transparent 92%);
}
.chara-card__fig img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(170, 110, 145, .22));
}
.chara-card__motif {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--brand);
  word-break: keep-all;
}
.chara-card__name {
  margin-top: 3px;
  font-weight: 700;
  font-size: clamp(12.5px, 1.1vw, 15px);
  line-height: 1.5;
  word-break: keep-all;
}
.chara-card__name span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.chara-card__cv {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}


/* 送信結果の表示 -------------------------------------------------------- */
.form-status {
  margin: 0 0 22px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--card-line);
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.9;
}
.form-status.is-ok {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}
.form-status.is-error {
  border-color: #d8536b;
  background: color-mix(in srgb, #d8536b 8%, var(--surface));
  color: #9c2c43;
}

/* Turnstile のウィジェット。読み込まれるまで高さが0なので、
   出た瞬間にボタンが下へ飛ぶのを防ぐぶんだけ場所を取っておく。 */
.cf-turnstile {
  margin-top: 26px;
  min-height: 65px;
}

/* 自動投稿よけの欄。読み上げにも乗らないよう aria-hidden と併用している。
   display:none にすると埋めてこない機械がいるので、見えない場所へ飛ばすだけにする。 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   15. レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .works-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chara-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chara-card__fig { height: clamp(200px, 26vw, 300px); }
}

@media (max-width: 900px) {
  .wrap, .wrap--narrow { width: calc(100% - 40px); }
  .gnav, .header .btn { display: none; }
  .burger { display: block; }

  .hero { min-height: auto; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 120px 0 80px;
    gap: 40px;
  }
  .hero__media { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero__scroll { display: none; }

  .about-layout,
  .svc-detail { grid-template-columns: minmax(0, 1fr); }
  .about-layout--rev .about-layout__media,
  .svc-detail--rev .svc-detail__media { order: 0; }

  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { border-bottom: 0; padding-bottom: 0; }
  .spec-table td { padding-top: 6px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-grid--page { grid-template-columns: minmax(0, 1fr); }
  .chara-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chara-card__fig { height: clamp(190px, 40vw, 260px); }

  .news-item { flex-wrap: wrap; gap: 8px 14px; }
  .news-item__title { flex: 1 0 100%; }

  .footer__top { flex-direction: column; }
}

@media (max-width: 420px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
}
