/* 生成元: design/mockups/tokens.css + site.css（正本）。手編集はパッチ節のみ */
/* ============================================================
   personagram — mockup 共有トークン（単一の正）
   出典: design/tokens.json ＋ web/styles.css :root
   モックは必ずこの変数経由で色・余白・字組を決める（直値ハードコード禁止）。
   3案すべてがこの同一ファイルを link する＝骨は同じ・トーンだけ振る。
   ============================================================ */
:root {
  /* --- color: 面/文字 --- */
  --bg: #f6fbf8;
  --surface: #ffffff;
  --surface-2: #f3faf6;
  --paper: #f6f1e9;     /* 誌面の温かい紙色（LEE/&Premium系のライフスタイル誌面用） */
  --paper-edge: #e7ddcd; /* 紙色面の罫・境界 */
  --ink: #263238;
  --ink-soft: #566368;
  --line: #dcebe2;

  /* --- color: ブランド差し色（装飾の差し色は1色＝green系のみ） --- */
  --primary: #1f8d63;
  --primary-dark: #155c42;
  --primary-soft: #e3f3ea;
  --cta-from: #27a878;
  --cta-to: #1b7d5b;

  /* --- color: 6軸の識別色（EOCAHN）。チャート/軸バー/ラベル限定。本文・一般CTAに使わない --- */
  --axis-E: #2f6fb0; /* 外向性 */
  --axis-O: #2f93b0; /* 開放性 */
  --axis-C: #2aa37c; /* 誠実性 */
  --axis-A: #c2615a; /* 協調性 */
  --axis-N: #c79a3a; /* 情緒安定（コンディション） */
  --axis-H: #8a6fc0; /* 正直さ */

  /* --- color: SNS公式ブランド色（design/tokens.json color.sns）。共有ボタン専用 --- */
  --sns-x: #000000;
  --sns-line: #06c755;
  --sns-ig-1: #4f5bd5;
  --sns-ig-2: #962fbf;
  --sns-ig-3: #d62976;
  --sns-ig-4: #fa7e1e;

  /* --- type --- */
  --font-sans: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  --font-serif: 'Shippori Mincho', Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.563rem;
  --fs-2xl: 1.953rem;
  --fs-3xl: 2.441rem;
  --fs-4xl: 3.052rem;
  --fs-hero: 1.74rem;
  --fs-hero-lg: 2.55rem;
  --fs-h2: 1.5rem;
  --fs-h2-lg: 1.9rem;

  /* --- ディスプレイ見出し（エディトリアル用。可読性優先・1字折れ禁止サイズに是正） ---
     v3で縮小: 旧値は巨大すぎてヒーローが1字ずつ改行していた。
     ヒーローは必ず「語/句」単位で2〜3行に収まる前提のサイズ。 */
  --fs-display: clamp(2rem, 4.4vw, 3.05rem);    /* ヒーロー見出し（標準）。--fs-4xl相当に収束 */
  --fs-display-lg: clamp(2.4rem, 6vw, 4rem);    /* 特大カバー。広い版面でのみ使用 */
  --fs-kicker: 0.72rem;                          /* eyebrow/ラベル/ノンブルの極小文字 */

  /* --- タイポ階層の単一の正（全案これに従う。任意pxの混在を禁止） ---
     eyebrow/label : var(--fs-kicker) | var(--fs-xs)
     本文           : var(--fs-base)  / line-height var(--lh-normal)
     注釈・キャプ   : var(--fs-sm)
     小見出し       : var(--fs-lg)
     セクション見出し: var(--fs-2xl)  (大きくして --fs-3xl)
     ヒーロー       : var(--fs-display)  (最大でも --fs-display-lg)
     数値/型番(mono): var(--fs-sm) | var(--fs-base) */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.32; /* 日本語見出し基準（欧文1.1から調整 2026-06-11） */
  --lh-snug: 1.45;
  --lh-normal: 1.8; /* 日本語本文 */
  --lh-loose: 1.8;

  --tr-tight: -0.02em;
  --tr-normal: 0;
  --tr-wide: 0.08em;

  /* --- space (4px base) --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* --- radius --- */
  --r-sm: 2px;
  --r-md: 12px;
  --r-card: 16px;
  --r-card-lg: 18px;
  --r-pill: 999px;

  /* --- shadow（最小限。奥行きは余白と光で） --- */
  --sh-subtle: 0 4px 12px rgba(22, 96, 74, 0.06);
  --sh-raised: 0 10px 30px rgba(22, 96, 74, 0.10);
  --sh-cta: 0 12px 26px rgba(27, 125, 91, 0.32);

  /* --- motion --- */
  --mo-fast: 120ms;
  --mo-base: 200ms;
  --mo-slow: 400ms;

  /* --- layout --- */
  --maxw: 1080px;
  --maxw-text: 34em;
}

/* ============================================================
   personagram — site.css（サイト共通デザインシステム・単一の正）
   全ページがこの1枚を link する。色/余白/字組は tokens.css 変数経由のみ。
   ここで「字組ルール・ヘッダ/ナビ/フッタ・見出し・カード・CTA・6軸バー・
   メーター・診断の仕組み」を一元定義し、ページ間の不整合を構造的に防ぐ。

   字組ルール（単一の正・全ページ厳守）
   - 明朝 var(--font-serif) … ヒーロー見出し / セクション大見出し(h2) / 記事扉のタイプ名
   - ゴシック var(--font-sans) … 小見出し(h3) 以下・本文・UI・ナビ・ボタン・ラベル・キャプション
   - 等幅 var(--font-mono) … 型番(EOCA･H)・スコア数値・eyebrow/ノンブル等の極小ラベル
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  letter-spacing: var(--tr-normal);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- 字組ルール（要素ベースで一括適用） ---- */
h1, h2 { font-family: var(--font-serif); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--tr-tight); margin: 0; }
h3, h4 { font-family: var(--font-sans); font-weight: var(--fw-semibold); line-height: var(--lh-snug); margin: 0; }
p { margin: 0; }
.u-serif { font-family: var(--font-serif); }
.u-sans  { font-family: var(--font-sans); }
.u-mono  { font-family: var(--font-mono); }

.eyebrow, .kicker, .section-label, .folio {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  letter-spacing: var(--tr-wide);
  color: var(--primary);
  margin: 0 0 var(--sp-3);
}
.lead { color: var(--ink-soft); font-size: var(--fs-lg); line-height: var(--lh-normal); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }

/* ---- レイアウト ---- */
.wrap { width: min(var(--maxw), calc(100% - var(--sp-8))); margin-inline: auto; }
.section { padding-block: var(--sp-16); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section__head { margin-bottom: var(--sp-8); max-width: 46rem; }
.section__head .section-label { display: inline-block; padding-bottom: var(--sp-2); border-bottom: 2px solid var(--ink); color: var(--ink); margin-bottom: var(--sp-4); }
.section__head h2 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: var(--tr-tight); }
.section__head .lead { margin-top: var(--sp-4); max-width: var(--maxw-text); }

/* ---- 長文ページ用 追従目次 ---- */
.longform-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.25fr) minmax(0, 0.75fr);
  gap: var(--sp-12);
  align-items: start;
}

.longform-main {
  min-width: 0;
}

.longform-main > .section {
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}

.longform-main > .section:first-child {
  padding-top: 0;
  border-top: 0;
}

.longform-main > .section > .wrap {
  width: 100%;
}

.article-rail {
  position: sticky;
  top: calc(var(--sp-16) + var(--sp-8));
  display: grid;
  gap: var(--sp-8);
}

.rail-note {
  padding-block: var(--sp-4);
  border-block: 1px solid var(--line);
}

.rail-note h3 {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-base);
}

