:root {
  color-scheme: light;
  --paper: #f9f7ef;
  --panel: #fefdf8;
  --ink: #192d27;
  --muted: #4b6158;
  --line: #cdd9cd;
  --accent: #08695e;
  --sans: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.95 var(--sans); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #8f371c; }
a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #995018; outline-offset: 5px; }
.shell { width: min(100% - 3rem, 71rem); margin-inline: auto; }
.skip-link { position: absolute; inset: .5rem auto auto .5rem; z-index: 2; padding: .5rem 1rem; background: var(--panel); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.masthead { border-top: 5px solid var(--accent); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; min-height: 4.5rem; justify-content: space-between; gap: 1rem; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .875rem; }
.wordmark { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
h1, h2, h3 { line-height: 1.44; }

.article-page .skip-link { position: fixed; z-index: 20; }
.article-page [id] { scroll-margin-top: 6rem; }
.site-header, .article-heading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #282c30;
}
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 2px 12px rgb(0 0 0 / .07); }
.site-nav { width: min(100% - 3rem, 71.25rem); min-height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-brand { color: #212529; font-size: 1.35rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.site-nav-links { display: flex; align-items: center; flex-wrap: wrap; column-gap: 1.25rem; font-size: .87rem; font-weight: 700; }
.site-nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: #52585c; text-decoration: none; }
.site-nav-links a:hover, .site-nav-links a:focus-visible { color: #17693f; text-decoration: underline; }
.article-heading { background: #fffaf0; border-bottom: 1px solid var(--line); }
.heading-column { width: min(100% - 3rem, 780px); margin-inline: auto; }
.breadcrumbs { padding-top: 2rem; font-size: .78rem; color: #555d63; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .55rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: ">"; margin-right: .55rem; color: #737a76; }
.breadcrumbs a { color: #505850; }
.article-header { padding-block: 3.8rem 2.8rem; text-align: center; }
.article-header h1 { margin: 0; font-size: clamp(1.8rem, 3.7vw, 2.65rem); line-height: 1.6; letter-spacing: .035em; text-wrap: balance; }
.article-header h1 span { display: block; }
.subtitle { margin: .65rem 0 1.5rem; font-weight: 500; font-size: 1.22rem; line-height: 1.9; text-wrap: balance; }
.article-divider { margin: 1.7rem auto; border: 0; background: #198754; height: 3px; width: 70px; }
.lead { max-width: 660px; margin-inline: auto; text-align: left; font-size: 1rem; color: #555d63; }
.lead p { margin-block: 0 .65rem; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1rem; margin: 1.7rem 0 .45rem; color: #555d63; font-size: .75rem; }
.research-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.5rem; }
.research-links a { display: inline-flex; align-items: center; min-height: 44px; color: #17693f; font-size: .9rem; font-weight: 700; }
.research-links a:hover { color: #8f371c; }

.layout { display: grid; grid-template-columns: 11.5rem minmax(0, 47rem); column-gap: clamp(2rem, 6vw, 5rem); padding-block: 3rem 4rem; }
.side { align-self: start; position: sticky; top: 1.75rem; border-top: 2px solid var(--accent); padding-top: .65rem; font-size: .85rem; }
.side p { margin: 0; font-weight: 700; }
.side ol { padding-inline-start: 1.3rem; margin-top: .55rem; }
.side li { margin-bottom: .55rem; padding-inline-start: .15rem; }
.side a { color: var(--ink); }
.article-page .side { top: 6.2rem; }
.content > p { margin-block: 0 .85rem; }
.content h2 { margin-block: 3rem 1.3rem; padding-top: .9rem; border-top: 2px solid var(--accent); font-family: var(--serif); font-size: clamp(1.44rem, 2.8vw, 2.08rem); }
.content h3 { margin-block: 1.85rem .85rem; font-size: 1.1rem; }
.content h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); }
.content p.references, .lead p.references { margin: -.1rem 0 1.6rem; color: var(--muted); font-size: .79rem; line-height: 1.8; }
.lead p.references { margin-bottom: 0; }

.table-wrap { overflow-x: auto; border-block: 1px solid var(--line); background: var(--panel); margin: 1rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child > * { border-bottom: 0; }
thead th { background: #e8efe6; text-align: left; font-weight: 700; }
tbody th { text-align: left; }
article td, article th:not(:first-child) { text-align: right; white-space: nowrap; }
figure { margin: 1.8rem 0 2rem; padding: clamp(.7rem, 2vw, 1.25rem); background: var(--panel); border: 1px solid var(--line); }
figcaption { font-weight: 700; font-size: 1rem; }
.figure-note { margin: .1rem 0 .65rem; color: var(--muted); font-size: .82rem; }
figure img { display: block; width: 100%; height: auto; max-width: 40rem; margin-inline: auto; }
.asset-link { font-size: .8rem; }
.method { margin-top: 1.8rem; padding: 1rem 1.3rem; background: #eaf0e5; border-left: 3px solid var(--accent); }
.method h3 { margin-top: 0; }
.method ul { margin-bottom: 0; padding-inline-start: 1.25rem; }
.monitoring { padding-block: 2.2rem 4rem; }
.monitoring th:first-child { min-width: 5rem; }
.monitoring td { min-width: 10.5rem; vertical-align: top; }
.footer { display: flex; flex-wrap: wrap; gap: .85rem 1.4rem; border-top: 1px solid var(--line); padding-block: 1.3rem 2rem; font-size: .85rem; }

@media (max-width: 49rem) {
  .shell { width: min(100% - 2rem, 43rem); }
  .layout { display: block; padding-top: 1.5rem; }
  .side { position: static; border-top-width: 1px; margin-bottom: 1.5rem; }
  .side ol { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; list-style: none; padding: 0; }
}
@media (max-width: 29rem) {
  .masthead-inner { align-items: flex-start; flex-direction: column; gap: .15rem; padding-block: .5rem; }
  article td, article th { padding-inline: .5rem; }
}
@media (max-width: 600px) {
  .heading-column, .site-nav { width: calc(100% - 40px); }
  .site-nav { min-height: 64px; }
  .site-nav-links { font-size: .8rem; column-gap: 1rem; }
  .breadcrumbs { padding-top: 1.25rem; font-size: .72rem; }
  .article-header { padding-block: 2.9rem 2.1rem; }
  .article-header h1 { font-size: clamp(1.5rem, 7vw, 1.8rem); }
  .subtitle { font-size: 1.05rem; }
  .lead { font-size: .95rem; }
  .article-meta, .research-links { justify-content: flex-start; text-align: left; }
}
@media print {
  body, .article-heading { background: white; }
  .site-header, .masthead nav, .side, .footer, .asset-link, .skip-link { display: none; }
  .layout { display: block; padding: 0; }
  .article-header { padding-block: .6rem; }
  figure, table { break-inside: avoid; }
}
