/* ============================================================
   deck.css — ヤエノワ LT 共通スライドテーマ
   トンマナは https://yaenowa.co.jp/ の theme.css / site.css に準拠。
   色を変える場合は :root のトークンだけを編集すればよい。
   ============================================================ */

/* ── カラーパレット（コーポレートサイトのライト配色と同値） ── */
:root {
  --ink: #1a1a18;
  --ink-mid: #3d3d38;
  --ink-light: #6b6b64;
  --paper: #fdf8f6;
  --paper-mid: #f5ede8;
  --paper-dark: #ddc8be;
  --accent: #7a3a4a;        /* 紅梅（濃） — ボタン・帯 */
  --accent-gold: #b06070;   /* 紅梅（中） — ラベル・強調文字 */
  --accent-pale: #f0d8d8;
  --sakura-deep: #c0606a;
  --sakura-mid: #e8a0a8;
  --sakura-light: #f5d8dc;
  --sakura-pale: #fdf0f2;
  --accent-cool: #3a6470;   /* 差し色（藍） — 注意・対比 */
  --accent-cool-pale: #dbe7ea;
  --surface-raised: #ffffff;
  --shadow-raised: rgba(122,58,74,0.09);
  --surface-inverse: #1a1a18;
  --inverse-ink: #fdf8f6;
  --inverse-ink-soft: rgba(247,244,238,0.75);

  --font-mincho: "Zen Old Mincho", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "WenQuanYi Zen Hei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #e9e1dc; color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  overflow: hidden;
  display: grid; place-items: center;
  -webkit-font-smoothing: antialiased;
  /* 1280px のステージが画面幅をはみ出しても、スマホのブラウザがページ全体を縮小しないよう画面に固定する */
  position: fixed; inset: 0;
}
::selection { background: var(--accent); color: var(--paper); }

/* ── ステージ（1280×720 固定、deck.js が画面に合わせて拡縮） ── */
.deck { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: center center; transform: translate(-50%, -50%); }
.slide {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--sakura-pale) 0%, var(--paper) 45%, var(--paper) 100%);
  padding: 72px 96px 64px 112px;
  display: none; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-raised);
}
.slide.active { display: flex; }
/* 左端の紅梅の帯（OG画像のモチーフ） */
.slide::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(180deg, var(--accent) 0%, #9a5060 100%);
}

/* ── 文字 ── */
.kicker {
  font-size: 15px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--accent-gold); margin-bottom: 16px;
}
h1, h2, h3, .mincho { font-family: var(--font-mincho); font-weight: 700; letter-spacing: .06em; }
h1 { font-size: 76px; line-height: 1.3; }
h2 { font-size: 42px; line-height: 1.4; margin-bottom: 36px; position: relative; padding-bottom: 20px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 2px; background: var(--sakura-deep); }
h3 { font-size: 28px; line-height: 1.4; }
p, li { font-size: 26px; line-height: 1.75; letter-spacing: .03em; color: var(--ink-mid); }
b { font-weight: 700; color: var(--ink); }
.muted { color: var(--ink-light); }
.em  { color: var(--accent-gold); }
.em2 { color: var(--accent); }
.warn { color: var(--accent-cool); }
.note { font-size: 22px; color: var(--ink-light); margin-top: 32px; }
.note::before { content: "— "; color: var(--sakura-deep); }

ul { list-style: none; display: grid; gap: 14px; }
ul li { padding-left: 1.3em; position: relative; }
ul li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: .42em; height: .42em; border-radius: 50%; background: var(--sakura-mid);
}

/* ── フッター（deck.js が自動挿入） ── */
.footer {
  position: absolute; left: 112px; right: 96px; bottom: 22px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: .12em; color: var(--ink-light);
}
.footer img { height: 22px; width: auto; }
.footer .page { margin-left: auto; font-variant-numeric: tabular-nums; }
.src { font-size: 13px; letter-spacing: .04em; color: var(--ink-light); margin-top: auto; margin-bottom: 18px; }

/* ── 桜の透かし（表紙・締め） ── */
.sakura {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; pointer-events: none;
}