.rail-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* 暗黙トラックだと長文liが横はみ出しする */
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list li {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.rail-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.rail-list a {
  color: inherit;
  text-decoration: none;
}

.rail-list a:hover {
  color: var(--primary-dark);
}

/* ---- グローバルヘッダ（追従） ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.site-header__in { width: min(var(--maxw), calc(100% - var(--sp-8))); margin-inline: auto; display: flex; align-items: center; gap: var(--sp-6); min-height: 64px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand b { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--ink); }
.brand span { font-family: var(--font-mono); font-size: var(--fs-kicker); letter-spacing: var(--tr-wide); color: var(--ink-soft); }
.site-nav { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.site-nav a { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--ink-soft); text-decoration: none; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary-dark); }
.nav-toggle { display: none; }

/* ---- CTA ---- */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--sp-8); border-radius: var(--r-pill); background: var(--primary); color: #fff; font-weight: var(--fw-semibold); text-decoration: none; border: 0; cursor: pointer; box-shadow: var(--sh-cta); }
.cta:hover { background: var(--primary-dark); }
.cta--ghost { background: transparent; color: var(--primary-dark); border: 1px solid var(--primary); box-shadow: none; }
.cta--sm { min-height: 44px; padding: 0 var(--sp-6); font-size: var(--fs-sm); box-shadow: none; }
.cta-meta { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---- カード（編集寄り：角丸控えめ・影は最小、罫で締める） ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: none; }
.card__body { padding: var(--sp-6); }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---- 6軸バー（塗りが必ず出る・色は識別カラー限定） ---- */
.axis-row { display: grid; grid-template-columns: minmax(8.5em, auto) 1fr; align-items: center; gap: var(--sp-4); margin-block: var(--sp-3); }
.axis-label { font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-sm); display: inline-flex; align-items: baseline; gap: var(--sp-2); }
.axis-label .axis-letter { font-family: var(--font-mono); font-weight: var(--fw-bold); }
.axis-label .score { font-family: var(--font-mono); margin-left: auto; }
.axis-track { display: block; height: var(--sp-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.axis-fill { display: block; height: 100%; width: var(--score, 0%); border-radius: var(--r-pill); }
.axis-e .axis-letter, .axis-label.axis-e { color: var(--axis-E); }
.axis-o .axis-letter, .axis-label.axis-o { color: var(--axis-O); }
.axis-c .axis-letter, .axis-label.axis-c { color: var(--axis-C); }
.axis-a .axis-letter, .axis-label.axis-a { color: var(--axis-A); }
.axis-n .axis-letter, .axis-label.axis-n { color: var(--axis-N); }
.axis-h .axis-letter, .axis-label.axis-h { color: var(--axis-H); }
.axis-fill.axis-e { background: var(--axis-E); }
.axis-fill.axis-o { background: var(--axis-O); }
.axis-fill.axis-c { background: var(--axis-C); }
.axis-fill.axis-a { background: var(--axis-A); }
.axis-fill.axis-n { background: var(--axis-N); }
.axis-fill.axis-h { background: var(--axis-H); }

/* ---- 診断の仕組み（6軸×2極：編集的な罫線スペクトラム。SaaS箱にしない） ---- */
.poles { display: grid; border-top: 1px solid var(--ink); }
.pole-row { display: grid; grid-template-columns: 3.2em 1fr 1fr; align-items: stretch; border-bottom: 1px solid var(--line); }
.pole-row__axis { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: var(--fs-lg); position: relative; }
.pole-row__axis::after { content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 3px; border-radius: var(--r-pill); }
.pole { padding: var(--sp-6) var(--sp-6); }
.pole h4 { font-family: var(--font-serif); font-weight: var(--fw-bold); font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.pole p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: var(--lh-normal); }
.pole + .pole { border-left: 1px solid var(--line); }
.pole-row.ax-e .pole-row__axis { color: var(--axis-E); } .pole-row.ax-e .pole-row__axis::after { background: var(--axis-E); }
.pole-row.ax-o .pole-row__axis { color: var(--axis-O); } .pole-row.ax-o .pole-row__axis::after { background: var(--axis-O); }
.pole-row.ax-c .pole-row__axis { color: var(--axis-C); } .pole-row.ax-c .pole-row__axis::after { background: var(--axis-C); }
.pole-row.ax-a .pole-row__axis { color: var(--axis-A); } .pole-row.ax-a .pole-row__axis::after { background: var(--axis-A); }
.pole-row.ax-n .pole-row__axis { color: var(--axis-N); } .pole-row.ax-n .pole-row__axis::after { background: var(--axis-N); }
.pole-row.ax-h .pole-row__axis { color: var(--axis-H); } .pole-row.ax-h .pole-row__axis::after { background: var(--axis-H); }

/* ---- メーター（信頼度・正直さ） ---- */
.meter { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: var(--sp-6); }
.meter__track { display: block; height: var(--sp-2); background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; margin-block: var(--sp-3); }
.meter__fill { display: block; height: 100%; width: var(--score, 0%); background: var(--primary); border-radius: var(--r-pill); }

/* ---- フッタ ---- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--sp-12); margin-top: var(--sp-24); }
.site-footer__in { width: min(var(--maxw), calc(100% - var(--sp-8))); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8); }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: var(--fs-sm); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__copy { color: var(--ink-soft); font-size: var(--fs-sm); margin-left: auto; }

/* ---- SP 追従CTAバー ---- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--line); }

/* ---- レスポンシブ ---- */
@media (max-width: 760px) {
  .section { padding-block: var(--sp-12); }
  .section__head { margin-bottom: var(--sp-8); }
  .longform-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .article-rail {
    position: static;
    /* grid/flexの1frはmin-width:autoで子のmax-content幅まで広がる。
       長文の rail-list li がページ全体を押し広げ横スクロールを起こすのを止める */
    min-width: 0;
  }
  .rail-list:not(.rail-list--static) {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    padding-bottom: var(--sp-1);
    -webkit-overflow-scrolling: touch;
  }
  .rail-list:not(.rail-list--static) li,
  .rail-list:not(.rail-list--static) li:first-child {
    flex: 0 0 auto;
    /* 長文の要点（リンク無しli）は折り返す。短いチップ（aあり）は1行のまま */
    max-width: min(78vw, 36ch);
    padding: 0;
    border-top: 0;
  }
  /* 要点など「リンクでない長文リスト」はチップ化せず縦積みのまま（横スクロールで見切れるため） */
  .rail-list--static { display: grid; overflow: visible; }
  .rail-list--static li,
  .rail-list--static li:first-child { flex: none; min-width: 0; padding: var(--sp-3) 0 0; border-top: 1px solid var(--line); }
  .rail-list--static li:first-child { padding-top: 0; border-top: 0; }
  .rail-list a {
    display: inline-flex;
    align-items: center;
    min-height: calc(var(--sp-8) + var(--sp-1));
    padding-inline: var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    white-space: nowrap;
  }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .pole-row { grid-template-columns: 2.4em 1fr; }
  .pole-row__axis { grid-row: 1 / 3; }
  .pole + .pole { border-left: 0; border-top: 1px solid var(--line); }
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}

/* ---- 強調ハイライト（文字下半分の蛍光マーカー風・差し色green系のみ） ---- */
.hl { background: linear-gradient(transparent 58%, var(--primary-soft) 58%); padding: 0 .08em; font-weight: var(--fw-semibold); }

/* ---- 読了目安（トリセツの分量を先に伝える） ---- */
.read-meta { display: inline-flex; align-items: center; gap: var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tr-wide); color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r-pill); padding: var(--sp-2) var(--sp-4); }

/* ---- 6軸ものさし（左=低極 ⇄ 右=高極。現在地ドット=score%。関口確定P2反転版） ---- */
.biaxis { display: grid; gap: var(--sp-6); }
.biaxis-row { display: grid; gap: var(--sp-1); }
.biaxis-row__head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); }
.biaxis-row__pole { color: var(--ink-soft); font-weight: var(--fw-medium); }
.biaxis-row__pole .axis-letter { font-family: var(--font-mono); font-weight: var(--fw-bold); }
.biaxis-row__pole.is-active { color: var(--ink); font-weight: var(--fw-bold); }
.biaxis-row__track { position: relative; display: block; height: var(--sp-2); margin-top: var(--sp-6); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); }
.biaxis-row.ax-e .biaxis-row__track { background: color-mix(in srgb, var(--axis-E) 32%, var(--surface)); border-color: color-mix(in srgb, var(--axis-E) 50%, var(--line)); }
.biaxis-row.ax-o .biaxis-row__track { background: color-mix(in srgb, var(--axis-O) 32%, var(--surface)); border-color: color-mix(in srgb, var(--axis-O) 50%, var(--line)); }
.biaxis-row.ax-c .biaxis-row__track { background: color-mix(in srgb, var(--axis-C) 32%, var(--surface)); border-color: color-mix(in srgb, var(--axis-C) 50%, var(--line)); }
.biaxis-row.ax-a .biaxis-row__track { background: color-mix(in srgb, var(--axis-A) 32%, var(--surface)); border-color: color-mix(in srgb, var(--axis-A) 50%, var(--line)); }
.biaxis-row.ax-n .biaxis-row__track { background: color-mix(in srgb, var(--axis-N) 32%, var(--surface)); border-color: color-mix(in srgb, var(--axis-N) 50%, var(--line)); }
.biaxis-row.ax-h .biaxis-row__track { background: color-mix(in srgb, var(--axis-H) 32%, var(--surface)); border-color: color-mix(in srgb, var(--axis-H) 50%, var(--line)); }
.biaxis-row__track::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--line); }
.biaxis-row__dot { position: absolute; left: var(--score, 50%); top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: var(--sh-subtle); }
.biaxis-row__dot .v { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.biaxis-row.ax-e .biaxis-row__dot { background: var(--axis-E); } .biaxis-row.ax-e .v, .biaxis-row.ax-e .is-active { color: var(--axis-E); }
.biaxis-row.ax-o .biaxis-row__dot { background: var(--axis-O); } .biaxis-row.ax-o .v, .biaxis-row.ax-o .is-active { color: var(--axis-O); }
.biaxis-row.ax-c .biaxis-row__dot { background: var(--axis-C); } .biaxis-row.ax-c .v, .biaxis-row.ax-c .is-active { color: var(--axis-C); }
.biaxis-row.ax-a .biaxis-row__dot { background: var(--axis-A); } .biaxis-row.ax-a .v, .biaxis-row.ax-a .is-active { color: var(--axis-A); }
.biaxis-row.ax-n .biaxis-row__dot { background: var(--axis-N); } .biaxis-row.ax-n .v, .biaxis-row.ax-n .is-active { color: var(--axis-N); }
.biaxis-row.ax-h .biaxis-row__dot { background: var(--axis-H); } .biaxis-row.ax-h .v, .biaxis-row.ax-h .is-active { color: var(--axis-H); }

/* 両極ラベルとも軸色に（優勢=濃・太 / 非優勢=同色の淡め） */
.biaxis-row.ax-e .biaxis-row__pole { color: color-mix(in srgb, var(--axis-E) 55%, var(--ink-soft)); }
.biaxis-row.ax-o .biaxis-row__pole { color: color-mix(in srgb, var(--axis-O) 55%, var(--ink-soft)); }
.biaxis-row.ax-c .biaxis-row__pole { color: color-mix(in srgb, var(--axis-C) 55%, var(--ink-soft)); }
.biaxis-row.ax-a .biaxis-row__pole { color: color-mix(in srgb, var(--axis-A) 55%, var(--ink-soft)); }
.biaxis-row.ax-n .biaxis-row__pole { color: color-mix(in srgb, var(--axis-N) 55%, var(--ink-soft)); }
.biaxis-row.ax-h .biaxis-row__pole { color: color-mix(in srgb, var(--axis-H) 55%, var(--ink-soft)); }
.biaxis-row.ax-e .biaxis-row__pole.is-active { color: var(--axis-E); }
.biaxis-row.ax-o .biaxis-row__pole.is-active { color: var(--axis-O); }
.biaxis-row.ax-c .biaxis-row__pole.is-active { color: var(--axis-C); }
.biaxis-row.ax-a .biaxis-row__pole.is-active { color: var(--axis-A); }
.biaxis-row.ax-n .biaxis-row__pole.is-active { color: var(--axis-N); }
.biaxis-row.ax-h .biaxis-row__pole.is-active { color: var(--axis-H); }

/* ---- 結果ページ用 下部追従シェアバー（診断CTAでなくシェアが主役） ---- */
.sticky-share { position: fixed; right: var(--sp-6); bottom: var(--sp-6); left: auto; z-index: 60; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--sh-subtle); }
.sticky-share__label { font-family: var(--font-mono); font-size: var(--fs-kicker); letter-spacing: var(--tr-wide); color: var(--ink-soft); }
.sticky-share .cta--sm { min-height: 36px; padding: 0 var(--sp-4); background: transparent; color: var(--primary-dark); border: 1px solid var(--line); box-shadow: none; font-size: var(--fs-sm); }
.sticky-share .cta--sm:hover { border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 760px) {
  .sticky-share { right: 0; left: 0; bottom: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); justify-content: space-between; box-shadow: none; padding: var(--sp-3) var(--sp-4); }
}
.sticky-share__label { font-size: var(--fs-sm); color: var(--ink-soft); }
.sticky-share__actions { display: flex; gap: var(--sp-2); }

