:root {
  color-scheme: light;
  --forest: #183d32;
  --ink: #24322b;
  --paper: #f7f4e9;
  --cream: #fffdf6;
  --orange: #a34727;
  --line: #dcded1;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 18px; line-height: 1.85; }
a { color: var(--forest); text-underline-offset: .2em; }
a:hover { color: var(--orange); }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: clamp(2rem, 5vw, 4.2rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 0; z-index: 10; background: white; padding: 12px; }
header { background: var(--cream); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; line-height: 1.3; }
.brand img { width: 38px; }
nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.15rem; }
nav a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.menu { display: none; }
.hero { background: var(--forest); color: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 32px; padding-block: clamp(30px, 6vw, 78px); }
.hero img { width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: 10px 64px 10px 10px; }
.eyebrow { color: var(--orange); font-size: .8rem; font-weight: 850; letter-spacing: .13em; }
.hero .eyebrow { color: #f7cc82; }
.hero p { max-width: 31rem; }
.button { display: inline-block; padding: .55rem 1.1rem; background: var(--forest); color: var(--cream); border-radius: 6px; text-decoration: none; font-weight: bold; }
.hero .button { background: #f6ce8d; color: #233628; }
.block { padding-block: 28px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--cream); border-radius: 10px; border: 1px solid var(--line); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.card .pad, .panel { padding: 20px; }
.card h3 { margin: .35em 0; }
.card a { text-decoration: none; }
.card p { font-size: .95rem; margin-block: .5rem 0; }
.panel, .toc { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; }
.toc { padding: 12px 22px; }
.article { padding-block: 25px; }
.article h1 { font-size: clamp(1.95rem, 5vw, 3.15rem); }
.article h2 { border-left: 5px solid var(--orange); padding-left: 13px; margin-top: 2em; }
.article-cover { border-radius: 10px; width: 100%; aspect-ratio: 1.85; object-fit: cover; margin: 24px 0; }
.breadcrumb, .muted { font-size: .86rem; color: #4f6358; }
figure { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery img { width: 100%; border-radius: 7px; aspect-ratio: 1.5; object-fit: cover; }
figcaption { font-size: .8rem; margin-top: .4em; }
.ad { text-align: center; font-size: .72rem; color: #576158; margin: 24px auto; }
.ad ins { display: block; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-label { display: none; }
.ad:has(ins[data-ad-status="filled"]) .ad-label { display: block; }
input[type="search"] { width: 100%; font: inherit; border-radius: 6px; border: 1px solid #6d8476; background: white; padding: .55rem; }
.checks label { display: block; padding: 7px 0; }
.checks input { width: 1.2rem; height: 1.2rem; vertical-align: middle; accent-color: var(--forest); }
footer { background: var(--forest); color: var(--cream); margin-top: 36px; padding-block: 35px; }
footer a { color: inherit; }
[hidden] { display: none !important; }
@keyframes float-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-grid, .article, .in-view { animation: float-in .55s ease-out both; }
@media (max-width: 760px) {
  .bar { min-height: 64px; }
  .js .menu { display: grid; gap: 5px; align-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); color: var(--forest); }
  .menu span { display: block; width: 22px; height: 2px; background: currentColor; margin-inline: auto; }
  .js .bar nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 16px 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .js .bar nav.open { display: block; }
  .bar nav ul { flex-wrap: wrap; }
  .js .bar nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .js .bar nav a { display: block; padding: 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 510px) {
  .grid { grid-template-columns: 1fr; }
  .wrap, .narrow { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
