/* =================================================================
   営業資料診断レポート — Stylesheet
   16:9 deck (1920×1080) — clinical document tone
   ================================================================= */

:root {
  /* canvas */
  --slide-w: 1920px;
  --slide-h: 1080px;

  /* palette — sober diagnostic chart */
  --paper:        #FFFFFF;
  --paper-alt:    #FAFAF7;
  --paper-tint:   #F4F2EC;
  --ink:          #131311;
  --ink-2:        #444440;
  --ink-3:        #6E6E68;
  --ink-4:        #A09F98;
  --rule:         #1A1A18;
  --rule-2:       #C9C8C0;
  --rule-3:       #E6E4DB;
  --accent:       #FF006E;
  --accent-soft:  #FFE5EE;
  --accent-deep:  #C6004F;

  /* status (muted, clinical) */
  --ok:           #2A7F55;
  --ok-soft:      #E2F0E7;
  --warn:         #B8770D;
  --warn-soft:    #F7EDD7;
  --bad:          #B72E2E;
  --bad-soft:     #F4DEDC;

  /* density (overridable by tweak) */
  --pad-x:        96px;
  --pad-y:        72px;
  --gap-block:    44px;

  /* type */
  --serif:        "Noto Sans JP",system-ui,sans-serif;
  --sans:         "Noto Sans JP",system-ui,sans-serif;
  --mono:         "JetBrains Mono","Inter",ui-monospace,monospace;
  --num:          "Inter",ui-sans-serif,system-ui;
}

/* density modes */
.density-compact     { --pad-x: 72px;  --pad-y: 56px;  --gap-block: 32px; }
.density-comfortable { --pad-x: 96px;  --pad-y: 72px;  --gap-block: 44px; }
.density-loose       { --pad-x: 128px; --pad-y: 96px;  --gap-block: 60px; }

/* color theme variants (accent only) */
.theme-pink      { --accent:#FF006E; --accent-soft:#FFE5EE; --accent-deep:#C6004F; }
.theme-navy      { --accent:#1E3FB5; --accent-soft:#E1E7FA; --accent-deep:#142A7E; }
.theme-forest    { --accent:#1F6B47; --accent-soft:#DCEDE3; --accent-deep:#0F4A2D; }
.theme-vermilion { --accent:#C73E1D; --accent-soft:#F7E0D8; --accent-deep:#8E2B14; }

/* ----- base ----- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #1B1B1A; color: var(--ink); }
body {
  font-family: var(--sans);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

deck-stage { color-scheme: light; }
deck-stage > section {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.55;
  position: relative;
  overflow: hidden;
}

/* =================================================================
   COMMON CHROME (per slide)
   ================================================================= */
.slide {
  width: 100%;
  height: 100%;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 24px;
  color: var(--ink);
}

/* top hairline header strip */
.slide-chrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.slide-chrome::before,
.slide-chrome::after {
  content: "";
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 1px;
  background: var(--rule-2);
}
.slide-chrome::before { top: 0; }
.slide-chrome::after  { display: none; }

/* LP-style accent strip — 撤去（ユーザー指示） */
.slide::before {
  display: none;
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 24%, var(--rule-3) 24%, var(--rule-3) 100%);
  z-index: 3;
}

.slide-header,
.slide-footer {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  z-index: 2;
}
/* ヘッダーは非表示。クライアント名は本文上部 or footer に集約 */
.slide-header { display: none; }
.slide-footer {
  bottom: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-3);
  gap: 16px;
}
.slide-footer .doc-id,
.slide-footer .page-no,
.slide-footer .client-name {
  white-space: nowrap;
}
/* footer 中央にクライアント名（任意） */
.slide-footer .client-name {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.slide-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.slide-header .brand svg { color: var(--accent); }
.slide-header .meta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.slide-header .meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--rule-2);
  margin-right: 24px;
  vertical-align: middle;
  transform: translateX(-12px);
}

.slide-footer .doc-id {
  font-family: var(--num);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}
.slide-footer .page-no {
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.slide-footer .page-no b {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  margin-right: 4px;
}

.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 48px;
}

/* slide section labels — 日本語前提で 20px / 太字 / 短アクセントバー */
.slide-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.slide-mark::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--accent);
}
.slide-mark .ja {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--rule-2);
  color: var(--ink-3);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); }

.slide-title {
  font-family: var(--sans);
  font-size: 50px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-weight: 800;
  color: var(--ink);
  margin: 14px 0 18px;
}
.slide-title .accent { color: var(--accent); position: relative; }
.slide-title mark {
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  color: inherit;
  padding: 0 2px;
}
.slide-title .accent { color: var(--accent); }

