/* ==========================================================================
   KOGUCHI LP — タレント・インフルエンサー専用の営業LPビルダー
   世界観: 明るい「キャスティング資料室」。生成りの紙面に濃紺の編集線が走る
   デジタル営業資料。姉妹LPの koguchi-pr（暗い試写室）/ koguchi-seller とは
   明暗で役割を分け、フォントとブランドカラーだけを共有する。
   色は matsuyoi ロゴ由来の5色のみ（藍/群青/紫/赤紫/生成り）。
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  line-height: 1.9;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }
input, textarea { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
fieldset { margin: 0; padding: 0; border: none; }
legend { padding: 0; }
table { border-collapse: collapse; }

:root {
  /* --- 地・面（比率: 紙68% / 濃紺22% / 群青7% / 紫2% / 赤紫1%）--- */
  --paper: #F4F1EA;
  --paper-deep: #EDE8DE;      /* 面を1段沈める時だけ使う */
  --navy: #0B1120;
  --blue: #1C3680;
  --purple: #3F3470;
  --plum: #672B51;

  /* --- 文字 --- */
  --ink: #0B1120;
  --ink-soft: rgba(11, 17, 32, .62);
  --ink-faint: rgba(11, 17, 32, .42);
  --on-dark: #F4F1EA;
  --on-dark-soft: rgba(244, 241, 234, .68);

  /* --- 線 --- */
  --rule: rgba(28, 54, 128, .18);
  --rule-strong: rgba(28, 54, 128, .38);
  --rule-dark: rgba(244, 241, 234, .18);

  --wrap: 1140px;
  --rail-w: 76px;
  --header-h: 64px;
}

.f-mincho { font-family: 'Shippori Mincho', serif; font-weight: 600; }
.f-sans { font-family: 'Noto Sans JP', sans-serif; }
.f-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.sp-only { display: inline; }
@media (min-width: 760px) { .sp-only { display: none; } }
.arrow { margin-left: .5em; font-size: .9em; transition: transform .25s ease; display: inline-block; }
a:hover .arrow { transform: translateX(4px); }

/* 質感は1種類だけ。紙の微粒子を固定で敷く（アニメーションさせない） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-reveal] { will-change: transform, opacity; }

/* ==========================================================================
   ボタン（ピル型は使わない。角丸3px・高さ56px）
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  height: 56px;
  padding: 0 30px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--primary { background: var(--blue); color: var(--paper); }
.btn--primary:hover { background: #16295f; transform: translateY(-1px); }
.btn--ghost { border: 1px solid rgba(11, 17, 32, .26); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--on-dark { background: var(--paper); color: var(--navy); }
.btn--on-dark:hover { background: #fff; transform: translateY(-1px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; border-radius: 2px; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  padding: 0 20px;
  background: rgba(244, 241, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__brand {
  font-size: clamp(18px, 4.4vw, 21px);
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1;
}

/* ==========================================================================
   欄外（PC のみ）。現在位置を示すだけで、本文は入れない
   ========================================================================== */
.rail { display: none; }
@media (min-width: 1280px) {
  .rail {
    display: block;
    position: fixed;
    top: 50%;
    left: 26px;
    transform: translateY(-50%);
    z-index: 90;
    width: var(--rail-w);
  }
  .rail__list { display: flex; flex-direction: column; gap: 26px; }
  .rail__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    color: var(--ink-faint);
    transition: color .3s ease;
    position: relative;
    padding-left: 14px;
  }
  .rail__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 1px;
    background: currentColor;
    transition: width .3s ease;
  }
  .rail__item.is-current { color: var(--blue); }
  .rail__item.is-current::before { width: 10px; height: 2px; top: 5px; }
  .rail__num { letter-spacing: .1em; }
  .rail__label { letter-spacing: .14em; font-size: 9px; }
}
/* rail は left:26px + width:76px = 右端102pxで固定。wrap(1140px)の中央寄せ
   マージンだけでは1280〜1335px程度で本文の左端(90px前後)と被るため、
   その帯域だけ本文側に逃げ幅を足す。1336px以上は中央寄せの余白が自然に
   足りるため対象外（hero は別途 rail 分の padding-left を確保済み） */
@media (min-width: 1280px) and (max-width: 1349px) {
  /* main ~ .promo は .promo単体より詳細度を上げ、後方の .promo 本体定義
     （padding指定）に上書きされないようにする */
  main > section:not(.hero), main ~ .promo {
    padding-left: 56px;
  }
}

