:root {
  color-scheme: light;
  --paper: #faf6ec;
  --sheet: #fffdf7;
  --ink: #342d29;
  --muted: #66564e;
  --berry: #8c284c;
  --berry-deep: #6f1938;
  --rose: #f1d7dc;
  --butter: #f4df92;
  --aqua: #d9e9e6;
  --rule: #c9b8a6;
  --font: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 420 1.125rem/1.65 var(--font); font-optical-sizing: auto; }
body, button, summary { -webkit-font-smoothing: antialiased; }
::selection { background: var(--butter); color: var(--ink); }
a { color: var(--berry-deep); text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:hover { color: var(--berry); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--berry); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(3rem, 5.2vw, 4.65rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3vw, 2.55rem); letter-spacing: -.025em; }
h3 { font-size: 1.5rem; letter-spacing: -.015em; }
h4 { font-size: 1.0625rem; }
p { max-width: 68ch; }
p + p { margin-top: 1rem; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 20; padding: .75rem 1rem; background: var(--sheet); min-height: 48px; }
.skip-link:focus { top: .7rem; }
.reading-meter { position: fixed; inset: 0 0 auto; z-index: 15; height: 5px; pointer-events: none; }
.reading-meter__bar { appearance: none; display: block; border: 0; width: 100%; height: 5px; background: transparent; color: var(--berry); }
.reading-meter__bar::-webkit-progress-bar { background: transparent; }
.reading-meter__bar::-webkit-progress-value { background: var(--berry); }
.reading-meter__bar::-moz-progress-bar { background: var(--berry); }
.site-header { max-width: 1280px; margin: 0 auto; padding: 1.4rem 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 2px solid var(--rule); position: relative; z-index: 10; }
.site-header__identity { display: flex; flex-direction: column; justify-content: center; min-height: 52px; text-decoration: none; color: var(--ink); }
.site-header__name { font-size: 1.25rem; font-weight: 650; line-height: 1.35; }
.site-header__description { font-size: 1rem; color: var(--muted); line-height: 1.5; }
.chapter-menu { position: relative; flex-shrink: 0; }
.chapter-menu__toggle { list-style: none; display: flex; align-items: center; gap: 1rem; min-height: 52px; padding: .6rem 1.1rem; background: var(--butter); border-radius: 100px; font-size: 1.0625rem; cursor: pointer; }
.chapter-menu__toggle::-webkit-details-marker { display: none; }
.chapter-menu__mark { font-size: 1.7rem; line-height: 1; font-weight: 420; }
.chapter-menu[open] .chapter-menu__mark { transform: rotate(45deg); }
.chapter-menu__panel { position: absolute; right: 0; top: calc(100% + 1rem); width: min(370px, calc(100vw - 2rem)); background: var(--sheet); padding: 1.25rem; border: 2px solid var(--berry); border-radius: 1.2rem .3rem 1.2rem .3rem; box-shadow: 7px 8px 0 var(--rose); }
.chapter-menu__intro { font-size: 1.0625rem; margin: 0 .5rem .6rem; color: var(--muted); }
.chapter-menu__link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; padding: .6rem .75rem; font-size: 1.125rem; border-radius: .5rem; }
.chapter-menu__link:hover, .chapter-menu__link[aria-current] { background: var(--rose); }
.guide { max-width: 1280px; margin: auto; padding: 0 2.5rem; }
.chapter-opener { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(255px, .8fr); gap: 4rem; align-items: end; padding: 4rem 0 3.5rem; }
.chapter-opener--home { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; padding-top: 3.25rem; }
.chapter-opener__label { color: var(--berry-deep); font-size: 1.0625rem; margin-bottom: 1.25rem; font-weight: 550; }
.chapter-opener__emphasis { display: block; color: var(--berry); }
.chapter-opener__intro { font-size: 1.3125rem; line-height: 1.6; max-width: 49ch; margin-top: 1.6rem; }
.chapter-opener__contents { padding: 1.5rem; background: var(--butter); border-radius: 1.5rem 1.5rem .2rem 1.5rem; }
.chapter-opener__contents p { font-weight: 650; font-size: 1.125rem; padding: 0 .25rem .5rem; }
.chapter-opener__contents a { min-height: 48px; padding: .55rem .25rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; font-size: 1.0625rem; }
.paper-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 56px; padding: .8rem 1.5rem; background: var(--berry); color: var(--sheet); text-decoration: none; border-radius: .25rem 100px 100px .25rem; font-size: 1.125rem; font-weight: 550; margin-top: 1.75rem; }
.paper-button:hover { background: var(--berry-deep); color: var(--sheet); }
.paper-scene { min-width: 0; padding: 1rem .6rem 0; transform: rotate(2deg); }
.paper-scene__composition { aspect-ratio: 1; background: var(--aqua); position: relative; overflow: hidden; border-radius: 48% 48% 1rem 1rem; box-shadow: 9px 9px 0 #eadbcb; }
.paper-scene__sun { position: absolute; width: 48%; height: 48%; border-radius: 50%; background: var(--butter); left: 7%; top: 7%; box-shadow: 2px 3px 0 #b4c6bd; }
.paper-scene__strip { position: absolute; width: 83%; height: 31%; border: 28px solid; border-radius: 50%; transform: rotate(-35deg); }
.paper-scene__strip--rose { border-color: #b55a72; left: 27%; top: 12%; }
.paper-scene__strip--blue { border-color: #6b9798; left: -30%; top: 60%; transform: rotate(42deg); }
.paper-scene__book { position: absolute; width: 52%; height: 36%; left: 26%; top: 48%; background: var(--sheet); transform: rotate(-12deg); clip-path: polygon(0 3%, 47% 9%, 51% 4%, 100% 0, 96% 94%, 52% 100%, 48% 96%, 0 89%); }
.paper-scene__book::before { content: ''; position: absolute; top: 8%; bottom: 0; left: 49%; width: 2px; background: #d1c3ae; }
.paper-scene__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; background: transparent; }
.paper-scene__tag { position: absolute; z-index: 1; background: var(--sheet); padding: .45rem 1rem; box-shadow: 3px 4px 0 #b4aaa14d; color: var(--berry-deep); font-size: 1.0625rem; }
.paper-scene__tag--visit { top: 22%; left: 6%; transform: rotate(-10deg); }
.paper-scene__tag--cost { right: 4%; top: 43%; transform: rotate(4deg); }
.paper-scene__tag--medicine { left: 9%; bottom: 9%; transform: rotate(-5deg); }
.paper-scene__caption { font-size: 1rem; text-align: center; margin-top: 1.15rem; line-height: 1.5; color: var(--muted); transform: rotate(-2deg); }
.chapter-body { max-width: 1080px; margin: auto; }
.chapter-section { padding: 3.25rem 0; border-top: 2px solid var(--rule); scroll-margin-top: 1.25rem; }
.chapter-section__heading { margin-bottom: 1.6rem; max-width: 48rem; }
.chapter-section__heading p { margin-top: 1rem; }
.chapter-section > p { max-width: 68ch; }
.route-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-top: 2rem; }
.route-sheet { padding: 2rem; background: var(--sheet); border-radius: .4rem 1.5rem .4rem 1.5rem; border-top: 9px solid var(--berry); box-shadow: 5px 6px 0 #eadbcb; }
.route-sheet--room { border-top-color: #638787; }
.route-sheet h3 { font-size: 1.85rem; }
.route-sheet p { margin-top: 1rem; }
.route-sheet h4 { margin-top: 1.4rem; }
.question-list { padding-left: 1.4rem; margin-top: .8rem; }
.question-list li { margin: .7rem 0; padding-left: .2rem; }
.question-list li::marker { color: var(--berry); }
.evidence-card { position: relative; background: var(--rose); padding: 1.6rem 2rem; border-radius: 1.4rem .3rem 1.4rem .3rem; max-width: 51rem; margin-top: 2rem; }
.evidence-card::before { content: ''; position: absolute; width: 3.4rem; height: .9rem; background: #e2c17880; top: -.45rem; left: 2rem; transform: rotate(-5deg); }
.evidence-card--blue { background: var(--aqua); }
.evidence-card__label { font-size: 1rem; font-weight: 550; color: var(--berry-deep); margin-bottom: .55rem; }
.evidence-card h3 { margin-bottom: .8rem; }
.evidence-card > p + p { margin-top: .8rem; }
.source-link, .text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 48px; padding: .65rem 0; font-size: 1.0625rem; line-height: 1.5; }
.source-link { margin-top: .8rem; }
.source-link span, .text-link span { flex-shrink: 0; }
.text-link { margin-top: 1rem; }
.chapter-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.chapter-links__item { display: flex; flex-direction: column; justify-content: space-between; padding: 1.7rem; background: var(--sheet); border-radius: 1rem; border: 2px solid var(--rule); font-size: 1.5rem; line-height: 1.35; min-height: 175px; text-decoration: none; }
.chapter-links__item:hover { background: var(--butter); }
.chapter-links__detail { font-size: 1.0625rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; text-decoration: underline; text-underline-offset: .2em; }
.format-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 1.75rem; }
.format-list__item { border-left: 5px solid var(--berry); padding: .3rem 0 .3rem 1.2rem; }
.format-list__item:nth-child(2) { border-left-color: #a18427; }
.format-list__item:nth-child(3) { border-left-color: #638787; }
.format-list__item h3 { margin-bottom: .8rem; }
.answer-list { max-width: 49rem; }
.answer-list__item + .answer-list__item { margin-top: 2.1rem; padding-top: 2rem; border-top: 2px dotted var(--rule); }
.answer-list__item h3 { margin-bottom: 1rem; }
.question-note { max-width: 49rem; margin-top: 2rem; padding: 1.8rem 2rem; background: var(--sheet); border: 2px dashed var(--rule); border-radius: 1rem; }
.question-note h3 { margin-bottom: .75rem; }
.price-note { background: var(--butter); padding: 2rem 2.3rem; max-width: 51rem; border-radius: 2rem .3rem 2rem .3rem; margin-bottom: 2rem; }
.price-note__label { font-size: 1.0625rem; font-weight: 550; }
.price-note .price-note__amount { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 650; color: var(--berry-deep); margin-top: .7rem; margin-bottom: 1.25rem; }
.medicine-list { max-width: 51rem; }
.medicine-list__item { padding: 1.6rem 2rem; background: var(--sheet); border-left: 7px solid var(--berry); }
.medicine-list__item + .medicine-list__item { margin-top: 1.3rem; }
.medicine-list__item:nth-child(2) { border-left-color: #a18427; }
.medicine-list__item:nth-child(3) { border-left-color: #638787; }
.medicine-list__item h3 { margin-bottom: 1rem; }
.urgent-note { max-width: 51rem; padding: 1.8rem 2rem; margin-top: 2rem; background: var(--rose); border: 3px solid var(--berry); border-radius: 1rem; }
.urgent-note h3 { margin-bottom: 1rem; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.source-grid .evidence-card { margin-top: 0; display: flex; flex-direction: column; align-items: start; }
.source-grid .evidence-card .source-link { margin-top: auto; padding-top: 1.4rem; }
.chapter-recap { padding: 2rem 2.3rem; margin: .75rem 0 2.5rem; background: var(--butter); border-radius: .3rem 2rem 2rem .3rem; max-width: 55rem; }
.chapter-recap__label { font-weight: 650; font-size: 1.3rem; margin-bottom: .5rem; }
.chapter-recap p + p { margin-top: .5rem; }
.page-turn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 2px solid var(--rule); padding: 1.5rem 0 3.5rem; }
.page-turn__link { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: .2rem; padding: .8rem .6rem; min-height: 76px; font-size: 1.25rem; text-decoration: none; border-radius: .5rem; }
.page-turn__link:hover { background: var(--rose); }
.page-turn__link--next { align-items: end; text-align: right; }
.page-turn__direction { font-size: 1rem; color: var(--muted); }
.site-footer { background: #eee3d2; padding: 2rem 2.5rem; }
.site-footer__inner { max-width: 1120px; margin: auto; }
.site-footer__statement { max-width: 64ch; font-size: 1.125rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; column-gap: 1.5rem; margin-top: 1.2rem; }
.site-footer__nav a, .site-footer__top { font-size: 1.0625rem; min-height: 48px; padding: .7rem 0; display: inline-flex; align-items: center; gap: 1rem; }
.site-footer__top { margin-top: .5rem; }
.guide--missing { padding-top: 5rem; padding-bottom: 6rem; }
.guide--missing h1 { max-width: 15ch; margin-bottom: 1.5rem; }

@media (min-width: 1500px) {
  .chapter-opener { padding-top: 4.5rem; }
}
@media (max-width: 900px) {
  .site-header { padding-inline: 1.5rem; }
  .guide { padding-inline: 1.5rem; }
  .chapter-opener { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2.5rem; }
  .chapter-opener--home { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.5rem; }
  .chapter-opener__contents { max-width: 36rem; }
  .chapter-opener__contents a { padding-block: .7rem; }
  .format-list { gap: 1.1rem; }
  .source-grid { gap: 1.2rem; }
  .evidence-card { padding-inline: 1.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; line-height: 1.7; }
  .site-header { padding: 1rem 1.1rem; gap: .6rem; align-items: center; }
  .site-header__name { font-size: 1.0625rem; }
  .site-header__description { font-size: 1rem; }
  .chapter-menu__toggle { min-height: 48px; padding: .55rem .85rem; gap: .5rem; font-size: 1rem; }
  .chapter-menu__mark { font-size: 1.5rem; }
  .chapter-menu__panel { right: -.1rem; padding: 1rem; width: min(345px, calc(100vw - 2.4rem)); }
  .guide { padding-inline: 1.25rem; }
  h1 { font-size: clamp(2.75rem, 11.5vw, 3.5rem); line-height: 1.12; letter-spacing: -.04em; }
  h2 { font-size: 2rem; line-height: 1.23; }
  h3 { font-size: 1.4rem; }
  .chapter-opener, .chapter-opener--home { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 2.3rem 0 2.5rem; }
  .chapter-opener__label { font-size: 1rem; margin-bottom: 1.1rem; }
  .chapter-opener__intro { font-size: 1.1875rem; line-height: 1.65; margin-top: 1.25rem; }
  .paper-button { font-size: 1.0625rem; gap: 1.25rem; max-width: 100%; margin-top: 1.5rem; padding-inline: 1.25rem; }
  .paper-scene { max-width: 350px; width: calc(100% - 1rem); margin: .3rem auto 0; }
  .paper-scene__caption { margin-top: 1rem; }
  .paper-scene__tag { font-size: 1rem; padding: .3rem .75rem; }
  .paper-scene__strip { border-width: 21px; }
  .paper-scene__strip--rose { left: 24%; }
  .paper-scene__strip--blue { left: -8%; }
  .chapter-opener__contents { padding: 1.25rem; }
  .chapter-section { padding: 2.5rem 0; }
  .chapter-section__heading { margin-bottom: 1.4rem; }
  .route-pair, .chapter-links, .format-list, .source-grid { grid-template-columns: minmax(0, 1fr); }
  .route-pair { gap: 1.5rem; }
  .route-sheet { padding: 1.5rem; }
  .route-sheet h3 { font-size: 1.7rem; }
  .evidence-card { padding: 1.5rem; margin-top: 1.75rem; }
  .evidence-card h3 { margin-bottom: .9rem; }
  .source-link, .text-link { font-size: 1.0625rem; }
  .chapter-links__item { padding: 1.5rem; font-size: 1.4rem; min-height: 150px; }
  .chapter-links__detail { font-size: 1rem; }
  .format-list { gap: 1.6rem; margin-bottom: 1.75rem; }
  .format-list__item { padding-left: 1.1rem; }
  .format-list__item h3 { margin-bottom: .6rem; }
  .question-note, .medicine-list__item, .urgent-note { padding: 1.5rem; }
  .price-note { padding: 1.5rem; }
  .price-note .price-note__amount { font-size: 2.25rem; }
  .source-grid { gap: 1.5rem; }
  .source-grid .evidence-card .source-link { margin-top: .5rem; padding-top: .65rem; }
  .chapter-recap { padding: 1.5rem; }
  .page-turn { gap: .5rem; padding-bottom: 2.5rem; }
  .page-turn__link { font-size: 1.0625rem; padding-inline: .2rem; }
  .page-turn__direction { font-size: 1rem; }
  .site-footer { padding: 1.75rem 1.25rem; }
  .site-footer__statement { font-size: 1.0625rem; }
  .site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
  .site-footer__nav a { font-size: 1rem; }
  .site-footer__top { font-size: 1rem; }
  .guide--missing { padding-top: 3.5rem; padding-bottom: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
