@charset "UTF-8";
/* ==========================================================================
   DeepAge — design/carbon
   1. Direction:      コットン紙とカーボン墨による技術サイト・関数リファレンス（expressive × system-fit）
   2. Differentiator: 英語アイブロウや宣伝調コピーを排し、IME対応の即時索引（全158本対象）と
                      実記事の構造図版4葉、連載/コラムの役割別組版で全165頁を一貫設計
   3. Type:           見出し・コラム長文は明朝（Hiragino Mincho / Yu Mincho Medium / Noto Serif CJK JP）、
                      連載解説・索引・仕様表・操作系はゴシック、識別子・数値は等幅（tabular-nums）
   4. Color tokens:   --paper #f8f6f1 / --plate #ffffff / --panel #f0ede5 / --ink #171614 (16.7:1) /
                      --indigo #1b4965 (8.9:1) / --vermilion #a6341b (6.2:1) / --rule-ctrl #736f67 (4.6:1)
   5. Layout:         12カラム（最大1200px）。左3カラムに見出し・追従目次・同章項目、右9カラムに本文・図版
   6. Motion:         即時索引照合（IME確定連動・Esc解除）と120msの下線・色遷移のみ（reduced-motion対応）
   ========================================================================== */

:root {
  --paper:     #f8f6f1;
  --plate:     #ffffff;
  --panel:     #f0ede5;
  --ink:       #171614;
  --ink-2:     #3b3935;
  --ink-3:     #5c5952;
  --rule:      #dbd7cd;
  --rule-fine: #e6e2d8;
  --rule-ctrl: #736f67;
  --indigo:    #1b4965;
  --vermilion: #a6341b;

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP",
           "Noto Serif JP", "IPAexMincho", serif;
  --sans:  "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic",
           "Noto Sans CJK JP", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
           "Segoe UI", Meiryo, sans-serif;
  --mono:  "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas,
           "Ubuntu Sans Mono", "Liberation Mono", "Noto Sans Mono CJK JP", monospace;

  --pad-x: clamp(18px, 4.6vw, 60px);
  --gap:   clamp(16px, 2.2vw, 30px);
  --space: clamp(64px, 8.5vw, 116px);

  color-scheme: light;
}

/* ---------- 基本 ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  font-kerning: normal;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports (text-autospace: normal) {
  body { text-autospace: normal; }
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 34%, transparent);
  text-underline-offset: .26em;
  transition: color .12s ease, text-decoration-color .12s ease;
}
a:hover {
  color: var(--indigo);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
  border-radius: 1px;
}

code, .code {
  font-family: var(--mono);
  font-size: .91em;
  letter-spacing: 0;
}

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.nw { white-space: nowrap; }
.sep { display: inline-block; width: 1em; }
.or {
  margin: 0 .2em;
  color: var(--ink-3);
}

.ext {
  display: inline-block;
  margin-left: .22em;
  font-family: var(--sans);
  font-size: .82em;
  color: var(--ink-3);
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: -120px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- 段組 ---------- */

.wrap {
  max-width: calc(1200px + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.label-col { grid-column: 1 / span 3; }
.body-col  { grid-column: 4 / -1; }

/* ---------- 和文組版（見出し・リード） ---------- */

.lede,
.page-title,
.article-title,
.statement,
.plate-title,
h1, h2, h3 {
  font-feature-settings: "palt";
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* ---------- 版元ヘッダ ---------- */

.masthead {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  min-height: 66px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.masthead-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.brand {
  display: block;
  flex: none;
  text-decoration: none;
}
.brand img {
  width: 132px;
  height: auto;
  /* 白抜きの logo.png をカーボン墨色に反転する */
  filter: invert(1) brightness(.09);
}
.masthead-imprint {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.site-nav a {
  display: block;
  padding: 2px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--indigo);
  border-bottom-color: var(--rule);
}
.site-nav a[aria-current="page"],
.site-nav a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--vermilion);
}

/* ---------- 章・節の共通見出し ---------- */

.section {
  margin-top: var(--space);
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.label {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ink);
}
.label-sub {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- 下層ページ冒頭 ---------- */

.page-head {
  padding-top: clamp(48px, 7.5vw, 96px);
}
.page-head ~ .section {
  margin-top: clamp(48px, 6.5vw, 80px);
}
.page-title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(27px, 1.2rem + 1.5vw, 38px);
  line-height: 1.36;
  font-weight: 700;
  letter-spacing: .02em;
}
.lede-sm {
  grid-column: 1 / span 9;
  max-width: 44em;
  margin-top: 16px;
  font-size: clamp(15.5px, .92rem + .25vw, 17.5px);
  line-height: 1.88;
  color: var(--ink-2);
}
.lede-sm code { font-size: .88em; }
.page-meta {
  grid-column: 1 / -1;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.page-meta .num {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 定義台帳（運営・窓口） ---------- */

.prose {
  max-width: 41em;
  font-size: 15.5px;
  line-height: 1.92;
  color: var(--ink-2);
}

.colophon {
  max-width: 44em;
  margin-top: 20px;
  border-top: 1px solid var(--rule);
}
.prose + .colophon { margin-top: 24px; }
.colophon > div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 2px var(--gap);
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.72;
}
.colophon dt {
  padding-top: .12em;
  font-size: 13px;
  color: var(--ink-3);
}
.colophon small {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.source {
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
}

/* ---------- 奥付フッタ ---------- */

.site-footer {
  margin-top: var(--space);
  border-top: 1px solid var(--ink);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 24px;
  padding-bottom: 52px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--indigo); text-decoration: underline; }

/* ---------- 幅ごとの調整 ---------- */

@media (max-width: 880px) {
  .grid { display: block; }
  .body-col { margin-top: 16px; }
  .lede-sm { margin-top: 14px; }
}

@media (max-width: 540px) {
  .masthead-inner { min-height: 0; padding-top: 14px; padding-bottom: 12px; }
  .brand img { width: 118px; }
  .masthead-imprint { display: none; }
  .site-nav ul { gap: 4px 16px; }
  .site-nav a { font-size: 13.5px; }
  .colophon > div { grid-template-columns: 5.8em minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-nav, .site-footer, .skip-link { display: none; }
  body { background: #ffffff; color: #000000; }
  a { text-decoration: none; }
}
