
/* ============================================================
   DECA Ad for Agency v1 ／ ページ専用CSS（LP）
   元の tokens.css / creative-wall.css / lp.css を、中身を変えずにつなげたもの。
   このLPは独立LP（テーマのCSSは読み込まない）。
   ============================================================ */

/* ---------- tokens.css ---------- */
/* ==========================================================================
   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;
}
/* ---------- creative-wall.css ---------- */
/* ==========================================================================
   Creative Wall — FVの背景で流れるクリエイティブの壁
   タイルは画像ではなくDOM。1タイルをコンテナにして cqmin で文字を組むので、
   カラム幅を変えるだけで中の版面が丸ごと追従する。
   ========================================================================== */

.cwall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  contain: strict;
}
.cwall.is-ready { opacity: 1; }

/* 回転させたぶん外側が見えるので、ステージは画面より大きく取る */
.cwall__stage {
  position: absolute;
  inset: -55% -35%;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.1vw, 20px);
  transform: rotate(15deg);
  transform-origin: 50% 50%;
}

.cwall__col {
  flex: 0 0 auto;
  width: clamp(132px, 14.5vw, 236px);
}

.cwall.is-paused .cwall__track,
.cwall.is-paused ~ * .cwall__track { animation-play-state: paused; }

.cwall__track {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.1vw, 20px);
  will-change: transform;
  animation: cw-rise var(--dur, 96s) linear infinite;
  animation-delay: var(--delay, 0s);
}

/* タイル列を2周ぶん並べてあるので、半分＋gapの半分だけ動かすと継ぎ目が消える */
@keyframes cw-rise {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, calc(-50% - (clamp(10px, 1.1vw, 20px) / 2)), 0); }
}

/* --------------------------------------------------------------------------
   タイル本体
   -------------------------------------------------------------------------- */
.cw-tile {
  /* 短辺を基準に組む。inline-size だと 1.91:1 のような横長タイルで
     文字が縦にはみ出すため、cqmin が使える container-type: size にしている。
     幅と aspect-ratio で高さが確定するので、size を指定して問題ない。 */
  container-type: size;
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 1 / 1);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  box-shadow: 0 10px 34px -12px rgba(0, 0, 0, .7);
  isolation: isolate;
}

/* 上からの薄い光。単色のベタ塗りに見せない */
.cw-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 18% 0%, rgba(255, 255, 255, .18), transparent 62%),
    radial-gradient(90% 60% at 100% 100%, rgba(0, 0, 0, .22), transparent 60%);
  pointer-events: none;
  z-index: 3;
}

.cw-body {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 8cqmin;
  display: flex;
  flex-direction: column;
  gap: 3cqmin;
}

/* 媒体とフォーマットのチップ */
.cw-fmt {
  position: absolute;
  z-index: 4;
  top: 5cqmin; right: 5cqmin;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35em .7em .45em;
  border-radius: 999px;
  background: var(--chip);
  font-family: var(--font-en);
  font-size: 4.4cqmin;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--fg);
  opacity: .82;
}
.cw-fmt i { font-style: normal; opacity: .62; }

.cw-kicker {
  align-self: flex-start;
  margin: 0;
  padding: .3em .6em .4em;
  border-radius: 4px;
  background: var(--ac);
  color: var(--onac, #fff);
  font-size: 5.2cqmin;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.cw-head {
  margin: 0;
  font-size: 13.5cqmin;
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: .01em;
  text-wrap: balance;
}
.cw-head--sm { font-size: 10cqmin; }

.cw-cap {
  margin: 0;
  color: var(--sub);
  font-size: 5cqmin;
  font-weight: 500;
  line-height: 1.5;
}

.cw-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: .62em 1.1em .72em;
  border-radius: 999px;
  background: var(--ac);
  color: var(--onac, #fff);
  font-size: 5cqmin;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}
.cw-cta--wide { align-self: stretch; text-align: center; }

/* --- 数字型・価格型 ------------------------------------------------------ */
.cw-figure {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: .06em;
  font-family: var(--font-en);
  line-height: .9;
  letter-spacing: -.02em;
}
.cw-figure b { font-size: 30cqmin; font-weight: 800; }
.cw-figure i { font-style: normal; font-size: 11cqmin; font-weight: 700; }
.cw-figure small { font-size: 6cqmin; font-weight: 600; color: var(--sub); }
.cw-was {
  margin: 0;
  color: var(--sub);
  font-size: 5cqmin;
  text-decoration: line-through;
  text-decoration-thickness: .08em;
}

/* --- オブジェクト型（撮り下ろしの代わり） --------------------------------- */
.cw-object {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
}
.cw-object-a,
.cw-object-b {
  position: absolute;
  border-radius: 50%;
}
.cw-object-a {
  inset: 18% 22% 14% 20%;
  background: radial-gradient(60% 60% at 34% 28%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .34) 55%, rgba(255, 255, 255, .06) 100%);
  box-shadow: 0 8cqmin 12cqmin -4cqmin rgba(0, 0, 0, .45);
}
.cw-object-b {
  inset: auto -12% -18% 46%;
  aspect-ratio: 1;
  background: radial-gradient(50% 50% at 40% 34%, var(--ac), transparent 72%);
  opacity: .8;
}

/* --- 箇条書き型 ---------------------------------------------------------- */
.cw-listhead {
  margin: 0;
  align-self: flex-start;
  padding: .34em .8em .44em;
  background: var(--fg);
  color: var(--inv, #111);
  font-size: 5.4cqmin;
  font-weight: 800;
  line-height: 1;
}
.cw-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6cqmin;
}
.cw-bullets li {
  position: relative;
  padding-left: 6.4cqmin;
  font-size: 5.2cqmin;
  font-weight: 600;
  line-height: 1.42;
  color: var(--fg);
}
.cw-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 4cqmin;
  height: 4cqmin;
  border-radius: 1px;
  background: var(--ac);
  clip-path: polygon(0 38%, 38% 100%, 100% 6%, 100% 30%, 38% 100%, 0 62%);
}