/* ==========================================================================
   セクション共通
   ========================================================================== */
main > section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(76px, 11vw, 132px) 20px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 68px); }
.sec-eyebrow {
  font-size: 11px;
  color: var(--purple);
  margin-bottom: 18px;
  position: relative;
  padding-top: 14px;
}
.sec-eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--blue);
}
.sec-title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.35;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.sec-lead {
  margin-top: 20px;
  font-size: clamp(15px, 1.15vw, 16px);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 42em;
}

/* ==========================================================================
   1. HERO — 完成ページを右端で切って「中を覗いている」状態にする
   ========================================================================== */
.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 20px clamp(64px, 9vw, 104px);
}
.hero__copy { position: relative; z-index: 2; max-width: 660px; }
.hero__eyebrow {
  font-size: 11px;
  color: var(--purple);
  position: relative;
  padding-top: 16px;
  margin-bottom: 26px;
}
.hero__eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--blue);
}
.hero__title {
  font-size: clamp(37px, 5.1vw, 64px);
  line-height: 1.16;
  letter-spacing: -.045em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* 2行目は左へ張り出し、サイズも上げる（1行目と同サイズ・同左端にしない） */
.hero__title-2 { margin-left: -.06em; font-size: 1.07em; }
.hero__tagline {
  margin-top: 26px;
  font-size: clamp(14px, 1.1vw, 15px);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .01em;
}
.hero__lead {
  margin-top: 14px;
  font-size: clamp(15px, 1.15vw, 16px);
  color: var(--ink-soft);
  line-height: 1.95;
  max-width: 30em;
}
.hero__cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__status {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  max-width: 34em;
}
.hero__status-tag {
  font-size: 10px;
  color: var(--plum);
  border: 1px solid rgba(103, 43, 81, .34);
  padding: 3px 8px;
  border-radius: 1px;
  letter-spacing: .18em;
}
.hero__status-text {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.7;
}

/* 代表作の覗き見。SPは見出しの背面、PCは右カラムに置く */
.hero__stage { position: relative; }
.hero__peek {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: 0 30px 70px rgba(11, 17, 32, .16);
}
.hero__peek img { width: 100%; height: auto; }
/* 下端は紙へ溶かす（カードに収めず、続きがあるように見せる） */
.hero__peek::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(to bottom, rgba(244, 241, 234, 0) 0%, var(--paper) 88%);
}
.hero__peek-cap {
  position: absolute;
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: .2em;
}

@media (max-width: 899px) {
  /* FV を1画面に近い高さへ収める（760〜860px目安）。PCのゆったりした余白を
     そのまま縮小コピーせず、行間・余白を個別に詰める */
  .hero { padding-bottom: 0; padding-top: 40px; }
  .hero__eyebrow { margin-bottom: 18px; }
  /* H1: 1行目を基準サイズ、2行目を 1.24 倍にしてサイズジャンプを作る。
     「「依頼できます」が、」は10文字あり、2行とも同サイズだと390px幅で
     「が、」だけが次行に孤立する。1行目を絞ることで2行に確定させる */
  .hero__title { font-size: clamp(33px, 8.5vw, 36px); line-height: 1.3; }
  .hero__title-2 { font-size: 1.24em; margin-left: -.03em; }
  .hero__tagline { margin-top: 18px; }
  .hero__lead { margin-top: 12px; }
  .hero__cta { margin-top: 24px; }
  .hero__status { margin-top: 20px; padding-top: 14px; }
  .hero__stage { height: 132px; margin: 16px -20px 0; overflow: hidden; }
  /* 右端で切れた帯として見せる。左に空きを作らず、画面の外へ続いている状態にする */
  .hero__peek { top: 0; right: -8%; width: 88%; }
  /* 帯を左へ伸ばした分、欄外ラベルと重なって読めなくなる。SP では落とす
     （同じ情報は OUTPUT の CASE 01 で出る） */
  .hero__peek-cap { display: none; }
  /* SP は指で押す面を揃える。主従は色（濃紺ベタ / 枠線のみ）で示す */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}
