/* =========================================================
   起業の本質 — 第一章 無料公開リーダー
   黒×ゴールド×明朝、縦書き、モバイル最優先
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --bg-elev: #1d1d1d;
  --gold: #c9a961;
  --gold-bright: #e3c47d;
  --gold-deep: #8a7340;
  --ink: #f1ece2;
  --ink-soft: #c9c2b3;
  --ink-mute: #8a8478;
  --rule: #2a2620;

  --serif-jp: "Hiragino Mincho ProN", "Hiragino Mincho Pro",
              "游明朝", "Yu Mincho", YuMincho, "MS PMincho",
              "Noto Serif JP", serif;
  --sans-jp: "游ゴシック", "Yu Gothic", YuGothic, "Hiragino Sans",
             "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;

  --reader-fz: 17px;          /* updated by JS */
  --reader-line: 2.05;        /* generous line spacing to match Kindle's feel */
  --inset-block: clamp(2rem, 8vh, 4.5rem);
  --inset-inline: clamp(1rem, 4vw, 2rem);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-jp);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body { overflow: hidden; }

/* =========================================================
   1. SPLASH — 最初に表示される表紙画面
   ========================================================= */

.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: calc(1.5rem + var(--safe-top)) 1.2rem calc(1.5rem + var(--safe-bottom));
  background:
    radial-gradient(ellipse at 50% 30%, #1a1612 0%, #0a0a0a 70%),
    var(--bg);
  z-index: 50;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.splash[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex; /* keep layout for transition */
}

.splash__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.splash__badge {
  font-family: var(--sans-jp);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.splash__headline {
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.splash__deadline {
  font-family: var(--sans-jp);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin: 0;
  text-align: center;
}

.splash__cover {
  width: min(78vw, 320px);
  max-height: min(58vh, 460px);
  height: auto;
  /* object-fit: contain にして書影全体が見える形にする
     (cover だと上下端の文字が切れる)。aspect-ratio は外す。 */
  object-fit: contain;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(201, 169, 97, 0.2);
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
}

.splash__cta {
  appearance: none;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--gold-deep);
  padding: 0.8rem 1.8rem;
  border-radius: 2px;
  font-family: var(--sans-jp);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.splash__cta:hover,
.splash__cta:active {
  background: rgba(201, 169, 97, 0.08);
  color: var(--gold);
  border-color: var(--gold);
}

/* =========================================================
   2. READER — 縦書き本文
   ========================================================= */

.reader {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
}

.reader.is-active { display: flex; }

/* --- Top bar --- */
.reader__bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: calc(48px + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0));
  pointer-events: none;
  font-family: var(--sans-jp);
  transition: opacity 0.3s;
}

.reader__bar > * { pointer-events: auto; }

.reader.is-immersive .reader__bar,
.reader.is-immersive .reader__progress,
.reader.is-immersive .reader__ctabar,
.reader.is-cta .reader__bar,
.reader.is-cta .reader__progress,
.reader.is-cta .reader__ctabar {
  opacity: 0;
  pointer-events: none;
}

.reader__title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 500;
}

.reader__controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.btn-icon {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif-jp);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-icon:active,
.btn-icon:hover {
  background: var(--bg-elev);
  color: var(--gold);
}

/* --- Reading surface (vertical-rl horizontal scroll) ---
   We use a horizontally scrolling container with two inline-block children laid
   out left-to-right (white-space: nowrap):
     .reader__page (first in DOM, visually LEFT, contains vertical-rl content)
     .cta          (second in DOM, visually RIGHT, horizontal CTA)
   Wait — that's wrong for vertical-rl reading. We want:
     start of book at the RIGHT edge, CTA on the LEFT.
   Solution: put .cta FIRST in DOM order, .reader__page SECOND. */
