:root {
  color-scheme: light;
  --ink: #20201e;
  --muted: #6b6a66;
  --paper: #f7f5f2;
  --accent: #315f91;
  --accent-dark: #244b76;
  --line: #e7e3dd;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.reader { width: min(100%, 720px); margin: 0 auto; container-type: inline-size; background: #fff; min-height: 100vh; }
.intro { padding: clamp(28px, 7vw, 60px) clamp(22px, 7vw, 58px) 26px; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(28px, 6.2vw, 46px); line-height: 1.46; letter-spacing: .025em; font-weight: 800; }
.intro-copy { max-width: 30em; margin: 18px auto 0; color: #4c4a47; font-size: clamp(14px, 3.8vw, 17px); line-height: 1.9; text-align: left; }
.fiction { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.manga-pages { list-style: none; margin: 0; padding: 0; }
.manga-page { margin: 0; padding: 0 0 14px; }
.page-art { position: relative; width: 100%; margin: 0; overflow: hidden; background: #fff; line-height: 0; }
.page-art img { display: block; width: 100%; height: auto; }
.bubble-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bubble-text { position: absolute; display: flex; align-items: center; justify-content: center; padding: 1%; color: #171717; text-align: center; white-space: pre-wrap; overflow: hidden; overflow-wrap: anywhere; line-height: 1.3; font-weight: 600; font-size: clamp(8.5px, 2.2cqw, 16px); letter-spacing: .015em; }
.bubble-text.screen, .bubble-text.caption { padding: 1%; border: 1px solid rgba(31, 43, 54, .12); border-radius: 4px; background: rgba(255, 255, 255, .96); font-size: clamp(8px, 1.8cqw, 12px); line-height: 1.3; }
.bubble-text.title { padding: 1%; border-radius: 4px; background: rgba(255, 255, 255, .88); font-size: clamp(10px, 2.6cqw, 18px); font-weight: 750; }
.bubble-text.screen { text-align: left; font-weight: 650; }
.bubble-text.added { border: 1px solid rgba(31, 43, 54, .4); border-radius: 50%; background: rgba(255, 255, 255, .96); }
.dialogue-fallback { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.dialogue-fallback[hidden] { display: none; }
.dialogue-fallback p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; }
.dialogue-fallback p:last-child { margin-bottom: 0; }
.dialogue-fallback strong { color: var(--accent-dark); }
.transcript { padding: 0 18px 14px; color: #4b4946; }
.all-transcript { margin: 0 22px 12px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.transcript summary { width: fit-content; color: var(--accent-dark); font-size: 12px; text-decoration: underline; cursor: pointer; }
.transcript-content { padding: 9px 0 0; }
.transcript-page { padding: 0 0 12px; }
.transcript-page h3 { margin: 0 0 5px; color: var(--accent-dark); font-size: 13px; }
.transcript-content p { margin: 0 0 8px; font-size: 13px; line-height: 1.75; }
.transcript-content p:last-child { margin-bottom: 0; }
.transcript-content strong { color: var(--accent-dark); }
.closing { padding: 36px 24px 48px; border-top: 1px solid var(--line); text-align: center; background: #f4f7fa; }
.closing-kicker { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h2 { margin: 0; font-size: clamp(21px, 5.2vw, 30px); line-height: 1.5; }
.closing-copy { margin: 11px 0 22px; color: #5b5a57; font-size: 14px; line-height: 1.7; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; width: min(100%, 430px); padding: 14px 22px; border-radius: 8px; color: #fff; background: var(--accent); font-weight: 750; font-size: clamp(16px, 4vw, 18px); text-decoration: none; box-shadow: 0 5px 0 var(--accent-dark); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.cta:hover { background: #284f79; transform: translateY(2px); box-shadow: 0 3px 0 var(--accent-dark); }
.cta:focus-visible, .transcript summary:focus-visible { outline: 3px solid #e39b27; outline-offset: 4px; }
.closing-fiction { margin-top: 26px; }
.loading { padding: 30px; text-align: center; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { transition: none; } }