/* ---- 行動分析の軸リード（ラベルでなく本文。axis-label誤用の是正） ---- */
.analysis-lead { display: block; font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--ink-soft); }

/* ---- 長文ページ: 追従目次(rail)＋2カラムレイアウト（共通部品・SP溢れ対策の正） ---- */
.longform-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--sp-12); align-items: start; }
.article-rail { position: sticky; top: 88px; min-width: 0; }
.article-rail .section-label { margin-bottom: var(--sp-2); }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail-list a { display: block; min-width: 0; padding: var(--sp-1) 0 var(--sp-1) var(--sp-3); border-left: 2px solid var(--line); font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none; }
.rail-list a:hover { color: var(--primary-dark); border-left-color: var(--primary); }
@media (max-width: 900px) {
  .longform-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .article-rail { position: static; }
  /* 要点などリンクでない長文リスト（--static）はチップ化せず縦積みのまま */
  .rail-list:not(.rail-list--static) { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
  .rail-list a { border: 1px solid var(--line); border-left-width: 1px; border-radius: var(--r-pill); padding: var(--sp-1) var(--sp-3); }
}

/* ---- 本番適用パッチ（2026-06-11 全ページモック反映） ---- */
.site-header.nav-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-1); position: absolute; top: 100%; left: 0; right: 0; padding: var(--sp-3) var(--sp-4); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-raised); }
.site-header.nav-open .site-nav a { text-align: left; padding: var(--sp-3); border-radius: var(--r-md); }
.site-header { position: sticky; }
.pg-top { background: transparent; }
.screen--start.pg-top::before { display: none; }


/* ---- トップ最終マイル: page-top.html セクション部品移植 ---- */
.app:has(> .screen--start.pg-top) {
  max-width: none;
  /* legacy styles.css の .app padding（モバイル14px/PC24px）を全方向打ち消す。
     正本モックに .app は存在せず、残すと sticky ヘッダー上下に「変な余白」が出る
     （2026-06-12 関口指摘。トップ/クイズ/結果のSPA全状態に効く） */
  padding: 0;
}

.screen.screen--start.pg-top,
.screen--start.pg-top {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  color: var(--ink);
  overflow: clip;
}

.pg-top .wrap {
  width: min(var(--maxw), calc(100% - var(--sp-8)));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

.pg-top .section,
.pg-top .block {
  padding-block: var(--sp-16);
  border-top: 1px solid var(--line);
}

.pg-top .section:first-of-type,
.pg-top .block:first-of-type {
  border-top: 0;
}

.pg-top .section__head {
  max-width: 46rem;
  margin: 0 0 var(--sp-8);
  text-align: left;
}

.pg-top .section-label {
  display: inline-block;
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  letter-spacing: var(--tr-wide);
}

.pg-top .section__head h2,
.pg-top .h2,
.pg-top .section-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-tight);
  text-align: left;
  text-wrap: balance;
}

.pg-top .section__head .lead,
.pg-top .lead {
  max-width: var(--maxw-text);
  margin: var(--sp-4) 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  text-align: left;
}

.pg-top .hero {
  margin: 0;
  padding-block: var(--sp-16) var(--sp-12);
  overflow: visible;
  background: transparent;
  text-align: left;
}

.pg-top .hero__in {
  width: min(var(--maxw), calc(100% - var(--sp-8)));
  max-width: none;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--sp-12);
  align-items: center;
  text-align: left;
}

.pg-top .hero__copy {
  text-align: left;
}

.pg-top .hero__eyebrow {
  display: block;
  margin: 0 0 var(--sp-3);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-wide);
}

.pg-top .hero__title {
  margin: 0 0 var(--sp-6);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

.pg-top .hero__sub {
  max-width: 30em;
  margin: 0 0 var(--sp-6);
  color: var(--ink-soft);
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
}

.pg-top .hero__points {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* 暗黙トラックだと長文liがSPで横はみ出しする */
  gap: var(--sp-2);
  margin: 0 0 var(--sp-8);
  padding: 0;
  list-style: none;
}

.pg-top .hero__points li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.pg-top .hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: var(--sp-3);
  height: var(--sp-1);
  background: var(--primary);
  border-radius: var(--r-pill);
}

.pg-top .hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.pg-top .hero__actions .btn,
.pg-top .hero__actions .cta {
  width: auto;
}

.pg-top .cta__meta,
.pg-top .cta-meta {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.pg-top .hero__note {
  max-width: 42em;
  margin-top: var(--sp-4);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  text-align: left;
}

.pg-top .hero__media {
  min-width: 0;
}

.pg-top .flock {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, var(--maxw-text));
  margin-inline: auto;
}

.pg-top .flock img {
  position: absolute;
  filter: drop-shadow(0 var(--sp-2) var(--sp-4) color-mix(in srgb, var(--primary-dark) 12%, transparent));
}

.pg-top .flock .c-lead { width: 56%; left: 22%; top: 18%; z-index: 3; }
.pg-top .flock .c-2 { width: 30%; left: 0; top: 6%; }
.pg-top .flock .c-3 { width: 30%; right: 2%; top: 0; }
.pg-top .flock .c-4 { width: 28%; left: 4%; bottom: 4%; }
.pg-top .flock .c-5 { width: 30%; right: 0; bottom: 8%; z-index: 2; }
.pg-top .flock .c-6 { width: 24%; left: 36%; bottom: 0; z-index: 2; }
.pg-top .flock .c-7 { width: 22%; right: 26%; top: 2%; }

.pg-top .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  counter-reset: step;
}

.pg-top .step {
  padding-top: var(--sp-4);
  border-top: 2px solid var(--primary);
  text-align: left;
}

.pg-top .step__no {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  letter-spacing: var(--tr-wide);
}

.pg-top .step h3 {
  margin: var(--sp-2) 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

.pg-top .step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.pg-top .preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--sp-12);
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pg-top .preview__card {
  position: relative;
  min-width: 0;
  padding: var(--sp-8);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  background: var(--surface);
  box-shadow: var(--sh-raised);
}

.pg-top .preview__character {
  float: right;
  width: 28%;
  max-width: calc(var(--sp-12) * 2);
  margin: 0 0 var(--sp-3) var(--sp-4);
}

.pg-top .preview__card .typecode {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--tr-wide);
}

.pg-top .preview__card h3 {
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
}

.pg-top .preview__card .catch {
  margin: 0 0 var(--sp-6);
  color: var(--ink-soft);
}

.pg-top .preview__card .manual-snip {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  clear: both;
}

.pg-top .preview__card .manual-snip b {
  font-size: var(--fs-sm);
}

.pg-top .preview__card .manual-snip p {
  margin-top: var(--sp-1);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.pg-top .preview__aside-note {
  margin-top: var(--sp-4);
}

.pg-top .preview__actions {
  margin-top: var(--sp-6);
}

.pg-top .why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.pg-top .why .card {
  border-radius: var(--r-md);
  background: var(--surface);
}

.pg-top .why .card__body h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-base);
}

