/* =========================================================
   ゆげ サンプルデッキ「こもれび ケータリングのご提案」
   正本：system/SLIDES.md（寸法・文字・12レイアウト・9章の標準値）／DESIGN.md（色・角丸・写真・メニューの作法）
   1920×1080 のステージを JS で拡大縮小する。寸法はすべてステージ上の px（box-sizing: border-box）。
     外周 左右 120 / 上 96 / 下 144（家具の帯 y 984〜1080）。本文領域 x 120〜1800、y 96〜936
     タイトル組：ラベル y96（24px Bold）→ タイトル y144（56px Bold）→ 本文 y272（比較は 344）
     罫 2px #D6CFC7、角丸 8 / 12 / 16、影はカードだけ 0 8px 24px 10%
     文字 表紙 88 / 章題 80 / 一文 64 / タイトル 56 / 引用 44 / 小見出し 36 / 本文 32 / カード・表 28 / 注記・家具 24（最小）
   ========================================================= */

:root {
  --bg: #FAF3E7; --surface: #FFFDF8; --text: #3B2F2A; --text-2: #8A7A6D;
  --accent: #C2603E; --matcha: #7D8C5C; --azuki: #9C5B5B; --tamago: #E3A72F; --wood: #A9805A;
  --line: #D6CFC7; --on-photo: #FFFDF8;
  --tint-accent: #F5E4DA; --tint-azuki: #EFE3DF; --tint-matcha: #EAEBDF; --tint-tamago: #FBEFD8; --tint-wood: #F1E9DF;
  --font-slide: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  --card-shadow: 0 8px 24px rgba(59, 47, 42, .10);
}
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 表示枠（閲覧画面。スライドの外の部品なので Web の書体と寸法） ---------- */
html, body.deck { height: 100%; }
body.deck { margin: 0; background: var(--text); overflow: hidden; }
.deck-stage { position: fixed; left: 0; top: 0; right: 0; bottom: 44px; overflow: hidden; cursor: pointer; }
.deck-scaler { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform: translate(-50%, -50%) scale(var(--k, .5)); }
.deck-scaler > .slide { position: absolute; left: 0; top: 0; }
.deck-scaler > .slide:not(.is-active) { display: none; }
.deck-bar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; gap: 24px; padding: 0 24px; box-sizing: border-box;
  background: var(--surface); border-top: 1px solid var(--line);
  font-family: "Noto Sans JP", sans-serif; font-size: 13px; line-height: 1.5; color: var(--text);
}
.deck-bar p { margin: 0; }
.deck-bar__hint { color: var(--text-2); }
.deck-bar__count { margin-left: auto !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deck-bar__nav { display: flex; gap: 8px; }
.deck-bar__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 36px; padding: 0;
  border: 1px solid var(--text-2); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit;
}
.deck-bar__btn:hover { background: rgba(59, 47, 42, .05); }
.deck-bar__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.deck-bar__links { display: flex; gap: 16px; }
.deck-bar a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; white-space: nowrap; }
.deck-bar a:focus-visible, .deck-bar__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 767px) {
  /* スマホ幅：1行目＝ボタン＋カウンタ、2行目＝リンク。高さ 96px 固定でステージの bottom と揃える */
  .deck-stage { bottom: 96px; }
  .deck-bar { height: 96px; flex-wrap: wrap; align-content: center; column-gap: 16px; row-gap: 4px; padding: 8px 16px; }
  .deck-bar__hint { display: none; }
  .deck-bar__count { margin-left: 0 !important; }
  .deck-bar__links { flex: 1 0 100%; flex-wrap: wrap; column-gap: 16px; row-gap: 0; }
  .deck-bar__links a { display: inline-flex; align-items: center; min-height: 32px; }
}