/* ── レイアウト: 表紙 ── */
.slide.title { justify-content: center; }
.title h1 { font-size: 84px; position: relative; z-index: 1; }
.title .sub { font-size: 26px; color: var(--ink-mid); margin-top: 28px; position: relative; }
.title .rule { width: 48px; height: 2px; background: var(--sakura-deep); margin: 40px 0 28px; }
.title .presenter { display: flex; align-items: center; gap: 18px; }
.title .presenter img { height: 56px; width: auto; }
.title .presenter .org { font-size: 18px; letter-spacing: .12em; color: var(--ink-light); line-height: 1.5; }
.title .presenter .name { font-family: var(--font-mincho); font-size: 28px; font-weight: 700; letter-spacing: .18em; color: var(--ink); line-height: 1.4; }

/* ── レイアウト: 反転（メッセージ・締め） ── */
.slide.inverse { background: var(--surface-inverse); justify-content: center; }
.slide.inverse .kicker { color: var(--sakura-mid); }
.slide.inverse .footer { color: var(--inverse-ink-soft); }
.big-quote {
  font-family: var(--font-mincho); font-weight: 700;
  font-size: 54px; line-height: 1.6; letter-spacing: .08em; color: var(--inverse-ink);
  position: relative; z-index: 1;
}
.big-quote .em { color: var(--sakura-mid); }

/* ── レイアウト: タイムライン ── */
.tl { display: grid; }
.tl-row {
  display: grid; grid-template-columns: 130px 1fr; align-items: baseline; gap: 28px;
  padding: 13px 0; border-bottom: .5px solid var(--paper-dark);
}
.tl-row:last-child { border-bottom: 0; }
.date { font-family: var(--font-mincho); font-size: 26px; font-weight: 700; color: var(--accent-gold); letter-spacing: .08em; }
.tl-row p { font-size: 25px; }
.tl-row .muted { font-size: 19px; margin-left: .6em; }

/* ── レイアウト: 数字 ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.stat {
  background: var(--surface-raised); padding: 26px 28px 22px;
  border-top: 2px solid var(--sakura-deep);
  box-shadow: 0 8px 24px var(--shadow-raised);
}
.stat .n { font-family: var(--font-mincho); font-size: 60px; font-weight: 700; color: var(--accent); line-height: 1.15; letter-spacing: .04em; }
.stat .l { font-size: 18px; color: var(--ink-light); margin-top: 6px; letter-spacing: .06em; }

/* ── レイアウト: 2カラムカード ── */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; flex: 1; min-height: 0; margin-bottom: 4px; }
.card {
  background: var(--surface-raised); padding: 28px 32px;
  border: .5px solid var(--paper-dark);
  box-shadow: 0 8px 24px var(--shadow-raised);
  display: flex; flex-direction: column; gap: 10px;
}
.card .who { font-size: 13px; letter-spacing: .3em; color: var(--accent-gold); }
.card p { font-size: 21px; line-height: 1.75; }

/* ── レイアウト: 番号付きの要点 ── */
.trend {
  display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start;
  padding: 18px 0; border-bottom: .5px solid var(--paper-dark);
}
.trend:last-child { border-bottom: 0; }
.trend .no { font-family: var(--font-mincho); font-size: 46px; font-weight: 700; color: var(--sakura-mid); line-height: 1; }
.trend h3 { margin-bottom: 4px; }
.trend p { font-size: 20px; color: var(--ink-light); }

/* ── レイアウト: 出典 ── */
.refs { gap: 5px; }
.refs li { font-size: 15px; line-height: 1.55; }
.refs li::before { top: .62em; width: .36em; height: .36em; }

.hint { position: fixed; bottom: 10px; right: 14px; font-size: 12px; color: var(--ink-light); opacity: .6; }

/* ── 印刷（PDF化）：1スライド1ページ ── */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { overflow: visible; height: auto; display: block; background: var(--paper); position: static; }
  .deck { position: static; transform: none !important; width: 1280px; height: auto; }
  .slide { display: flex !important; position: relative; height: 720px; box-shadow: none; page-break-after: always;
           -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hint { display: none; }
}