.pg-top .why .card__body p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.pg-top .type-catalog.types-grid,
.pg-top .types-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.pg-top .type-cell {
  min-width: 0;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.pg-top .type-cell img {
  width: 64%;
  margin: 0 auto var(--sp-2);
}

.pg-top .type-cell b {
  display: block;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.pg-top .type-cell span {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  letter-spacing: var(--tr-wide);
}

.pg-top .talgroups {
  display: block;
}

.pg-top .talgroups .talent-grid,
.pg-top .talent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.pg-top .talent-card {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  min-height: calc(var(--sp-8) * 4);
  padding: var(--sp-4);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.pg-top .talent-card:hover {
  background: var(--surface-2);
}

.pg-top .talent-card b {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
}

.pg-top .talent-card span {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.pg-top .talent__actions {
  margin-top: var(--sp-6);
}

.pg-top .faq {
  display: block;
}

.pg-top .faq__list {
  display: block;
}

.pg-top .faq__list details,
.pg-top .faq-item {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pg-top .faq-item + .faq-item {
  margin-top: var(--sp-6);
}

.pg-top .faq-item__q {
  display: block;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  list-style: none;
}

.pg-top .faq-item__q::-webkit-details-marker {
  display: none;
}

.pg-top .faq-item__q::after {
  content: none;
}

.pg-top .faq-item__a {
  margin: var(--sp-2) 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.pg-top .faq__actions {
  margin-top: var(--sp-8);
}

.pg-top .ctaband {
  margin-top: 0;
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  background: var(--surface);
  text-align: center;
}

.pg-top .ctaband h2 {
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
}

.pg-top .seo-text {
  display: none;
}

@media (max-width: 760px) {
  .pg-top .section,
  .pg-top .block {
    padding-block: var(--sp-12);
  }

  .pg-top .hero__in {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .pg-top .hero {
    padding-block: var(--sp-12);
  }

  .pg-top .steps,
  .pg-top .why {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-top .preview {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }

  .pg-top .type-catalog.types-grid,
  .pg-top .types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-top .talent-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-top .talent-card {
    min-height: auto;
  }

  .pg-top .section__head h2,
  .pg-top .h2,
  .pg-top .section-title {
    font-size: var(--fs-2xl);
  }
}

/* ---- 本番適用パッチ（2026-06-11 配下ページ正本モック移植） ---- */
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-8); }
.sticky-cta .cta { flex: 0 0 auto; }

.hero-title-line { display: block; }
.badge-row,
.section-actions,
.about-actions,
.compat-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.badge,
.hero-meta li {
  display: inline-flex;
  align-items: center;
  min-height: var(--sp-8);
  padding-inline: var(--sp-3);
  border: calc(var(--sp-1) / 4) solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-wide);
  line-height: var(--lh-snug);
}
.microcopy,
.note,
figcaption { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-normal); }
.text-panel,
.manual-card,
.compat-card,
.pg-type-detail .type-card,
.talent-page .type-card {
  padding: var(--sp-6);
  border: calc(var(--sp-1) / 4) solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.text-panel p,
.manual-card p,
.compat-card p,
.type-card p,
.article-main > p,
.summary-box p { margin-block-end: var(--sp-4); line-height: var(--lh-loose); }
.text-panel > :last-child,
.manual-card > :last-child,
.compat-card > :last-child,
.type-card > :last-child,
.article-main > :last-child { margin-block-end: 0; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.manual-card { border-top: calc(var(--sp-1) / 2) solid var(--primary); }
.plain-list { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.plain-list li { padding-block: var(--sp-3); border-top: calc(var(--sp-1) / 4) solid var(--line); line-height: var(--lh-normal); }
.summary-box,
.axis-stack {
  padding-block: var(--sp-6);
  border-top: calc(var(--sp-1) / 4) solid var(--ink);
  border-bottom: calc(var(--sp-1) / 4) solid var(--line);
}

.types-hero { background: var(--paper); }
.types-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--sp-16);
  align-items: end;
  min-height: calc(var(--sp-32) * 2 + var(--sp-24));
}
.types-hero h1 {
  max-width: calc(var(--maxw-text) * 1.35);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-display-lg);
}
.types-hero .lead { max-width: var(--maxw-text); }
.types-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: calc(var(--sp-1) / 4) solid var(--ink);
}
.types-hero__meta span,
.type-number,
.type-code,
.family-count {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  letter-spacing: var(--tr-wide);
  line-height: var(--lh-snug);
}
.types-hero__meta span {
  color: var(--ink-soft);
  padding-inline-end: var(--sp-3);
  border-right: calc(var(--sp-1) / 4) solid var(--line);
}
.types-hero__meta span:last-child { border-right: 0; }
.legend-panel {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border-top: calc(var(--sp-1) / 2) solid var(--ink);
  border-bottom: calc(var(--sp-1) / 4) solid var(--line);
}
.legend-panel .kicker { margin-bottom: 0; }
.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: calc(var(--sp-1) / 4) solid var(--line);
  border-left: calc(var(--sp-1) / 4) solid var(--line);
}
.legend-grid li {
  min-height: var(--sp-12);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-right: calc(var(--sp-1) / 4) solid var(--line);
  border-bottom: calc(var(--sp-1) / 4) solid var(--line);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}
.legend-grid .axis-letter {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}
.legend-grid .axis-e { color: var(--axis-E); }
.legend-grid .axis-o { color: var(--axis-O); }
.legend-grid .axis-c { color: var(--axis-C); }
.legend-grid .axis-a { color: var(--axis-A); }
.legend-note {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
.catalog-plate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-8);
  align-items: end;
  max-width: none;
  margin-bottom: var(--sp-16);
  padding: var(--sp-8) 0 var(--sp-6);
  border-top: calc(var(--sp-1) / 2) solid var(--ink);
  border-bottom: calc(var(--sp-1) / 4) solid var(--line);
}
.catalog-plate h2 {
  max-width: calc(var(--maxw-text) * 1.25);
  font-size: var(--fs-3xl);
}
.plate-folio {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
}
.family-section {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: var(--sp-8);
  padding-block: var(--sp-12);
  border-top: calc(var(--sp-1) / 4) solid var(--line);
}
.family-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.family-head {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: calc(var(--sp-1) / 2) solid var(--ink);
}
.family-head h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
}
.family-head p:not(.kicker) {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.family-count {
  color: var(--primary-dark);
  font-weight: var(--fw-semibold);
}
.types-catalog .type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: calc(var(--sp-1) / 4) solid var(--line);
  border-left: calc(var(--sp-1) / 4) solid var(--line);
}
.types-catalog .type-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 0;
  border-right: calc(var(--sp-1) / 4) solid var(--line);
  border-bottom: calc(var(--sp-1) / 4) solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.types-catalog .type-card:hover { background: var(--surface-2); }
.types-catalog .type-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: var(--sp-3);
  background: var(--paper);
  border-bottom: calc(var(--sp-1) / 4) solid var(--paper-edge);
}
.type-card-body {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
}
.type-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: calc(var(--sp-1) / 4) solid var(--line);
}
.type-number { color: var(--primary-dark); }
.type-code {
  color: var(--ink-soft);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.types-catalog .type-card h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}
.type-catch {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
.types-diagnosis { background: var(--surface-2); }
.types-diagnosis__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-8);
  align-items: center;
}
.types-diagnosis .lead { max-width: var(--maxw-text); }

.pg-type-detail,
.talent-page,
.pg-compat,
.pg-about { background: var(--bg); }
.pg-type-detail > .section,
.talent-page > .section,
.pg-compat > .section { width: min(var(--maxw), calc(100% - var(--sp-8))); margin-inline: auto; }
.type-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: var(--sp-12);
  align-items: center;
  padding-inline: var(--sp-8);
  background: var(--paper);
}
.type-detail-hero__copy { display: grid; gap: var(--sp-6); align-content: center; }
.type-detail-hero h1,
.talents-hero h1,
.about-hero h1,
.compat-hero h1 { max-width: calc(var(--maxw-text) * 1.45); margin-block-end: var(--sp-4); font-size: var(--fs-display); }
.hero-figure {
  margin: 0;
  display: grid;
  align-content: center;
  padding: var(--sp-8);
  background: var(--surface);
  border: calc(var(--sp-1) / 4) solid var(--paper-edge);
}
.hero-figure img,
.type-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--surface);
}
.article-main { max-width: calc(var(--maxw-text) * 1.18); display: grid; gap: var(--sp-6); }
.article-main .section__head { margin-bottom: 0; }
/* === 統一相性カード（タイプ詳細・結果・相性ページ共通の部品） === */
.compat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.compat-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--paper);
  border: calc(var(--sp-1) / 4) solid var(--paper-edge);
  color: inherit;
  text-decoration: none;
}
.compat-card--link { transition: border-color 0.15s ease; }
.compat-card--link:hover,
.compat-card--link:focus-visible { border-color: var(--primary); }
.compat-card__ctx { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.compat-card .compat-card__ctx,
.compat-card .compat-card__reason { margin: 0; }
.compat-card__label { font-family: var(--font-mono); font-size: var(--fs-kicker); letter-spacing: var(--tr-wide); color: var(--ink-soft); }
.compat-card__partner { display: flex; align-items: center; gap: var(--sp-3); }
.compat-card__icon { flex: 0 0 auto; width: var(--sp-16); height: var(--sp-16); aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface); border: calc(var(--sp-1) / 4) solid var(--paper-edge); border-radius: 50%; }
.compat-card__name { font-weight: var(--fw-bold); font-size: var(--fs-base); }
.compat-card__reason { color: var(--ink-soft); line-height: var(--lh-loose); }
.compat-card__more { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--primary); }
.compat-card__more-arrow { transition: transform 0.15s ease; }
.compat-card--link:hover .compat-card__more-arrow,
.compat-card--link:focus-visible .compat-card__more-arrow { transform: translateX(3px); }
/* 相性レーティング記号（恋愛/友人=♥、仕事=★）。数字は出さない。 */
.compat__marks { display: inline-flex; gap: 1px; font-size: 0.98rem; line-height: 1; }
.compat__mark { color: #e3c8d6; }
.compat__marks--star .compat__mark { color: #c7dbe5; }
.compat__mark.is-on { color: #e8607f; }
.compat__marks--star .compat__mark.is-on { color: #4aa8d8; }
.pg-type-detail .type-grid,
.talent-page .type-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); }
.pg-type-detail .type-grid--related,
.talent-page .type-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--sp-6); }
.pg-type-detail .type-card,
.talent-page .type-card { display: grid; gap: var(--sp-3); padding: var(--sp-4); }
.pg-type-detail .type-card h3,
.talent-page .type-card h3 { font-size: var(--fs-base); }
.type-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; color: var(--ink-soft); font-family: var(--font-mono); font-size: var(--fs-kicker); letter-spacing: var(--tr-wide); }
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-6);
  align-items: center;
  background: var(--surface-2);
}
.cta-band .section__head { margin-bottom: 0; }

.talents-hero { background: var(--paper); }
.talents-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--sp-32) * 2));
  gap: var(--sp-12);
  align-items: center;
}
.talents-hero .section__head { max-width: none; margin-bottom: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-8) 0 0; padding: 0; list-style: none; }
.hero-meta li { border-color: var(--paper-edge); color: var(--ink-soft); }
.factor-section { border-top: calc(var(--sp-1) / 4) solid var(--line); }
.factor-section .wrap { border-top: calc(var(--sp-1) / 4) solid var(--ink); padding-top: var(--sp-8); }
.factor-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: var(--sp-8);
  align-items: end;
  max-width: none;
}
.factor-head p:last-child { max-width: var(--maxw-text); color: var(--ink-soft); font-size: var(--fs-lg); }
.talent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: calc(var(--sp-1) / 4) solid var(--line);
  border-left: calc(var(--sp-1) / 4) solid var(--line);
}
.talent-grid--single { grid-template-columns: 1fr; }
.talent-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--sp-6); }
.talent-card {
  display: grid;
  align-content: start;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border-top: 0;
  border-left: 0;
  border-right: calc(var(--sp-1) / 4) solid var(--line);
  border-bottom: calc(var(--sp-1) / 4) solid var(--line);
  border-radius: var(--r-sm);
  color: inherit;
  text-decoration: none;
}
.talent-card:hover { background: var(--surface-2); }
.talent-card h3 { font-size: var(--fs-xl); padding-bottom: var(--sp-3); border-bottom: calc(var(--sp-1) / 4) solid var(--line); }
.talent-card h3 a { color: inherit; text-decoration: none; }
.talent-card p { margin-bottom: 0; color: var(--ink-soft); }
.talent-note { display: grid; gap: var(--sp-2); padding-top: var(--sp-4); border-top: calc(var(--sp-1) / 4) solid var(--line); }
.talent-note > strong { color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: var(--tr-wide); line-height: var(--lh-snug); }
.talent-note p strong { color: var(--ink); font-size: inherit; font-weight: var(--fw-semibold); }
.editorial { background: var(--surface-2); }
.editorial__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8); align-items: start; }
.editorial .text-panel { padding: var(--sp-8); border-top: calc(var(--sp-1) / 4) solid var(--line); border-bottom: calc(var(--sp-1) / 4) solid var(--line); }
.editorial .section__head,
.cta-section .section__head { margin-bottom: 0; }
.cta-section { background: var(--paper); }
.cta-section__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-8);
  align-items: center;
}
.cta-section p { max-width: var(--maxw-text); color: var(--ink-soft); }