/* --- 声型 ---------------------------------------------------------------- */
.cw-quote {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  font-size: 8.4cqmin;
  font-weight: 800;
  line-height: 1.44;
}
.cw-quote::before { content: "「"; opacity: .5; margin-left: -.3em; }

/* --- 上下分割型 ---------------------------------------------------------- */
.cw-t-split { padding: 0; gap: 0; }
.cw-split-top {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 8cqmin;
}
.cw-split-btm {
  flex: 0 0 auto;
  padding: 5cqmin 6cqmin 6cqmin;
  background: rgba(0, 0, 0, .26);
}
.cw-t-split .cw-cta { margin-top: 0; }

/* --- 勝った案の表示 ------------------------------------------------------ */
.cw-tile.is-won { box-shadow: 0 0 0 2px var(--deca-magenta), 0 14px 40px -10px rgba(228, 0, 127, .55); }
.cw-win {
  position: absolute;
  z-index: 5;
  left: 5cqmin;
  bottom: 5cqmin;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .4em .7em .48em;
  border-radius: 999px;
  background: var(--deca-magenta);
  color: #fff;
  font-family: var(--font-en);
  font-size: 4.4cqmin;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}
.cw-win i { font-style: normal; font-weight: 600; opacity: .84; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   減光ベール。コピーが読めるだけ落とし、下端はページ地へ繋ぐ
   -------------------------------------------------------------------------- */
.cwall__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, var(--ink) 0%, rgba(7, 8, 26, .93) 34%, rgba(7, 8, 26, .58) 56%, rgba(7, 8, 26, .28) 100%),
    linear-gradient(to bottom, var(--ink) 0%, transparent 18%, transparent 62%, var(--ink) 100%);
}

