
/* ==========================================================================
   DECA Ad for Agency — デザイントークン
   出典: skills関係/deca-page-builder/references/design-tokens.md（main.css 実測値）
        および deca.marketing/lp/ad/（現行 DECA Ad LP・ダーク版）
   本LPはダークを基調にするため、実測のブランド色はそのまま保ち、
   暗背景で沈む分だけ「持ち上げ用」のトークンを別に定義する。
   ========================================================================== */

:root {
  /* --- ブランド原色（変更禁止・deca-logo-composer/references/logo-rules.md §2） */
  --deca-navy:     #1d2088;
  --deca-magenta:  #e4007f;
  --deca-cyan:     #00a0e9;
  --deca-red:      #f93549;   /* Cloud アクセント（シンボル） */
  --deca-mist:     #ededf3;

  /* --- 暗背景で使うための派生色。原色を明度側へ寄せただけで色相は動かさない */
  --navy-lift:     #3a3fd6;
  --magenta-lift:  #ff2e9a;
  --cyan-lift:     #33b8f0;

  /* --- 地色
     DECA資料の黒ページ（ad-proposal-deck/assets/bg/closing.png）の実測に合わせている。
     地は黒、沈み込みは #00051a の紫紺。ここを普通のダークグレーにすると別ブランドに見える。 */
  --ink:           #000208;   /* ページ地。ほぼ黒 */
  --ink-2:         #00051a;   /* セクション地。DECAの紫紺 */
  --ink-3:         #0a0e2c;   /* カード地 */
  --ink-line:      rgba(255, 255, 255, .10);
  --ink-line-2:    rgba(255, 255, 255, .18);

  /* --- 文字 */
  --fg:            rgba(255, 255, 255, .94);
  --fg-mute:       rgba(255, 255, 255, .62);
  --fg-faint:      rgba(255, 255, 255, .40);

  /* --- 明るい面（料金表・シミュレーション表など、読ませる面だけ白地にする） */
  --paper:         #ffffff;
  --paper-fg:      var(--deca-navy);   /* DECA は本文も #1d2088。黒にしない */
  --paper-mute:    #6f71a8;
  --paper-line:    #d9d9e8;

  /* --- タイポ
     DECA本体は YakuHanJP + Noto Sans JP / 英字 neue-haas-grotesk（Adobe Fonts）。
     Adobe Fonts はキットIDが要るため、英字は同系の Inter で代替している。
     本番で Typekit を通す場合は --font-en の先頭だけ差し替える。 */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Charmonman", cursive;   /* 数字・装飾のみ。本文には使わない */

  --ls-body: .06em;    /* ダーク＋小さめの字なので実測の .14em からは詰める */
  --ls-head: .04em;
  --lh-body: 1.9;

  /* --- DECAのグラデーション（黒ページ）
     出典: ad-proposal-deck/assets/bg/closing.png の実測値。
     左上マゼンタ・右下シアンの2つのブロブ。どちらも「紫紺のコア → ブランド色の輪 →
     紫紺へ沈む」という同じ構造を持つ。単なる単色ぼかしにしないこと。 */
  --glow-magenta-core: #31087b;
  --glow-magenta-mid:  #b9118a;
  --glow-magenta-peak: #e4007f;
  --glow-cyan-core:    #47359d;
  --glow-cyan-mid:     #2062bd;
  --glow-cyan-peak:    #0082be;
  --glow-sink:         #00051a;

  /* 白ページ版（chapter.png）。同じ配置で、地が白に変わる */
  --glow-light-magenta: #cd108a;
  --glow-light-cyan:    #308fd5;

  /* --- レイアウト（実測: コンテナ 1200px / セクション角丸 18px） */
  --wrap: 1200px;
  --wrap-narrow: 880px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --gap-section: clamp(88px, 11vw, 160px);

  /* --- 動き（実測: .325s cubic-bezier(.25,.25,.75,.75)） */
  --ease: cubic-bezier(.25, .25, .75, .75);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .325s;
}