@media (min-width: 900px) {
  /* min-height はほぼ効かない（実測コンテンツ高が上回る）。効いているのは
     padding-bottom の余剰分だったため、ここを詰めて次セクションが軽く
     覗く距離まで縮める */
  .hero { min-height: 600px; display: flex; align-items: center; padding-bottom: clamp(28px, 3.4vw, 44px); }
  /* リード文の最長行が代表作フレームまで届いてしまうため、干渉点を
     H1 2行目の1か所だけに保つよう折り返し幅を少し絞る */
  .hero__lead { max-width: 26em; }
  /* 代表作は右端へ食い込ませる。カードに収めず、続きがある状態にする。
     H1 2行目「ひと目で伝わる。」の右端（句点付近）にだけ接触させるため、
     1行目（さらに右まで伸びている）の下へ避けるよう縦位置を下げてから
     左へ寄せる（横位置だけをずらすと1行目まで覆ってしまうため） */
  .hero__stage {
    position: absolute;
    top: 258px;
    right: calc(-4% + 194px);
    width: min(46%, 520px);
    z-index: 1;
  }
  .hero__peek {
    position: relative;
    inset: auto;
    width: 100%;
    max-height: 410px;
  }
  /* PC では下端を硬く切って「続きがある」ことを示す。SP のように紙へ
     溶かすと、フレーム下部が白い帯に見えて中身が減って見える */
  .hero__peek::after { height: 14%; }
  .hero__peek-cap { top: -22px; left: 2px; }
}
@media (min-width: 1280px) {
  .hero { padding-left: calc(var(--rail-w) + 40px); }
}

/* ==========================================================================
   2. PROBLEM
   ========================================================================== */
.problem { border-top: 1px solid var(--rule); }

.consolidate {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 34px;
  align-items: center;
}
@media (min-width: 860px) {
  .consolidate {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.05fr);
    column-gap: 22px;
    row-gap: 0;
  }
}

/* --- 左: 散らばった断片5枚（抽象表現のみ。実在しない画面は描かない） --- */
.consolidate__bits {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 860px) { .consolidate__bits { display: block; height: 380px; } }

/* 白はスクショ内部のみに限るため、断片カードは紙色のまま。境界と影だけで
   「1枚のカード」として切り出す（同じ紙から切り出された紙片のような見え方） */
.bit {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 14px 16px;
  box-shadow: 0 14px 28px rgba(11, 17, 32, .08);
}
.bit__label { display: block; font-size: 9px; color: var(--ink-faint); margin-bottom: 12px; }

.bit__lines i { display: block; height: 5px; background: var(--rule); border-radius: 1px; }
.bit__lines i + i { margin-top: 8px; }
.bit__lines i:nth-child(1) { width: 88%; }
.bit__lines i:nth-child(2) { width: 60%; }
.bit__lines i:nth-child(3) { width: 74%; }
.bit__lines i:nth-child(4) { width: 44%; }

.bit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.bit__grid i { display: block; aspect-ratio: 1; background: var(--paper-deep); border: 1px solid var(--rule); }