@media (max-width: 900px) {
  .cwall__stage { inset: -60% -70%; }
  .cwall__veil {
    background:
      linear-gradient(to bottom, rgba(7, 8, 26, .62) 0%, rgba(7, 8, 26, .88) 46%, var(--ink) 82%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cwall__track { animation: none; }
  .cwall { transition: none; }
}
/* ---------- lp.css ---------- */
/* ==========================================================================
   DECA Ad for Agency — 本体スタイル
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 16px;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* 日本語見出しは文節で折る。auto-phrase 非対応の環境では通常の折り返しに戻る */
h1, h2, h3, h4 {
  letter-spacing: var(--ls-head);
  text-wrap: balance;
  word-break: auto-phrase;
}
::selection { background: var(--deca-magenta); color: #fff; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 48px, var(--wrap-narrow)); margin-inline: auto; }
@media (max-width: 720px) {
  .wrap, .wrap--narrow { width: calc(100% - 36px); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding-inline: clamp(18px, 3vw, 40px);
  background: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(7, 8, 26, .86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--ink-line);
}
.hdr__logo { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; color: #fff; text-decoration: none; }
.hdr__deca-logo { width: clamp(94px, 9.7vw, 120px); height: auto; }
.hdr__product-name { font-family: var(--font-en); font-size: clamp(15px, 1.55vw, 18.8px); font-weight: 700; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.hdr__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}
.hdr__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}
.hdr__nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.hdr__nav a:hover { color: #fff; }
.hdr__cta { display: flex; gap: 10px; }
@media (max-width: 1120px) { .hdr__links { display: none; } }
@media (max-width: 640px) {
  .hdr { height: 62px; gap: 12px; }
  .hdr__deca-logo { width: 82px; }
  .hdr__product-name { font-size: 13.5px; }
  .hdr__cta .btn--ghost { display: none; }
  .hdr__cta .btn { padding: 10px 15px 11px; font-size: 12px; }
}

/* --------------------------------------------------------------------------
   ボタン。DECAはホバーでマゼンタに反転する
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 14px 26px 15px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--deca-magenta); border-color: var(--deca-magenta); color: #fff; }
.btn--primary:hover { background: #ff3ba4; border-color: #ff3ba4; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn--ghost:hover { background: var(--deca-magenta); border-color: var(--deca-magenta); }
.btn--lg { padding: 19px 40px 20px; font-size: 15px; }
.btn--sm { padding: 10px 18px 11px; font-size: 12.5px; }
.btn__arrow { width: 14px; height: 14px; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(120px, 12vw, 150px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 8px 16px 9px;
  border: 1px solid var(--ink-line-2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--fg-mute);
}
.hero__eyebrow b { color: #fff; font-weight: 700; }
.hero__eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--deca-magenta);
  box-shadow: 0 0 0 0 rgba(228, 0, 127, .7);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(228, 0, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 0, 127, 0); }
}

.hero__h1 {
  margin: 0 0 28px;
  max-width: 15em;
  font-size: clamp(34px, 5.4vw, 74px);
  font-weight: 900;
  line-height: 1.26;
  letter-spacing: .01em;
}
.hero__h1 .hl {
  position: relative;
  white-space: nowrap;
}
/* 実測の p-underline を暗背景向けに置き換えた強調。線ではなく面で入れる */
.hero__h1 .hl::after {
  content: "";
  position: absolute;
  left: -.06em; right: -.06em; bottom: .06em;
  height: .3em;
  background: linear-gradient(90deg, var(--deca-magenta), #ff5cb4);
  border-radius: 2px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: hl-in 1s .5s var(--ease-out) forwards;
}
@keyframes hl-in { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__h1 .hl::after { transform: scaleX(1); animation: none; }
}

.hero__lead {
  margin: 0 0 40px;
  max-width: 36em;
  font-size: clamp(14.5px, 1.25vw, 17px);
  color: var(--fg-mute);
  line-height: 2.05;
}
.hero__lead b { color: #fff; font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note {
  margin: 30px 0 0;
  font-size: 11.5px;
  color: var(--fg-faint);
  letter-spacing: .04em;
  line-height: 1.8;
}

/* 下端の指標バー */
.hero__strip {
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 6vw, 84px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__strip > div { background: rgba(10, 11, 32, .72); backdrop-filter: blur(10px); padding: 22px 24px 24px; }
.hero__strip dt { margin: 0 0 8px; font-size: 11.5px; color: var(--fg-faint); letter-spacing: .06em; }
.hero__strip dd {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.hero__strip dd span { font-size: .5em; font-weight: 700; margin-left: .2em; color: var(--fg-mute); }
@media (max-width: 860px) { .hero__strip { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   セクションの共通形
   -------------------------------------------------------------------------- */
.sec { position: relative; padding-block: var(--gap-section); }
.sec--tint { background: var(--ink-2); }
.sec--paper { background: var(--paper); color: var(--paper-fg); }
.sec--paper .sec__lead { color: var(--paper-mute); }

.sec__head { max-width: 46em; margin-bottom: clamp(44px, 5vw, 72px); }
.sec__head--center { max-width: 56em; margin-inline: auto; text-align: center; }
.sec__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--deca-magenta);
}
.sec__head--center .sec__eyebrow { justify-content: center; }
.sec__eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--deca-magenta);
  flex: 0 0 auto;
}
.sec__h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 900;
  line-height: 1.4;
}
/* 強調はどの見出しでも同じ色になるようにしておく */
.em { color: var(--deca-magenta); }
.sec__lead {
  margin: 0;
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  color: var(--fg-mute);
  line-height: 2.05;
}
.sec__note {
  margin: 28px 0 0;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--fg-faint);
  letter-spacing: .03em;
}
.sec--paper .sec__note { color: var(--paper-mute); }

/* 出現アニメーション */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   課題：案件数と満足度のジレンマ
   -------------------------------------------------------------------------- */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pain { background: var(--ink); padding: 32px 28px 34px; }
.pain__no {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--deca-magenta);
}
.pain__t { margin: 14px 0 12px; font-size: 17px; font-weight: 800; line-height: 1.55; }
.pain__d { margin: 0; font-size: 13.5px; color: var(--fg-mute); line-height: 1.95; }

.dilemma {
  margin-top: clamp(48px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .dilemma { grid-template-columns: 1fr; } }
.dilemma__fig {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(29, 32, 136, .28), rgba(7, 8, 26, .1));
  padding: clamp(20px, 2.6vw, 34px);
}
.dilemma__t { margin: 0 0 20px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; line-height: 1.5; }
.dilemma__p { margin: 0 0 18px; font-size: 14.5px; color: var(--fg-mute); line-height: 2.05; }
.dilemma__p:last-child { margin-bottom: 0; }
.dilemma__p b { color: #fff; font-weight: 700; }

/* --------------------------------------------------------------------------
   曲線の外に出る条件
   -------------------------------------------------------------------------- */
.conds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .conds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .conds { grid-template-columns: 1fr; } }
.cond {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-3);
  overflow: hidden;
}
.cond::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--deca-magenta), var(--deca-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.cond.is-in::before { transform: scaleX(1); }
.cond__no {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .16);
}
.cond__t { margin: 16px 0 12px; font-size: 16.5px; font-weight: 800; line-height: 1.6; }
.cond__d { margin: 0; font-size: 13.5px; color: var(--fg-mute); line-height: 1.95; }

.conds__after {
  margin-top: 28px;
  padding: 26px 30px 28px;
  border-left: 3px solid var(--deca-magenta);
  background: rgba(228, 0, 127, .07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.conds__after p { margin: 0; font-size: 15px; line-height: 2; }
.conds__after b { color: var(--deca-magenta); font-weight: 800; }

/* --------------------------------------------------------------------------
   3段の構成図
   -------------------------------------------------------------------------- */
.layers { display: grid; gap: 16px; }
.layer {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.layer:hover { border-color: var(--ink-line-2); background: #171a3f; }
@media (max-width: 860px) { .layer { grid-template-columns: 1fr; } }
.layer__badge { display: flex; flex-direction: column; gap: 8px; }
.layer__step {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--deca-cyan);
}
.layer__name { font-size: clamp(21px, 2.2vw, 27px); font-weight: 900; line-height: 1.35; }
.layer__en { font-family: var(--font-en); font-size: 12.5px; font-weight: 600; color: var(--fg-faint); letter-spacing: .04em; }
.layer__body p { margin: 0 0 18px; font-size: 14.5px; color: var(--fg-mute); line-height: 2.05; }
.layer__body p b { color: #fff; font-weight: 700; }
.layer__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.layer__tags li {
  padding: 7px 13px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--fg);
}
.layer__tags li[data-state="dev"] { background: rgba(0, 160, 233, .16); color: #7fd3f8; }
.layer__tags li[data-state="idea"] { background: rgba(255, 255, 255, .04); color: var(--fg-faint); }

/* --------------------------------------------------------------------------
   表（透明性の比較・媒体・Unitの算術）
   -------------------------------------------------------------------------- */
.tbl-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* はみ出している間だけ右端を落として、続きがあることを見せる */
.tbl-scroll.is-overflowing {
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
          mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.tbl-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--fg-faint);
}
.tbl-hint::before { content: "→"; font-size: 13px; }
.tbl-hint[hidden] { display: none; }
.sec--paper .tbl-hint { color: var(--paper-mute); }
.tbl {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th, .tbl td { padding: 17px 20px; text-align: left; vertical-align: top; line-height: 1.75; }
.tbl thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--fg-faint);
  border-bottom: 1px solid var(--ink-line-2);
  white-space: nowrap;
}
.tbl tbody tr { border-bottom: 1px solid var(--ink-line); }
.tbl tbody tr:last-child { border-bottom: 0; }
.tbl tbody th { font-weight: 700; color: #fff; white-space: nowrap; }
.tbl td { color: var(--fg-mute); }
.tbl .col-us { color: #fff; font-weight: 700; }
.tbl .col-us-h { color: var(--deca-magenta); }
.tbl .ok { color: var(--deca-cyan); font-weight: 800; }
.tbl .no { color: var(--fg-faint); }
.tbl--paper { color: var(--paper-fg); }
.tbl--paper thead th { color: var(--paper-mute); border-bottom-color: var(--paper-line); }
.tbl--paper tbody tr { border-bottom-color: var(--paper-line); }
.tbl--paper tbody th { color: var(--paper-fg); }
.tbl--paper td { color: var(--paper-mute); }

/* 「他社 / DECA」の対比列に薄く面を敷く */
.tbl col.hl, .tbl .hl-cell { background: rgba(228, 0, 127, .07); }

/* --------------------------------------------------------------------------
   ユースケース（タブ）
   -------------------------------------------------------------------------- */
.uc__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.uc__tabs::-webkit-scrollbar { display: none; }
.uc__tab {
  flex: 0 0 auto;
  padding: 13px 22px 14px;
  border: 1px solid var(--ink-line-2);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg-mute);
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.uc__tab:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.uc__tab[aria-selected="true"] { background: var(--deca-magenta); border-color: var(--deca-magenta); color: #fff; }
.uc__panel[hidden] { display: none; }
.uc__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  animation: uc-in .5s var(--ease-out);
}
@keyframes uc-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 860px) { .uc__panel { grid-template-columns: 1fr; } }
.uc__col { background: var(--ink-2); padding: clamp(26px, 3vw, 38px); }
.uc__col--after { background: linear-gradient(165deg, rgba(228, 0, 127, .12), var(--ink-2) 70%); }
.uc__label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  background: rgba(255, 255, 255, .08);
  color: var(--fg-mute);
}
.uc__col--after .uc__label { background: var(--deca-magenta); color: #fff; }
.uc__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.uc__list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.95; color: var(--fg-mute); }
.uc__list li::before {
  content: "";
  position: absolute; left: 0; top: .78em;
  width: 9px; height: 2px;
  background: var(--fg-faint);
}
.uc__col--after .uc__list li { color: var(--fg); }
.uc__col--after .uc__list li::before { background: var(--deca-magenta); height: 3px; }
.uc__list b { color: #fff; font-weight: 700; }
.uc__punch {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  color: #fff;
}
.uc__who { margin: 0 0 22px; font-size: 12.5px; color: var(--fg-faint); letter-spacing: .05em; }

/* --------------------------------------------------------------------------
   粗利シミュレーション（3ケース固定）
   -------------------------------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .cases { grid-template-columns: 1fr; } }
.case {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.case__hd { padding: 24px 26px; background: var(--deca-navy); color: #fff; }
.case__scale { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .1em; opacity: .72; }
.case__title { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.45; }
.case__body { padding: 24px 26px 8px; flex: 1 1 auto; }
.case__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--paper-line);
  font-size: 13.5px;
}
.case__row:last-child { border-bottom: 0; }
.case__row dt { color: var(--paper-mute); }
.case__row dd { margin: 0; font-family: var(--font-en); font-weight: 700; font-size: 15px; }
.case__ft { padding: 22px 26px 26px; background: #f6f6fb; border-top: 1px solid var(--paper-line); }
.case__delta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
}
.case__delta b {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--deca-magenta);
}
.case__delta span { font-size: 12.5px; color: var(--paper-mute); }
.case__note { margin: 10px 0 0; font-size: 11.5px; color: var(--paper-mute); line-height: 1.8; }

.case-bridge {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px 32px;
  border-radius: var(--radius);
  background: var(--deca-navy);
  color: #fff;
}
.case-bridge p { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.85; }
.case-bridge small { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; opacity: .72; letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   導入の進め方
   -------------------------------------------------------------------------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr; } }
.phase {
  position: relative;
  padding: 26px 22px 28px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-3);
}
.phase__when { font-family: var(--font-en); font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--deca-magenta); }
.phase__t { margin: 12px 0 10px; font-size: 15.5px; font-weight: 800; line-height: 1.55; }
.phase__d { margin: 0; font-size: 13px; color: var(--fg-mute); line-height: 1.9; }
.phase__bar { margin-top: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.phase__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--deca-magenta), var(--deca-cyan)); }

/* --------------------------------------------------------------------------
   料金
   -------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: #fff;
}
.plan--rec { border-color: var(--deca-magenta); box-shadow: 0 0 0 1px var(--deca-magenta); }
.plan__tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 13px 7px;
  border-radius: var(--radius-pill);
  background: var(--deca-mist);
  color: var(--deca-navy);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
}
.plan--rec .plan__tag { background: var(--deca-magenta); color: #fff; }
.plan__t { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.plan__cond { margin: 0 0 22px; font-size: 13px; color: var(--paper-mute); }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 20px; font-family: var(--font-en); }
.plan__price b { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan__price span { font-size: 15px; font-weight: 700; color: var(--paper-mute); }
.plan__ex { margin: 0; padding: 18px 20px; border-radius: var(--radius-sm); background: #f6f6fb; font-size: 13px; line-height: 1.9; color: var(--paper-mute); }
.plan__ex b { color: var(--deca-magenta); font-weight: 800; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--ink-line); }
.faq__item { border-bottom: 1px solid var(--ink-line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 4px;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq__q:hover { color: var(--deca-magenta); }
.faq__q::after {
  content: "";
  margin-left: auto;
  flex: 0 0 auto;
  width: 14px; height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--dur) var(--ease);
}
.faq__q[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__a { overflow: hidden; }
.faq__a[hidden] { display: none; }
.faq__a p { margin: 0; padding: 0 4px 30px; max-width: 62em; font-size: 14.5px; color: var(--fg-mute); line-height: 2.05; }

/* --------------------------------------------------------------------------
   最終CTA
   -------------------------------------------------------------------------- */
/* 地の演出は .glow（DECAのグラデーション）に寄せてあるので、ここでは持たない */
.final { position: relative; overflow: hidden; padding-block: clamp(84px, 9vw, 132px); }
.final__inner { position: relative; z-index: 1; text-align: center; }
.final__h2 { margin: 0 0 20px; font-size: clamp(26px, 4vw, 46px); font-weight: 900; line-height: 1.42; }
.final__p { margin: 0 auto 40px; max-width: 40em; font-size: 15px; color: var(--fg-mute); line-height: 2.05; }
.final__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.final__actions .btn--ghost { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .22); }
.final__actions .btn--ghost:hover { background: var(--deca-magenta); border-color: var(--deca-magenta); }
.final__note { margin: 30px 0 0; font-size: 12px; color: var(--fg-faint); }

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.ftr { padding: 56px 0 44px; border-top: 1px solid var(--ink-line); }
.ftr__inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.ftr__logo { display: flex; align-items: flex-end; gap: 8px; color: #fff; }
.ftr__logo svg { display: none; }
.ftr__logo::before {
  content: "";
  width: 106px;
  aspect-ratio: 285 / 101;
  background: url("/wp/wp-content/uploads/2026/09/deca-ad-agency-ad-vertical-white.svg") center / contain no-repeat;
}
.ftr__logo::after {
  content: "for Agency";
  font-family: var(--font-en);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.ftr__links { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ftr__links a { font-size: 12.5px; color: var(--fg-mute); text-decoration: none; transition: color var(--dur) var(--ease); }
.ftr__links a:hover { color: #fff; }
.ftr__copy { margin: 30px 0 0; font-size: 11.5px; color: var(--fg-faint); letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   構成図（3段の循環）
   -------------------------------------------------------------------------- */
.flowfig {
  padding: clamp(20px, 2.6vw, 36px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(29, 32, 136, .22), rgba(7, 8, 26, .05));
}
.flowfig svg { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Unit の算術
   -------------------------------------------------------------------------- */
.unitfig {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-3);
}
.unitfig__t { margin-bottom: 22px; }
.unitfig__t h3 { margin: 0 0 8px; font-size: clamp(17px, 1.8vw, 21px); font-weight: 800; line-height: 1.55; }
.unitfig__t p { margin: 0; font-size: 13px; color: var(--fg-faint); letter-spacing: .05em; }
.unitfig__note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 13.5px;
  color: var(--fg-mute);
  line-height: 1.95;
}

/* --------------------------------------------------------------------------
   試算の前提
   -------------------------------------------------------------------------- */
.assump {
  margin-top: 34px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: #f6f6fb;
}
.assump__t { margin: 0 0 18px; font-size: 15px; font-weight: 800; }
.assump__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.assump__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--paper-mute);
}
.assump__list li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--deca-magenta);
  opacity: .55;
}
.assump__list b { color: var(--paper-fg); font-weight: 700; }
.assump__note { margin: 20px 0 0; font-size: 11.5px; color: var(--paper-mute); line-height: 1.9; }

/* 白地セクション内のボタンは枠線側を反転させる */
.sec--paper .btn--ghost { border-color: var(--paper-line); color: var(--paper-fg); }
.sec--paper .btn--ghost:hover { background: var(--deca-magenta); border-color: var(--deca-magenta); color: #fff; }
.case__delta b small { font-weight: 700; }

/* ヒーロー指標バーの補足行 */
.hero__strip > div p {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fg-faint);
  letter-spacing: .03em;
}
.hero__strip dd em {
  font-style: normal;
  font-size: .5em;
  font-weight: 700;
  margin-left: .18em;
  color: var(--fg-mute);
}
.hero__lead { text-wrap: pretty; }

/* PCだけで効かせる改行 */
.br-pc { display: inline; }
@media (max-width: 760px) { .br-pc { display: none; } }

/* ==========================================================================
   クリエイティブ章
   ========================================================================== */

/* --- ①大量生成：3本の柱 -------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative;
  padding: 32px 28px 34px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(29, 32, 136, .26), var(--ink-3) 62%);
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--deca-magenta), var(--deca-cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.pillar.is-in::before { transform: scaleY(1); }
.pillar__no {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--deca-magenta);
}
.pillar__t { margin: 14px 0 14px; font-size: 18px; font-weight: 800; line-height: 1.55; }
.pillar__d { margin: 0; font-size: 13.5px; color: var(--fg-mute); line-height: 2; }

/* --- 生成クリエイティブのギャラリー -------------------------------------- */
.gallery {
  margin: clamp(48px, 5.5vw, 80px) 0 clamp(44px, 5vw, 72px);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .9s var(--ease-out);
}
.gallery.is-ready { opacity: 1; }
.gallery__cap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 48px, var(--wrap));
  margin: 0 auto 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--fg-faint);
}
.gallery__caplabel {
  padding: 5px 11px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--deca-cyan);
}
.gallery.is-paused .gallery__track { animation-play-state: paused; }