/* 帯色を塗るセクションは longform 列内では .wrap の inset が width:100% で無効化されるため、
   自前の内側余白を持つ（タレント一覧/詳細の cta-section・editorial、タイプ詳細の cta-band）。 */
.longform-main > .editorial > .editorial__in,
.longform-main > .cta-section > .cta-section__in,
.longform-main > .cta-band { padding-inline: var(--sp-8); }

.compat-hero { padding-block: var(--sp-16) var(--sp-12); background: var(--paper); }
.compat-hero__in,
.cta-panel__in {
  width: min(var(--maxw), calc(100% - var(--sp-8)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.74fr);
  gap: var(--sp-12);
  align-items: center;
}
.compat-hero__copy { display: grid; gap: var(--sp-6); }
.compat-cover { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); align-items: center; margin: 0; }
.compat-cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--surface); border: calc(var(--sp-1) / 4) solid var(--paper-edge); }
.compat-cover img:nth-child(2),
.compat-cover img:nth-child(3) { transform: translateY(var(--sp-4)); }
.type-picker { display: grid; gap: var(--sp-6); }
.type-picker__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--sp-3); }
.type-choice {
  min-width: 0;
  min-height: calc(var(--sp-12) * 2);
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  align-content: center;
  padding: var(--sp-3) var(--sp-2);
  border: calc(var(--sp-1) / 4) solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.type-choice img { width: min(100%, calc(var(--sp-12) + var(--sp-2))); aspect-ratio: 1 / 1; object-fit: contain; }
.type-choice span { min-width: 0; font-size: var(--fs-xs); line-height: var(--lh-snug); text-align: center; overflow-wrap: anywhere; }
.type-choice:hover,
.type-choice.is-active { border-color: var(--primary); }
.type-choice.is-active { font-weight: var(--fw-bold); box-shadow: inset 0 0 0 calc(var(--sp-1) / 4) var(--primary); }
.compat-panels,
.compat-panel { display: grid; gap: var(--sp-8); }
.compat-panel[hidden] { display: none; }
.compat-panel__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: center;
  padding-bottom: var(--sp-6);
  border-bottom: calc(var(--sp-1) / 4) solid var(--line);
}
.compat-panel__head img { width: calc(var(--sp-32) - var(--sp-2)); aspect-ratio: 1 / 1; object-fit: contain; background: var(--paper); border: calc(var(--sp-1) / 4) solid var(--paper-edge); }
.compat-panel__head h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.compat-panel__head p,
.panel-note p,
.principle-list p { color: var(--ink-soft); }
.compact-biaxis { max-width: var(--maxw-text); opacity: 0.86; }
.panel-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center; padding-top: var(--sp-6); border-top: calc(var(--sp-1) / 4) solid var(--line); }
.read-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); gap: var(--sp-8); align-items: start; margin-bottom: var(--sp-8); }
.principle-list { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.principle-list .card__body { display: grid; gap: var(--sp-2); }
.principle-list strong { font-size: var(--fs-lg); line-height: var(--lh-snug); }
.cta-panel { background: var(--paper); }
.cta-panel__in { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); }

.about-hero { padding-block: var(--sp-16) var(--sp-12); }
.about-hero__in {
  width: min(var(--maxw), calc(100% - var(--sp-8)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--sp-12);
  align-items: end;
}
.about-hero .lead { max-width: calc(var(--maxw-text) * 1.12); margin-bottom: var(--sp-8); }
/* CTAと注記の行（未定義だとインライン回り込みでボタン横に文字が食い込む） */
.about-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); }
.about-hero__actions .cta-meta { flex: 1 1 16em; min-width: 0; }
.editorial-figure { margin: 0; padding-block: var(--sp-6); border-block: calc(var(--sp-1) / 4) solid var(--line); }
.editorial-figure img { width: min(100%, calc(var(--sp-32) * 3)); margin-inline: auto; }
.editorial-figure figcaption { margin-top: var(--sp-4); font-family: var(--font-mono); font-size: var(--fs-kicker); letter-spacing: var(--tr-wide); }
.article-layout { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr); gap: var(--sp-12); align-items: start; }
.about-hero ~ .section .article-main { max-width: calc(var(--maxw-text) * 1.18); display: block; }
.article-block { padding-block: var(--sp-16); border-top: calc(var(--sp-1) / 4) solid var(--line); }
.article-block:first-child { padding-top: 0; border-top: 0; }
.article-block h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
/* 本文は全サイト共通のゴシック（明朝は見出し・pullquote専用。明朝本文はモック由来の字組ルール違反だった 2026-06-12） */
.about-hero ~ .section .article-main p,
.about-hero ~ .section .article-main li,
.about-hero ~ .section .article-main dd { line-height: var(--lh-loose); }
.about-hero ~ .section .article-main p + p { margin-top: var(--sp-4); }
.text-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-8); }
.about-hero ~ .section .card .folio { margin-bottom: var(--sp-3); color: var(--ink-soft); }
.about-hero ~ .section .card h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-base); }
.about-hero ~ .section .card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.axis-panel { margin-top: var(--sp-8); padding-block: var(--sp-6); border-block: calc(var(--sp-1) / 4) solid var(--line); }
.axis-panel__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.axis-panel__title h3 { margin: 0; font-size: var(--fs-base); }
.typecode { font-family: var(--font-mono); font-size: var(--fs-kicker); letter-spacing: var(--tr-wide); color: var(--primary); }
.meter-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-8); }
.meter-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.72fr);
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-top: calc(var(--sp-1) / 4) solid var(--line);
}
.meter-copy:last-child { border-bottom: calc(var(--sp-1) / 4) solid var(--line); }
.meter-copy b {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
}
/* margin-inline: 0 はblockquoteのUA既定マージン（左右40px）の打ち消し。ないと罫線と本文の左端がずれる */
.pullquote { margin-block: var(--sp-8); margin-inline: 0; padding-block: var(--sp-8); border-block: calc(var(--sp-1) / 4) solid var(--ink); }
.pullquote p { font-family: var(--font-serif); font-size: var(--fs-2xl); line-height: var(--lh-snug); }
.definition-list { margin: var(--sp-8) 0 0; }
.definition-list dt { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: calc(var(--sp-1) / 4) solid var(--line); font-family: var(--font-sans); font-weight: var(--fw-semibold); }
.definition-list dd { margin: var(--sp-2) 0 0; color: var(--ink-soft); }
/* grid-template-columns 未指定の暗黙トラックは内容幅まで広がり、長い書誌情報でSP横はみ出しするため明示する */
.reference-list { margin: var(--sp-8) 0 0; padding-left: var(--sp-6); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-soft); }
.reference-list li { min-width: 0; overflow-wrap: anywhere; }
.reference-list li::marker { font-family: var(--font-sans); font-size: var(--fs-xs); }
.reference-list__note { display: block; margin-top: var(--sp-1); font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--ink-soft); }
/* 長いURLは改行不能でmin-contentを押し広げ、モバイルで横スクロールを起こす */
.reference-list__link { overflow-wrap: anywhere; }
.reference-list__text { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.reference-list__text:hover, .reference-list__text:focus-visible { color: var(--ink); text-decoration: underline; }
.reference-caveat { margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--ink-soft); }
.final-cta { background: var(--paper); }
.final-cta__in { width: min(var(--maxw), calc(100% - var(--sp-8))); margin-inline: auto; display: grid; gap: var(--sp-6); justify-items: start; }
.final-cta h2 { max-width: calc(var(--maxw-text) * 1.2); }

@media (max-width: 900px) {
  .pg-type-detail > .section,
  .talent-page > .section,
  .pg-compat > .section { padding-inline: var(--sp-4); }
  /* 1fr（=minmax(auto,1fr)）だと長い英文・URLのmin-contentで横はみ出しするため minmax(0,1fr) に統一 */
  .types-hero__in,
  .catalog-plate,
  .family-section,
  .types-diagnosis__in,
  .type-detail-hero,
  .article-layout,
  .cta-band,
  .talents-hero__in,
  .factor-head,
  .editorial__in,
  .cta-section__in,
  .about-hero__in,
  .text-grid { grid-template-columns: minmax(0, 1fr); }
  .manual-grid,
  .compat-grid,
  .talent-grid,
  .talent-grid--compact { grid-template-columns: minmax(0, 1fr); }
  .pg-type-detail .type-grid,
  .talent-page .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-picker__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-rail { position: static; min-width: 0; }
  .hero-figure,
  .compat-cover { max-width: calc(var(--sp-32) * 2); }

  /* SP: 図鑑ページは画像がコンテンツ本体。H1＋キャッチの直下に画像、リード・CTAはその後
     （現状は1画面目がテキストとボタンだけで終わり、キャラが固定CTAバーの裏に隠れる・2026-06-12関口指示） */
  .type-detail-hero { gap: var(--sp-6); }
  .type-detail-hero__copy { display: contents; }
  .type-detail-hero .hero-figure { order: 1; margin-inline: auto; }
  /* figcaptionはキャッチと同文。SPでは直上のキャッチと連続して重複に見えるため隠す */
  .type-detail-hero .hero-figure figcaption { display: none; }
  .type-detail-hero__intro { order: 2; }
  .type-detail-hero .section-actions { order: 3; }
  .talents-hero__in { gap: var(--sp-6); }
  .talents-hero .section__head { display: contents; }
  .talents-hero .hero-figure { order: 1; margin-inline: auto; }
  .talents-hero .section__head .lead { order: 2; }
  .talents-hero .hero-meta { order: 3; margin-top: 0; }
}