.bit__bubbles { display: flex; flex-direction: column; gap: 7px; }
.bit__bubbles i {
  display: block;
  height: 14px;
  width: 70%;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.bit__bubbles i:nth-child(even) { align-self: flex-end; width: 56%; }

@media (min-width: 860px) {
  /* 散らし配置。等間隔にせず、少し重ねる */
  .bit { position: absolute; width: 176px; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
  .bit--sns   { top: 6px;   left: 0;    transform: rotate(-5deg); }
  .bit--posts { top: 0;     left: 196px; width: 158px; transform: rotate(4deg); }
  .bit--dm    { top: 142px; left: 28px; width: 150px; transform: rotate(6deg); }
  .bit--card  { top: 196px; left: 206px; transform: rotate(-4deg); }
  .bit--doc   { top: 278px; left: 8px;  transform: rotate(3deg); }
  /* 進入時に中央方向へわずかに寄せる（script.js initProblemBits が is-in を付与） */
  .bit--sns.is-in   { transform: translate(10px, -4px) rotate(-5deg); }
  .bit--posts.is-in { transform: translate(-8px, 6px) rotate(4deg); }
  .bit--dm.is-in    { transform: translate(12px, -6px) rotate(6deg); }
  .bit--card.is-in  { transform: translate(-10px, -8px) rotate(-4deg); }
  .bit--doc.is-in   { transform: translate(10px, -10px) rotate(3deg); }
}

/* --- 中央: 集約の矢印（SPは下向き、PCは右向き） --- */
.consolidate__arrow { display: flex; align-items: center; justify-content: center; padding: 2px 0; }
.consolidate__arrow span { position: relative; display: block; width: 1px; height: 26px; background: var(--rule-strong); }
.consolidate__arrow span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border-bottom: 1px solid var(--rule-strong);
  border-right: 1px solid var(--rule-strong);
  transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 860px) {
  .consolidate__arrow { height: 100%; padding: 0; }
  .consolidate__arrow span { width: 40px; height: 1px; }
  .consolidate__arrow span::after {
    left: auto; right: -1px; bottom: auto; top: 50%;
    border-bottom: none;
    border-top: 1px solid var(--rule-strong);
    border-right: 1px solid var(--rule-strong);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* --- 右: 完成ページ（実在するLPのスクリーンショット） --- */
.consolidate__page {
  position: relative;
  border: 1px solid var(--rule);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 26px 56px rgba(11, 17, 32, .13);
}
.consolidate__page img { width: 100%; height: auto; }
.consolidate__cap {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 9.5px;
  color: var(--ink-faint);
  background: rgba(244, 241, 234, .9);
  padding: 3px 8px;
}

/* --- 個人 / 事務所への使い分け。かつて章1つ分あった情報を帯へ圧縮 --- */
.uses {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(44px, 6vw, 64px);
  border-top: 1px solid var(--rule);
}
@media (min-width: 700px) { .uses { grid-template-columns: 1fr 1fr; } }
.uses__item { padding: 18px 0; }
@media (min-width: 700px) {
  .uses__item + .uses__item { padding-left: 32px; border-left: 1px solid var(--rule); }
  .uses__item:first-child { padding-right: 32px; }
}
.uses__tag { display: block; font-size: 10px; color: var(--purple); margin-bottom: 8px; }
.uses__text { font-size: 13px; color: var(--ink-soft); line-height: 1.75; max-width: 34em; }

/* ==========================================================================
   3. OUTPUT — 代表作を1本決め、残りは従属させる
   ========================================================================== */
.output { border-top: 1px solid var(--rule); }

.worlds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
@media (min-width: 900px) {
  .worlds { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
}

/* --- 代表作。面積比 55〜60% で大きく --- */
.worlds__main {
  border: 1px solid var(--rule);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 28px 58px rgba(11, 17, 32, .14);
}
.worlds__main img { width: 100%; height: auto; }
.worlds__main figcaption {
  padding: 22px 26px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.worlds__index { display: block; width: 100%; font-size: 10px; color: var(--purple); }
.worlds__name { font-size: clamp(22px, 2.6vw, 27px); }
.worlds__use { font-size: 14px; color: var(--ink-soft); }
.worlds__link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}

/* --- 残り3本。従属させ、名前＋用途1行だけに絞る --- */
.worlds__subs { display: flex; flex-direction: column; gap: 24px; }
.worlds__subs li { border-top: 1px solid var(--rule); padding-top: 20px; }
.worlds__subs li:first-child { border-top: none; padding-top: 0; }
.worlds__subs a { display: flex; flex-direction: column; }
.worlds__subs img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  transition: transform .3s ease;
}
.worlds__subs a:hover img { transform: translateY(-3px); }
.worlds__subs .worlds__index { margin-top: 14px; margin-bottom: 6px; font-size: 9.5px; }
.worlds__subs .worlds__name { display: block; font-size: 17px; margin-bottom: 4px; }
.worlds__subs .worlds__use { display: block; font-size: 12.5px; }

/* ==========================================================================
   4. STRUCTURE — 入力項目と出力ブロックを番号で対応させる
   ========================================================================== */
.structure { border-top: 1px solid var(--rule); }

/* --------------------------------------------------------------------------
   .frames — STRUCTURE の山場。4本のLPが同じタイミングで同じ部位へ切り替わる
   ことを見せる。PC/タブレット(900px以上・motion可)はスクロール連動のsticky、
   SP・prefers-reduced-motionはnavボタン操作のみに切り替える（script.js側で
   .frames.is-linear を付与／position指定はここでも二重にガードする）。
   -------------------------------------------------------------------------- */
.frames { position: relative; }
.frames__viewport { background: var(--paper); }
@media (min-width: 900px) {
  .frames__viewport {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  /* このセクションの主張は「4本の同じ部位が並ぶ」こと。wrap(1140px)の中に
     4列を収めると1枚257pxまで縮み、表の構造まで読み取れない。
     ここだけ本文幅を抜けて広げる。左端は rail（右端102px）に被らない位置で止める */
  .frames {
    width: min(100vw - 240px, 1500px);
    margin-left: 50%;
    transform: translateX(-50%);
  }
  /* sticky で貼り付いている間、下に滑走路の余白が長く見えないよう画面高に寄せる */
  .frames__viewport { min-height: calc(100svh - var(--header-h) - 56px); }
}

.frames__meta {
  margin-bottom: clamp(24px, 3vw, 32px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.frames__step { font-size: 10px; color: var(--ink-faint); margin-bottom: 12px; }
.frames__label { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.frames__note { font-size: 14px; color: var(--ink-soft); max-width: 46em; }

.frames__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
@media (min-width: 900px) {
  .frames__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}
.frames__who { font-size: 10px; color: var(--ink-faint); margin-bottom: 10px; }
.frames__shots {
  position: relative;
  aspect-ratio: 560 / 376;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  overflow: hidden;
}
.frames__shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}
.frames__shots img.is-on { opacity: 1; transform: translateY(0); }

.frames__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: clamp(28px, 3.4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.frames__nav button {
  font-size: 10px;
  color: var(--ink-faint);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.frames__nav button:hover { color: var(--ink); }
.frames__nav button.is-current { color: var(--blue); border-bottom-color: var(--blue); }

/* SP・prefers-reduced-motion: sticky区間をやめ、navボタンのみで6状態へ到達させる */
@media (max-width: 899px) {
  .frames__viewport { position: static !important; }
}
.frames.is-linear .frames__viewport { position: static !important; }

/* ==========================================================================
   5. HOW IT WORKS — 作成フローのコンセプト図（完成UIは描かない）
   ========================================================================== */
.howto { border-top: 1px solid var(--rule); }
.flow { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.flow__step { position: relative; display: flex; flex-direction: column; }
.flow__num { font-size: 10px; color: var(--purple); margin-bottom: 12px; }
.flow__title { font-size: clamp(20px, 2.3vw, 24px); line-height: 1.4; margin-bottom: 20px; }
.flow__figure {
  flex: 1;
  border: 1px solid var(--rule);
  background: #fff;
  padding: 24px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow__figure--publish { padding: 0; overflow: hidden; align-items: stretch; }
.flow__figure--publish img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.flow__text { margin-top: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

.mock-q { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.mock-choices { display: flex; flex-direction: column; gap: 9px; }
.mock-choices li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.7;
}
.mock-choices li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 1px;
}
.mock-choices li.is-on { color: var(--ink); }
.mock-choices li.is-on::before { background: var(--blue); border-color: var(--blue); }
.mock-choices li.is-on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}
.mock-blocks { display: flex; flex-direction: column; gap: 8px; }
.mock-blocks li {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  padding: 9px 12px;
  border-radius: 1px;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
/* script.js の initFlowSequence が順に is-on を付与し、ブロックを1つずつ濃くする */
.mock-blocks li.is-on { border-color: var(--rule-strong); color: var(--blue); background: #fff; }

.howto__disclaimer {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding-left: 14px;
  border-left: 2px solid var(--rule-strong);
  max-width: 52em;
}

/* ==========================================================================
   6. PLAN
   ========================================================================== */
.plan { border-top: 1px solid var(--rule); }
.plans-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  background: #fff;
}
/* 横スクロールが必要な時だけ、隠れている列があることを示す。
   wrap は position:relative（上で指定済み）なので、この::afterは絶対配置で
   右端に固定し、内部の横スクロールに関わらず常に手前に重ねて見せる。
   （旧: position:sticky + float:right は table 直後では正しく重ならず、
   フェードが実質不可視だった。SP/タブレットの表が横スクロールする時のみ
   .has-more が付与されるため、PC（列が収まる幅）では発火しない＝影響なし） */
.plans-table-wrap.has-more::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 52px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 78%);
  pointer-events: none;
}
.plans-table { width: 100%; min-width: 640px; }
.plans-table th, .plans-table td {
  padding: 15px 20px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  line-height: 1.7;
}
.plans-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule-strong);
}
.plans-table thead th:last-child { color: var(--blue); }
.plans-table thead th:not(:first-child), .plans-table td:not(:first-child) { text-align: center; }
.plans-table tbody tr:last-child td { border-bottom: none; }
.plans-table td.is-yes { color: var(--blue); font-weight: 600; }
.plans-table td.is-no { color: var(--ink-faint); }
.plans-table tbody td:first-child { color: var(--ink); }

.plan__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 8px;
}
@media (min-width: 760px) {
  .plan__grid { grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
}
.plan__card {
  border: 1px solid var(--rule);
  background: #fff;
  padding: clamp(26px, 3.2vw, 34px);
  display: flex;
  flex-direction: column;
}
.plan__card--sub { background: var(--paper-deep); border-color: var(--rule-strong); }
.plan__name { font-size: 10px; color: var(--purple); margin-bottom: 16px; }
.plan__price {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.plan__card--sub .plan__price { font-size: clamp(22px, 2.6vw, 28px); }
.plan__unit { font-size: .4em; margin-left: .2em; font-weight: 400; }
.plan__list { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--rule-strong);
}
/* SP実機モックは描かず、スクショを罫線で囲うだけに留める */
.plan__device {
  margin: 24px 0 0;
  width: 168px;
  border: 1px solid var(--rule);
  background: #fff;
  overflow: hidden;
  align-self: flex-start;
}
.plan__device img { width: 100%; height: auto; }
.plan__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid var(--rule-strong);
}

.plan__more {
  margin-top: clamp(32px, 4.4vw, 48px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(22px, 3vw, 30px);
}
/* 閉じている時から「押せる」ことが分かるよう、開閉アイコン付きの行にする */
.plan__more summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.plan__more summary::-webkit-details-marker { display: none; }
.plan__more summary::before,
.plan__more summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--blue);
  transition: transform .25s ease, opacity .25s ease;
}
.plan__more summary::before { transform: translateY(-50%) rotate(90deg); }
.plan__more[open] summary::before { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.plan__more summary::after { transform: translateY(-50%); }
.plan__more .plans-table-wrap { margin-top: 22px; }
.plan__compare-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 56em;
}

.plan__disclaimer {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding-left: 14px;
  border-left: 2px solid var(--rule-strong);
  max-width: 52em;
}

/* ==========================================================================
   FAQ（.contact 濃紺面の内部に統合。専用にダーク配色を定義する）
   ========================================================================== */
.faq {
  grid-column: 1 / -1;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(36px, 5vw, 52px);
  border-top: 1px solid var(--rule-dark);
}
.faq__eyebrow {
  font-size: 11px;
  color: rgba(200, 155, 190, .9);
  position: relative;
  padding-top: 14px;
  margin-bottom: 22px;
}
.faq__eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: rgba(244, 241, 234, .6);
}
.faq-list { border-top: 1px solid var(--rule-dark); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--rule-dark); }
.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: 19px 40px 19px 0;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.7;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after,
.faq-item__q::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 30px;
  width: 13px;
  height: 1px;
  background: rgba(200, 155, 190, .9);
  transition: transform .25s ease, opacity .25s ease;
}
.faq-item__q::before { transform: rotate(90deg); }
.faq-item[open] .faq-item__q::before { transform: rotate(0deg); opacity: 0; }
.faq-item__a {
  font-size: 14px;
  color: var(--on-dark-soft);
  line-height: 1.95;
  padding: 0 40px 22px 0;
  max-width: 52em;
}

/* 残り7問。閉じたままでも「押せる」ことが分かる行にする */
.faq__more { margin-top: 6px; border-top: 1px solid var(--rule-dark); }
.faq__more summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 18px 26px 18px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark);
}
.faq__more summary::-webkit-details-marker { display: none; }
.faq__more summary::before,
.faq__more summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(200, 155, 190, .9);
  transition: transform .25s ease, opacity .25s ease;
}
.faq__more summary::before { transform: translateY(-50%) rotate(90deg); }
.faq__more[open] summary::before { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.faq__more summary::after { transform: translateY(-50%); }
.faq__more .faq-list { margin-top: 4px; }

/* ==========================================================================
   9. CONSULTATION（濃紺面・成果地点）
   ========================================================================== */
.contact {
  position: relative;
  max-width: none !important;
  padding: 0 !important;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/casting-room.webp');
  background-size: cover;
  background-position: center right;
  opacity: .7;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy) 0%, rgba(11, 17, 32, .98) 46%, rgba(11, 17, 32, .9) 70%, rgba(11, 17, 32, .68) 100%);
}
@media (min-width: 900px) {
  /* facts（ご相談後／費用）が左カラム下部に来るため、46-100%の帯を
     一段締めて背景の書類部分が透けても文字が沈まないようにする */
  .contact::after {
    background: linear-gradient(100deg, var(--navy) 0%, rgba(11, 17, 32, .98) 50%, rgba(11, 17, 32, .94) 74%, rgba(11, 17, 32, .8) 100%);
  }
}
.contact__inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 124px) 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 960px) {
  .contact__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 72px; align-items: start; }
}
.contact .sec-eyebrow { color: rgba(200, 155, 190, .9); }
.contact .sec-eyebrow::before { background: rgba(244, 241, 234, .6); }
.contact__title {
  font-size: clamp(26px, 3.1vw, 37px);
  line-height: 1.46;
  letter-spacing: -.02em;
  color: var(--on-dark);
}
.contact__lead {
  margin-top: 22px;
  font-size: 15px;
  color: var(--on-dark-soft);
  line-height: 1.95;
  max-width: 34em;
}
/* 相談後に何が起きるかを3行で示す。番号と本文を罫線で区切って読ませる */
.contact__steps {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
}
.contact__steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--on-dark-soft);
  line-height: 1.75;
  border-bottom: 1px solid rgba(244, 241, 234, .08);
}
.contact__steps li:last-child { border-bottom: none; }
.contact__steps li span {
  flex: none;
  font-size: 10px;
  color: rgba(200, 155, 190, .9);
  letter-spacing: .16em;
}
.contact__note {
  margin-top: 20px;
  font-size: 12.5px;
  color: rgba(244, 241, 234, .5);
  line-height: 1.85;
  max-width: 34em;
}