.slide-sub {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.slide-sub b { color: var(--ink); font-weight: 700; }

/* =================================================================
   COVER (Slide 01)
   ================================================================= */
.cover {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0 32px;
  height: 100%;
  align-items: stretch;
}
/* ===== Cover slide — シンプル 3 項目構成（タイトル / 会社名 / 資料名 + ページ数） ===== */
.cover-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 0;
  height: 100%;
  min-height: 0;
  justify-content: center;
}
.cover-right { align-self: stretch; }
.is-cover .slide-body { padding-top: 16px; padding-bottom: 16px; }
.is-cover .slide-chrome::before, .is-cover .slide-chrome::after { display: none; }
.is-cover .slide-footer { display: none; }

.cover-title {
  font-family: var(--sans);
  font-size: 60px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 56px;
  word-break: keep-all;
}

.cover-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 24px;
  column-gap: 36px;
  font-size: 22px;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}
.cover-meta dt {
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding-top: 10px;
}
.cover-meta dd {
  margin: 0;
  font-size: 26px;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.cover-meta dd .ph {
  display: inline-block;
  padding: 2px 12px;
  background: var(--paper-tint);
  border: 1px dashed var(--rule-2);
  color: var(--ink-2);
  font-size: 24px;
  font-weight: 700;
  border-radius: 2px;
  white-space: nowrap;
}
.cover-meta-sub {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 4px;
}

.cover-right {
  background: #FFFFFF;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.cover-hero {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #FFFFFF;
}
.cover-hero-bg { display: none; }
.cover-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cover-hero-label {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.cover-hero-label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.cover-hero-img {
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}
.cover-hero-img img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}


/* pin markers on the hero pages */

/* hero metrics row */
.cover-right .stamp .big { font-size: 16px; letter-spacing: 0.2em; line-height: 1; margin-bottom: 4px; }
.cover-right .stamp .date { font-family: var(--num); font-size: 10px; margin-top: 4px; color: var(--accent-deep); letter-spacing: 0.1em; }

.cover-score-lbl::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.cover-bar-fill::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  bottom: -5px;
  width: 3px;
  background: var(--accent);
}

.cover-stat:first-child { padding-left: 0; border-left: none; }


/* =================================================================
   SUMMARY (Slide 02) — Pass 2 で主従入れ替え
   構造：
     ① sum-top-row（2 列：スコアカード | Mix）
     ② axes-chart.is-large（全幅・5軸チャート）
     ③ sum-overall（全幅・総評コメント / ピンク wash）
   ================================================================= */

/* 上段：スコア（左）+ 達成状況 Mix（右） */
.sum-top-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 12px;
}