/* ==========================================================================
   DECA Ad Creative — アート版LP（art.html）
   参考にしたのは zrk.technology の「1画面に数字1つ」と計器風のHUD。
   色は tokens.css のブランド原色だけを使う。マゼンタは「選ばれた1つ」にだけ当てる。
   描画負荷：backdrop-filter と blur() は使わない（DESIGN.md §7）。
   ========================================================================== */

:root {
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --hud-h: 76px;
  --gut: clamp(16px, 2.2vw, 28px);
  --pad-x: calc(var(--gut) + 3vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-jp);
  font-feature-settings: "palt";
  letter-spacing: .04em;
  line-height: 1.8;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.br-sp { display: none; }
@media (max-width: 760px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }
}

/* フィルムの粒子。静止画のノイズを1枚重ねるだけで、動かさない */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   HUD
   ========================================================================== */
.hud {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: var(--gut);
  right: var(--gut);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  height: calc(var(--hud-h) - 24px);
  padding: 0 0 0 14px;
  border-top: 1px solid var(--ink-line-2);
  border-bottom: 1px solid var(--ink-line-2);
  background: rgba(0, 2, 8, .9);
}
.hud__logo { flex: none; display: block; width: 116px; color: #fff; }
.hud__logo svg { display: block; width: 100%; height: auto; font-family: var(--font-en); }
.hud__meta {
  flex: none;
  padding-left: 16px;
  border-left: 1px solid var(--ink-line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.7;
}
.hud__clock { margin: 0; color: var(--fg); }
.hud__clock span { color: var(--fg-faint); }
.hud__nav { display: flex; gap: 14px; }
.hud__nav a { text-decoration: none; color: var(--fg-mute); }
.hud__nav a:hover { color: #fff; }

/* 32本の目盛り。1本＝1案。絞り込まれると消え、選ばれた1案だけマゼンタで残る */
.hud__ticks {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
}
.hud__ticks i {
  width: 2px;
  background: rgba(255, 255, 255, .55);
  transition: background-color .35s, opacity .35s;
}
.hud__ticks i.is-out { background: rgba(255, 255, 255, .12); }
.hud__ticks i.is-win { background: var(--deca-magenta); }

.hud__cta {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 6px 6px 6px 0;
  padding: 0 16px;
  border: 1px solid var(--deca-magenta);
  background: rgba(228, 0, 127, .10);
  color: var(--magenta-lift);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.hud__cta:hover { background: var(--deca-magenta); color: #fff; }

@media (max-width: 1180px) { .hud__nav { display: none; } }
@media (max-width: 640px) {
  :root { --hud-h: 64px; }
  .hud { gap: 12px; padding-left: 10px; }
  .hud__logo { width: 92px; }
  .hud__meta { display: none; }
  .hud__ticks i { width: 1px; }
  .hud__cta { padding: 0 10px; font-size: 11px; letter-spacing: .02em; }
}

/* 四隅の枠と読み値 */
.frame { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.frame__c { position: absolute; width: 14px; height: 14px; border: 0 solid rgba(255, 255, 255, .45); }
.frame__c--tl { top: calc(env(safe-area-inset-top, 0px) + 4px); left: 4px; border-top-width: 1px; border-left-width: 1px; }
.frame__c--tr { top: calc(env(safe-area-inset-top, 0px) + 4px); right: 4px; border-top-width: 1px; border-right-width: 1px; }
.frame__c--bl { bottom: calc(env(safe-area-inset-bottom, 0px) + 4px); left: 4px; border-bottom-width: 1px; border-left-width: 1px; }
.frame__c--br { bottom: calc(env(safe-area-inset-bottom, 0px) + 4px); right: 4px; border-bottom-width: 1px; border-right-width: 1px; }
.frame__read {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--fg-mute);
}
.frame__read--l { left: var(--gut); }
.frame__read--r { right: var(--gut); }

/* ==========================================================================
   広告1枚（タイル・選ばれた1案で共通）
   #process の4層だけは、文字を画像に描かずここで組む。サイズはすべてコンテナ基準（cqw）なので、
   小さな層でも全画面でも同じ組版のまま拡大縮小する。
   トーナメントに並ぶ32案は入稿済みの実素材なので、`.ad--shot` で組版も覆いも足さない
   ========================================================================== */
.ad {
  position: relative;
  overflow: hidden;
  container-type: size;
  background: var(--ink-3);
}
.ad > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 5, 26, .78), rgba(0, 5, 26, 0) 58%);
}
.ad[data-space="bottom"]::before { background: linear-gradient(to top, rgba(0, 5, 26, .8), rgba(0, 5, 26, 0) 60%); }

.ad__type {
  position: absolute;
  z-index: 2;
  left: 7cqw;
  right: 7cqw;
  top: 8cqw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.4cqw;
  opacity: var(--type-o, 1);
}
.ad[data-space="bottom"] .ad__type { top: auto; bottom: 13cqw; }
.ad__h {
  margin: 0;
  font-size: 9.2cqw;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .02em;
  color: #fff;
}
.ad__s { margin: 0; font-size: 4.1cqw; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.ad__cta {
  margin-top: 1.6cqw;
  padding: 1.5cqw 4.2cqw;
  border-radius: 99px;
  background: #fff;
  color: var(--deca-navy);
  font-size: 3.7cqw;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
}
.ad__brand {
  position: absolute;
  z-index: 2;
  left: 7cqw;
  bottom: 5.5cqw;
  font-family: var(--font-en);
  font-size: 3.3cqw;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .9);
  opacity: var(--type-o, 1);
}
.ad[data-space="bottom"] .ad__brand { bottom: auto; top: 5.5cqw; }
.ad__id {
  position: absolute;
  z-index: 2;
  right: 4cqw;
  top: 4cqw;
  font-family: var(--mono);
  font-size: 3.2cqw;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .72);
}
.ad[data-space="bottom"] .ad__id { top: auto; bottom: 4cqw; }

/* 実素材そのまま。コピーもロゴも素材に焼き込まれているので、覆いをかけず入稿比のまま収める。
   sq(1:1) / feed(4:5) / tall(9:16) / wide(1.91:1) が混ざるため object-fit は contain */
.ad--shot { background: var(--ink-2); }
.ad--shot::before { content: none; }
.ad--shot > img { object-fit: contain; }

/* 横長になったとき（勝者が全画面に広がったとき）は、左に寄せて組み直す */
@container (min-aspect-ratio: 1 / 1) {
  .ad__type { top: 50%; bottom: auto; left: 6cqw; right: auto; max-width: 52cqw; transform: translateY(-50%); gap: 1.2cqw; }
  .ad__h { font-size: 5.2cqw; line-height: 1.25; }
  .ad__s { font-size: 1.6cqw; }
  .ad__cta { margin-top: 1cqw; padding: .8cqw 2.2cqw; font-size: 1.3cqw; }
  .ad__brand { left: 6cqw; bottom: 6cqh; top: auto; font-size: 1.3cqw; }
  .ad__id { top: auto; bottom: 6cqh; right: 6cqw; font-size: 1.1cqw; }
  .ad::before,
  .ad[data-space="bottom"]::before {
    background: linear-gradient(90deg, rgba(0, 5, 26, .86), rgba(0, 5, 26, .35) 55%, rgba(0, 5, 26, 0));
  }
}

/* ==========================================================================
   1. トーナメント
   ========================================================================== */
/* 900vh のうち 700vh がトーナメント、残りが事例（js/art.js の TN_END と合わせる） */
.tn { position: relative; height: 1000vh; }
.tn__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--hud-h) + 24px) var(--pad-x) 56px;
}