@media (max-width: 760px) {
  .compat-hero__in,
  .read-grid,
  .cta-panel__in,
  .panel-note { grid-template-columns: 1fr; gap: var(--sp-8); }
  .types-hero__in { min-height: auto; gap: var(--sp-8); }
  .types-hero h1 { font-size: var(--fs-display); }
  .legend-panel { padding: var(--sp-4); }
  .legend-grid,
  .types-catalog .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-plate { margin-bottom: var(--sp-8); }
  .catalog-plate h2 { font-size: var(--fs-2xl); }
  .plate-folio { display: none; }
  .family-section {
    gap: var(--sp-6);
    padding-block: var(--sp-8);
  }
  .types-catalog .type-card { padding: var(--sp-3); }
  .types-catalog .type-card h3 { font-size: var(--fs-base); }
  .compat-panel__head { grid-template-columns: 1fr; }
  .compat-panel__head img { width: calc(var(--sp-24) + var(--sp-2)); }
  .panel-note .cta { width: 100%; }
  .site-header .cta--sm,
  .sticky-cta .cta-meta { display: none; }
  .sticky-cta .cta { flex: 1; }
}

@media (max-width: 520px) {
  .pg-type-detail .type-grid,
  .talent-page .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .hero-title-line { display: inline; white-space: normal; }
  .type-picker__grid { gap: var(--sp-2); }
  .type-choice { min-height: calc(var(--sp-16) + var(--sp-4)); padding: var(--sp-2) var(--sp-1); }
  .type-choice img { width: min(100%, var(--sp-12)); }
  .type-choice span { font-size: var(--fs-kicker); }
  .article-block { padding-block: var(--sp-12); }
  .meter-copy { grid-template-columns: 1fr; gap: var(--sp-2); }
  .pullquote p { font-size: var(--fs-xl); }
}

/* FAQ（mock page-top準拠） */
.faq dt { font-family: var(--font-sans); font-weight: var(--fw-semibold); margin-top: var(--sp-6); }
.faq dd { margin: var(--sp-2) 0 0; color: var(--ink-soft); font-size: var(--fs-sm); }

/* SP: ヒーローはH1が最上段、キャラコラージュはその直下（1秒で何のサイトか伝える・2026-06-12関口指示）。
   6/11の「コラージュを文章より先に」はこれで上書き。テキストだけの寂しさはH1直下の画像が引き続き防ぐ。
   display:contents でH1だけを切り出すため、グリッドgapは0にして各要素の既存マージンに任せる */
@media (max-width: 760px) {
	.pg-top .hero__in {
		gap: 0;
	}

	.pg-top .hero__copy {
		display: contents;
	}

	.pg-top .hero__title {
		order: -2;
	}

	.hero .flock {
		order: -1;
		max-width: 320px;
		margin-inline: auto;
		margin-block-end: var(--sp-8);
	}
}

/* SPA final mock sync: /ja/test/ quiz + /ja/?s= result */
#screen-quiz,
#screen-result {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	text-align: left;
}

#screen-quiz .wrap,
#screen-result .wrap {
	width: min(var(--maxw), calc(100% - var(--sp-8)));
	margin-inline: auto;
}

#screen-quiz .quiz-section { padding-block: var(--sp-16) var(--sp-24); }
#screen-quiz .quiz-board { display: grid; gap: var(--sp-8); }
#screen-quiz .quiz-card { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); overflow: hidden; }
#screen-quiz .tempo-panel { display: grid; align-content: space-between; gap: var(--sp-8); padding: var(--sp-8); border-right: 1px solid var(--line); background: var(--surface-2); }
#screen-quiz .tempo-label,
#screen-quiz .progress-label,
#screen-quiz .question-no,
#screen-quiz .typecode {
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tr-wide);
	color: var(--primary);
	line-height: var(--lh-snug);
}
#screen-quiz .tempo-time { position: static; width: auto; height: auto; margin: 0; display: flex; align-items: baseline; gap: var(--sp-2); color: var(--ink); }
#screen-quiz .countdown__svg { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#screen-quiz .countdown__num { position: static; display: inline; font-family: var(--font-mono); font-size: var(--fs-display-lg); font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--ink); }
#screen-quiz .tempo-unit { color: var(--ink-soft); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
#screen-quiz .tempo-track,
#screen-quiz .progress-track { display: block; height: var(--sp-2); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
#screen-quiz .tempo-fill,
#screen-quiz .progress-fill { display: block; height: 100%; width: 0; background: var(--primary); transition: width var(--mo-base) ease; }
#screen-quiz .tempo-caption,
#screen-quiz .progress-copy,
#screen-quiz .instant-note { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-normal); }
#screen-quiz .progress-panel { display: grid; gap: var(--sp-3); margin: 0; }
#screen-quiz .progress-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
#screen-quiz .progress-count { margin: 0; color: var(--ink-soft); font-family: var(--font-mono); font-size: var(--fs-sm); line-height: var(--lh-snug); white-space: nowrap; }
#screen-quiz .progress__remain-time,
#screen-quiz .progress__milestone { margin: 0; min-height: 0; color: var(--ink-soft); text-align: left; }
#screen-quiz .progress__remain-time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#screen-quiz .question-panel { display: grid; gap: var(--sp-8); padding: var(--sp-8); }
#screen-quiz .question-head { display: grid; gap: var(--sp-3); }
#screen-quiz .question-head h1 { max-width: calc(var(--maxw-text) * 1.35); margin: 0; font-size: var(--fs-3xl); }
/* font-size は親h1(32px)を継承せず、モバイルで折返しが不自然にならない可変サイズに。
   旧 inherit が clamp 指定(.quiz-q .question__text)をID優先度で打ち消し、SPで文節割れを起こしていた（2026-06-13関口指摘）。 */
/* word-break:keep-all で「ビルド時に挿入した文節ZWSPの位置でのみ改行」を全ブラウザ統一。
   auto-phrase(Chrome専用)をやめ Safari/iOS の語中改行を解消（2026-06-13関口指摘）。 */
#screen-quiz .question__text { display: inline; font-family: var(--font-serif); font-size: clamp(1.35rem, 5.6vw, 1.7rem); font-weight: var(--fw-bold); line-height: var(--lh-snug); word-break: keep-all; }
#screen-quiz .choice-field { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: var(--sp-4); }
#screen-quiz .scale-labels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); color: var(--ink-soft); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
#screen-quiz .scale-labels span:last-child { text-align: end; }
#screen-quiz .choice-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); align-items: center; }
#screen-quiz .choice { min-height: var(--sp-16); min-width: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); padding: 0; cursor: pointer; }
#screen-quiz .choice__dot { width: var(--circle-size); aspect-ratio: 1 / 1; display: grid; place-items: center; border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--surface); transition: border-color var(--mo-fast) ease, background var(--mo-fast) ease, transform var(--mo-fast) ease; }
#screen-quiz .choice.is-selected .choice__dot { background: var(--primary-soft); border-color: var(--primary); transform: scale(1.04); }
#screen-quiz .choice-value { font-family: var(--font-mono); color: var(--ink-soft); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
#screen-quiz .choice.is-selected .choice-value { color: var(--primary-dark); }
#screen-quiz .trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); }
#screen-quiz .meter { border-radius: var(--r-md); padding: var(--sp-4); }
#screen-quiz .meter strong { display: block; font-size: var(--fs-sm); }
#screen-quiz .meter p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-snug); }

#screen-result .result-hero { padding-block: var(--sp-16) var(--sp-12); }
#screen-result .result-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sp-12); align-items: center; }
#screen-result .result-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
#screen-result .badge { display: inline-flex; align-items: center; min-height: var(--sp-8); padding-inline: var(--sp-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: var(--fs-kicker); font-weight: var(--fw-semibold); letter-spacing: var(--tr-wide); }
#screen-result .kicker { margin: 0 0 var(--sp-2); font-family: var(--font-mono); font-size: var(--fs-kicker); font-weight: var(--fw-semibold); letter-spacing: var(--tr-wide); color: var(--primary); line-height: var(--lh-snug); }
#screen-result .result-type__name { margin: 0 0 var(--sp-4); font-family: var(--font-serif); font-size: var(--fs-display); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: 0; color: var(--ink); }
#screen-result .result-type__catch { margin: 0; max-width: var(--maxw-text); }
#screen-result .result-type__executive,
#screen-result .result-type__narrative { max-width: calc(var(--maxw-text) * 1.15); margin: var(--sp-4) 0 0; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: var(--fs-base); font-weight: var(--fw-regular); line-height: var(--lh-loose); text-align: left; white-space: normal; }
#screen-result .result-type__cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-items: start; margin-top: var(--sp-6); }
#screen-result .result-type__detail-link { color: var(--primary-dark); font-weight: var(--fw-semibold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
#screen-result .result-figure { margin: 0; padding: var(--sp-8) 0; border-top: 1px solid var(--paper-edge); border-bottom: 1px solid var(--paper-edge); }
/* SP用キャラ画像はキャッチ直下に置く（1カラム化で右カラム画像が本文の下に沈み、ファーストビューが文字だけになるのを防ぐ） */
#screen-result .result-figure--sp { display: none; }
#screen-result .result-type__image { width: 100%; max-width: none; aspect-ratio: 1 / 1; object-fit: contain; margin: 0; filter: none; }
#screen-result .result-figure figcaption { margin-top: var(--sp-4); color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-normal); }
#screen-result .result-longform { align-items: start; }
#screen-result .longform-main { min-width: 0; }
#screen-result .result-hidden-node[hidden] { display: none !important; }
#screen-result .section { padding-block: var(--sp-12); }
#screen-result .section__head { max-width: calc(var(--maxw-text) * 1.35); margin-bottom: var(--sp-8); }
#screen-result .section__head h2,
#screen-result .section-title { margin: 0; font-family: var(--font-serif); font-size: var(--fs-2xl); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: 0; color: var(--ink); }
#screen-result .section__head .lead { margin-top: var(--sp-4); color: var(--ink-soft); font-size: var(--fs-base); line-height: var(--lh-loose); }
#screen-result .meter-card .card__body { display: grid; gap: var(--sp-4); }
#screen-result .meter-score { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: baseline; margin: 0; }
#screen-result .meter-grade { color: var(--primary-dark); font-family: var(--font-mono); font-size: var(--fs-3xl); font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
#screen-result .meter-track { display: grid; gap: var(--sp-2); }
#screen-result .meter-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
#screen-result .meter-segment { min-height: var(--sp-8); display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); font-family: var(--font-mono); font-size: var(--fs-kicker); font-weight: var(--fw-semibold); letter-spacing: var(--tr-wide); line-height: var(--lh-snug); text-align: center; }
#screen-result .meter-segment.active { background: var(--primary); border-color: var(--primary); color: var(--surface); }
#screen-result .microcopy { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-normal); }
#screen-result .reliability__parts { display: grid; gap: var(--sp-2); margin: 0; padding: 0; }
#screen-result .reliability-part { display: flex; justify-content: space-between; gap: var(--sp-3); padding-block-start: var(--sp-2); border-top: 1px solid var(--line); color: var(--ink); font-size: var(--fs-sm); line-height: var(--lh-snug); }
#screen-result .reliability-part__track { flex: 1 1 auto; height: var(--sp-2); border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; align-self: center; }
#screen-result .reliability-part__fill { display: block; height: 100%; }