/* ── 部品: コード（API・JSON の引用） ── */
.code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 19px; line-height: 1.6; letter-spacing: 0;
  background: var(--surface-inverse); color: var(--inverse-ink);
  padding: 22px 28px; white-space: pre; overflow: hidden;
}
.code .k { color: var(--sakura-mid); }     /* キー */
.code .s { color: #e9d9b8; }               /* 値 */
.code .c { color: rgba(247,244,238,0.5); } /* コメント */
code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: .88em; color: var(--accent); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.split p, .split li { font-size: 22px; }

/* ── 部品: 図（インラインSVG） ── */
.figure-hint { display: none; }
.figure { width: 100%; flex: 1; min-height: 0; }
.figure svg { width: 100%; height: 100%; display: block; overflow: visible; }
.figure text { font-family: var(--font-sans); fill: var(--ink-mid); }
.figure .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ── 部品: 表 ── */
table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: .5px solid var(--paper-dark); font-size: 19px; line-height: 1.55; color: var(--ink-mid); }
table.grid th { font-size: 14px; letter-spacing: .25em; color: var(--accent-gold); font-weight: 400; border-bottom: 1.5px solid var(--sakura-deep); }
table.grid td:first-child { font-family: var(--font-mincho); font-weight: 700; color: var(--ink); white-space: nowrap; }
table.grid.compact th, table.grid.compact td { padding: 9px 14px; font-size: 18px; }
table.grid.small th, table.grid.small td { padding: 8px 12px; font-size: 16px; }