.reader__surface {
  /* CSS layout determines the reading area instead of JS measurements:
       top    = below the top bar
       bottom = above the slider + CTA bar + safe-area + extra cushion
     The +80px cushion is intentional empty space above the slider so that
     even with iOS Safari sub-pixel quirks or font metric drift, the very
     last character in any column is visually well inside the page. */
  position: absolute;
  top: calc(48px + var(--safe-top));
  bottom: calc(var(--ctabar-height, 64px) + 80px + var(--safe-bottom));
  left: 0;
  right: 0;
  white-space: nowrap;
  font-size: 0;                /* eat inline-block whitespace gaps */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reader__surface::-webkit-scrollbar { display: none; }

.reader__surface > * {
  display: inline-block;
  vertical-align: top;
  font-size: 1rem;             /* restore font-size for child content */
  white-space: normal;
}

.reader__page {
  /* Body of the chapter — one continuous vertical-rl block.
     Height is determined by the parent .reader__surface which already
     subtracts the top bar and the slider + CTA bar via top/bottom
     positioning. We just fill that with height: 100%. No JS measurement
     of viewports is involved — the browser does the math. */
  display: inline-block;
  overflow: hidden;
  height: 100%;
  padding-top: var(--inset-block);
  padding-right: var(--inset-inline);
  padding-bottom: var(--inset-block);
  padding-left: var(--inset-inline);
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  font-feature-settings: "vert", "vkrn";
  font-size: var(--reader-fz);
  line-height: var(--reader-line);
  color: var(--ink);

  /* Japanese vertical typography defaults */
  text-orientation: upright;          /* digits / Latin display upright, not rotated */
  /* word-break: keep-all は CJK の途中で改行させない指定で、空白の
     ない日本語ではテキスト全体が「1単語」扱いになって折返さなくなる
     (= 段落がページ高を越えると無音で消える)。normal にして任意位置
     で改行させる。 */
  word-break: normal;
  line-break: strict;
  hanging-punctuation: allow-end;
}

/* 英字ラン (SNS / Well-being / TikTok 等) は Kindle と同じく
   1マス1文字で縦積みさせつつ、隣の和文字との境目に少しだけ
   余白を入れて視認性を上げる。word-break: normal 環境では
   ブラウザが行末で自動的に折り返してくれるので、margin で
   多少縦方向にズレても「最終文字が見切れる」現象は出ない。 */
.reader__page .lat {
  margin-top: 0.15em;
  margin-bottom: 0.15em;
}

.reader__page p {
  margin: 0 0 1.4em 0;        /* in vertical-rl, this is left-to-right paragraph gap */
  text-align: start;
  text-indent: 1em;
}

.reader__page h1.heading-h1 {
  font-size: 1.55em;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 1.5em 2em 0;
  color: var(--gold);
  border-right: 2px solid var(--gold);
  padding-right: 0.6em;
}

.reader__page h2 {
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 1em 1.6em 0;
  color: var(--gold-bright);
}

/* Sub-headings inside a section ("第N段階：〜", "STEP N：〜", "①〜").
   Not in TOC, but visually distinct: bold and slightly enlarged. */
.reader__page .sublabel {
  font-size: 1.04em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin: 0 0.8em 1em 0;
  text-indent: 0;
}

/* Bullet list (・). Render as proper list with hanging indent in vertical-rl. */
.reader__page .bullets {
  list-style: none;
  padding: 0;
  margin: 0 1em 1.4em 0;
}

.reader__page .bullets li {
  margin: 0 0.6em 0.5em 0;
  padding-right: 1.1em;
  position: relative;
  text-indent: 0;
}

.reader__page .bullets li::before {
  content: '・';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--gold-deep);
}

/* Bold label inside a bullet ("劣等感：〜" の "劣等感：" 部分) */
.reader__page .lbl {
  font-weight: 700;
  color: var(--ink);
}

.reader__page h3 {
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0.8em 1.2em 0;
  color: var(--ink);
  border-right: 1px solid var(--gold-deep);
  padding-right: 0.5em;
}

.reader__page .scene-break {
  text-align: center;
  color: var(--gold-deep);
  letter-spacing: 1.2em;
  /* margin-block in vertical-rl = before+after the divider in reading flow */
  margin-block: 4em;
  margin-inline: 0;
  font-size: 1em;
  break-inside: avoid;
}

/* Number/Latin runs upright in vertical text */
/* Avoid orphaned punctuation/short fragments at top of next column */
.reader__page p {
  break-inside: auto;
}

/* --- Tap zones (transparent overlay for page turn) --- */
.reader__zones {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 10;
  pointer-events: none;
}
.reader__zones > * { pointer-events: auto; }

