:root {
  --paper: #fbfaf7;
  --ink: #292634;
  --muted: #706b78;
  --brand: #65528e;
  --brand-dark: #4d3e70;
  --lavender: #eeeaf3;
  --line: #e3dfe7;
  --emergency: #874634;
  --emergency-paper: #f7eee8;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #9276ba;
  outline-offset: 5px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(251 250 247 / 96%);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 20px; }
.site-name { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 650; text-decoration: none; }
.site-symbol { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #c6bad7; color: var(--brand); border-radius: 50%; font-size: 25px; font-weight: 400; line-height: 1; }
.header-divider { width: 1px; height: 14px; background: #cbc3d4; margin-inline: 5px; }
.topic-name { color: var(--muted); font-weight: 400; }
.header-index { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; color: var(--brand); text-decoration: none; font-size: 13px; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: 12px; letter-spacing: .12em; font-weight: 600; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 64px; padding-block: 72px 52px; align-items: end; }
.hero h1 { font-size: clamp(36px, 4.6vw, 57px); line-height: 1.32; letter-spacing: -.045em; }
.hero h1 span { display: block; color: var(--brand); }
.hero-intro { max-width: 610px; margin-top: 25px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.hero-note { border-left: 1px solid #d9d0e3; padding: 5px 0 8px 32px; }
.hero-eight { display: block; color: #9785b2; font-size: 86px; font-weight: 250; letter-spacing: -.08em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero-eight span { margin-left: 11px; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.hero-note p { margin-top: 17px; font-size: 15px; line-height: 1.8; }
.small-label { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }
.emergency-banner { display: flex; gap: 16px; align-items: center; padding: 19px 24px; border: 1px solid #e4cdbf; border-radius: 10px; background: var(--emergency-paper); color: #683c2e; }
.alert-symbol { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid #a77560; border-radius: 50%; font-size: 18px; font-weight: 650; line-height: 1; }
.emergency-banner-copy { flex: 1; }
.emergency-banner strong { display: block; font-size: 15px; line-height: 1.7; font-weight: 650; }
.emergency-banner p { margin-top: 2px; font-size: 12px; }
.emergency-banner-link { flex-shrink: 0; display: inline-flex; gap: 13px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 650; text-decoration: none; }
.emergency-banner-link:hover { text-decoration: underline; }
.contents { padding-block: 42px 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { font-size: 18px; }
.section-heading > span { color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.contents ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.contents li { border-bottom: 1px solid var(--line); }
.contents a { display: flex; gap: 11px; align-items: center; min-height: 60px; padding-block: 10px; font-size: 13px; text-decoration: none; line-height: 1.6; }
.contents a:hover, .contents a[aria-current="location"] { color: var(--brand); }
.toc-number { color: #9a8bab; font-size: 11px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.toc-arrow { margin-left: auto; color: #a394b4; }
.illustration-note { margin-top: 17px; color: var(--muted); font-size: 12px; }
.chapter { padding-block: 48px 58px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.chapter-heading { display: flex; align-items: baseline; gap: 24px; margin-bottom: 27px; }
.chapter-number { color: #b6a6c8; font-size: 36px; font-weight: 300; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.chapter-heading .eyebrow { margin-bottom: 5px; font-size: 11px; }
.chapter h2 { font-size: 26px; line-height: 1.5; letter-spacing: -.025em; }
.chapter-layout { display: grid; grid-template-columns: minmax(0, 448px) minmax(0, 1fr); gap: 72px; align-items: center; }
.chapter-figure { min-width: 0; }
.image-link { display: block; position: relative; border: 1px solid #e5e0e7; border-radius: 12px; background: #fff; overflow: hidden; text-decoration: none; cursor: zoom-in; }
.image-link img { width: 100%; height: auto; }
.image-hint { display: inline-flex; align-items: center; gap: 9px; position: absolute; right: 12px; bottom: 12px; padding: 7px 11px; border: 1px solid rgb(101 82 142 / 16%); border-radius: 6px; color: var(--brand-dark); background: rgb(255 255 255 / 94%); font-size: 11px; line-height: 1.5; box-shadow: 0 2px 8px rgb(41 38 52 / 3%); }
.image-hint svg { width: 15px; height: 15px; }
.image-link:hover .image-hint { background: var(--brand); color: white; border-color: var(--brand); }
.chapter-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; color: var(--muted); font-size: 10px; letter-spacing: .025em; }
.chapter-copy { min-width: 0; }
.reading-note > summary { display: none; }
.reading-label { font-size: 12px; color: var(--brand); letter-spacing: .08em; margin-bottom: 17px; }
.reading-text { font-size: 18px; line-height: 2.12; text-wrap: pretty; }
.chapter-sources { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 30px; }
.chapter-sources p { margin-bottom: 9px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.chapter-sources a { display: block; width: fit-content; max-width: 100%; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.9; text-decoration: none; }
.chapter-sources a:hover { color: var(--brand); text-decoration: underline; }
.chapter-sources a span { margin-left: 4px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; font-size: 13px; color: var(--brand); text-decoration: none; font-weight: 600; }
.emergency-text-link { margin-top: 24px; color: var(--emergency); }
.emergency-section { border-block: 1px solid #e7d4c7; background: var(--emergency-paper); margin-block: 12px 0; padding-block: 61px; }
.emergency-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; }
.emergency-heading .eyebrow { color: var(--emergency); }
.emergency-heading h2 { color: #673b2d; font-size: 36px; line-height: 1.45; letter-spacing: -.03em; }
.emergency-heading > p:not(.eyebrow) { margin-top: 20px; color: #74594f; font-size: 14px; line-height: 1.95; }
.call-emergency { margin-top: 25px; display: inline-flex; align-items: center; gap: 13px; background: var(--emergency); color: #fff; border-radius: 7px; padding: 10px 20px; min-height: 50px; text-decoration: none; font-size: 14px; }
.call-emergency strong { font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.call-emergency > span { margin-left: 16px; font-size: 20px; }
.call-emergency:hover { background: #713b2d; }
.emergency-instructions ol { margin: 0; padding: 0; list-style: none; }
.emergency-instructions li { display: flex; gap: 19px; padding-block: 17px; border-bottom: 1px solid #dfc9bc; }
.emergency-instructions li:first-child { padding-top: 0; }
.emergency-instructions li > span { color: #a57863; font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.emergency-instructions h3 { color: #633b2f; font-size: 15px; margin-bottom: 5px; }
.emergency-instructions li p { color: #74594f; font-size: 13px; line-height: 1.85; }
.emergency-sources { margin-top: 18px; color: #856d62; font-size: 10px; line-height: 1.9; }
.emergency-sources a:hover { color: #633b2f; }
.faq-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; padding-block: 64px 76px; }
.faq-heading h2 { font-size: 26px; letter-spacing: -.02em; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 20px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 550; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { flex-shrink: 0; color: var(--brand); font-weight: 400; font-size: 19px; transition: transform .2s ease; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-answer { padding-bottom: 23px; }
.faq-answer p { font-size: 14px; line-height: 1.95; color: var(--muted); }
.faq-answer > a { display: inline-block; margin-top: 13px; font-size: 10px; color: var(--brand); text-decoration: none; }
.faq-answer > a:hover { text-decoration: underline; }
.site-footer { padding-block: 28px 34px; border-top: 1px solid var(--line); background: #f4f1ee; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-inner p { color: var(--muted); font-size: 10px; line-height: 1.9; }
.footer-inner .footer-title { color: var(--brand-dark); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.footer-dot { margin-inline: 5px; }
.footer-registration { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; }
.footer-registration a { text-decoration: none; }
.footer-registration a:hover { text-decoration: underline; }
.back-top { flex-shrink: 0; display: inline-flex; align-items: center; gap: 15px; min-height: 44px; color: var(--brand); font-size: 12px; text-decoration: none; }
.image-dialog { width: min(940px, calc(100vw - 32px)); height: min(960px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #d9d1e2; border-radius: 12px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 18px 90px rgb(20 15 28 / 25%); }
.image-dialog[open] { display: flex; flex-direction: column; }
.image-dialog::backdrop { background: rgb(26 21 34 / 68%); backdrop-filter: blur(4px); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.viewer-heading { min-width: 0; }
.viewer-heading > span { color: var(--brand); font-size: 10px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.viewer-heading p { margin-top: 2px; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.viewer-actions > a { margin-right: 11px; font-size: 12px; color: var(--brand); text-decoration: none; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--brand); cursor: pointer; }
.icon-button svg { width: 20px; height: 20px; }
.icon-button:hover { background: var(--lavender); }
.icon-button:disabled { opacity: .3; cursor: default; }
.close-button { margin-left: 5px; background: var(--lavender); }
.viewer-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0; background: #eeece9; scrollbar-color: #b7acc8 #eeece9; }
.viewer-scroll img { width: 100%; margin-inline: auto; height: auto; }
.viewer-help { flex-shrink: 0; text-align: center; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

@media (max-width: 1000px) {
  .hero { gap: 36px; grid-template-columns: minmax(0, 1fr) 215px; }
  .hero h1 { font-size: 46px; }
  .chapter-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 42px; }
  .chapter h2 { font-size: 24px; }
  .reading-text { font-size: 16px; }
  .emergency-layout, .faq-section { gap: 40px; }
  .contents ol { gap: 0 18px; }
  .contents a { font-size: 12px; gap: 8px; }
}
@media (max-width: 759px) {
  html { scroll-padding-top: 82px; }
  .wrap { width: min(560px, calc(100% - 40px)); }
  .header-inner { min-height: 62px; gap: 12px; }
  .site-name { gap: 8px; font-size: 13px; }
  .site-symbol { width: 25px; height: 25px; font-size: 21px; }
  .header-divider { margin-inline: 2px; height: 12px; }
  .header-index { gap: 7px; font-size: 11px; }
  .hero { display: block; padding-block: 35px 29px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .08em; margin-bottom: 15px; }
  .hero h1 { font-size: clamp(33px, 7.8vw, 46px); line-height: 1.35; letter-spacing: -.045em; }
  .hero-intro { font-size: 14px; line-height: 1.9; margin-top: 18px; max-width: 420px; }
  .desktop-break { display: none; }
  .hero-note { display: none; }
  .emergency-banner { align-items: flex-start; position: relative; gap: 12px; padding: 16px; flex-wrap: wrap; border-radius: 8px; }
  .alert-symbol { width: 23px; height: 23px; flex-basis: 23px; font-size: 16px; margin-top: 1px; }
  .emergency-banner strong { font-size: 13px; line-height: 1.65; }
  .emergency-banner p { margin-top: 5px; font-size: 11px; line-height: 1.8; }
  .emergency-banner-link { margin-left: 35px; min-height: 26px; font-size: 12px; margin-top: -1px; }
  .contents { padding-block: 31px 24px; }
  .section-heading { margin-bottom: 12px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading > span { font-size: 10px; }
  .contents ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .contents a { min-height: 53px; font-size: 12px; gap: 9px; }
  .toc-number { font-size: 10px; }
  .illustration-note { font-size: 10px; line-height: 1.85; margin-top: 14px; }
  .chapter { padding-block: 28px 32px; scroll-margin-top: 8px; }
  .chapter-heading { gap: 16px; margin-bottom: 19px; }
  .chapter-number { font-size: 28px; }
  .chapter-heading .eyebrow { font-size: 10px; margin-bottom: 4px; }
  .chapter h2 { font-size: clamp(19px, 4.6vw, 25px); line-height: 1.5; letter-spacing: -.035em; }
  .chapter-layout { display: block; }
  .image-link { border-radius: 9px; }
  .image-hint { bottom: 10px; right: 10px; font-size: 10px; padding: 6px 9px; }
  .chapter-figure figcaption { margin-top: 8px; font-size: 9px; }
  .chapter-copy { margin-top: 19px; }
  .reading-note { border-block: 1px solid var(--line); }
  .reading-note > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 53px; list-style: none; color: var(--brand-dark); cursor: pointer; font-size: 13px; font-weight: 550; padding: 10px 0; }
  .reading-note > summary::-webkit-details-marker { display: none; }
  .summary-icon { width: 18px; height: 18px; transition: transform .2s ease; }
  .reading-note[open] .summary-icon { transform: rotate(180deg); }
  .reading-body { padding: 3px 0 19px; }
  .reading-label { display: none; }
  .reading-text { font-size: 15px; line-height: 1.95; }
  .chapter-sources { margin-top: 21px; padding-top: 16px; }
  .chapter-sources p { font-size: 10px; margin-bottom: 7px; }
  .chapter-sources a { font-size: 10px; margin-top: 6px; }
  .emergency-text-link { margin-top: 19px; font-size: 12px; }
  .emergency-section { margin-top: 6px; padding-block: 36px; }
  .emergency-layout { display: block; }
  .emergency-heading .eyebrow { font-size: 10px; margin-bottom: 10px; }
  .emergency-heading h2 { font-size: 29px; line-height: 1.4; }
  .emergency-heading h2 br { display: none; }
  .emergency-heading > p:not(.eyebrow) { margin-top: 15px; font-size: 13px; line-height: 1.9; }
  .call-emergency { margin-top: 20px; min-height: 48px; padding: 9px 18px; font-size: 13px; }
  .call-emergency strong { font-size: 21px; }
  .emergency-instructions { margin-top: 29px; }
  .emergency-instructions li { gap: 15px; padding-block: 16px; }
  .emergency-instructions h3 { font-size: 14px; }
  .emergency-instructions li p { font-size: 12px; }
  .emergency-sources { margin-top: 15px; font-size: 10px; }
  .faq-section { display: block; padding-block: 35px 44px; }
  .faq-heading .eyebrow { font-size: 10px; margin-bottom: 7px; }
  .faq-heading h2 { font-size: 23px; }
  .faq-list { margin-top: 23px; }
  .faq-list summary { font-size: 13px; padding-block: 17px; }
  .faq-answer p { font-size: 13px; }
  .faq-answer { padding-bottom: 19px; }
  .faq-answer > a { font-size: 10px; }
  .footer-inner { display: block; }
  .site-footer { padding-block: 23px calc(24px + env(safe-area-inset-bottom)); }
  .footer-inner p { font-size: 10px; }
  .back-top { margin-top: 12px; min-height: 36px; font-size: 11px; }
  .image-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .viewer-toolbar { padding: 9px 10px 9px 14px; min-height: 68px; gap: 10px; }
  .viewer-heading > span { font-size: 9px; }
  .viewer-heading p { font-size: 12px; max-width: 39vw; }
  .viewer-actions { gap: 0; }
  .viewer-actions > a { font-size: 10px; margin-right: 5px; }
  .icon-button { width: 34px; height: 38px; padding: 8px; }
  .close-button { margin-left: 2px; }
  .viewer-help { padding-bottom: calc(8px + env(safe-area-inset-bottom)); font-size: 9px; }
  .viewer-help > span { display: none; }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 32px); }
  .site-name { gap: 5px; font-size: 12px; }
  .topic-name { font-size: 11px; }
  .header-index { font-size: 10px; }
  .hero h1 { font-size: 31px; }
  .contents ol { gap: 0 14px; }
  .contents a { font-size: 11px; gap: 7px; }
  .chapter h2 { font-size: 18px; }
  .chapter-heading { gap: 12px; }
  .viewer-actions > a { display: none; }
  .viewer-heading p { max-width: 48vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  html { scroll-behavior: auto; }
  .site-header, .contents, .image-hint, .image-dialog, .back-top, .skip-link { display: none !important; }
  .wrap { width: 100%; }
  body { background: white; color: black; }
  .hero { padding-block: 15px 25px; display: block; }
  .hero h1 { font-size: 30px; }
  .hero-note { display: none; }
  .chapter { padding-block: 20px; }
  .chapter-heading { break-after: avoid; }
  .chapter-layout { display: block; }
  .chapter-figure { max-width: 75mm; margin-bottom: 15px; }
  .reading-note > summary { display: none; }
  .reading-note > .reading-body { display: block; }
  .reading-text { font-size: 11pt; }
  .emergency-section { padding-block: 20px; }
  .emergency-layout, .faq-section { display: block; }
  .faq-section { padding-block: 25px; }
  .faq-heading { margin-bottom: 15px; }
  .faq-answer { display: block; }
  .emergency-instructions { margin-top: 20px; }
  .call-emergency { color: black; background: transparent; border: 1px solid black; }
}