.tn__copy { position: relative; z-index: 2; min-width: 0; }
.tn__num {
  margin: 0 0 .12em;
  font-family: var(--font-en);
  font-size: clamp(96px, 15vw, 248px);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.tn__num small {
  margin-left: .35em;
  font-family: var(--font-jp);
  font-size: .15em;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--fg-mute);
}
.tn__steps { position: relative; min-height: 15.5em; }
.tn__step {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.tn__step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tn__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--fg);
}
.tn__kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan-lift); }
.tn__step[data-step="5"] .tn__kicker::before { background: var(--magenta-lift); }
.tn__h {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.1vw, 60px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .02em;
}
.tn__sub { margin: 0; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.9; color: var(--fg-mute); }
/* 1行が10字を超える見出し（ROUND 0）。1行に収めるため一段小さく */
.tn__h--long { font-size: clamp(24px, 2.9vw, 44px); white-space: nowrap; }

.tn__grid {
  --gap: clamp(2px, .32vw, 5px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  /* 高さが足りない画面でも潰れないよう、max() で下限を持たせる */
  width: min(48vw, max(360px, calc((100vh - var(--hud-h) - 100px) * 1.6)));
  width: min(48vw, max(360px, calc((100svh - var(--hud-h) - 100px) * 1.6)));
  aspect-ratio: 8 / 5;
}
/* 素材の外側に残る余白を枠として見せる。is-late / is-win の枠はこれを上書きする */
.tn__grid .ad--shot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.tn__grid .ad { transition: opacity .45s ease; }
.tn__grid .ad > img { transition: opacity .45s ease, filter .45s ease; }
.tn__grid .ad__type,
.tn__grid .ad__brand { transition: opacity .45s ease; }

/* 生成：読み込み直後に上から順に焼き上がる */
.tn__grid .ad.is-gen { animation: gen .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes gen {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* 脱落 */
.tn__grid .ad::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity .45s ease;
  background: linear-gradient(to top right, transparent calc(50% - .6px), rgba(255, 255, 255, .38) 50%, transparent calc(50% + .6px));
}
.tn__grid .ad.is-out > img { opacity: .2; filter: grayscale(1); }
.tn__grid .ad.is-out .ad__type,
.tn__grid .ad.is-out .ad__brand { opacity: .15; }
.tn__grid .ad.is-out::after { opacity: 1; }
/* 残り8案からは枠を付ける。勝者だけマゼンタ */
.tn__grid .ad.is-late { box-shadow: 0 0 0 1px var(--cyan-lift); }
.tn__grid .ad.is-win {
  z-index: 2;
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--deca-magenta), 0 0 34px rgba(228, 0, 127, .7);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}

.tn__winner {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  visibility: hidden;
}
.tn__winner.is-on { visibility: visible; }
.tn__winner .ad { position: absolute; inset: 0; }
/* 勝者は実素材。引き伸ばさず入稿比のまま、js/art.js が計算した矩形いっぱいに収める */
.ad--winner { overflow: visible; background: transparent; box-shadow: none; }
/* 広がりきったところで、勝者だけマゼンタの枠と光彩が乗る（--wp は js/art.js が 0〜1 で入れる） */
.ad--winner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--wp, 0);
  box-shadow: 0 0 0 1px var(--deca-magenta), 0 0 60px rgba(228, 0, 127, .45);
}