#screen-result .axis-summary__chart { display: grid; gap: var(--sp-3); max-width: calc(var(--maxw-text) * 1.45); }
#screen-result .axis-stack { display: grid; gap: var(--sp-4); padding: var(--sp-8); background: var(--surface); border: 1px solid var(--line); }
#screen-result .axis-legend { max-width: calc(var(--maxw-text) * 1.35); color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-normal); }
#screen-result .axis-legend a { color: var(--primary-dark); font-weight: var(--fw-semibold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
#screen-result .analysis-list { display: grid; gap: var(--sp-6); margin: var(--sp-8) 0 0; padding: 0; list-style: none; }
#screen-result .analysis-item { padding: var(--sp-6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
/* 各軸の説明は先頭を少し見せ、残りは軸ごとの「もっと見る／閉じる」で開く。
   セクション一括の折りたたみはしない（端と端に離れた重複・浮いた箱を作らない）。 */
#screen-result .analysis-more { margin-top: var(--sp-3); }
#screen-result .analysis-more__summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; color: var(--primary); font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: var(--tr-wide); }
#screen-result .analysis-more__summary::-webkit-details-marker { display: none; }
#screen-result .analysis-more__summary::after { content: "もっと見る ＋"; }
#screen-result .analysis-more[open] .analysis-more__summary::after { content: "閉じる －"; }
#screen-result .analysis-more[open] .analysis-more__summary { margin-bottom: var(--sp-3); }
#screen-result .analysis-more > p + p { margin-top: var(--sp-3); }
/* 見出し行＝1カラム積み（2カラムgridだとリード文がタイトルを圧縮し軸名が縦に潰れる） */
#screen-result .analysis-head { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); margin-bottom: var(--sp-4); }
#screen-result .analysis-title { display: flex; gap: var(--sp-3); align-items: baseline; justify-content: space-between; margin: 0; }
#screen-result .analysis-title .axis-label { display: inline; min-width: 0; }
#screen-result .analysis-title .score { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--ink); }
#screen-result .analysis-lead { color: var(--ink-soft); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
#screen-result .analysis-body { display: grid; gap: var(--sp-3); }
#screen-result .analysis-body p { margin: 0; color: var(--ink); line-height: var(--lh-loose); }
#screen-result .analysis-body strong { font-weight: var(--fw-semibold); }

#screen-result .article-layout { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: var(--sp-12); align-items: start; }
#screen-result .article-main { max-width: var(--maxw-text); }
/* 見出しは「自分の本文」に近づけ、前のブロックからは離す＝近接で塊が見える（階層）。 */
#screen-result .article-main h3 + p { margin-top: var(--sp-2); }
#screen-result .article-main p + h3 { margin-top: var(--sp-8); }
/* 人物像の小見出し（ひとことで言うと等）はラベル＝本文を主役に。取扱の見出しと階層を分ける。 */
#screen-result .article-main h3 { font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: var(--tr-wide); color: var(--primary); }
#screen-result .manual-box { background: var(--paper); border-color: var(--paper-edge); }
#screen-result .manual-box h2 { margin-bottom: var(--sp-6); font-size: var(--fs-2xl); }
#screen-result .manual-box .card__body { display: grid; gap: var(--sp-4); }
#screen-result .manual-list { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
#screen-result .manual-list li { padding-block-start: var(--sp-4); border-top: 1px solid var(--paper-edge); }
#screen-result .guidance { display: grid; gap: var(--sp-8); }
#screen-result .guidance-quote { display: grid; gap: var(--sp-4); max-width: calc(var(--maxw-text) * 1.5); margin: 0; padding: var(--sp-8); background: var(--paper); border-block: 1px solid var(--paper-edge); }
#screen-result .guidance-axis { margin: 0; font-family: var(--font-serif); font-size: var(--fs-3xl); line-height: var(--lh-snug); }
#screen-result .guidance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); counter-reset: guidance; }
#screen-result .guidance-card { display: grid; gap: var(--sp-4); padding: var(--sp-6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-increment: guidance; }
#screen-result .guidance-card::before { content: counter(guidance, decimal-leading-zero); color: var(--primary-dark); font-family: var(--font-mono); font-size: var(--fs-kicker); font-weight: var(--fw-semibold); letter-spacing: var(--tr-wide); line-height: var(--lh-snug); }

#screen-result .talents__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
#screen-result .talent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding: var(--sp-6); border: 1px solid var(--line); border-radius: 0; background: var(--surface); counter-increment: talent; }
#screen-result .talent::before { content: counter(talent, decimal-leading-zero); width: auto; height: auto; display: block; border-radius: 0; background: transparent; color: var(--primary-dark); font-family: var(--font-mono); font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
#screen-result .talent__dot,
#screen-result .talent__score { display: none; }
#screen-result .talent__body { display: grid; gap: var(--sp-2); }
#screen-result .talent__name { font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: var(--fw-bold); }
#screen-result .talent__name a,
#screen-result .talent-rank__name a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
#screen-result .talent__desc,
#screen-result .talent__facet,
#screen-result .talent__area,
#screen-result .talent-rank__essence { color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-normal); }
#screen-result .talent__context,
#screen-result .talent__use { border-radius: 0; background: var(--surface-2); color: var(--primary-dark); }
#screen-result .talents__list--growth { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; margin-top: var(--sp-4); counter-reset: none; }
#screen-result .talent-rank { display: grid; grid-template-columns: max-content minmax(0, auto) minmax(0, 1fr); gap: var(--sp-3); align-items: baseline; padding-block: var(--sp-3); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#screen-result .talents__subhead,
#screen-result .talents__growth-intro { list-style: none; grid-column: 1 / -1; }

#screen-result .work-fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
#screen-result .work-fit-card { display: grid; gap: var(--sp-3); padding: var(--sp-6); border: thin solid var(--line); background: var(--surface); }
#screen-result .work-fit-card--wide { grid-column: 1 / -1; }
#screen-result .compat-contexts { display: grid; gap: var(--sp-4); }
#screen-result .section-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-6); }
#screen-result .share-box { display: grid; gap: var(--sp-4); padding: var(--sp-8); background: var(--surface); border: 1px solid var(--line); }
#screen-result .share-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
#screen-result .result__disclaimer { max-width: calc(var(--maxw-text) * 1.35); margin: 0 auto; padding-top: var(--sp-4); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--fs-sm); line-height: var(--lh-normal); text-align: left; }
#screen-result .sticky-share { position: fixed; right: var(--sp-6); bottom: var(--sp-6); left: auto; z-index: 60; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--sh-subtle); }
#screen-result .sticky-share__label { font-family: var(--font-mono); font-size: var(--fs-kicker); letter-spacing: var(--tr-wide); color: var(--ink-soft); }
#screen-result .sticky-share__actions { display: flex; gap: var(--sp-2); }
#screen-result .sticky-share .cta--sm { min-height: 36px; padding: 0 var(--sp-4); background: transparent; color: var(--primary-dark); border: 1px solid var(--line); box-shadow: none; font-size: var(--fs-sm); }

@media (max-width: 900px) {
	#screen-quiz .quiz-card,
	#screen-result .result-hero__grid,
	#screen-result .article-layout { grid-template-columns: 1fr; }
	#screen-result .result-figure--pc { display: none; }
	#screen-result .result-figure--sp { display: block; margin-block: var(--sp-4) var(--sp-2); padding: 0; border: 0; }
	#screen-result .result-figure--sp .result-type__image { width: min(56vw, 220px); margin-inline: auto; }
	#screen-quiz .tempo-panel { border-right: 0; border-bottom: 1px solid var(--line); }
	#screen-result .talents__list,
	#screen-result .compat-grid,
	#screen-result .work-fit-grid { grid-template-columns: 1fr; }
	#screen-result .work-fit-card--wide { grid-column: auto; }
}