.gallery__row {
  overflow: hidden;
  contain: paint;
  /* 両端をページ地へ溶かす */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gallery__row + .gallery__row { margin-top: 14px; }
.gallery__track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  padding-block: 4px;
  will-change: transform;
  animation: gal-run var(--dur, 68s) linear infinite;
}
.gallery__row[data-dir="right"] .gallery__track { animation-direction: reverse; }
.gallery__track .cw-tile {
  width: auto;
  height: clamp(168px, 18vw, 236px);
  flex: 0 0 auto;
}
@keyframes gal-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - 7px), 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .gallery__track { animation: none; } }

/* 実物の画像を入れたとき */
.cw-tile--photo { background: var(--ink-3); }
.cw-tile--photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cw-tile--photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 34%); }

/* --- 差がつく、の言い切り ------------------------------------------------ */
.punch {
  padding: clamp(30px, 3.4vw, 46px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(228, 0, 127, .16), rgba(19, 22, 55, .5) 58%);
}
.punch__t {
  margin: 0 0 22px;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.45;
}
.punch__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
@media (max-width: 820px) { .punch__cols { grid-template-columns: 1fr; } }
.punch__cols p { margin: 0; font-size: 14.5px; color: var(--fg-mute); line-height: 2.05; }
.punch__cols b { color: #fff; font-weight: 700; }

/* --- ②トーナメント ------------------------------------------------------- */
.tnfig {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(29, 32, 136, .24), rgba(7, 8, 26, .1));
}
.tnfig__inner { min-width: 834px; }
.tnfig__inner svg { width: 100%; height: auto; }
.tnfig__note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 11.5px;
  color: var(--fg-faint);
  line-height: 1.9;
}

