:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body.umimachi {
  --paper: #fbf7eb;
  --ink: #202c2b;
  --night: #1e3b39;
  --accent: #27594d;
  --rule: #c9d4c4;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Yu Gothic", Meiryo, system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ce8230; outline-offset: 4px; }
[hidden] { display: none !important; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
p + p { margin-top: 1.12rem; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.site-nav { background: var(--night); color: var(--paper); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand, .footer a { font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-decoration: none; }
.lang { display: flex; flex-shrink: 0; align-items: center; gap: .6rem; font-size: .83rem; }
.lang a, .lang span { padding: .28rem .36rem; }
.lang a { text-decoration: none; }
.lang [aria-current] { border-bottom: 2px solid #edbe76; }
.skip { position: absolute; z-index: 5; padding: .5rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.hero { padding-block: clamp(2.4rem, 6.4vw, 5.1rem); background: var(--night); color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(160px,254px); align-items: center; gap: clamp(1.6rem,7vw,6rem); }
.text-hero { grid-template-columns: minmax(0,1fr); }
.hero h1 { font-size: clamp(3.4rem,7.1vw,6.7rem); line-height: 1.04; letter-spacing: -.065em; text-wrap: balance; }
.hero h1:lang(ja) { letter-spacing: -.065em; }
.by { font-size: .84rem; font-weight: 650; line-height: 1.6; color: #c7ddd3; margin-bottom: 1rem; }
.tagline { margin: 1.15rem 0 0; font-size: clamp(1.45rem,3.1vw,2.35rem); font-weight: 650; line-height: 1.35; text-wrap: balance; }
.btn { padding: .7rem .9rem; display: inline-block; color: #fff; background: var(--accent); font-size: .88rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn:hover { text-decoration: underline; }
.btn.primary { background: #ebc987; color: #243232; margin-top: 1.3rem; }
.btn.secondary { color: var(--accent); background: transparent; border-color: var(--accent); }
.hero .panel { margin: 0; max-width: 254px; }
.hero .panel img { width: 100%; box-shadow: 8px 9px #102a25; border: 1px solid #b8cab9; }
.hero figcaption { color: #e1ebe3; margin-top: 1rem; }
.toc { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.toc .wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: .68rem 1.35rem; }
.toc a { line-height: 1.5; font-size: .83rem; font-weight: 700; color: var(--accent); }
.reading-width { width: min(760px, calc(100% - 72px)); margin-inline: auto; font-size: 1.07rem; line-height: 1.82; }
[lang=ja] .reading-width { line-height: 1.97; }
.section { padding: clamp(2.4rem,5.8vw,4.25rem) 0; }
.rule { border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(1.7rem,4vw,2.9rem); line-height: 1.2; letter-spacing: -.04em; margin-bottom: 1.35rem; text-wrap: balance; }
.opening p:first-of-type { font-size: 1.16em; line-height: 1.7; }
.panel { max-width: 630px; margin: 1.45rem 0 1.65rem; min-width: 0; }
.panel-open { display: block; width: fit-content; max-width: 100%; }
.panel-open:hover img { outline: 2px solid #ce8230; outline-offset: 3px; }
.panel figcaption { font-size: .82rem; line-height: 1.55; margin-top: .7rem; }
.panel figcaption small { display: block; color: #4e605a; font-size: .74rem; margin-top: .24rem; }
.hero .panel figcaption small { color: #c1d2c8; }
.ending { background: #e9eee2; }
.notes { border-block: 1px solid #a9bbab; }
.notes summary { cursor: pointer; color: var(--accent); font-weight: 750; padding: 1rem 0; }
.notes[open] { padding-bottom: 1.4rem; }
.notes h3 { margin: 1.25rem 0 .8rem; font-size: clamp(1.25rem,3.2vw,1.7rem); line-height: 1.3; }
.buy-box { border-top: 1px solid var(--rule); }
.buttons { margin-block: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.more { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.more h2 { font-size: 1.2rem; }
.more ul { margin: .55rem 0 0; padding-left: 1.2rem; font-size: .93rem; }
.footer { padding: 1.4rem 0; background: var(--night); color: var(--paper); }
@media (max-width:760px) {
  .wrap, .reading-width { width: calc(100% - 36px); }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 1.75rem; }
  .hero h1 { font-size: clamp(2.5rem,11vw,4.5rem); }
  .hero .panel { width: min(62%,219px); }
  .reading-width { font-size: 1rem; }
  .nav-inner { min-height: 54px; gap: .5rem; }
  .brand { letter-spacing: .08em; }
  .buttons { display: grid; grid-template-columns: minmax(0, 1fr); }
  .btn { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