/* 事例：選ばれた1案の右に出る。opacity は js/art.js が入れる */
.tn__case {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 52%;
  right: var(--pad-x);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.tn__case.is-on { pointer-events: auto; }
.case__h {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .02em;
}
.case__p { margin: 0 0 28px; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.9; color: var(--fg-mute); }
.case__stat {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 2vw, 32px);
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
}
.case__num {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(72px, 8vw, 132px);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--magenta-lift);
}
.case__num small {
  margin-left: .2em;
  font-family: var(--font-jp);
  font-size: .2em;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--fg);
}
.case__lbl { margin: 0 0 .4em; font-size: 13px; line-height: 1.7; color: var(--fg-mute); }
.case__lbl b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--fg);
}

.tn__hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--fg-mute);
  transition: opacity .3s;
}
.tn__hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 8px auto 0;
  background: linear-gradient(var(--fg-mute), transparent);
}
.tn__hint.is-hidden { opacity: 0; }

@media (max-width: 760px) {
  .tn__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: 18px;
    padding: calc(var(--hud-h) + 16px) var(--gut) 44px;
  }
  .tn__copy { justify-self: stretch; }
  .tn__num { font-size: clamp(64px, 20vw, 104px); }
  .tn__steps { min-height: 8.6em; }
  .tn__kicker { margin-bottom: 8px; font-size: 11px; }
  .tn__h { margin-bottom: 8px; font-size: clamp(22px, 6.4vw, 30px); }
  .tn__h--long { font-size: clamp(18px, 5.4vw, 24px); }
  .tn__sub { font-size: 12px; line-height: 1.7; }
  .tn__grid {
    width: min(100%, max(280px, calc((100vh - var(--hud-h) - 300px) * 1.6)));
    width: min(100%, max(280px, calc((100svh - var(--hud-h) - 300px) * 1.6)));
  }
  .tn__hint { display: none; }
  /* スマートフォンは1案を上、説明を下に置く */
  .tn__case { top: auto; bottom: 36px; left: var(--gut); right: var(--gut); transform: none; }
  .case__h { margin-bottom: 8px; font-size: clamp(20px, 5.8vw, 26px); }
  .case__p { margin-bottom: 12px; font-size: 12px; line-height: 1.7; }
  .case__stat { gap: 14px; padding-top: 12px; }
  .case__num { font-size: clamp(48px, 14vw, 64px); }
  .case__lbl { font-size: 11px; }
}