/* ── 注意書き（法務スライド用） ── */
.disclaimer { font-size: 14px; color: var(--ink-light); letter-spacing: .04em; }
.figure .box    { fill: var(--surface-raised); stroke: var(--paper-dark); stroke-width: 1; }
.figure .box-em { fill: var(--accent); stroke: none; }
.figure .box-pale { fill: var(--sakura-pale); stroke: var(--sakura-mid); stroke-width: 1; }
.figure .box-cool { fill: var(--accent-cool-pale); stroke: var(--accent-cool); stroke-width: 1; }
.figure .lane   { stroke: var(--paper-dark); stroke-width: 1; stroke-dasharray: 4 5; }
.figure .msg    { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.figure .ret    { stroke: var(--ink-light); stroke-width: 1.2; stroke-dasharray: 5 4; fill: none; }
.figure .cool   { stroke: var(--accent-cool); stroke-width: 1.6; fill: none; }
.figure .head   { fill: var(--ink); font-weight: 700; font-size: 17px; }
.figure .head-inv { fill: var(--inverse-ink); font-weight: 700; font-size: 17px; }
.figure .sub    { fill: var(--ink-light); font-size: 13px; letter-spacing: .05em; }
.figure .lbl    { fill: var(--ink-mid); font-size: 15px; }
.figure .lbl-em { fill: var(--accent); font-size: 15px; font-weight: 700; }
.figure .lbl-cool { fill: var(--accent-cool); font-size: 15px; font-weight: 700; }
.figure .num    { fill: var(--accent-gold); font-family: var(--font-mincho); font-weight: 700; font-size: 17px; }

/* ── レイアウト: 自己紹介 ── */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.profile .id img { width: 112px; height: auto; margin-bottom: 22px; box-shadow: 0 8px 24px var(--shadow-raised); }
.profile .id .name { font-family: var(--font-mincho); font-weight: 700; font-size: 40px; letter-spacing: .2em; color: var(--ink); line-height: 1.3; }
.profile .id .roman { font-size: 13px; letter-spacing: .35em; text-transform: uppercase; color: var(--accent-gold); margin-top: 8px; }
.profile .id .role { font-size: 17px; letter-spacing: .1em; color: var(--ink-light); margin-top: 18px; line-height: 1.7; }
.profile ul { gap: 10px; }
.profile li { font-size: 21px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-size: 14px; letter-spacing: .08em; padding: 4px 12px; color: var(--accent); background: var(--sakura-pale); border: .5px solid var(--sakura-mid); }
.cards.three { grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.cards.three .card { padding: 24px 24px; }
.cards.three h3 { font-size: 22px; }
.cards.three p { font-size: 17px; line-height: 1.7; }
/* 4枚のときは2×2で並べる */
.cards.four { gap: 16px 22px; }
.cards.four .card { padding: 16px 26px; gap: 6px; }
.cards.four h3 { font-size: 21px; }
.cards.four p { font-size: 16px; line-height: 1.6; }
/* 2枚だけのときは、中身の高さに合わせる（縦に間延びさせない） */
.cards.pair { flex: 0 0 auto; margin-top: 8px; }
.cards.pair .card { padding: 32px 36px; gap: 12px; }
.cards.pair p { font-size: 22px; }
/* 文章の多いカード（箇条書きを含む）は文字を小さめにする */
.cards.dense .card { padding: 22px 26px; gap: 8px; }
.cards.dense h3 { font-size: 22px; }
.cards.dense p { font-size: 17px; line-height: 1.7; }
/* スライド内のリンクは紅梅色に */
.slide a { color: var(--accent); text-underline-offset: 3px; }
/* 文字の多い箇条書き・注記を少し小さくする */
ul.tight { gap: 8px; }
ul.tight li { font-size: 19px; }
.split ul.tight li { font-size: 17px; }
.note.sm { font-size: 18px; }
.split p.sm { font-size: 19px; }
.slide.inverse a { color: var(--sakura-mid); }
/* 横に並ぶ工程（例: 7段階のフロー）。.pc の付いた段は反転色 */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin: 4px 0 24px; }
.steps div { background: var(--surface-raised); border: .5px solid var(--paper-dark); padding: 14px 6px; text-align: center; font-family: var(--font-mincho); font-weight: 700; font-size: 19px; color: var(--accent); }
.steps div.pc { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 13px; margin-top: 4px; opacity: .85; letter-spacing: .1em; }

/* ── 部品: 図の凡例（図の外に置く） ── */
.legend { display: flex; gap: 28px; justify-content: flex-end; margin: -12px 0 6px; font-size: 15px; color: var(--ink-mid); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ── 部品: 前後比較（これまで → いま） ── */
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; margin-top: 18px; }
.before-after .stat { padding: 18px 26px 16px; }
.before-after .stat .l:first-child { margin: 0 0 2px; font-size: 15px; letter-spacing: .2em; color: var(--accent-gold); }
.before-after .stat .n { font-size: 52px; color: var(--ink-light); }
.before-after .stat.now .n { color: var(--accent); }
.before-after .arrow { font-size: 40px; color: var(--sakura-deep); align-self: center; }

/* ── スマホ縦向き（幅760px以下）：拡大縮小をやめ、スライドを縦に並べて読む ── */
@media (max-width: 760px) and (orientation: portrait) {
  html, body { height: auto; overflow: auto; }
  body { display: block; background: var(--paper-mid); position: static; }
  .deck { position: relative; left: auto; top: auto; width: 100%; height: auto; transform: none !important; padding: 12px 0; }
  .slide {
    display: flex !important; position: relative; inset: auto;
    height: auto; min-height: 0; margin: 0 0 12px;
    padding: 32px 20px 20px 26px; box-shadow: none;
  }
  .slide::before { width: 6px; }
  .slide.title, .slide.inverse { min-height: 70vh; }

  .kicker { font-size: 11px; letter-spacing: .3em; margin-bottom: 10px; }
  h1, .title h1 { font-size: 36px; }
  h2 { font-size: 22px; margin-bottom: 20px; padding-bottom: 12px; }
  h3, .cards.three h3 { font-size: 18px; }
  p, li { font-size: 15px; line-height: 1.75; }
  .title .sub { font-size: 15px; margin-top: 16px; }
  .title .presenter img { height: 44px; }
  .title .presenter .name { font-size: 22px; }
  .title .presenter .org { font-size: 13px; }
  .note { font-size: 14px; margin-top: 18px; }
  .src { font-size: 11px; margin: 16px 0 0; }
  .big-quote { font-size: 26px; }
  .sakura { width: 280px; height: 280px; right: -90px; opacity: .7; }

  /* 横並びの部品は縦に積む */
  .stats, .cards, .cards.three, .split, .profile, .before-after { grid-template-columns: 1fr; gap: 12px; }
  .stats { margin-bottom: 18px; }
  .stat { padding: 16px 18px 14px; }
  .stat .n, .before-after .stat .n { font-size: 38px; }
  .stat .l { font-size: 13px; }
  .before-after .arrow { transform: rotate(90deg); justify-self: center; font-size: 28px; line-height: 1; }
  .card, .cards.three .card, .cards.four .card, .cards.pair .card, .cards.dense .card { padding: 18px; }
  .card p, .cards.three p, .cards.four p, .cards.pair p, .cards.dense p { font-size: 14px; }
  .cards.dense h3 { font-size: 18px; }
  ul.tight li, .split ul.tight li, .split p.sm { font-size: 15px; }
  .note.sm { font-size: 14px; }
  .steps { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
  .steps div { font-size: 14px; padding: 10px 4px; }
  .profile { gap: 20px; }
  .profile .id img { width: 72px; margin-bottom: 12px; }
  .profile .id .name { font-size: 28px; }
  .profile li { font-size: 15px; }
  .tags { margin-top: 14px; }
  .tag { font-size: 12px; }
  .trend { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; }
  .trend .no { font-size: 28px; }
  .trend p { font-size: 13px; }
  .tl-row { grid-template-columns: 70px 1fr; gap: 12px; }
  .date { font-size: 16px; }
  .tl-row p { font-size: 15px; }
  .legend { justify-content: flex-start; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; font-size: 12px; }
  .refs li { font-size: 12px; }

  /* 図は文字が潰れないよう最低幅を保ち、横にスクロールして見る */
  .figure { flex: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .figure svg { width: 100%; min-width: 720px; height: auto; }
  .figure-hint { display: block !important; font-size: 11px; color: var(--ink-light); text-align: center; margin: 6px 0 0; }
  table.grid { display: block; overflow-x: auto; }

  .footer { position: static; margin-top: 20px; font-size: 11px; gap: 8px; }
  .footer img { height: 16px; }
  .hint { display: none; }
}

/* ── タッチ端末用の前後ボタン（マウス操作の端末では出さない） ── */
.touch-nav { display: none; }
@media (hover: none) and (pointer: coarse) {
  .touch-nav {
    position: fixed; right: 14px; bottom: 14px; z-index: 10;
    display: flex; align-items: center; gap: 4px;
    background: var(--surface-inverse); color: var(--inverse-ink);
    border-radius: 999px; padding: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
    font-family: var(--font-sans);
  }
  .touch-nav button {
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: transparent; color: inherit; font-size: 26px; line-height: 1; cursor: pointer;
  }
  .touch-nav button:active { background: rgba(255,255,255,.15); }
  .touch-nav span { font-size: 12px; letter-spacing: .08em; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
  .hint { display: none; }
}
@media print { .touch-nav { display: none !important; } }

/* ── 部品: 2列の数字、見出し直下の導入文 ── */
.stats.two { grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.stats.two .stat { padding: 14px 24px 12px; }
.stats.two .stat .n { font-size: 44px; }
.lead { font-size: 20px; margin: 4px 0 0; color: var(--ink-mid); }
@media (max-width: 760px) and (orientation: portrait) {
  .stats.two { grid-template-columns: 1fr 1fr; }
  .stats.two .stat .n { font-size: 30px; }
  .lead { font-size: 14px; }
}

/* ── 部品: 一文を大きく見せるカード（引用・仮説など） ── */
.cards.one { grid-template-columns: 1fr; flex: 0 0 auto; }
.cards.one h3 { font-size: 32px; line-height: 1.6; }
@media (max-width: 760px) and (orientation: portrait) {
  .cards.one h3 { font-size: 19px; }
}

/* ── 白地の配色（<body class="white">）: 白背景・ワインレッドの文字・ピンクの多面体 ── */
body.white {
  --ink: #6e2233;
  --ink-mid: #5c2a36;
  --ink-light: #8a5d68;
}
html:has(body.white), body.white { background: #ffffff; }
body.white .slide, body.white .slide.inverse { background: #ffffff; }
body.white .slide.inverse .kicker { color: var(--accent-gold); }
body.white .slide.inverse .footer { color: var(--ink-light); }
body.white .big-quote { color: var(--ink); }
body.white .big-quote .em { color: var(--sakura-deep); }
body.white .card { border-color: var(--sakura-light); }
.poly { position: absolute; pointer-events: none; }
.poly.big { right: -30px; top: 50%; transform: translateY(-50%); width: 500px; height: 500px; opacity: .9; }
.poly.corner { right: 32px; top: 24px; width: 72px; height: 72px; }
@media (max-width: 760px) and (orientation: portrait) {
  .poly.big { width: 240px; height: 240px; right: -60px; opacity: .6; }
  .poly.corner { width: 36px; height: 36px; right: 12px; top: 12px; }
}
body.white .slide.inverse .poly.big { right: -150px; width: 440px; height: 440px; opacity: .55; }

/* ── 部品: 上下の真ん中に置く（.middle）、文字を大きくしたカード（.cards.roomy） ── */
.middle, .cards.roomy { margin-top: auto; margin-bottom: auto; }
.cards.roomy { flex: 0 0 auto; }
.cards.roomy .card { padding: 34px 32px; gap: 14px; }
.cards.roomy h3 { font-size: 27px; word-break: auto-phrase; }
.cards.roomy p { font-size: 21px; line-height: 1.7; }
@media (max-width: 760px) and (orientation: portrait) {
  .middle, .cards.roomy { margin-top: 0; margin-bottom: 0; }
  .cards.roomy .card { padding: 18px; gap: 10px; }
  .cards.roomy h3 { font-size: 18px; }
  .cards.roomy p { font-size: 14px; }
  body.white .slide.inverse .poly.big { width: 200px; height: 200px; right: -70px; opacity: .4; }
}

/* ── 部品: マウスを乗せると中身が出るカード（.cards.peek） ──
   見出しだけを見せておき、乗せると .peek-body が浮かび上がる。
   マウスのない端末と印刷では、最初から全部見せる */
.cards.peek .card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; outline: none; }
.cards.peek .card:hover, .cards.peek .card:focus-visible { border-color: var(--sakura-mid); box-shadow: 0 12px 30px var(--shadow-raised); transform: translateY(-2px); }
.cards.peek .peek-body { opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; display: flex; flex-direction: column; gap: 10px; }
.cards.peek .card:hover .peek-body, .cards.peek .card:focus-visible .peek-body { opacity: 1; transform: none; }
.cards.four.peek .peek-body { gap: 4px; }
.peek-hint { font-size: 14px; letter-spacing: .04em; color: var(--ink-light); margin: -20px 0 14px; }
.peek-hint .touch { display: none; }
/* マウスのない端末：タップで開閉するアコーディオン（開閉は deck.js） */
@media (hover: none) {
  .cards.peek .card { cursor: pointer; transform: none !important; }
  .cards.peek .peek-body { opacity: 1; transform: none; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .cards.peek .card.open .peek-body { max-height: 480px; }
  .cards.peek .card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .cards.peek .card h3::after { content: "＋"; font-family: var(--font-sans); font-weight: 400; color: var(--accent-gold); flex: none; }
  .cards.peek .card.open h3::after { content: "−"; }
  .peek-hint .mouse { display: none; }
  .peek-hint .touch { display: inline; }
}
@media print {
  .cards.peek .peek-body { opacity: 1; transform: none; max-height: none; }
  .cards.peek .card h3::after { content: none; }
  .peek-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cards.peek .card, .cards.peek .peek-body { transition: none; }
}

/* ── 部品: 1枚だけ暗い地にする（.slide.dark）。色はコーポレートサイトのダーク配色と同値 ── */
.slide.dark, body.white .slide.dark {
  --ink: #ede6e4; --ink-mid: #c9bfc0; --ink-light: #968b8e;
  --paper-dark: #3a3037;
  --accent: #d98a9b; --accent-gold: #d4919e; --accent-pale: #3b2a31;
  --sakura-deep: #e79aa4; --sakura-mid: #a56671; --sakura-light: #4a333c; --sakura-pale: #251d23;
  --surface-raised: #24231f; --shadow-raised: rgba(0,0,0,0.5);
  background: #161316; color: var(--ink);
}
.slide.dark .poly polygon { stroke: #161316; }
.slide.dark .footer img { border-radius: 4px; }

/* ── 部品: スライドの終わりに出す金額の比較（.cards.one.peek.price-cmp） ──
   上に種類のカードを並べ、最後にこの帯へマウスを乗せて料金を出す（マウスのない端末ではタップで開く） */
.cards.pair.compact .card { padding: 20px 32px; gap: 6px; }
.cards.pair.compact p { font-size: 20px; line-height: 1.6; }
.cards.price-cmp { flex: 0 0 auto; margin-top: 20px; }
.cards.price-cmp .card { padding: 16px 32px; gap: 6px; }
.price-cmp .row { display: flex; align-items: baseline; gap: 18px; }
.cards.price-cmp h3 { font-size: 22px; line-height: 1.4; }
.price-cmp .row .peek-hint { margin: 0; transition: opacity .2s ease; }
.price-cmp .card:hover .row .peek-hint, .price-cmp .card:focus-visible .row .peek-hint { opacity: 0; }
.price-cmp .cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.price-cmp .cmp .who { margin-bottom: 2px; }
.price-cmp .v { font-family: var(--font-mincho); font-weight: 700; font-size: 32px; line-height: 1.3; letter-spacing: .04em; color: var(--accent); }
.price-cmp .cmp .muted { font-size: 15px; line-height: 1.6; }
@media (hover: none) { .price-cmp .row { display: block; } .price-cmp .row .peek-hint { display: none; } }
/* 種類のカードを4枚横に並べる（.cards.four.across）。料金の比較を4列にする（.cmp.four） */
.cards.four.across { grid-template-columns: repeat(4, 1fr); flex: 0 0 auto; gap: 16px; }
.cards.four.across .card { padding: 16px 20px; }
.cards.four.across h3 { font-size: 19px; word-break: auto-phrase; }
.cards.four.across p { font-size: 15px; line-height: 1.6; }
.price-cmp .cmp.four { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-cmp .cmp.four .v { font-size: 25px; }
.price-cmp .cmp.four .muted { font-size: 13px; line-height: 1.5; }
.cards.pair.basics { margin-top: 28px; }
/* 表紙の副題が2行になる資料（.slide.title.sub2）は、行間と余白を少し詰める */
.title.sub2 .sub { font-size: 24px; line-height: 1.6; }
.title.sub2 .rule { margin: 28px 0 22px; }
@media (max-width: 760px) and (orientation: portrait) {
  .cards.pair.compact .card { padding: 16px 18px; }
  .cards.pair.compact p { font-size: 14px; }
  .cards.price-cmp { margin-top: 12px; }
  .cards.price-cmp .card { padding: 16px 18px; }
  .cards.price-cmp h3 { font-size: 17px; }
  .price-cmp .cmp { grid-template-columns: 1fr; gap: 12px; }
  .cards.four.across, .price-cmp .cmp.four { grid-template-columns: 1fr; }
  .price-cmp .cmp.four .v { font-size: 22px; }
  .price-cmp .v { font-size: 24px; }
  .title.sub2 .sub { font-size: 15px; }
  .title.sub2 .rule { margin: 24px 0 18px; }
}

/* ── 部品: マウスを乗せると浮き上がるカード（.cards.lift） ── */
.cards.lift .card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cards.lift .card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px var(--shadow-raised); border-color: var(--sakura-mid); }
@media (hover: none), (prefers-reduced-motion: reduce) { .cards.lift .card:hover { transform: none; } }

/* ── 部品: 番号つきの決まりごと（ol.rules）。話す項目は .pick で目立たせる ── */
ol.rules { list-style: none; counter-reset: r; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 4px; }
ol.rules li { counter-increment: r; position: relative; word-break: auto-phrase; padding: 14px 18px 14px 64px; font-size: 20px; line-height: 1.6; background: var(--surface-raised); border: .5px solid var(--paper-dark); }
ol.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 18px; top: 13px; font-family: var(--font-mincho); font-weight: 700; font-size: 22px; color: var(--accent-gold); }
ol.rules li.pick { border: 1.5px solid var(--sakura-deep); box-shadow: 0 8px 22px var(--shadow-raised); color: var(--ink); }
@media (max-width: 760px) and (orientation: portrait) {
  ol.rules { grid-template-columns: 1fr; gap: 8px; }
  ol.rules li { font-size: 14px; padding: 10px 12px 10px 46px; }
  ol.rules li::before { left: 12px; top: 9px; font-size: 16px; }
}