.reader__zone {
  flex: 1;
  background: transparent;
  border: none;
  cursor: pointer;
}

.reader__zone--prev { /* right side = previous in vertical-rl flow */
  order: 2;
}
.reader__zone--toggle { /* center = toggle UI */
  flex: 0 0 32%;
  order: 1;
}
.reader__zone--next { /* left side = next */
  order: 0;
}

/* Bottom veil retired — CSS-driven layout (top/bottom positioned surface +
   height:100% on page) already prevents clipping; the veil's gradient fade
   was making clean glyphs LOOK clipped. Hidden until proven needed again. */
.reader__bottom-veil { display: none; }

/* --- Debug overlay (?debug=1) --- */
.debug {
  position: fixed;
  top: calc(48px + var(--safe-top));
  left: 0;
  z-index: 90;
  margin: 0;
  padding: 0.6rem 0.8rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #4ade80;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 4px;
  max-width: 90vw;
  white-space: pre-wrap;
  pointer-events: none;
}
.debug[hidden] { display: none; }

/* --- Bottom navigation slider (drag to jump anywhere in the chapter) --- */
.reader__slider-wrap {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--ctabar-height, 64px) + var(--safe-bottom));
  height: 32px;
  z-index: 33;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.95) 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.reader.is-immersive .reader__slider-wrap,
.reader.is-cta .reader__slider-wrap {
  opacity: 0;
  pointer-events: none;
}

/* The native range input, styled to match theme */
.reader__slider {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.reader__slider::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--gold) 0%,
    var(--gold) var(--slider-fill, 0%),
    rgba(201, 169, 97, 0.18) var(--slider-fill, 0%),
    rgba(201, 169, 97, 0.18) 100%
  );
  border-radius: 1px;
}
.reader__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-bright);
  margin-top: -6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,169,97,0.4);
  cursor: pointer;
}
.reader__slider::-moz-range-track {
  height: 2px;
  background: rgba(201, 169, 97, 0.18);
  border-radius: 1px;
}
.reader__slider::-moz-range-progress {
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.reader__slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,169,97,0.4);
  cursor: pointer;
}

/* --- Top thin progress line (sits below the top bar) --- */
.reader__progress {
  position: fixed;
  top: calc(48px + var(--safe-top));
  left: 0; right: 0;
  height: 2px;
  background: rgba(201, 169, 97, 0.08);
  z-index: 25;
  pointer-events: none;
  transition: opacity 0.3s;
}

.reader__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.25s ease;
}

/* --- Fixed bottom CTA bar --- */
.reader__ctabar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  /* Solid background to prevent text bleed-through under the bar */
  background: var(--bg);
  border-top: 1px solid rgba(74, 222, 128, 0.3);
  box-shadow: 0 -10px 25px -10px rgba(0, 0, 0, 0.6);
  padding-bottom: var(--safe-bottom);
  transition: opacity 0.3s;
}

.ctabar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.7rem 0.5rem;
  text-decoration: none;
  font-family: var(--sans-jp);
  color: var(--ink);
  text-align: center;
  transition: background 0.15s, transform 0.1s;
  position: relative;
}

.ctabar__item:active {
  transform: translateY(1px);
}

.ctabar__item + .ctabar__item {
  border-left: 1px solid rgba(201, 169, 97, 0.2);
}

.ctabar__item--single {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.10), rgba(74, 222, 128, 0.03));
}

.ctabar__item--single:hover {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.18), rgba(74, 222, 128, 0.05));
}

.ctabar__label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4ade80;                /* primary green for the action label */
}

.ctabar__sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(74, 222, 128, 0.7); /* muted green for the sub text */
}

/* =========================================================
   3. FONT SIZE PANEL
   ========================================================= */

.fontpanel {
  position: fixed;
  top: calc(60px + var(--safe-top));
  right: 0.8rem;
  z-index: 40;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.6rem;
  display: none;
  gap: 0.4rem;
  flex-direction: column;
  font-family: var(--sans-jp);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.fontpanel.is-open { display: flex; }

/* =========================================================
   3b. TABLE OF CONTENTS PANEL
   ========================================================= */

.tocpanel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-family: var(--sans-jp);
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  overflow: hidden;
}

.tocpanel[hidden] { display: none; }