/* ==========================================================================
   2. 工程
   ========================================================================== */
.pr { position: relative; height: 360vh; background: var(--ink-2); }
.pr__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
  padding: calc(var(--hud-h) + 24px) var(--pad-x) 56px;
}
.pr__kicker, .lg__kicker, .end__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
}
.pr__kicker::before, .lg__kicker::before, .end__kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan-lift); }
.pr__num, .lg__num {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(80px, 10vw, 168px);
  font-weight: 200;
  line-height: .95;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.pr__num small, .lg__num small {
  margin-left: .35em;
  font-family: var(--font-jp);
  font-size: .16em;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--fg-mute);
}
.pr__num { font-size: clamp(64px, 7vw, 120px); }
.pr__h, .lg__h {
  margin: 14px 0 26px;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .02em;
}
.pr__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-line); }
.pr__h { margin: 10px 0 18px; }
.pr__list li {
  display: flex;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-line);
  opacity: .34;
  transition: opacity .35s;
}
.pr__list li.is-on { opacity: 1; }
.pr__list b { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 2; color: var(--magenta-lift); }
.pr__list span { font-size: 13px; line-height: 1.8; color: var(--fg-mute); }
.pr__list strong { display: block; font-size: 15px; color: var(--fg); }

.pr__scene { height: 100%; display: grid; place-items: center; perspective: 1600px; }
.pr__card {
  --rx: 0deg;
  --rz: 0deg;
  --sep: 0px;
  --ty: 0px;
  --s: 0;
  position: relative;
  width: min(26vw, 32vh, 300px);
  width: min(26vw, 32svh, 300px);
  aspect-ratio: 9 / 16;
  transform-style: preserve-3d;
  transform: translateY(var(--ty)) rotateX(var(--rx)) rotateZ(var(--rz));
}
.pr__layer[data-layer="2"],
.pr__layer[data-layer="3"] { opacity: var(--s); }
.pr__layer {
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--i) * var(--sep)));
  transition: box-shadow .35s;
}
.pr__layer[data-layer="0"] { --i: 0; }
.pr__layer[data-layer="1"] { --i: 1; }
.pr__layer[data-layer="2"] { --i: 2; }
.pr__layer[data-layer="3"] { --i: 3; }
.pr__card.is-split .pr__layer { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.pr__card.is-split .pr__layer.is-on { box-shadow: 0 0 0 1px var(--magenta-lift), 0 0 30px rgba(228, 0, 127, .35); }

/* 画像の層と組版の層は、選ばれた1案を分解した2枚（tools/build_process_layers.py）。重ねると元の素材に戻る */
.pr__layer--img { overflow: hidden; background: var(--ink-3); }
.pr__layer--img img,
.pr__layer--type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 検証の層：組版の層と同じ座標に、測った枠と結果だけを残す */
.pr__layer--chk { container-type: size; }
.chk__box {
  position: absolute;
  outline: 1px dashed var(--cyan-lift);
  outline-offset: .6cqw;
}
.chk__box[data-chk]::after {
  content: attr(data-chk);
  position: absolute;
  left: 0;
  top: calc(100% + 1.8cqw);
  padding: .5cqw 1.2cqw;
  background: rgba(0, 5, 26, .82);
  font-family: var(--mono);
  font-size: 2.8cqw;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--cyan-lift);
}
.chk__box--up[data-chk]::after { top: auto; bottom: calc(100% + 1.8cqw); }
.chk__ratio {
  position: absolute;
  right: 3cqw;
  top: 3cqw;
  padding: 1cqw 2cqw;
  border: 1px dashed var(--cyan-lift);
  background: rgba(0, 5, 26, .82);
  font-family: var(--mono);
  font-size: 2.8cqw;
  color: var(--cyan-lift);
}