.contact-form { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .form-field--audience, .form-field--message, .form-submit-row, .form-status { grid-column: 1 / -1; }
}
.form-field { display: flex; flex-direction: column; gap: .6em; }
.form-field label, .form-field legend { font-size: 13px; color: var(--on-dark-soft); }
.form-field input, .form-field textarea {
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
  padding: .9em 1em;
  font-size: 15px;
  color: var(--on-dark);
  background: rgba(244, 241, 234, .06);
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(244, 241, 234, .34); }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: rgba(244, 241, 234, .6);
  background: rgba(244, 241, 234, .1);
}
.form-radios { display: flex; gap: 10px; }
.form-radios label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
  font-size: 14px;
  color: var(--on-dark-soft);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.form-radios input { appearance: none; width: 0; height: 0; margin: 0; position: absolute; }
.form-radios label:has(input:checked) {
  border-color: rgba(244, 241, 234, .72);
  color: var(--on-dark);
  background: rgba(244, 241, 234, .1);
}
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-submit-row { display: flex; margin-top: 6px; }
.form-submit-row .btn { width: 100%; }
@media (min-width: 560px) { .form-submit-row .btn { width: auto; min-width: 260px; } }
.form-status { font-size: 14px; color: var(--on-dark-soft); line-height: 1.9; }
.form-status.is-error { color: #e59a94; }

/* ==========================================================================
   姉妹サービス導線（小）
   ========================================================================== */
.promo {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 78px) 20px;
}
.promo__eyebrow { font-size: 10px; color: var(--ink-faint); margin-bottom: 22px; }
.promo__list { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .promo__list { grid-template-columns: 1fr 1fr; } }
.promo__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  transition: color .25s ease;
}
@media (min-width: 760px) {
  .promo__list li + li .promo__item { padding-left: 36px; }
  .promo__list li:first-child .promo__item { padding-right: 36px; border-right: 1px solid var(--rule); }
}
.promo__item:hover { color: var(--blue); }
.promo__name { font-size: 11px; color: var(--blue); }
.promo__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  padding: clamp(36px, 5vw, 52px) 20px clamp(44px, 6vw, 60px);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 760px) {
  .site-footer { flex-direction: row; align-items: baseline; justify-content: space-between; }
}
.site-footer__brand { font-size: 17px; letter-spacing: .06em; }
.site-footer__copy { font-size: 11.5px; color: var(--ink-faint); }

/* ==========================================================================
   SP の追従CTA
   ========================================================================== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 241, 234, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; height: 52px; }
@media (min-width: 860px) { .sticky-cta { display: none !important; } }

/* ==========================================================================
   モーションを減らす設定では、移動とスクロール連動だけを無効にする
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .worlds__subs a:hover img, .btn:hover { transform: none !important; }
}