.sum-score-card {
  background: var(--paper-alt);
  border-left: 4px solid var(--ink);
  padding: 22px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 0 4px 4px 0;
  min-height: 0;
  justify-content: center;
}
/* 判定（grade）を主役にしたレイアウト：左に巨大グレード、右にスコア＋ラベル */
.sum-score-card .grade-row {
  display: flex;
  align-items: center;
  gap: 28px;
}
.sum-score-card .grade-big {
  font-family: var(--num);
  font-size: 180px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--accent);
  white-space: nowrap;
  text-align: center;
  min-width: 140px;
}
.sum-score-card .grade-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sum-score-card .grade-lbl {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  font-weight: 800;
  text-transform: uppercase;
}
.sum-score-card .score-sub {
  font-family: var(--num);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.sum-score-card .score-sub .of {
  font-size: 20px;
  color: var(--ink-3);
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: 0;
}
.sum-score-meta { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
.sum-score-meta .desc { font-size: 19px; color: var(--ink-2); line-height: 1.75; }

.sum-mix {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 32px;
  background: var(--paper-alt);
  border-radius: 4px;
  justify-content: center;
}
.sum-mix-h {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-3);
  margin-bottom: 4px;
}
.sum-mix-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  align-items: center;
  gap: 14px;
}
.sum-mix-row .lbl {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.sum-mix-row .val {
  text-align: right;
  font-family: var(--num);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sum-mix-row .bar {
  height: 16px;
  background: var(--rule-3);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.sum-mix-row .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.sum-mix-row.ok   .bar i { background: var(--ink); opacity: 1; }
.sum-mix-row.warn .bar i { background: var(--ink); opacity: 0.55; }
.sum-mix-row.bad  .bar i { background: var(--accent); }
.sum-mix-row .lbl {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sum-mix-row .lbl::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.sum-mix-row.ok   .lbl::before { background: var(--ink); }
.sum-mix-row.warn .lbl::before { background: transparent; border-color: var(--ink); }
.sum-mix-row.bad  .lbl::before { background: var(--accent); border-color: var(--accent); }

/* 5-axis horizontal bar chart */
.axes-chart {
  background: var(--paper-alt);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 6px;
  min-height: 0;
}
/* .is-large = Summary 全幅版 */
.axes-chart.is-large {
  padding: 16px 36px 18px;
  gap: 2px;
  flex-shrink: 0;
  margin-top: 16px;
}
.axes-chart.is-large .axes-chart-head { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-3); }
.axes-chart.is-large .axes-chart-head h3 { font-size: 18px; font-weight: 800; }
.axes-chart.is-large .axis-row {
  grid-template-columns: 56px 1fr 140px;
  padding: 6px 0;
  gap: 20px;
}
.axes-chart.is-large .axis-row .ax-num { font-size: 22px; font-weight: 800; }
.axes-chart.is-large .axis-row .ax-name { font-size: 20px; }
.axes-chart.is-large .axis-row .ax-bar { height: 12px; }
.axes-chart.is-large .axis-row .ax-score .n { font-size: 28px; }
.axes-chart.is-large .axis-row .ax-score .n .total { font-size: 14px; }
.axes-chart.is-large .axis-row .ax-score .pct { font-size: 13px; font-weight: 800; }
.axes-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.axes-chart-head h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.axes-chart-head .leg {
  font-family: var(--num);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.16em;
}
.axes-chart-head .leg b { color: var(--ink); }

.axis-row {
  display: grid;
  grid-template-columns: 56px 1fr 130px;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-3);
}
.axis-row:last-child { border-bottom: none; }
.axis-row .ax-num {
  font-family: var(--num);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.axis-row .ax-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.axis-row .ax-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.axis-row .ax-name .prio {
  font-family: var(--num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
}
.prio.prio-h { background: var(--accent); color: #fff; }
.prio.prio-m { background: var(--ink); color: #fff; }
.prio.prio-l { background: var(--ink-4); color: #fff; }

.axis-row .ax-bar {
  height: 10px;
  background: var(--rule-3);
  position: relative;
}
.axis-row .ax-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
}
.axis-row.is-focus .ax-bar i { background: var(--accent); }
.axis-row .ax-bar .tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--rule-2);
}
.axis-row .ax-score {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.axis-row .ax-score .n {
  font-family: var(--num);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
}
.axis-row .ax-score .n .total { color: var(--ink-4); font-weight: 600; font-size: 13px; }
.axis-row .ax-score .pct {
  font-family: var(--num);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* 下段：総評コメントエリア（全幅・ピンク wash） */
.sum-overall {
  margin-top: 18px;
  padding: 26px 36px 28px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, rgba(255,229,238,0.35) 100%);
  border-left: 6px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.sum-overall-h {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sum-overall-h::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.sum-overall p {
  margin: 0;
  font-size: 20px;
  line-height: 1.9;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.sum-overall p b { color: var(--accent-deep); font-weight: 800; }

/* =================================================================
   SLIDE 03 — STORY MAP (timeline of 35 pages + story diagnostic)
   ================================================================= */
.story-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

/* section labels strip */
.sm-sections {
  display: grid;
  grid-template-columns: repeat(35, 1fr);
  gap: 4px;
  align-items: end;
}
.sm-section {
  grid-column: span var(--span, 1);
  font-family: var(--num);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  padding: 8px 0 6px;
  border-bottom: 2px solid var(--accent);
  text-align: center;
  white-space: nowrap;
}
.sm-section.muted {
  color: var(--ink-3);
  border-bottom-color: var(--rule-2);
}
.sm-section .ja {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-top: 3px;
  font-weight: 700;
}

/* page squares row */
.sm-pages {
  display: grid;
  grid-template-columns: repeat(35, 1fr);
  gap: 4px;
}
.sm-page {
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 4px;
  position: relative;
}
.sm-page .pno {
  font-family: var(--num);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-4);
  text-align: center;
}
.sm-page .line {
  height: 2px;
  background: var(--rule-3);
  margin: 0 2px;
}
.sm-page.warn {
  background: var(--warn-soft);
  border-color: var(--warn);
}
.sm-page.warn .pno { color: var(--warn); }
.sm-page.bad {
  background: var(--bad-soft);
  border-color: var(--bad);
}
.sm-page.bad .pno { color: var(--bad); }
.sm-page.focus {
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}
.sm-page.focus .pno { color: var(--accent); font-weight: 800; }
.sm-page.focus::after {
  content: "★";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 14px;
}

/* narrative arc */
.sm-arc {
  position: relative;
  height: 60px;
  margin-top: 2px;
}
.sm-arc svg { width: 100%; height: 100%; display: block; }

/* diagnostic items（上に詰める） */
.sm-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 16px;
}
.sm-item {
  border: 1px solid var(--rule-2);
  background: #fff;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
}
.sm-item .num {
  font-family: var(--num);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  grid-row: 1 / span 2;
  padding-top: 1px;
}
.sm-item .name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.sm-item .verdict { grid-column: 2; }
.sm-item .note { grid-column: 1 / -1; }
.sm-item .verdict {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm-item .verdict .mk {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--num);
  font-size: 12px;
  font-weight: 800;
}
.sm-item .verdict.is-ok .mk   { background: var(--ok-soft); color: var(--ok); }
.sm-item .verdict.is-warn .mk { background: var(--warn-soft); color: var(--warn); }
.sm-item .verdict.is-bad .mk  { background: var(--bad-soft); color: var(--bad); }
.sm-item .verdict .lbl {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sm-item .verdict.is-ok .lbl   { color: var(--ok); }
.sm-item .verdict.is-warn .lbl { color: var(--warn); }
.sm-item .verdict.is-bad .lbl  { color: var(--bad); }
.sm-item .note {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-top: 2px;
}
.sm-item .note b { color: var(--accent); font-weight: 700; }
.ax-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

.ax-hero {
  display: grid;
  grid-template-columns: auto 1fr 300px;
  align-items: center;
  gap: 32px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-2);
  padding: 20px 0 22px;
}
.ax-hero .ax-id {
  font-family: var(--num);
  font-size: 80px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.ax-hero .ax-info { display: flex; flex-direction: column; gap: 10px; }
.ax-hero .ax-info .tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ax-hero .ax-info .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border: 1px solid var(--rule-2);
  color: var(--ink-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.ax-hero .ax-info .tag.prio-h { border-color: var(--accent); color: var(--accent); }
.ax-hero .ax-info h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.ax-hero .ax-info .desc { font-size: 20px; color: var(--ink-3); }

/* score-block — 軸詳細の右肩に置く巨大スコア（n / max インライン） */
.ax-hero .ax-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  min-width: 300px;
  white-space: nowrap;
}
.ax-hero .ax-score .lbl {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-weight: 800;
}
.ax-hero .ax-score .n {
  font-family: var(--num);
  font-size: 112px;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: block;
}
/* "/ 18" を巨大数字の右にインライン表示。.n に white-space: nowrap を継承 */
.ax-hero .ax-score .n {
  white-space: nowrap;
}
.ax-hero .ax-score .n .of {
  font-family: var(--num);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-left: 10px;
  vertical-align: baseline;
  white-space: nowrap;
}

.ax-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  flex: 1;
  min-height: 0;
}

/* Page reference strip */
.pages-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pages-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pages-panel-h .lbl {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pages-panel-h .lbl::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.pages-panel-h .total {
  font-family: var(--num);
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  /* 上端のピンバッジ（top: -10px）の頭が切れないよう padding-top で逃がす */
  padding-top: 12px;
  margin-top: -12px;
}
/* grid item の min-content で列幅が押し広げられ、隣の findings 側へ
   溢れるのを防止（pages-panel を 340px 内に必ず収める） */
.pages-grid > * { min-width: 0; }
/* タイトルは ellipsis でカード幅に強制適合させる（既定で nowrap だが、
   親に min-width:0 がないと働かないため対で指定） */
.page-card .ttl {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* カード数に応じてレイアウトを切り替え（2 行目が割れる見た目を整える） */
.pages-grid[data-count="1"],
.pages-grid[data-count="2"],
.pages-grid[data-count="4"] {
  grid-template-columns: repeat(2, 1fr);
}
/* 5 枚は 3 列 2 行（行 2 は 2 枚で左寄せ）— 「右エリアに侵食しない」のを最優先 */
.pages-grid[data-count="5"],
.pages-grid[data-count="6"] {
  grid-template-columns: repeat(3, 1fr);
}

/* Page card — slide thumbnail style */
.page-card {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule-2);
  background: #fff;
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  box-shadow: 0 1px 0 var(--rule-3);
}
.page-card .pno {
  font-family: var(--num);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  background: var(--paper-alt);
  padding: 5px 8px;
  border-bottom: 1px solid var(--rule-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-card .pno::after {
  content: "···";
  font-family: var(--num);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--rule-2);
}
.page-card .ttl {
  font-size: 10px;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 8px 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-card .stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 0 8px 8px;
}
.page-card .stack span {
  height: 2px;
  background: var(--rule-2);
  border-radius: 1px;
  display: block;
}
.page-card .stack span:nth-child(1) { width: 88%; }
.page-card .stack span:nth-child(2) { width: 72%; }
.page-card .stack span:nth-child(3) { width: 54%; }

/* flagged variant — pulled out via pin */
.page-card.is-flagged {
  border: 1.5px solid var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 2px 8px rgba(255, 0, 110, 0.08);
}
.page-card.is-flagged::before {
  content: attr(data-pin);
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  font-family: var(--num);
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 0 0 2px #fff;
}
.page-card.is-flagged .pno {
  color: var(--accent);
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}
.page-card.is-flagged .stack span:nth-child(1) { background: var(--accent); width: 72%; }
.page-card.is-flagged .stack span:nth-child(2) { background: var(--accent); opacity: 0.45; }
.page-card.is-flagged .stack span:nth-child(3) { background: var(--accent); opacity: 0.25; }

/* missing-page variant */
.page-card.is-missing {
  background:
    repeating-linear-gradient(135deg,
      #fff 0 8px,
      var(--paper-alt) 8px 16px);
  border: 1.5px dashed var(--accent);
}
.page-card.is-missing .pno {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px dashed var(--accent-soft);
  font-family: var(--sans);
  font-weight: 700;
}
.page-card.is-missing .pno::after {
  content: "MISSING";
  font-family: var(--num);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--accent);
  padding: 2px 5px;
}
.page-card.is-missing .ttl { color: var(--accent-deep); }
.page-card.is-missing .stack span { background: var(--accent-soft); opacity: 0.6; }

.pages-legend {
  margin-top: 4px;
  padding: 14px 16px;
  background: var(--paper-alt);
  border-left: 2px solid var(--accent);
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
}
.pages-legend b { color: var(--ink); font-weight: 700; }

/* Findings table — clinical checklist */
.findings {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.findings-head {
  display: grid;
  grid-template-columns: 88px 78px 1fr 96px 88px;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.finding {
  display: grid;
  grid-template-columns: 84px 64px 1fr 92px 84px;
  gap: 12px;
  align-items: start;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule-3);
  position: relative;
}
.finding:last-child { border-bottom: none; }

.finding .f-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-top: 2px;
  white-space: nowrap;
}
.f-status .mk {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.finding.is-ok   .f-status .mk { background: var(--ok-soft); color: var(--ok); }
.finding.is-warn .f-status .mk { background: var(--warn-soft); color: var(--warn); }
.finding.is-bad  .f-status .mk { background: var(--bad-soft); color: var(--bad); }
.finding.is-ok   .f-status .lbl { color: var(--ok); }
.finding.is-warn .f-status .lbl { color: var(--warn); }
.finding.is-bad  .f-status .lbl { color: var(--bad); }

.finding .f-code {
  font-family: var(--num);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.finding .f-main { min-width: 0; }
.finding .f-item {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.finding .f-com {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.finding .f-com b { color: var(--ink); font-weight: 700; }

.finding .f-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 6px;
}
.finding .f-pages .pg {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border: 1px solid var(--rule-2);
  color: var(--ink-2);
  background: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.finding.is-bad .f-pages .pg { border-color: var(--bad); color: var(--bad); }
.finding.is-warn .f-pages .pg { border-color: var(--warn); color: var(--warn); }

.finding .f-score {
  text-align: right;
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}
.finding .f-score .v {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.finding .f-score .v .o { color: var(--ink-4); font-weight: 600; font-size: 11px; }
.finding .f-score .b {
  margin-top: 4px;
  height: 4px;
  background: var(--rule-3);
  position: relative;
}
.finding .f-score .b i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
}
.finding.is-bad  .f-score .b i { background: var(--bad); }
.finding.is-warn .f-score .b i { background: var(--warn); }
.finding.is-ok   .f-score .b i { background: var(--ok); }

/* .is-dense は廃止。全 5 軸が同じ density で並ぶ。
   軸 04 の 6 項目もデフォルト padding で収まるよう、下の finding を tight default 化済。 */

/* =================================================================
   ax-summary — エディトリアル風所見ブロック（pull-quote ベース）
   左にラベル＋アクセント記号、本文は破線で区切ったゆとり配置
   ================================================================= */
.ax-summary {
  margin-top: 22px;
  padding: 26px 36px 28px;
  background: var(--paper-alt);
  border-left: 6px solid var(--accent);
  border-radius: 0 4px 4px 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: start;
  position: relative;
}
.ax-summary > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}
/* 英語ラベルは隠す（重複） */
.ax-summary .ttl { display: none; }
.ax-summary .ttl-jp {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ax-summary .ttl-jp::before {
  content: "◆";
  color: var(--accent);
  font-size: 13px;
}
.ax-summary p {
  margin: 0;
  padding: 4px 0 4px 28px;
  font-size: 20px;
  line-height: 1.85;
  color: var(--ink);
  border-left: 1px solid var(--rule-2);
  letter-spacing: 0.01em;
}
.ax-summary p b { color: var(--accent); font-weight: 700; }

/* ★ Top priority 専用 — 軸 04 で is-top-priority クラスで切替 */
.ax-summary.is-top-priority {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-left: none;
  box-shadow: 0 8px 32px rgba(255,0,110,0.18);
}
.ax-summary.is-top-priority .ttl-jp { color: #fff; }
.ax-summary.is-top-priority .ttl-jp::before { content: "★"; color: rgba(255,255,255,0.85); }
.ax-summary.is-top-priority p { color: #fff; border-left-color: rgba(255,255,255,0.32); }
.ax-summary.is-top-priority p b {
  color: #fff;
  background: linear-gradient(transparent 60%, rgba(255,255,255,0.28) 60%);
  padding: 0 2px;
}

/* =================================================================
   .ax-detail.is-compact — 6 項目軸（例：軸 04 ROI）用の局所圧縮版
   方針：ax-hero は他軸と同じ（フォント・スコア共通）にし、
        finding と ax-summary の **行密度だけ** 詰めて 6 項目を収める
   ================================================================= */
.ax-detail.is-compact { gap: 16px; }
.ax-detail.is-compact .finding { padding: 4px 12px; }
.ax-detail.is-compact .finding .f-item { margin-bottom: 2px; line-height: 1.35; }
.ax-detail.is-compact .finding .f-com { line-height: 1.5; }
.ax-detail.is-compact .ax-summary { margin-top: 10px; padding: 16px 28px 18px; }

/* =================================================================
   SLIDE 09 — Surari Proposal (minimal, white-based)
   ================================================================= */
.is-proposal {
  background: #fff;
}
.is-proposal::before {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 60%, var(--rule-3) 60%, var(--rule-3) 100%) !important;
  height: 2px !important;
}
.is-proposal .slide-chrome::before,
.is-proposal .slide-chrome::after { background: var(--rule-2); }
.is-proposal .slide-header { color: var(--ink-3); }
.is-proposal .slide-header .brand { color: var(--ink); }

.prop-divider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
  position: relative;
}
.prop-divider .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prop-divider .left .eyebrow,
.prop-divider .right .eyebrow {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.prop-divider .left .eyebrow { color: var(--ink-3); }
.prop-divider .right .eyebrow { color: var(--accent); }
.prop-divider .left .label,
.prop-divider .right .label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.prop-divider .left .label { color: var(--ink-2); }
.prop-divider .right .label { color: var(--accent-deep); }
.prop-divider .axis-line {
  height: 2px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 50%, var(--accent) 50%, var(--accent) 100%);
  position: relative;
}
.prop-divider .axis-line::before,
.prop-divider .axis-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
}
.prop-divider .axis-line::before { left: 0; background: var(--ink); }
.prop-divider .axis-line::after  { right: 0; background: var(--accent); }
.prop-divider .axis-line .mid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid var(--accent);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--num);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.prop-divider .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.prop-divider .right .eyebrow {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}
.prop-divider .right .label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.prop-headline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.prop-headline h2 {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0;
}
.prop-headline h2 mark {
  background: linear-gradient(transparent 58%, var(--accent-soft) 58%);
  color: inherit;
  padding: 0 4px;
}
.prop-headline p {
  margin: 0;
  font-size: 22px;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 1200px;
}
.prop-headline p b { color: var(--accent); }


.prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  flex: 1;
}
.prop-card {
  background: #fff;
  border: 1px solid var(--accent-soft);
  border-top: 4px solid var(--accent);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 0 var(--accent-soft);
  position: relative;
}
.prop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-deep);
}
.prop-card-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.prop-card-h .id {
  font-family: var(--num);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.prop-card-h h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
}
.prop-card-h .step {
  margin-left: auto;
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 4px 8px;
  white-space: nowrap;
}
.prop-points { display: flex; flex-direction: column; gap: 10px; }
.prop-point {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--accent-soft);
  align-items: start;
}
.prop-point:last-child { border-bottom: none; }
.prop-point .pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--num);
  font-size: 12px;
  font-weight: 800;
}
.prop-point .body { font-size: 21px; line-height: 1.7; color: var(--ink); }
.prop-point .body b { color: var(--accent-deep); }
.prop-point .body small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--num);
  letter-spacing: 0.08em;
}

/* =================================================================
   SLIDE 09 — 改善ステップ
   ================================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  flex: 1;
}
.step-card {
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 0 var(--rule-3);
  transition: transform 0.2s;
}
.step-card.is-priority {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 0 var(--accent-soft);
}
.step-card.is-priority::after {
  content: "★ 推奨";
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--accent);
  color: #fff;
  font-family: var(--num);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  z-index: 1;
}
/* ミニマル版 step-card：番号 / 太字タイトル / 1行説明 / 価格 のみ */
.step-card .head {
  padding: 36px 36px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-card .step-n {
  font-family: var(--num);
  font-size: 96px;
  font-weight: 800;
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin: 0;
}
.step-card h3 {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  margin: 6px 0 0;
  letter-spacing: 0.01em;
}
.step-card .step-lead {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 500;
}
/* やること箇条書き */
.step-card .step-todo {
  margin: 8px 0 16px;
  padding: 16px 36px 0;
  list-style: none;
  flex: 1;
  border-top: 1px dashed var(--rule-2);
  padding-top: 16px;
}
.step-card .step-todo li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 500;
}
.step-card .step-todo li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.step-card.is-priority .step-todo li::before { background: var(--accent); }
.step-card .price {
  margin-top: auto;
  padding: 18px 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--paper-alt);
}
.step-card.is-priority .price {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%);
}
.step-card .price .p {
  font-family: var(--num);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.step-card .price .p small { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 2px; }
.step-card .price .t {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--num);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =================================================================
   SLIDE 10 — Before / After
   ================================================================= */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  flex: 1;
  align-items: stretch;
}
.ba-col {
  border: 1px solid var(--rule);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  min-height: 0;
}
.ba-col.before { background: var(--paper-alt); }
.ba-col.after { border-color: var(--accent); }
.ba-col-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-2);
}
.ba-col.after .ba-col-h { border-bottom-color: var(--accent-soft); }
.ba-col-h .tag {
  font-family: var(--num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.ba-col.after .ba-col-h .tag { color: var(--accent); }
.ba-col-h h3 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.ba-col-h .pc {
  font-family: var(--num);
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ba-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule-2);
}
.ba-stat .lbl {
  font-family: var(--num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  width: 100px;
  white-space: nowrap;
}
.ba-stat .v {
  font-family: var(--num);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ba-col.after .ba-stat .v { color: var(--accent); }
.ba-stat .v .u { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.ba-stat .delta {
  margin-left: auto;
  font-family: var(--num);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ba-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ba-list li {
  display: grid;
  grid-template-columns: 22px 1fr 90px;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-3);
  font-size: 18.0px;
  line-height: 1.6;
  color: var(--ink);
}
.ba-list li:last-child { border-bottom: none; }
.ba-list li .mk {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--num);
  font-size: 10px;
  font-weight: 800;
  margin-top: 1px;
}
.ba-col.before .mk { background: var(--bad-soft); color: var(--bad); }
.ba-col.after .mk  { background: var(--ok-soft); color: var(--ok); }
.ba-list li .pg {
  text-align: right;
  font-family: var(--num);
  font-size: 11px;
  color: var(--ink-3);
  padding-top: 3px;
  letter-spacing: 0.04em;
}

/* =================================================================
   SLIDE 11 — Next Step / CTA
   ================================================================= */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.cta-card {
  border: 1px solid var(--rule);
  padding: 32px 32px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 380px;
}
.cta-card.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cta-card.primary h3,
.cta-card.primary .lead { color: #fff; }
.cta-card .tag {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.cta-card.primary .tag { color: rgba(255,255,255,0.85); }
.cta-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.cta-card .lead { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.cta-card .price {
  font-family: var(--num);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cta-card .price small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.cta-card.primary .price,
.cta-card.primary .price small { color: #fff; }
.cta-card .btn {
  margin-top: auto;
  border: 1px solid var(--ink);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cta-card.primary .btn { background: #fff; color: var(--accent); border-color: #fff; }

.contact {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.contact .by {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}
.contact .by small { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: 0.2em; margin-top: 4px; font-family: var(--num); }
.contact .info {
  display: flex;
  gap: 36px;
  font-family: var(--num);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.contact .info b { color: var(--ink); font-weight: 700; }

/* =================================================================
   ANNOTATION MARKER STYLES (tweakable)
   ================================================================= */
/* default = both icon + label. tweak: icon-only / num-only / both */
.marker-iconOnly .f-status .lbl { display: none; }
.marker-numOnly  .f-status .mk { display: none; }
.marker-numOnly  .f-status .lbl { font-family: var(--num); }

.no-pageref .finding .f-pages,
.no-pageref .pages-panel { display: none; }
.no-pageref .ax-body { grid-template-columns: 1fr; }

/* hide all serif accent (tweak) */
.serif-off .slide-title,
.serif-off .ax-hero .ax-info h2,
.serif-off .cover h1,
.serif-off .sum-callout h3,
.serif-off .axes-chart-head h3,
.serif-off .ba-col-h h3,
.serif-off .cta-card h3,
.serif-off .step-card h3,
.serif-off .prop-banner h2,
.serif-off .prop-card-h h3,
.serif-off .contact .by,
.serif-off .cover-bottom .issuer { font-family: var(--sans); font-weight: 800; }

/* =================================================================
   Tweaks panel button overrides (use design accent)
   ================================================================= */
.tweaks-panel { font-family: var(--sans); }

/* Print friendly */
@media print {
  html, body, deck-stage { background: #fff !important; }
  deck-stage > section { page-break-after: always; }
}

/* =================================================================
   EDIT MODE — ?edit で deck-stage を切り、12 枚を縦スタック表示
   ================================================================= */
html.mode-edit,
html.mode-edit body { background: var(--paper-tint); color: var(--ink); }

html.mode-edit body {
  margin: 0;
  padding: 32px 32px 80px 280px;
  font-family: var(--sans);
}

/* deck-stage を通常フローのブロック化（カスタム要素として未定義のため div 扱い） */
html.mode-edit deck-stage {
  display: block;
  position: static;
  width: max-content;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

/* 各スライドを native 1920×1080 で表示 → zoom で 0.7 倍に縮小 */
html.mode-edit deck-stage > section {
  display: block;
  position: relative;
  width: 1920px;
  height: 1080px;
  margin: 0 auto 80px;
  background: var(--paper);
  box-shadow: 0 16px 48px rgba(20,20,20,.10), 0 4px 16px rgba(20,20,20,.05);
  overflow: hidden;
  border-radius: 4px;
  zoom: 0.55;
  scroll-margin-top: 24px;
}

/* スライド下にラベルチップ（data-screen-label を表示） */
html.mode-edit deck-stage > section::after {
  content: attr(data-screen-label);
  position: absolute;
  left: 0;
  bottom: -34px;
  font-family: var(--num);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  background: var(--paper);
  padding: 4px 10px;
  border: 1px solid var(--rule-3);
  border-radius: 4px;
  z-index: 10;
}

/* sticky TOC（左ペイン） */
.edit-toc {
  position: fixed;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 232px;
  background: var(--paper);
  border: 1px solid var(--rule-3);
  border-radius: 8px;
  padding: 14px;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(20,20,20,.06);
}
.edit-toc-h {
  font-family: var(--num);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.edit-toc-h .badge {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}
.edit-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.1s;
}
.edit-toc a:hover  { background: var(--paper-tint); color: var(--ink); }
.edit-toc a.is-current { background: var(--accent-soft); color: var(--accent-deep); }
.edit-toc a code {
  display: inline-block;
  width: 22px;
  font-family: var(--num);
  font-weight: 800;
  font-size: 10px;
  color: var(--ink-4);
  flex-shrink: 0;
}
.edit-toc a:hover code,
.edit-toc a.is-current code { color: var(--accent); }
.edit-toc-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--rule-3);
  font-family: var(--num);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.edit-toc-foot a {
  display: inline;
  padding: 0;
  color: var(--accent);
  font-weight: 700;
}

/* edit モードでは tweaks 系を非表示 */
html.mode-edit deck-stage:not(:defined) { visibility: visible; }

