:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --white: #fffefa;
  --ink: #202d39;
  --muted: #57645f;
  --line: #dcded2;
  --sage: #e4ebdb;
  --green: #314f3e;
  --orange: #a54a25;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
a { color: var(--green); }
button, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ad552d; outline-offset: 3px; }
.shell { width: min(100% - 32px, 900px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0 17px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.brand small, .brand strong { display: block; }
.brand small { color: var(--muted); font-size: .69rem; }
.brand strong { font-size: .92rem; }
.brand-symbol { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 50%; background: #eee0cd; color: var(--orange); }
.shop-link { font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.intro { position: relative; padding: clamp(22px, 5vw, 45px) 0 25px; }
.intro-label { color: var(--orange); font-size: .79rem; font-weight: 750; letter-spacing: .1em; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 5.6vw, 3.2rem); line-height: 1.2; letter-spacing: -.035em; margin: 7px 0 10px; }
h1 span { color: var(--green); }
.intro p { color: var(--muted); font-size: .94rem; }
.sample-list { display: grid; gap: 14px; }
.sample { display: grid; grid-template-columns: clamp(65px, 16vw, 106px) 1fr; align-items: center; gap: clamp(13px, 3.2vw, 25px); padding: clamp(14px, 3vw, 25px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 7px 22px #34423709; }
.sample-cover { width: 100%; height: auto; border-radius: 5px; box-shadow: 0 3px 10px #202d391b; }
.course { color: var(--green); font-size: .81rem; font-weight: 750; }
.sample-unit { font-size: clamp(1.13rem, 3vw, 1.5rem); line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; }
.sample-description { margin: 6px 0 12px; color: var(--muted); font-size: .83rem; }
.sample-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 8px 13px; border-radius: 9px; border: 1px solid var(--green); text-decoration: none; font-size: .84rem; font-weight: 750; }
.primary { background: var(--green); color: white; }
.secondary { background: var(--white); color: var(--green); }
.button:hover, .store-card:hover { filter: brightness(.96); }
.reader { scroll-margin-top: 14px; margin: 22px 0; padding: clamp(12px, 3vw, 24px); border: 1px solid var(--line); background: var(--white); border-radius: 18px; }
.reader-head { display: flex; justify-content: space-between; align-items: start; gap: 9px; }
.reader-head h2 { font-size: clamp(1.12rem, 3.1vw, 1.6rem); line-height: 1.35; }
.pdf-link { display: inline-flex; align-items: center; min-height: 40px; gap: 5px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.book-switch { display: flex; gap: 8px; margin-top: 15px; }
.book-switch button, .reader-controls button, .page-navigation button, select { min-height: 44px; border-radius: 8px; border: 1px solid var(--line); padding: 6px 12px; background: var(--white); color: var(--ink); font-weight: 700; }
.book-switch button[aria-pressed="true"] { background: var(--sage); border-color: #a5b6a0; color: var(--green); }
.reader-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 9px; font-size: .82rem; }
.page-picker { display: flex; align-items: center; gap: 8px; }
.page-picker label { color: var(--muted); }
.paper-stage { background: #ecefe6; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.paper-stage img { display: block; width: min(100%, 690px); height: auto; margin-inline: auto; background: #fff; }
.paper-stage.zoomed img { width: max(150%, 690px); max-width: none; }
.paper-error { padding-top: 8px; color: var(--orange); }
.page-navigation { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.page-navigation span { min-width: 78px; text-align: center; color: var(--muted); font-size: .84rem; }
.page-navigation button:disabled { color: #7c807a; cursor: default; }
.continue { margin: 25px 0 5px; padding-top: 18px; border-top: 1px solid var(--line); }
.continue h3 { font-size: 1.03rem; }
.continue p { color: var(--muted); font-size: .83rem; margin-top: 4px; }
.store-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 8px; }
.store-card { display: flex; gap: 4px 9px; flex-wrap: wrap; align-items: baseline; border-radius: 9px; padding: 10px 12px; background: #f2efe5; color: var(--ink); text-decoration: none; }
.store-card span { font-size: .76rem; }
.store-card strong { color: var(--green); font-size: .98rem; }
.zip-link { display: inline-block; padding: 7px 0; font-size: .82rem; }
.other-samples { margin-top: 21px; border-top: 1px solid var(--line); padding: 13px 0; font-size: .88rem; }
.other-samples summary { cursor: pointer; color: var(--green); font-weight: 700; }
.other-samples p { margin: 8px 0; color: var(--muted); }
.other-sample-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.other-sample-links a { display: inline-flex; align-items: center; min-height: 40px; }
.footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); margin-top: 10px; padding: 18px 0 26px; font-size: .74rem; }
@media (max-width: 480px) {
  .site-header { padding-top: 14px; }
  .shell { width: calc(100% - 24px); }
  .sample { align-items: start; }
  .sample-actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .button { justify-content: space-between; }
  .store-card { display: grid; gap: 1px; }
}
