:root {
  color-scheme: light;
  --ink: #182e30;
  --teal: #155752;
  --deep: #103e3b;
  --mist: #e9f2ee;
  --paper: #fbfaf6;
  --muted: #445d5b;
  --border: #cddbd5;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: #087a6e; }
:focus-visible { outline: 3px solid #8b590c; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.45; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.15rem); letter-spacing: .025em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.25rem, 3.2vw, 1.8rem); }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 10; background: white; padding: .5rem 1rem; }
.skip:not(:focus) { transform: translateY(-200%); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.header-row { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; gap: .55rem; align-items: center; color: var(--deep); font-weight: 800; font-size: clamp(.95rem, 3vw, 1.17rem); text-decoration: none; }
.brand img { width: 32px; border-radius: 8px; }
.desktop-nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.desktop-nav a { font-size: .92rem; font-weight: 700; text-decoration: none; }
.mobile-menu { display: none; }
.hero { background: linear-gradient(130deg, var(--mist), #f4f6ef); padding: clamp(2rem, 7vw, 5.5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero-inner img { border-radius: 24px 24px 24px 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.hero h1 { max-width: 14em; }
.hero p { margin-top: 1.25rem; max-width: 39em; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.6rem; }
.button { display: inline-block; background: var(--teal); color: white; padding: .67rem 1.05rem; border-radius: .6rem; font-weight: 700; text-decoration: none; }
.button:hover { color: white; background: var(--deep); }
.section { padding-block: clamp(2rem, 5vw, 4.25rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--teal); transform: translateY(-3px); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: .9rem 1rem 1rem; display: grid; gap: .25rem; }
.card-body small { color: var(--muted); font-size: .79rem; }
.card-body strong { line-height: 1.5; }
.tint { background: var(--mist); }
.crumb { font-size: .85rem; color: var(--muted); margin: 1rem auto 1.6rem; }
.reading { width: min(760px, 100% - 48px); margin-inline: auto; }
.article-head { display: grid; gap: 1rem; }
.article-head p, .prose p { font-size: clamp(1rem, 2.7vw, 1.105rem); line-height: 1.95; }
.article-head img { border-radius: 16px; aspect-ratio: 3 / 2; object-fit: cover; }
.prose { margin: 1.5rem auto 3rem; }
.prose section { margin-top: 2.4rem; scroll-margin-top: 1rem; }
.prose p { margin-top: .75rem; }
.prose h2 { padding-inline-start: .7em; border-inline-start: 4px solid var(--teal); }
.toc { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 1rem 1.25rem; }
.toc ul, .sources ul { padding-inline-start: 1.5rem; margin: .45rem 0 0; }
.sources { padding-top: 1.2rem; border-top: 1px solid var(--border); }
.sources a { overflow-wrap: anywhere; }
.video { margin-top: 1rem; }
.video iframe { border: 0; width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: .8rem; margin-top: .5rem; }
.ad { max-width: 760px; width: 100%; margin: 1.5rem auto; }
.ad-label { display: none; font-size: .72rem; color: var(--muted); text-align: center; }
.ad:has(ins[data-ad-status="filled"]) .ad-label { display: block; }
.adsbygoogle { display: block; }
.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.site-footer { background: var(--deep); color: #f4f9f7; padding: 2rem 0; }
.site-footer a { color: inherit; }
.site-footer p { margin-top: .5rem; font-size: .86rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-inner, .article-head { animation: appear .65s ease-out both; }
  .reveal.is-visible { animation: appear .55s ease-out both; }
  @keyframes appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 760px) {
  .wrap, .reading { width: calc(100% - 32px); }
  .header-row { min-height: 62px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--border); border-radius: 8px; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .hamburger { width: 19px; height: 14px; border-block: 2px solid var(--teal); position: relative; }
  .hamburger::before { content: ""; position: absolute; top: 4px; background: var(--teal); width: 100%; height: 2px; }
  .mobile-menu nav { display: grid; gap: .25rem; position: absolute; top: calc(100% + 1px); right: 0; left: 0; background: var(--paper); padding: .5rem 1rem; border-bottom: 1px solid var(--border); box-shadow: 0 10px 12px #112d261c; }
  .mobile-menu nav a { padding: .6rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .card-body { padding: .55rem .65rem .7rem; }
  .card-body strong { font-size: .9rem; overflow-wrap: anywhere; }
}