/* 承認の層 */
.pr__layer--ok { container-type: size; }
.stamp {
  position: absolute;
  right: 7cqw;
  bottom: 12cqw;
  display: grid;
  place-items: center;
  align-content: center;
  width: 30cqw;
  aspect-ratio: 1;
  border: 2px solid var(--deca-magenta);
  border-radius: 50%;
  color: var(--magenta-lift);
  font-size: 8cqw;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .1em;
  transform: rotate(-12deg);
  background: rgba(228, 0, 127, .08);
}
.stamp small { font-size: 2.8cqw; font-weight: 700; letter-spacing: .06em; }

@media (max-width: 760px) {
  .pr__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding: calc(var(--hud-h) + 12px) var(--gut) 40px;
  }
  .pr__num { font-size: 56px; }
  .pr__h { margin: 6px 0 12px; font-size: 20px; }
  .pr__list li { gap: 12px; padding: 7px 0; }
  .pr__list span { font-size: 11px; line-height: 1.6; }
  .pr__list strong { font-size: 13px; }
  .pr__card { width: min(36vw, 17vh, 160px); width: min(36vw, 17svh, 160px); }
}

/* ==========================================================================
   3. 台帳
   ========================================================================== */
.lg { padding: clamp(96px, 16vh, 180px) var(--pad-x); background: var(--ink); }
.lg__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}
.lg__p { margin: 0 0 22px; font-size: clamp(13px, 1.1vw, 16px); color: var(--fg-mute); }
.lg__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lg__chips li {
  padding: 5px 12px;
  border: 1px solid var(--ink-line-2);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--fg-mute);
}
.lg__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.lg__t { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); opacity: .28; }
/* 台帳も実素材。入稿比のまま並べる（サイズちがいが1枚ずつ分かるように） */
.lg__t img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); }
.lg__grid.is-in .lg__t { animation: scan 2.6s ease both; animation-delay: var(--d, 0ms); }
@keyframes scan {
  0%   { opacity: .12; box-shadow: none; }
  25%  { opacity: .95; box-shadow: inset 0 0 0 1px var(--cyan-lift); }
  100% { opacity: .3;  box-shadow: none; }
}
@media (max-width: 760px) {
  .lg__inner { grid-template-columns: minmax(0, 1fr); }
  .lg__num { font-size: 72px; }
  .lg__h { font-size: 24px; }
}

/* ==========================================================================
   人物（担当コンサルタント・監修）
   agency LP の .sv を下敷きにし、角丸をやめてHUDの枠に寄せている
   ========================================================================== */