/* ---------- スライドの共通 ---------- */
.slide {
  position: relative; width: 1920px; height: 1080px; overflow: hidden; box-sizing: border-box;
  background: var(--bg); color: var(--text);
  font-family: var(--font-slide); font-weight: 500; font-size: 32px; line-height: 1.7; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.slide *, .slide *::before, .slide *::after { box-sizing: border-box; }
.slide h1, .slide h2, .slide h3, .slide p, .slide ul, .slide ol, .slide li, .slide figure, .slide blockquote, .slide table, .slide dl, .slide dd { margin: 0; padding: 0; }
.slide ul, .slide ol { list-style: none; }
.slide h1, .slide h2, .slide h3, .slide strong { font-weight: 700; }
.slide svg { display: block; }
.slide .abs { position: absolute; }
.sub { color: var(--text-2); }
.steam { fill: none; stroke: currentColor; stroke-linecap: round; }

/* 家具（3章）：表紙・クロージング以外 */
.f-deck, .f-page { position: absolute; top: 996px; height: 36px; font-size: 24px; line-height: 1.5; letter-spacing: .04em; color: var(--text-2); white-space: nowrap; }
.f-deck { left: 120px; }
.f-page { right: 120px; }
.f-page b { font-weight: 500; color: var(--text); }

/* タイトル組（5.3・9.3） */
.s-label { position: absolute; left: 120px; top: 96px; height: 36px; font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; color: var(--text-2); white-space: nowrap; }
.s-label b { color: var(--accent); margin-right: 16px; }
.s-title { position: absolute; left: 120px; top: 144px; max-width: 1680px; font-size: 56px; line-height: 1.4; letter-spacing: .02em; white-space: nowrap; }

/* ロゴ（9.5）：湯気の印 48 ＋ 16 ＋店名 32px Bold */
.logo { display: flex; align-items: center; gap: 16px; height: 48px; font-size: 32px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.logo svg { width: 48px; height: 48px; color: var(--accent); stroke-width: 1.5; flex: none; }

/* 状態札（7.3・9.5）：高さ 40、縁 2、左右 16、24px Bold、角丸 8 */
.tags { display: flex; gap: 8px; height: 40px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 2px solid var(--tag-line); border-radius: 8px; background: var(--tag-face);
  font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: .04em; white-space: nowrap; color: var(--text);
}
.tag svg { width: 24px; height: 24px; color: var(--accent); stroke-width: 2; }
.tag--recommend { --tag-line: var(--accent); --tag-face: var(--tint-accent); }
.tag--spring { --tag-line: var(--azuki); --tag-face: var(--tint-azuki); }
.tag--summer { --tag-line: var(--matcha); --tag-face: var(--tint-matcha); }
.tag--autumn { --tag-line: var(--tamago); --tag-face: var(--tint-tamago); }
.tag--winter { --tag-line: var(--wood); --tag-face: var(--tint-wood); }
.note { font-size: 24px; line-height: 1.6; letter-spacing: .04em; color: var(--text-2); }

/* ---------- 01 表紙（6.1・9.6） ---------- */
.l-cover { color: var(--on-photo); }
.cover-photo { position: absolute; inset: 0; width: 1920px; height: 1080px; object-fit: cover; object-position: 50% 55%; }
.cover-scrim { position: absolute; left: 0; top: 0; width: 1152px; height: 1080px;
  background: linear-gradient(to right, rgba(59, 47, 42, .72) 0, rgba(59, 47, 42, .72) 960px, rgba(59, 47, 42, 0) 1152px); }
.l-cover .logo { position: absolute; left: 120px; top: 96px; }
/* 写真の上には湯気の印を置かず、店名の文字だけ（DESIGN.md 3.2・SLIDES.md 6.1） */
.cover-main { position: absolute; left: 120px; top: 360px; width: 840px; }
.cover-label { height: 36px; font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.cover-title { margin-top: 24px !important; font-size: 88px; line-height: 1.3; letter-spacing: .02em; }
.cover-sub { margin-top: 40px !important; font-size: 32px; line-height: 1.7; white-space: nowrap; }
.cover-meta { position: absolute; left: 120px; top: 948px; display: flex; gap: 48px; height: 36px; font-size: 24px; line-height: 1.5; white-space: nowrap; }

/* ---------- 02 目次（6.2・9.7） ---------- */
.toc { position: absolute; left: 120px; top: 272px; width: 1200px; border-top: 2px solid var(--line); }
.toc li { display: flex; align-items: center; height: 104px; border-bottom: 2px solid var(--line); }
.toc__num { width: 96px; flex: none; font-size: 32px; font-weight: 700; line-height: 1; color: var(--text-2); }
.toc__name { flex: 1 1 auto; font-size: 36px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; }
.toc__ch { flex: none; font-size: 24px; line-height: 1.6; color: var(--text-2); }

/* ---------- 03 章扉（6.3・9.8） ---------- */
.ch-num { position: absolute; left: 120px; top: 280px; font-size: 160px; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--accent); }
.ch-title { position: absolute; left: 120px; top: 472px; width: 1200px; font-size: 80px; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; }
.ch-lead { position: absolute; left: 120px; top: 616px; width: 1200px; font-size: 32px; line-height: 1.7; color: var(--text-2); }
.ch-steam { position: absolute; left: 1560px; top: 280px; width: 240px; height: 240px; color: var(--wood); stroke-width: .4; } /* 24 の座標で 0.4 → 240px 表示で線幅 4px */

/* ---------- 04 本文（6.4・9.9） ---------- */
.body-col { position: absolute; left: 120px; top: 272px; width: 1200px; }
.body-lead { font-size: 32px; line-height: 1.7; }
.bullets { margin-top: 32px !important; }
.bullets li { position: relative; padding-left: 40px; font-size: 32px; line-height: 1.7; }
.bullets li + li { margin-top: 16px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 25.2px; width: 16px; height: 4px; background: var(--wood); }

/* ---------- 05 2カラム（6.5・9.10） ---------- */
.col { position: absolute; top: 272px; width: 800px; }
.col--l { left: 120px; } .col--r { left: 1000px; }
.col-rule { position: absolute; left: 959px; top: 272px; width: 2px; height: 584px; background: var(--line); }
.col h3 { font-size: 36px; line-height: 1.5; letter-spacing: .02em; }
.col__body { margin-top: 24px !important; font-size: 32px; line-height: 1.7; }
.mrows { margin-top: 32px !important; }
.mrow { display: flex; align-items: flex-end; height: 42px; font-size: 28px; line-height: 1.5; letter-spacing: .02em; }
.mrow + .mrow { margin-top: 12px; }
.mrow__name { flex: 0 1 auto; white-space: nowrap; }
.mrow__leader { flex: 1 0 48px; margin: 0 16px; border-bottom: 2px dotted var(--text-2); transform: translateY(-9px); }
.mrow__price { flex: none; text-align: right; white-space: nowrap; }
.mrow--total { font-weight: 700; }
.col .note { margin-top: 24px !important; }

/* ---------- 06 ビジュアル中心（6.6・9.11） ---------- */
.vis-photo { position: absolute; left: 120px; top: 272px; width: 1120px; height: 630px; border-radius: 12px; object-fit: cover; }
.vis-photo--4x3 { width: 840px; }
.vis-text { position: absolute; left: 1320px; width: 480px; bottom: 178px; } /* 下端 902 */
.vis-text--4x3 { left: 1040px; width: 760px; }
.vis-text h3 { font-size: 36px; line-height: 1.5; letter-spacing: .02em; }
.vis-text p { margin-top: 24px !important; font-size: 32px; line-height: 1.7; }
.vis-text .note { font-size: 24px; line-height: 1.6; }

/* ---------- 07 カード3枚（6.7・9.12） ---------- */
.cards { position: absolute; left: 120px; top: 272px; display: flex; gap: 48px; }
.card { position: relative; width: 528px; height: 600px; padding: 48px 40px; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--card-shadow); overflow: hidden; }
.card--photo { height: 640px; padding: 0; }
.card__photo { display: block; width: 524px; height: 349.33px; object-fit: cover; border-radius: 14px 14px 0 0; }
.card__in { padding: 28px 40px 0; }
.card .tags { margin-bottom: 12px; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; height: 54px; }
.card__name { font-size: 36px; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; }
.card__price { font-size: 28px; line-height: 1.5; white-space: nowrap; }
.card__body { margin-top: 12px !important; font-size: 28px; line-height: 1.7; }
.card__allergy { font-size: 24px; line-height: 1.6; color: var(--text); }
.cards-note { position: absolute; right: 120px; top: 230px; }

/* ---------- 08 表（6.8・9.13） ---------- */
.s-table { position: absolute; left: 120px; top: 272px; width: 1680px; border-collapse: collapse; table-layout: fixed; }
.s-table th, .s-table td { padding: 0 24px; text-align: left; vertical-align: middle; border-bottom: 2px solid var(--line); }
.s-table thead th { height: 72px; font-size: 24px; font-weight: 500; line-height: 1.5; color: var(--text-2); }
.s-table tbody th, .s-table tbody td { height: 88px; font-size: 28px; line-height: 1.5; }
.s-table tbody th { font-weight: 700; }
.s-table tr > :first-child { padding-left: 0; }
.s-table tr > :last-child { padding-right: 0; }
.s-table .r { text-align: right; }
.table-note { position: absolute; left: 120px; width: 1680px; }

/* ---------- 09 ステップ（6.9・9.14） ---------- */
.steps { position: absolute; left: 120px; top: 272px; display: flex; gap: 48px; }
.step { position: relative; width: 384px; }
.step__num { display: inline-block; position: relative; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.step:first-child .step__num { color: var(--accent); }
.step__line { position: absolute; top: 31px; height: 2px; background: var(--line); }
.step h3 { margin-top: 40px !important; font-size: 36px; line-height: 1.5; letter-spacing: .02em; }
.step p { margin-top: 16px !important; font-size: 28px; line-height: 1.7; }

/* ---------- 10 声・引用（6.10・9.15） ---------- */
.q-mark { position: absolute; left: 120px; top: 240px; font-size: 160px; font-weight: 700; line-height: 1; color: var(--wood); }
.q-box { position: absolute; left: 240px; width: 1280px; top: 520px; transform: translateY(-50%); }
.q-text { font-size: 44px; font-weight: 700; line-height: 1.7; letter-spacing: .02em; }
.q-src { margin-top: 48px !important; font-size: 24px; line-height: 1.6; color: var(--text-2); }

/* ---------- 11 比較（6.11・9.16） ---------- */
.cmp-frame { position: absolute; left: 1160px; top: 320px; width: 640px; height: 504px; border: 2px solid var(--accent); border-radius: 16px; }
.slide .cmp-tag { position: absolute; left: 1160px; top: 256px; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 2px solid var(--accent); border-radius: 8px; background: var(--bg); font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: .04em; }
.cmp { position: absolute; left: 120px; top: 344px; width: 1680px; }
.cmp__row { display: flex; gap: 40px; }
.cmp__row > * { border-bottom: 2px solid var(--line); display: flex; align-items: center; }
.cmp__row--head > * { height: 72px; font-size: 24px; line-height: 1.5; color: var(--text-2); }
.cmp__row--body > * { height: 96px; font-size: 28px; line-height: 1.5; letter-spacing: .02em; }
.cmp__item { width: 320px; color: var(--text-2); }
.cmp__a { width: 640px; color: var(--text-2); }
.cmp__b { width: 640px; padding: 0 24px; color: var(--text); }
.cmp__row--head .cmp__b { color: var(--text); font-weight: 700; }

/* ---------- 12 クロージング（6.12・9.17） ---------- */
.cl-main { position: absolute; left: 120px; width: 1680px; top: 540px; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.cl-line { margin-top: 48px !important; font-size: 64px; line-height: 1.4; letter-spacing: .02em; }
.cl-contact { margin-top: 48px !important; font-size: 32px; font-weight: 500; line-height: 1.6; }
.cl-main .note { margin-top: 32px !important; }

/* ---------- 印刷：1ページ1枚（1920×1080） ---------- */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body.deck { height: auto; overflow: visible; background: none; }
  .deck-bar { display: none; }
  .deck-stage { position: static; overflow: visible; }
  .deck-scaler { position: static; transform: none; width: auto; height: auto; }
  .deck-scaler > .slide { position: relative; display: block !important; break-after: page; }
}