/* 要素分解 */
.axes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 940px) { .axes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .axes { grid-template-columns: 1fr; } }
.axis { background: var(--ink-2); padding: 26px 22px 28px; }
.axis__t { margin: 0 0 10px; font-size: 14.5px; font-weight: 800; letter-spacing: .05em; }
.axis__t::before {
  content: "";
  display: block;
  width: 22px; height: 3px;
  margin-bottom: 12px;
  background: var(--deca-magenta);
}
.axis__d { margin: 0; font-size: 12.5px; color: var(--fg-mute); line-height: 1.9; }

/* 台帳の対比 */
.ledger {
  margin-top: clamp(40px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }
.ledger__col { background: var(--ink); padding: clamp(26px, 3vw, 38px); }
.ledger__col--us { background: linear-gradient(165deg, rgba(228, 0, 127, .13), var(--ink) 68%); }
.ledger__col--us .uc__label { background: var(--deca-magenta); color: #fff; }
.ledger__col--us .uc__list li { color: var(--fg); }
.ledger__col--us .uc__list li::before { background: var(--deca-magenta); height: 3px; }

/* --- ③監修者 ------------------------------------------------------------- */
.sv {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(29, 32, 136, .3), var(--ink-3) 62%);
}
@media (max-width: 800px) { .sv { grid-template-columns: 1fr; text-align: left; } }
.sv__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 300px;
  background: var(--ink-2);
}
.sv__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  border-radius: inherit;
  pointer-events: none;
}
.sv__photo img { width: 100%; height: 100%; object-fit: cover; }
.sv__role {
  margin: 0 0 12px;
  display: inline-block;
  padding: 6px 13px 7px;
  border-radius: var(--radius-pill);
  background: var(--deca-magenta);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.sv__name {
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  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__bio { margin: 0 0 22px; font-size: 15.5px; color: var(--fg); line-height: 2; font-weight: 700; }
.sv__note {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font-size: 13.5px;
  color: var(--fg-mute);
  line-height: 2;
}
.sv__note b { color: #fff; font-weight: 700; }

/* 長い見出しを2行に収めたい章だけ、見出しの幅を広げてリードは元の幅に留める */
.sec__head--wide { max-width: 68em; }
.sec__head--wide .sec__lead--narrow { max-width: 46em; }

/* ==========================================================================
   自動運用
   ========================================================================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 clamp(44px, 5vw, 72px);
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metrics > div { background: var(--ink); padding: 28px 26px 30px; }
.metrics dt { margin: 0 0 10px; font-size: 11.5px; color: var(--fg-faint); letter-spacing: .06em; }
.metrics dd {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.05;
  color: #fff;
}
.metrics dd em {
  font-style: normal;
  font-size: .42em;
  font-weight: 700;
  margin-left: .2em;
  color: var(--deca-magenta);
  font-family: var(--font-jp);
}
.metrics p { margin: 12px 0 0; font-size: 11.5px; color: var(--fg-mute); line-height: 1.75; }

.allocfig {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(29, 32, 136, .26), rgba(7, 8, 26, .1));
}
.allocfig__t { margin: 0 0 10px; font-size: clamp(19px, 2.2vw, 26px); font-weight: 900; line-height: 1.5; }
.allocfig__d { margin: 0 0 26px; max-width: 46em; font-size: 14px; color: var(--fg-mute); line-height: 2; }
.allocfig__inner { min-width: 760px; }
.allocfig__inner svg { width: 100%; height: auto; }
.allocfig__note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 11.5px;
  color: var(--fg-faint);
  line-height: 1.9;
}

/* 人 vs エンジン */
.versus {
  margin-top: clamp(40px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) { .versus { grid-template-columns: 1fr; } }
.versus__col { background: var(--ink); padding: clamp(26px, 3vw, 38px); }
.versus__col--us { background: linear-gradient(165deg, rgba(0, 160, 233, .13), var(--ink) 68%); }
.versus__col--us .uc__label { background: var(--deca-cyan); color: #04283f; }
.versus__col--us .uc__list li { color: var(--fg); }
.versus__col--us .uc__list li::before { background: var(--deca-cyan); height: 3px; }

/* ==========================================================================
   資料作成
   ========================================================================== */
.docgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .docgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .docgrid { grid-template-columns: 1fr; } }
.doccard {
  position: relative;
  padding: 30px 26px 32px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.doccard:hover { border-color: var(--ink-line-2); background: #171a3f; }
.doccard__no {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--deca-cyan);
}
.doccard__t { margin: 14px 0 12px; font-size: 16.5px; font-weight: 800; line-height: 1.6; }
.doccard__d { margin: 0; font-size: 13.5px; color: var(--fg-mute); line-height: 2; }
.doccard__d b { color: #fff; font-weight: 700; }

/* --- 資料ビューア -------------------------------------------------------- */
.docviewer {
  margin-top: clamp(44px, 5vw, 72px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.docviewer:focus-visible { outline: 2px solid var(--deca-magenta); outline-offset: 4px; }
.docviewer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.docviewer__t { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .05em; }
.docviewer__count {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--fg-faint);
}
.docviewer__stage {
  position: relative;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px dashed var(--ink-line-2);
  min-height: clamp(220px, 30vw, 380px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.docviewer.has-docs .docviewer__stage { display: block; border-style: solid; background: #0a0b20; }
.docviewer__empty { padding: clamp(28px, 4vw, 48px); text-align: center; max-width: 42em; }
.docviewer__emptyt { margin: 0 0 12px; font-size: 15.5px; font-weight: 800; color: var(--fg-mute); }
.docviewer__emptyd { margin: 0 0 18px; font-size: 13px; color: var(--fg-faint); line-height: 1.95; }
.docviewer__code {
  display: inline-block;
  padding: 7px 13px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--deca-cyan);
}
.docviewer__track {
  display: flex;
  width: 100%;
  transition: transform .48s var(--ease-out);
  will-change: transform;
  touch-action: pan-y;
}
.docviewer__page { flex: 0 0 100%; margin: 0; width: 100%; }
.docviewer__page img { width: 100%; height: auto; display: block; }
.docviewer__page figcaption {
  padding: 14px 18px 16px;
  font-size: 12.5px;
  color: var(--fg-mute);
  border-top: 1px solid var(--ink-line);
  letter-spacing: .04em;
}
.docviewer__ctrl { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.docviewer__ctrl[hidden] { display: none; }
.docviewer__nav {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.docviewer__nav svg { width: 15px; height: 15px; }
.docviewer__nav:hover { background: var(--deca-magenta); border-color: var(--deca-magenta); }
.docviewer__thumbs {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.docviewer__thumbs::-webkit-scrollbar { display: none; }
.docviewer__thumb {
  flex: 0 0 auto;
  width: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  opacity: .5;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.docviewer__thumb img { width: 100%; height: auto; }
.docviewer__thumb:hover { opacity: .85; }
.docviewer__thumb[aria-current="true"] { opacity: 1; border-color: var(--deca-magenta); }
.docviewer__note { margin: 18px 0 0; font-size: 11.5px; color: var(--fg-faint); line-height: 1.85; }
@media (prefers-reduced-motion: reduce) { .docviewer__track { transition: none; } }

/* ==========================================================================
   監修（統括）カードの拡張
   ========================================================================== */
.sv--lead { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
@media (max-width: 800px) { .sv--lead { grid-template-columns: 1fr; } }
.sv--lead .sv__photo { max-width: 340px; }
.sv__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.sv__tags span {
  padding: 6px 13px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--fg-mute);
}
.sv__career {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  display: grid;
  gap: 14px;
}
.sv__career p { margin: 0; font-size: 13.5px; color: var(--fg-mute); line-height: 2.05; }
.sv__career b { color: #fff; font-weight: 700; }

/* ==========================================================================
   章の終わりに置くCTA
   セクションを跨がずに次の一手へ渡すための帯。最終CTAとは別物として、
   面積も色数も抑えてある。
   ========================================================================== */
.ctaband {
  margin-top: clamp(44px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(26px, 3vw, 38px) clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--ink-line-2);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(228, 0, 127, .14), rgba(19, 22, 55, .55) 62%);
}
.ctaband__body { flex: 1 1 22em; min-width: 0; }
.ctaband__t {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: var(--ls-head);
}
.ctaband__d { margin: 0; font-size: 13.5px; color: var(--fg-mute); line-height: 1.95; }
.ctaband .btn { flex: 0 0 auto; }

/* 白地セクションに置く場合 */
.sec--paper .ctaband {
  border-color: var(--paper-line);
  background: linear-gradient(120deg, rgba(228, 0, 127, .08), #f6f6fb 62%);
}
.sec--paper .ctaband__d { color: var(--paper-mute); }

@media (max-width: 620px) {
  .ctaband { flex-direction: column; align-items: stretch; }
  .ctaband .btn { justify-content: center; }
}

/* ==========================================================================
   DECAのグラデーション
   --------------------------------------------------------------------------
   資料の黒ページ（closing.png）と同じ構造を敷く。
   左上にマゼンタ、右下にシアン。どちらも紫紺のコアを持ち、外へ向かって
   #00051a へ沈む。ブロブは意図的に画面外へはみ出させる（資料もそうなっている）。

     .glow          … 通常のセクション用。文字が乗るので抑えめ
     .glow--full    … 章の節目・最終CTA用。資料に近い濃さ
     .glow--light   … 白地セクション用（chapter.png 相当）
     .glow--x       … DECAシンボルの透かしを重ねる
   ========================================================================== */
.glow { position: relative; isolation: isolate; }
.glow > * { position: relative; z-index: 1; }

.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 54% at -3% -10%,
      var(--glow-magenta-core) 0%,
      var(--glow-magenta-mid) 20%,
      var(--glow-magenta-peak) 34%,
      color-mix(in srgb, var(--glow-sink) 78%, transparent) 60%,
      transparent 75%),
    radial-gradient(42% 50% at 103% 110%,
      var(--glow-cyan-core) 0%,
      var(--glow-cyan-mid) 18%,
      var(--glow-cyan-peak) 34%,
      color-mix(in srgb, var(--glow-sink) 72%, transparent) 60%,
      transparent 75%);
  opacity: .34;
}
.glow--full::before { opacity: .82; }

/* color-mix 非対応の環境向け。色相は変えず、沈みだけ固定値にする */
@supports not (color: color-mix(in srgb, red, blue)) {
  .glow::before {
    background:
      radial-gradient(46% 54% at -3% -10%, #31087b 0%, #b9118a 20%, #e4007f 34%, rgba(0, 5, 26, .78) 60%, transparent 75%),
      radial-gradient(42% 50% at 103% 110%, #47359d 0%, #2062bd 18%, #0082be 34%, rgba(0, 5, 26, .72) 60%, transparent 75%);
  }
}

/* 白地版。配置は同じで、彩度と不透明度だけ落とす */
.glow--light::before {
  opacity: .3;
  background:
    radial-gradient(44% 52% at -4% -12%, var(--glow-light-magenta) 0%, rgba(205, 16, 138, .35) 34%, transparent 66%),
    radial-gradient(40% 48% at 104% 112%, var(--glow-light-cyan) 0%, rgba(48, 143, 213, .32) 34%, transparent 66%);
}

/* DECAシンボルの透かし。資料と同じく、ブロブより下に敷く
   （背景レイヤーの最後に足すと、いちばん奥に回る）。
   資料は黒地 #000000 に対して #00051a。地との差はこの程度しか付けない。 */
.glow--x::before {
  background:
    radial-gradient(46% 54% at -3% -10%,
      var(--glow-magenta-core) 0%,
      var(--glow-magenta-mid) 20%,
      var(--glow-magenta-peak) 34%,
      color-mix(in srgb, var(--glow-sink) 78%, transparent) 60%,
      transparent 75%),
    radial-gradient(42% 50% at 103% 110%,
      var(--glow-cyan-core) 0%,
      var(--glow-cyan-mid) 18%,
      var(--glow-cyan-peak) 34%,
      color-mix(in srgb, var(--glow-sink) 72%, transparent) 60%,
      transparent 75%),
    center / auto 118% no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 43'%3E%3Cpath d='M24.69 20.6l7.86-14.55h-9.58l-3.28 6.05-3.43-6.05H5.09l7.86 14.55L4.12 37h10.79l3.97-7.96L23.39 37h10.13z' fill='%2300071f'/%3E%3C/svg%3E");
}
