/* Independent research-page layout. License proposal: MIT for code; see README. */
.research-page {
  --research-accent: #17693f;
  --research-red: #b32d3b;
  --research-ink: #282c30;
  --research-muted: #555d63;
  --research-border: #d8d9d2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--research-ink);
  background: #fffaf0;
  height: auto;
  line-height: 1.9;
  font-size: 17px;
  overflow-wrap: break-word;
}
.research-page * { min-width: 0; }
.research-page a { color: var(--research-accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.research-page a:hover { color: var(--research-red); }
.research-page :focus-visible { outline: 3px solid #17693f; outline-offset: 4px; }
.research-page h1, .research-page h2, .research-page h3, .research-page .brand { font-family: inherit; }
.research-page h1 { font-size: clamp(1.8rem, 3.7vw, 2.65rem); font-weight: 700; line-height: 1.6; letter-spacing: .035em; }
.title-line { display: block; }
.keep-phrase { display: inline-block; }
.research-page h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.65; font-weight: 700; margin: 0 0 1.7rem; letter-spacing: .02em; }
.research-page h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.7; }
.research-page p { margin-bottom: 1.3rem; }
.research-page section, .research-page [id] { scroll-margin-top: 6.5rem; }
.reading-column { width: min(100% - 48px, 780px); margin-inline: auto; }
.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% - 48px, 1140px); min-height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav .brand { font-weight: 700; font-size: 1.35rem; letter-spacing: .03em; color: #212529; text-decoration: none; }
.site-nav-links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .87rem; font-weight: 700; }
.site-nav-links a { color: #52585c; text-decoration: none; }
.site-nav-links [aria-current] { color: var(--research-accent); }
.skip-link { position: fixed; top: -120px; left: 16px; z-index: 100; padding: 12px 20px; background: white; }
.skip-link:focus { top: 10px; }
.breadcrumb-wrap { padding-top: 2rem; }
.breadcrumbs { font-size: .78rem; color: var(--research-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .55rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: ">"; margin-right: .55rem; color: #737a76; }
.breadcrumbs a { color: #60665f; }
.article-header { padding-block: 3.8rem 3.2rem; text-align: center; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--research-accent); }
.article-header .divider { background: #198754; height: 3px; width: 70px; margin-block: 1.7rem; }
.article-header .lead { font-weight: 500; font-size: 1.22rem; line-height: 1.9; margin-bottom: 1.5rem; }
.intro-copy { font-size: 1rem; max-width: 660px; margin-inline: auto; text-align: left; color: var(--research-muted); }
.page-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem 1rem; font-size: .72rem; color: var(--research-muted); margin-top: 1.7rem; }
.text-link { display: inline-block; font-size: .9rem; font-weight: 700; padding-block: .6rem; }
.page-contents { border-top: 1px solid var(--research-border); border-bottom: 1px solid var(--research-border); padding-block: 1.4rem 1.5rem; }
.page-contents p { font-size: .84rem; font-weight: 700; margin-bottom: .8rem; color: var(--research-muted); }
.page-contents ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: .5rem; margin: 0; padding-left: 1.4rem; font-size: .89rem; }
.page-contents a { display: inline-block; padding-block: .15rem; }
.research-section { padding-block: 4.6rem 0; }
.section-kicker { color: var(--research-accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; margin-bottom: .6rem !important; }
.worker-definitions { margin-block: 2rem; }
.worker-definitions > div { padding: .6rem 0 .6rem 1.2rem; border-left: 3px solid #007b83; margin-block: 1.1rem; }
.worker-definitions > div + div { border-color: #ba3e58; }
.worker-definitions dt { font-weight: 700; margin-bottom: .3rem; }
.worker-definitions dd { font-size: .96rem; color: var(--research-muted); margin-bottom: 0; }
.scope-note { font-size: .9rem; color: var(--research-muted); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 1.8rem; margin-bottom: .5rem; font-size: 1rem; font-variant-numeric: tabular-nums; }
.data-table caption { caption-side: top; color: var(--research-muted); font-size: .82rem; padding-bottom: .65rem; }
.data-table th, .data-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--research-border); text-align: right; white-space: nowrap; }
.data-table th:first-child { text-align: left; }
.data-table thead th { font-weight: 500; color: #535b59; border-top: 1px solid #aeb7ad; background: #f6f5ed; font-size: .9rem; }
.data-table .total { font-weight: 700; color: var(--research-accent); }
.source-note { color: var(--research-muted); font-size: .8rem; line-height: 1.85; }
.research-figure { width: min(100% - 48px, 1080px); margin: 2.3rem auto 1.5rem; }
.chart-hint { font-size: .78rem; color: var(--research-muted); margin-bottom: .5rem !important; }
.chart-hint a { margin-left: .6rem; display: inline-block; padding-block: .2rem; }
.chart-scroll { overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #e0e1d9; border-radius: 3px; background: #fff; scrollbar-color: #8c9c91 #eef0e8; }
.chart-scroll img { display: block; width: 100%; min-width: 960px; max-width: none; height: auto; }
.research-figure figcaption { max-width: 780px; margin: 1.2rem auto 0; font-size: 1rem; line-height: 1.9; }
.research-figure figcaption strong { display: block; margin-bottom: .5rem; }
.research-figure figcaption p { margin-bottom: .6rem; }
.figure-source { color: var(--research-muted); font-size: .875rem; }
.reading-note { padding: 1.5rem 1.7rem; border-left: 3px solid #198754; background: #eff4e9; margin-block: 1.6rem; }
.reading-note p:last-child { margin-bottom: 0; }
.reading-note .formula { font-size: clamp(1.2rem, 5vw, 1.7rem); color: #17693f; font-variant-numeric: tabular-nums; margin-bottom: .65rem; }
.plain-list { padding-left: 1.3rem; margin-bottom: 1.5rem; }
.plain-list li { padding-left: .2rem; margin-bottom: .6rem; }
.method-list { list-style: decimal-leading-zero; padding-left: 2rem; margin-top: 2rem; }
.method-list li { padding-left: .5rem; margin-bottom: 1.5rem; }
.method-list li::marker { color: var(--research-accent); font-size: .85rem; font-weight: 700; }
.method-list h3 { margin-bottom: .5rem; }
.method-list p { font-size: .96rem; }
.calculation-box { border-block: 1px solid var(--research-border); padding-block: 1.1rem; margin-block: 1.8rem 2.5rem; font-size: .85rem; }
.calculation-box p:first-child { color: var(--research-muted); font-size: .78rem; margin-bottom: .4rem; }
.calculation-box .formula { margin-bottom: 0; overflow-wrap: anywhere; }
.sources-heading { margin-top: 2rem; }
.source-list { padding-left: 1.2rem; font-size: .9rem; }
.source-list li { padding-left: .2rem; margin-block: 1.3rem; overflow-wrap: anywhere; }
.source-list cite { font-style: normal; }
.resource-link { padding-block: 1.5rem; border-top: 1px solid var(--research-border); }
.resource-link:last-child { border-bottom: 1px solid var(--research-border); }
.resource-type { color: var(--research-muted); font-size: .75rem; letter-spacing: .04em; margin-bottom: .4rem !important; }
.resource-link h3 { font-size: 1.1rem; margin-bottom: .65rem; }
.resource-link p { margin-bottom: 0; font-size: .94rem; }
.resource-link .source-note { margin-top: .7rem; font-size: .8rem; }
.pending-link { color: var(--research-muted); }
.site-footer { margin-top: 5rem; padding-block: 2.6rem; background: #f5f4ef; border-top: 1px solid #e4e4dc; text-align: center; color: var(--research-muted); font-size: .8rem; }
.site-footer p { margin-bottom: 1rem; }
.site-footer .footer-note { font-size: .78rem; text-align: left; }
.site-footer small { font-size: .75rem; }
@media (max-width: 600px) {
  .research-page { font-size: 16px; line-height: 1.95; }
  .reading-column, .research-figure { width: calc(100% - 40px); }
  .site-nav { width: calc(100% - 40px); min-height: 64px; }
  .site-nav-links { font-size: .8rem; gap: 1rem; }
  .breadcrumb-wrap { padding-top: 1.25rem; }
  .breadcrumbs { font-size: .72rem; }
  .article-header { padding-block: 2.9rem 2.4rem; }
  .article-header .lead { font-size: 1.05rem; }
  .intro-copy { font-size: .95rem; }
  .research-page h1 { font-size: clamp(1.5rem, 7vw, 1.8rem); }
  .page-meta { justify-content: flex-start; font-size: .7rem; gap: .35rem .65rem; text-align: left; }
  .page-contents ol { grid-template-columns: 1fr; gap: .25rem; font-size: .87rem; }
  .page-contents a { padding-block: .35rem; }
  .research-section { padding-top: 3.7rem; }
  .data-table th, .data-table td { padding: .75rem .35rem; }
  .data-table caption { font-size: .78rem; }
  .data-table thead th { font-size: .83rem; }
  .research-figure { margin-top: 1.7rem; }
  .chart-hint a { margin-left: 0; margin-right: .6rem; }
  .research-figure figcaption { font-size: 1rem; }
  .figure-source { font-size: .875rem; }
  .reading-note { padding: 1.2rem; }
  .method-list { padding-left: 1.7rem; }
  .resource-link h3 { font-size: 1.04rem; }
}
@media (prefers-reduced-motion: reduce) { .research-page { scroll-behavior: auto; } }
@media print {
  .site-header { position: static; box-shadow: none; }
  .page-contents, .chart-hint, .skip-link { display: none; }
  .research-page { background: white; font-size: 10pt; }
  .reading-column, .research-figure { width: 100%; }
  .chart-scroll { overflow: visible; border: none; }
  .chart-scroll img { min-width: 0; width: 100%; }
  .research-section { padding-top: 1.6rem; }
  .research-figure { break-inside: avoid; }
}
