:root {
  color-scheme: light;
  --ink: #1b2622;
  --muted: #4e5d55;
  --line: #d4ddd1;
  --surface: #f6f7ef;
  --wash: color-mix(in srgb, var(--brand) 9%, #fbf9ee);
  font-family: "M PLUS 2", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
  color: var(--ink);
  background: #fffef9;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: var(--brand); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, p, figure { margin-top: 0; }
h1, h2 { line-break: strict; text-wrap: pretty; }
.shell, .mast-inner, .foot-inner { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-125%); background: #fff; padding: .55em 1em; z-index: 2; }
.skip:focus { transform: translateY(0); }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mast-inner { min-height: 80px; }
.wordmark { font-family: Quicksand, "Trebuchet MS", sans-serif; font-size: 2.25rem; letter-spacing: -.07em; line-height: 1; font-weight: 750; text-decoration: none; }
.wordmark span { font-size: .67em; letter-spacing: -.04em; }
.mast nav, footer nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.mast nav a { padding-block: .65em; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 700; }
.mast nav a:hover, nav a[aria-current] { text-decoration: underline; color: var(--brand); }
.shell { padding-block: 32px 72px; min-height: 66vh; }
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--wash); border-radius: 22px; overflow: hidden; }
.hero-copy { padding: clamp(28px, 5vw, 72px); align-self: center; }
.hero h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; color: var(--brand); font-size: clamp(2.15rem, 4vw, 3.7rem); line-height: 1.31; margin-bottom: .45em; letter-spacing: -.035em; }
.hero p { max-width: 34em; margin-bottom: 1.6em; }
.hero-image { height: 100%; min-height: 320px; width: 100%; object-fit: cover; }
.button { display: inline-flex; gap: 1.2em; align-items: center; color: #fff; background: var(--brand); padding: .65em 1.3em; border-radius: 100px; text-decoration: none; font-weight: 700; }
.button:hover { text-decoration: underline; }
.block { margin-top: 3.2rem; scroll-margin-top: 24px; }
.block h2, .reading h2, .article-section h2 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.55; margin-bottom: .7em; }
.topic-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.topic-card, .article-card { height: 100%; display: flex; flex-direction: column; gap: .55em; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 1.3rem; position: relative; color: var(--ink); text-decoration: none; }
.topic-card strong, .article-card strong { font-size: 1.1rem; line-height: 1.5; }
.topic-card strong { padding-right: 1.4em; }
.topic-card span, .article-card span { color: var(--muted); font-size: .92rem; }
.topic-card i { font: 1.18em/1 sans-serif; position: absolute; top: 1.32rem; right: 1.15rem; color: var(--brand); }
.topic-card:hover, .article-card:hover { border-color: var(--brand); background: var(--surface); }
.article-card img { aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.crumb { display: flex; gap: .7em; color: var(--muted); font-size: .82rem; margin-bottom: 1.8rem; align-items: baseline; }
.page-heading, .reading, .empty, .article-body, .next { max-width: 48rem; margin-inline: auto; }
.page-heading, .article-header { padding-bottom: 1rem; }
.page-heading h1, .article-header h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); line-height: 1.45; color: var(--brand); margin: .2em 0 .5em; }
.page-heading p, .article-summary { font-size: 1.07rem; color: var(--muted); }
.reading, .empty { border-top: 2px solid var(--brand); padding: 1.7rem 0 .6rem; }
.reading p, .article-body p { line-height: 1.95; }
.reading h2:not(:first-child), .article-section { margin-top: 2rem; }
.steps { padding: 1.1rem 1.3rem 1.1rem 3.15rem; background: var(--wash); border-radius: 12px; }
.steps li { padding: .3em .2em; }
.steps li::marker { color: var(--brand); font-weight: 700; }
.source a, .next a { font-weight: 650; }
.next { border-top: 1px solid var(--line); margin-top: 1.7rem; padding-top: 1rem; }
.article-meta, .article-ad, .article-taxonomy { font-size: .87rem; color: var(--muted); }
.article-ad { border-left: 3px solid var(--brand); padding: .45rem .8rem; background: var(--surface); }
.article-hero { margin: 0; }
.article-hero img { border-radius: 14px; }
.article-section ul { padding-left: 1.4rem; }
.article-section li { padding-block: .18rem; }
footer { background: var(--surface); border-top: 1px solid var(--line); }
.foot-inner { padding-block: 2.4rem; }
footer .wordmark { font-size: 1.85rem; }
footer small { display: block; color: var(--muted); font-size: .77rem; margin-top: .6rem; }
footer nav a { font-size: .85rem; }
@media (max-width: 850px) {
  .topic-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell, .mast-inner, .foot-inner { width: calc(100% - 40px); }
  .hero-copy { padding: 28px; }
  .hero-image { min-height: 275px; }
  .foot-inner { align-items: flex-start; }
}
@media (max-width: 620px) {
  .shell, .mast-inner, .foot-inner { width: calc(100% - 32px); }
  .mast-inner, .foot-inner { align-items: flex-start; flex-direction: column; gap: 9px; }
  .mast-inner { padding-block: 14px 8px; }
  .mast nav { gap: .1em 1em; }
  .mast nav a { padding-block: .3em; font-size: .83rem; }
  .shell { padding-block: 20px 48px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 26px; }
  .hero-image { aspect-ratio: 16/9; height: auto; min-height: 0; }
  .topic-grid, .article-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .block { margin-top: 2.1rem; }
  footer nav { margin-top: .9rem; }
}
.article-lead, .manuscript { font-size: 1.03rem; line-height: 1.95; line-break: strict; }
.manuscript h2 { margin-block: 2.4em .75em; font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.55; color: var(--brand); }
.manuscript h3 { margin-block: 1.55em .5em; font-size: 1.15rem; }
.manuscript img { margin-inline: auto; border-radius: 12px; }
.manuscript figure { margin: 1em 0; }
.manuscript .table-scroll { overflow-x: auto; margin-block: 1.25em; }
.manuscript table { width: 100%; border-spacing: 0; font-size: .95rem; }
.manuscript th, .manuscript td { padding: .65em .8em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.manuscript th { background: var(--wash); }
.manuscript blockquote { margin: 1.4em 0; padding: .8em 1.2em; border-inline-start: 3px solid var(--brand); background: var(--surface); }
.manuscript blockquote p:last-child, .article-lead p:last-child { margin-bottom: 0; }
.manuscript ol, .manuscript ul { padding-inline-start: 1.8em; }
.manuscript li { padding-block: .17em; }
.reader-options { margin: 2.2em 0 1em; padding: 1em 1.2em; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.reader-options legend { color: var(--brand); font-weight: 700; padding-inline: .4em; }
.reader-options input { accent-color: var(--brand); }
.reader-options label { cursor: pointer; padding: .25em .4em; display: inline-block; }
.reader-options p { padding-inline-start: 1.6em; margin-block: .3em .9em; }
.reader-options input:not(:checked) ~ p { display: none; }
.reader-options input:checked + label { font-weight: 700; }
.manuscript p:has(> strong:first-child) { border-inline-start: 2px solid var(--line); padding-inline-start: .8em; }
.manuscript > p:last-child:has(a) { padding: 1em 1.2em; border-radius: 12px; background: var(--wash); }