.pp { padding: clamp(96px, 14vh, 160px) var(--pad-x); background: var(--ink); }
.pp--lead { background: var(--ink-2); }
.pp__inner { max-width: 1120px; margin: 0 auto; }
.pp__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.pp__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
}
.pp__kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan-lift); }
.pp__h {
  margin: 14px 0 18px;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .02em;
}
.pp__lead { margin: 0; font-size: clamp(13px, 1.1vw, 16px); color: var(--fg-mute); }

.sv {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid var(--ink-line-2);
  background: linear-gradient(150deg, rgba(29, 32, 136, .3), var(--ink-3) 62%);
}
/* 左上・右下の角だけ、HUDと同じ目盛りを付ける */
.sv::before,
.sv::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--cyan-lift); }
.sv::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.sv::after { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }
.sv--lead { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }

.sv__photo { position: relative; max-width: 300px; aspect-ratio: 1; overflow: hidden; background: var(--ink-2); }
.sv--lead .sv__photo { max-width: 340px; }
.sv__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sv__photo img { width: 100%; height: 100%; object-fit: cover; }
.sv__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 3px 8px;
  background: #fff;
  color: #000;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
}

.sv__role {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px 6px;
  background: var(--deca-magenta);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.sv__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 20px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.3;
}
.sv__en { font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: .06em; color: var(--fg-faint); }
.sv__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.sv__tags span {
  padding: 5px 12px 6px;
  border: 1px solid var(--ink-line-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--fg-mute);
}
.sv__bio { margin: 0 0 22px; font-size: 15.5px; font-weight: 700; line-height: 2; color: var(--fg); }
.sv__note,
.sv__career {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font-size: 13.5px;
  line-height: 2;
  color: var(--fg-mute);
}
.sv__career { display: grid; gap: 14px; }
.sv__career p { margin: 0; }
.sv__note b, .sv__career b { font-weight: 700; color: #fff; }

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 20px;
  padding: 22px clamp(20px, 3vw, 40px);
  border: 1px solid var(--ink-line-2);
}
.band__t { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.7; }
.band__t span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--fg-mute); }

@media (max-width: 800px) {
  .sv, .sv--lead { grid-template-columns: minmax(0, 1fr); }
  .sv__photo, .sv--lead .sv__photo { max-width: 260px; }
  .band .btn { width: 100%; }
}

/* ==========================================================================
   4. 締め
   ========================================================================== */
.end {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--hud-h) + 48px) var(--pad-x) 96px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 18% 20%, rgba(185, 17, 138, .28), transparent 70%),
    radial-gradient(55% 50% at 85% 85%, rgba(0, 160, 233, .20), transparent 70%),
    var(--ink-2);
}
.end__kicker { justify-content: center; }
.end__h {
  margin: 18px 0 20px;
  font-size: clamp(24px, 3.6vw, 52px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .02em;
}
.end__h span { font-family: var(--font-en); color: var(--magenta-lift); }
.end__p { margin: 0 0 36px; color: var(--fg-mute); font-size: clamp(13px, 1.1vw, 16px); }
.end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--deca-magenta); color: #fff; }
.btn--primary:hover { background: var(--magenta-lift); }
.btn--ghost { border: 1px solid var(--ink-line-2); color: var(--fg); }
.btn--ghost:hover { border-color: #fff; }

/* ==========================================================================
   フッター
   ========================================================================== */
.ftr {
  padding: 28px var(--pad-x) calc(env(safe-area-inset-bottom, 0px) + 40px);
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--fg-faint);
}
.ftr__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 10px; padding: 0; list-style: none; }
.ftr__links a { text-decoration: none; color: var(--fg-mute); font-family: var(--font-jp); }
.ftr__links a:hover { color: #fff; }
.ftr__copy { margin: 0; }

/* 出現 */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tn__grid .ad.is-gen,
  .lg__grid.is-in .lg__t { animation: none; }
  .tn__step, [data-reveal], .tn__grid .ad, .tn__grid .ad > img, .tn__grid .ad::after { transition: none; }
}

