/* 全ページ共通の配色、文字組み、操作部品 */
:root {
  --ink: #353029;
  --paper: #fff;
  --paper-light: #fffefa;
  --brass: #846728;
  --gold: #bfaa76;
  --line: #d9ccb1;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "MS PMincho", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: .06em; line-height: 1.5; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(88%, 1180px); margin-inline: auto; }
:focus-visible { outline: 3px solid #876010; outline-offset: 4px; }
.skip { position: absolute; top: -6rem; z-index: 5; padding: .8rem; background: white; }
.skip:focus { top: 0; }
.masthead { background: white; border-bottom: 1px solid var(--line); }
.masthead-inner, nav, .brand, .button, .footer-inner { display: flex; align-items: center; }
.masthead-inner, .footer-inner { justify-content: space-between; gap: 1rem; }
.masthead-inner { min-height: 66px; }
.brand { gap: .65rem; font-weight: bold; white-space: nowrap; letter-spacing: .1em; }
.brand .book-icon { color: var(--brass); }
nav { flex-wrap: wrap; gap: .7rem clamp(.85rem, 2.3vw, 2.3rem); font: .9rem/1.45 var(--sans); }
nav a { padding-block: .55rem; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.book-link { border: 1px solid #bda774; color: #665022; padding: .45rem .95rem; }
.book-icon { display: inline-block; width: 19px; height: 15px; position: relative; border: 1.5px solid currentColor; border-radius: 2px 2px 3px 3px; }
.book-icon::after { content: ""; position: absolute; left: 47%; inset-block: 0; border-left: 1px solid currentColor; }
.button { justify-content: center; gap: .7rem; width: fit-content; padding: .93rem 1.55rem; background: #826528; color: white; border: 1px solid #765a23; font-weight: bold; letter-spacing: .045em; }
.button:hover { background: #664d1e; }
.eyebrow, .chapter-heading small, .card-en { font-family: Georgia,serif; letter-spacing: .22em; }
.eyebrow { color: var(--brass); font-size: .8rem; font-weight: bold; }
footer { border-top: 1px solid var(--line); background: #faf8f2; }
.footer-inner { min-height: 70px; font-size: .86rem; }
@media (max-width: 800px) {
  .masthead-inner { display: grid; gap: .4rem; padding-block: .7rem; }
  nav { gap: .25rem 1rem; align-items: center; }
  .wide-only { display: none; }
}
@media (max-width: 480px) {
  .wrap { width: 90%; }
  nav { font-size: .83rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