@media (max-width: 760px) {
	/* SPは左右の余白を詰める（外周12px＋カード内16px。二重マージンで本文が痩せるのを防ぐ） */
	#screen-quiz .wrap,
	#screen-result .wrap { width: calc(100% - var(--sp-6)); }
	#screen-quiz .quiz-section,
	#screen-result .section,
	#screen-result .result-hero { padding-block: var(--sp-12); }
	#screen-quiz .question-head h1,
	#screen-result .section__head h2 { font-size: var(--fs-2xl); }
	#screen-quiz .tempo-panel,
	#screen-quiz .question-panel,
	#screen-result .guidance-quote,
	#screen-result .share-box { padding: var(--sp-6); }
	#screen-result .axis-stack,
	#screen-result .analysis-item { padding: var(--sp-4); }
	#screen-quiz .trust-grid,
	#screen-result .guidance-grid { grid-template-columns: 1fr; }
	#screen-quiz .choice-row { gap: var(--sp-2); }
	#screen-quiz .choice[data-value="1"] .choice__dot,
	#screen-quiz .choice[data-value="5"] .choice__dot { --circle-size: calc(var(--sp-12) + var(--sp-3)) !important; }
	#screen-quiz .choice[data-value="2"] .choice__dot,
	#screen-quiz .choice[data-value="4"] .choice__dot { --circle-size: var(--sp-12) !important; }
	#screen-quiz .choice[data-value="3"] .choice__dot { --circle-size: calc(var(--sp-12) - var(--sp-2)) !important; }
	#screen-result .sticky-share { right: 0; left: 0; bottom: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); justify-content: space-between; box-shadow: none; padding: var(--sp-3) var(--sp-4); }
}

/* ---- 日本語タイポグラフィ全体調整（2026-06-11 関口FB: 行間・余白・改行） ---- */
h1, h2, h3,
.hero__title,
.section__head h2 {
	word-break: auto-phrase; /* 文節単位の改行（Chrome系）。非対応ブラウザはbalanceで緩和 */
	text-wrap: balance;
	line-break: strict;
}

h1, .hero__title { line-height: var(--lh-tight); margin-bottom: var(--sp-6); }
.section__head h2 { line-height: var(--lh-tight); }
.section__head { margin-bottom: var(--sp-8); }
.section__head .lead { margin-top: var(--sp-4); line-height: var(--lh-normal); }
p, li, dd { line-height: var(--lh-normal); }

/* 診断中はヘッダー非表示（ナビで戻られて離脱するのを防ぐ・2026-06-11関口指示） */
body:has(#screen-quiz:not(.is-hidden)) .site-header {
	display: none;
}

/* ---- 診断画面リーン化（1画面完結・親指ゾーン・2026-06-11 関口FB） ---- */
.quiz-lean {
	max-width: 560px;
	margin: 0 auto;
	min-height: calc(100dvh - 32px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--sp-6);
	padding: var(--sp-4) var(--sp-4) var(--sp-8);
}

.quiz-top__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	margin-bottom: var(--sp-2);
}

.quiz-top__count {
	font-family: var(--font-mono);
	font-size: var(--fs-kicker);
	letter-spacing: var(--tr-wide);
	color: var(--primary);
	font-weight: 700;
}

.quiz-top__timer {
	position: relative;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.quiz-top__timer .countdown__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.quiz-top__timer .countdown__num { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--ink); }

.quiz-top .progress-track { display: block; height: 4px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.quiz-top .progress-fill { display: block; height: 100%; width: 0; background: var(--primary); border-radius: var(--r-pill); transition: width 0.25s ease; }
.quiz-top__meta { display: flex; justify-content: space-between; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-soft); }
.quiz-top__milestone { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--primary); min-height: 1em; }

/* 質問が1行/2行で回答ボタンの位置がずれるのを防ぐため、常に2行分の高さを確保。
   親h1のfont-sizeをspan(question__text)と同じclampに揃える＝strutが行高を膨らませず、
   2行の実高さ=min-height(フォント×--lh-snug×2)と一致し、1行でも選択肢が動かない（2026-06-13関口指摘）。 */
.quiz-q__title { margin: 0; font-size: clamp(1.35rem, 5.6vw, 1.7rem); line-height: var(--lh-snug); min-height: calc(clamp(1.35rem, 5.6vw, 1.7rem) * var(--lh-snug) * 2); }
.quiz-q .question__text {
	font-family: var(--font-serif);
	font-size: clamp(1.35rem, 5.6vw, 1.7rem);
	line-height: var(--lh-tight);
	font-weight: 700;
	color: var(--ink);
	word-break: auto-phrase;
	text-wrap: balance;
}

.quiz-lean .choices { border: 0; margin: 0; padding: 0; }
.quiz-lean .scale-labels { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); margin-bottom: var(--sp-3); }
.quiz-lean .instant-note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--ink-soft); line-height: var(--lh-normal); }

/* 診断リーン: タイマーリング・選択肢の並び順の確定 */
.quiz-lean .countdown {
	position: relative;
	margin: 0;
	width: 48px;
	height: 48px;
	flex: 0 0 auto;
}

.quiz-lean .countdown__num {
	position: relative;
	font-size: 1.05rem;
	line-height: 1;
}

.quiz-lean .countdown__track { fill: none; stroke: var(--line); stroke-width: 10; }
.quiz-lean .countdown__ring { fill: none; stroke: var(--primary); stroke-width: 10; stroke-linecap: round; }

.quiz-lean .choices { display: flex; flex-direction: column; }
.quiz-lean .scale-labels { order: 1; }
.quiz-lean .choices__circles { order: 2; }
.quiz-lean .instant-note { order: 3; text-align: center; }

/* 原則準拠: サイズ違いの円ラジオ（数字なし・--circle-sizeを尊重） */
#screen-quiz .choice__dot {
	width: var(--circle-size, 44px);
	height: var(--circle-size, 44px);
	border-radius: 50%;
	border: 2px solid var(--line);
	background: var(--surface);
	display: inline-block;
	transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

/* hoverはマウス環境のみ。タッチでは:hoverが次タップまで残留し、
   選択即遷移UIで「次の質問の同じ位置の円が選択済みに見える」誤認を生む */
@media (hover: hover) and (pointer: fine) {
	#screen-quiz .choice:hover .choice__dot { border-color: var(--primary); }
}

/* 残り3秒の警告（控えめタイマーの最後の合図） */
#screen-quiz .quiz-lean .countdown.is-urgent .countdown__num { color: #b3261e; }
.quiz-lean .countdown.is-urgent .countdown__ring { stroke: #b3261e; }

/* ---- クイズPC指摘対応（2026-06-12 関口FB: ボタン薄い/改行/巨大数字） ---- */
/* 選択肢ボタンの存在感（薄くて押せるか分からない問題） */
#screen-quiz .choice__dot {
	border: 2.5px solid color-mix(in srgb, var(--primary) 55%, var(--line));
	background: var(--surface);
}

@media (hover: hover) and (pointer: fine) {
	#screen-quiz .choice:hover .choice__dot {
		border-color: var(--primary);
		background: var(--primary-soft);
		transform: scale(1.06);
	}
}

#screen-quiz .choice:focus-visible .choice__dot {
	border-color: var(--primary);
	background: var(--primary-soft);
	transform: scale(1.06);
}

/* 質問の改行: balanceが短文を無理に2行へ均等割りしていた → 1行に収まるなら1行 */
.quiz-q__title,
.quiz-q .question__text {
	text-wrap: pretty;
}

/* タイマー数字を大きく見せる（リングは非表示・数字で残り秒を伝える）。
   旧値1.1remが小さすぎて秒数が目立たなかった（2026-06-13関口指摘）。
   --fs-2xl(≈2rem)は48px枠に収まり、≤5秒の赤転(is-urgent)は別ルールで維持。 */
#screen-quiz .quiz-lean .countdown__num,
.quiz-lean .countdown__num {
	font-size: var(--fs-2xl) !important;
	line-height: 1;
}

/* ============================================================
   SNSブランド色の共有ボタン（tokens: color.sns）
   .cta--sm に追加クラスで上書き。Instagramは共有intentが無いため
   ボタン＝文面コピー（挙動は app.js renderShareActions）。
   末尾配置の理由: .cta:hover / .sticky-share .cta--sm より後勝ちさせる。
   ============================================================ */
.share-btn { display: inline-flex; align-items: center; gap: var(--sp-2); }
.share-btn__icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.share-btn--x { background: var(--sns-x); color: #fff; }
.share-btn--x:hover { background: color-mix(in srgb, var(--sns-x) 78%, #fff); }
.share-btn--line { background: var(--sns-line); color: #fff; }
.share-btn--line:hover { background: color-mix(in srgb, var(--sns-line) 85%, #000); }
.share-btn--instagram { background: linear-gradient(45deg, var(--sns-ig-1), var(--sns-ig-2), var(--sns-ig-3), var(--sns-ig-4)); color: #fff; }
.share-btn--instagram:hover { background: linear-gradient(45deg, var(--sns-ig-1), var(--sns-ig-2), var(--sns-ig-3), var(--sns-ig-4)); filter: brightness(0.92); }
/* 下部追従バーはアイコンのみの丸ボタン（ラベル分の幅を節約）。
   #screen-result 付きは既存 `#screen-result .sticky-share .cta--sm`(1,2,0)への詳細度対抗 */
.sticky-share .share-btn--x,
.sticky-share .share-btn--line,
#screen-result .sticky-share .share-btn--x,
#screen-result .sticky-share .share-btn--line { padding: 0; width: 36px; justify-content: center; border-color: transparent; color: #fff; }
.sticky-share .share-btn--x,
#screen-result .sticky-share .share-btn--x { background: var(--sns-x); }
.sticky-share .share-btn--x:hover,
#screen-result .sticky-share .share-btn--x:hover { background: color-mix(in srgb, var(--sns-x) 78%, #fff); border-color: transparent; }
.sticky-share .share-btn--line,
#screen-result .sticky-share .share-btn--line { background: var(--sns-line); }
.sticky-share .share-btn--line:hover,
#screen-result .sticky-share .share-btn--line:hover { background: color-mix(in srgb, var(--sns-line) 85%, #000); border-color: transparent; }
.sticky-share .share-btn__icon { width: 17px; height: 17px; }

/* ============================================================
   パッチ節: 4文字タイプ換算ハイライト（タイプ詳細hero・施策 2026-06-12）
   表示の有無は web/scoring.js の FOUR_LETTER_ANALOG_ENABLED で一括制御。
   ============================================================ */
.type-analog {
  margin: 0; /* 縦リズムは type-detail-hero__copy の grid gap（--sp-6）に任せる */
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}
.type-analog strong { font-family: var(--font-mono); font-weight: var(--fw-semibold); letter-spacing: var(--tr-wide); color: var(--primary-dark); }
.type-analog small { display: block; margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--ink-soft); }