.tocpanel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.tocpanel__title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin: 0;
}

.tocpanel__list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.6rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.tocitem {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 169, 97, 0.08);
  padding: 0.95rem 1.4rem;
  color: var(--ink);
  font-family: var(--sans-jp);
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tocitem:active,
.tocitem:hover {
  background: rgba(201, 169, 97, 0.06);
  color: var(--gold-bright);
}

.tocitem--h1 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.tocitem--h2 { padding-left: 1.4rem; }
.tocitem--h3 {
  padding-left: 2.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.tocitem__num {
  display: inline-block;
  font-family: var(--sans-jp);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  margin-right: 0.7rem;
  min-width: 2em;
}

/* 続巻 (第2章/第3章) — 鍵アイコン + Amazon リンク */
.tocitem--locked {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 97, 0.08);
  font-family: var(--sans-jp);
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  background:
    linear-gradient(90deg, rgba(201, 169, 97, 0.04), transparent 60%);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tocitem--locked:active,
.tocitem--locked:hover {
  background: rgba(201, 169, 97, 0.10);
  color: var(--gold-bright);
}
.tocitem--locked:first-of-type { margin-top: 0.4rem; }
.tocitem__lock {
  flex: 0 0 auto;
  font-size: 0.85rem;
  filter: grayscale(0.4);
  opacity: 0.85;
}
.tocitem--locked .tocitem__label {
  flex: 1 1 auto;
  font-weight: 500;
}
.tocitem--locked .tocitem__sub {
  flex: 0 0 auto;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.fontpanel__row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.fontpanel__row span {
  letter-spacing: 0.15em;
  min-width: 4em;
}

/* =========================================================
   4. CTA — 章末の特典セクション(横書き)
   ========================================================= */

.cta {
  /* Last horizontal page of the reader, sits in inline flow next to .reader__page.
     Height is naturally constrained by the parent surface (top/bottom positioned). */
  height: 100%;
  width: 100vw;
  writing-mode: horizontal-tb;
  -webkit-writing-mode: horizontal-tb;
  display: inline-flex;
  vertical-align: top;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.1rem;
  padding: calc(2.4rem + var(--safe-top)) 1.4rem calc(1.5rem + var(--safe-bottom));
  padding-bottom: calc(40px + var(--safe-bottom));
  background:
    radial-gradient(ellipse at 50% 0%, #1a1612 0%, #0a0a0a 70%),
    var(--bg);
  text-align: center;
  border-left: 1px solid rgba(201, 169, 97, 0.15);
  overflow-y: auto;            /* CTA is scrollable if content exceeds viewport */
}

.cta__divider {
  font-family: var(--sans-jp);
  letter-spacing: 0.5em;
  font-size: 0.68rem;
  color: var(--gold);
  margin: 0;
}

.cta__title {
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 0;
}

.cta__lead {
  font-family: var(--sans-jp);
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.75;
  letter-spacing: 0.03em;
  margin: 0;
  max-width: 28em;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.cta__offers {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.3rem;
}

.offer {
  display: block;
  background: linear-gradient(180deg, rgba(201,169,97,0.08), rgba(201,169,97,0.02));
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.offer:active {
  transform: translateY(1px);
}

.offer:hover {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(201,169,97,0.14), rgba(201,169,97,0.04));
}

.offer__tag {
  font-family: var(--sans-jp);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.offer__heading {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 0.3rem 0;
  color: var(--gold-bright);
}

.offer__body {
  font-family: var(--sans-jp);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.03em;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.offer__cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--sans-jp);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-deep);
  padding: 0.1rem 0;
}

.cta__sign {
  font-family: var(--sans-jp);
  color: var(--ink-mute);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  margin: 0.8rem 0 0;
}

/* =========================================================
   5. RESPONSIVE — タブレット・PC
   ========================================================= */

@media (min-width: 768px) {
  :root {
    --reader-fz: 19px;
    --inset-block: clamp(3rem, 10vh, 6rem);
    --inset-inline: clamp(2rem, 5vw, 4rem);
  }
}

@media (min-width: 1100px) {
  :root {
    --reader-fz: 20px;
  }
  .reader__page {
    column-width: min(560px, 100vw);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .reader__surface { scroll-behavior: auto; }
}
