/*
 * airbinder.jp のデザインシステム（2026-10-08 作り直し。方向 C「航空図とブリーフィング」）
 *
 * 図台（航空図の紙）の上に、ブリーフィングの書類を重ねる。色は墨（紺）・航空図の青・経路のマゼンタの 3 色に絞り、
 * 緑は受理済（ACK）にだけ、琥珀は日出・日没の線にだけ使う。IFR と VFR は同じ重さで扱い、図では実線と破線で分ける。
 *
 * 使い方は /_design/（部品の見本）にまとめた。ほかのページはここにあるクラスだけで組み、このファイルを直さずに済むようにする。
 * このファイルを変えたら、全ページの読み込み（/assets/css/site.css?v=…）の値を変える（/assets/* は 1 年キャッシュする）。
 *
 * 決まり
 * - CSP（_headers）で style 属性・<style>・スクリプトは使えない。見た目はすべてこのファイルのクラスで決める。
 * - B612 / B612 Mono は本物の航空データ（略号・時刻・周波数・電文・項目番号の英字）にだけ使う（.data / .mono）。
 *   見出しの飾りの英字・節の番号には使わない。
 * - 見出しは word-break: keep-all。文節の切れ目に <wbr>、英字と助詞の間は &nbsp;、切りたくない語は .nw。
 * - 動きは「確認中」の印の点滅だけ。prefers-reduced-motion で止める。
 */

/* ───────── フォント（B612 / B612 Mono。Airbus がコックピットの表示のために作った書体。OFL 1.1） ───────── */

@font-face { font-family: "B612"; src: url("/assets/fonts/b612-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2032-2033, U+2190-2193, U+2212; }
@font-face { font-family: "B612"; src: url("/assets/fonts/b612-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2032-2033, U+2190-2193, U+2212; }
@font-face { font-family: "B612 Mono"; src: url("/assets/fonts/b612-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2032-2033, U+2190-2193, U+2212; }
@font-face { font-family: "B612 Mono"; src: url("/assets/fonts/b612-mono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2032-2033, U+2190-2193, U+2212; }

/* ───────── 色と寸法 ───────── */

:root {
  color-scheme: light dark;
  --paper: #ECEAE2;        /* 図台（冒頭・ページの頭・交互の節）。冒頭の航空図の陸の色と同じ */
  --sheet: #F9F8F3;        /* 書類（本文の地） */
  --sheet-2: #F1EFE7;      /* 表の頭・弱い面 */
  --ink: #142A4C;          /* 墨（本文 13.0:1） */
  --ink-2: #3D4D6B;        /* 補足（8.4:1） */
  --ink-3: #56627B;        /* 小さなラベル（紙の上で 5.1:1） */
  --rule: rgba(20, 42, 76, .14);
  --rule-2: rgba(20, 42, 76, .32);
  --blue: #1D5592;         /* 航空図の青: リンク・航空路・施設・確認中 */
  --blue-tint: #DFE7F0;
  --mag: #9C1A5E;          /* 経路のマゼンタ: 経路・選んでいる所・焦点 */
  --mag-tint: #F3E1EA;
  --ack: #1A6436;          /* 受理済（ACK）にだけ使う */
  --ack-tint: #DCEADF;
  --warn: #8A4A00;         /* 注意 */
  --warn-tint: #F5E8D2;
  --dawn: #B9770F;         /* 日出・日没の線と地平線にだけ使う */
  --day: rgba(222, 170, 70, .11); /* 時刻の目盛りの昼間 */
  --sea: #D2DEE3;
  --device: #1A2233;       /* 端末の縁 */
  --on-ink: #F9F8F3;       /* 墨の地の上の文字 */
  --on-ink-2: #C3CCDA;
  --band: #142A4C;         /* 墨の帯（公開の予定） */
  --tab: #142A4C;          /* 運航票の方式の札の地 */
  --on-tab: #F9F8F3;
  --shadow: 0 1px 0 rgba(20, 42, 76, .05), 0 22px 44px -28px rgba(20, 42, 76, .55);

  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-data: "B612", var(--font-ja);
  --font-mono: "B612 Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.45vw, 64px);
  --maxw: 1312px;
  --head-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C1626;
    --sheet: #111D33;
    --sheet-2: #16253F;
    --ink: #E8EDF4;
    --ink-2: #B9C4D6;
    --ink-3: #9CA9BF;
    --rule: rgba(232, 237, 244, .13);
    --rule-2: rgba(232, 237, 244, .30);
    --blue: #8EBAEB;
    --blue-tint: #1A2F4F;
    --mag: #EE8FC4;
    --mag-tint: #3B1F37;
    --ack: #7DCD98;
    --ack-tint: #163725;
    --warn: #F0B866;
    --warn-tint: #3A2A12;
    --dawn: #F0B04A;
    --day: rgba(240, 176, 74, .10);
    --sea: #070E1A;
    --device: #04070D;
    --on-ink: #E8EDF4;
    --on-ink-2: #B9C4D6;
    --band: #091222;
    --tab: #24395C;
    --on-tab: #E8EDF4;
    --shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 22px 44px -24px rgba(0, 0, 0, .85);
  }
}

/* ───────── 土台 ───────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 3px; }
p { margin: 0 0 1em; text-wrap: pretty; }
dd, li, figcaption, td { text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; font-feature-settings: "palt"; }
ul, ol { margin: 0; padding: 0; }
dl, dd, figure { margin: 0; }
abbr[title] { text-decoration: none; }
table { border-collapse: collapse; }
small { font-size: .82em; }
hr { border: 0; border-top: 1px solid var(--rule-2); margin: 40px 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.nw { white-space: nowrap; }
.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -64px; z-index: 60; background: var(--ink); color: var(--sheet); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-3); }
.fine { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.fine + .fine { margin-top: 4px; }

/* ───────── ヘッダー（.site-head） ───────── */

.site-head { position: sticky; top: 0; z-index: 30; background: var(--sheet); border-bottom: 1px solid var(--rule-2); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .01em; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { margin-left: 8px; }
.nav ul { display: flex; list-style: none; }
.nav a { display: block; padding: 20px 11px 18px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--rule-2); }
.nav a[aria-current] { border-bottom-color: var(--mag); font-weight: 700; }
.head-cta { margin-left: auto; }
/* ［メニュー］は右端に置く。幅 760px 以上ではボタン（.head-cta）が右へ寄せるので、その後ろに続ける。
   760px 未満では .head-cta は display:none でも隣接セレクタに当たるので、メディアクエリの中にだけ書く */
.menu { position: relative; margin-left: auto; }
@media (min-width: 760px) { .head-cta + .menu { margin-left: 0; } }
.menu summary { list-style: none; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--rule-2); border-radius: 3px; font-size: 14.5px; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.menu[open] summary { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(86vw, 320px); background: var(--sheet); border: 1px solid var(--rule-2); box-shadow: var(--shadow); padding: 8px 0 16px; }
.menu-panel ul { list-style: none; }
.menu-panel a { display: block; padding: 12px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.menu-panel a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 0 var(--mag); }
.menu-panel .btn { display: flex; margin: 16px 20px 0; border-bottom: 0; }
/* .menu-panel a（文字は墨）より強くして、墨の地のボタンの文字を書類の色にする */
.menu-panel .btn--primary { color: var(--sheet); }
.menu-panel .btn--primary:hover { color: #fff; }
.nav, .site-head .head-cta { display: none; }
@media (min-width: 760px) { .site-head .head-cta { display: inline-flex; } .menu-panel .btn { display: none; } }
@media (min-width: 1180px) { .nav { display: block; } .menu { display: none; } }

/* ───────── ボタンとリンク ───────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; text-decoration: none; text-align: center; border-radius: 3px; border: 2px solid transparent; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
/* ボタンの文は <wbr> の位置でだけ折り返す（和文はどこでも折れるので、狭い幅で「る」だけの行ができた） */
.btn span { word-break: keep-all; }
.btn--primary { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.btn--primary:hover { background: var(--mag); border-color: var(--mag); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--sheet); }
.btn--on-ink { background: var(--on-ink); color: var(--band); border-color: var(--on-ink); }
.btn--on-ink:hover { background: transparent; color: var(--on-ink); }
.btn--sm { min-height: 40px; padding: 7px 14px; font-size: 14px; gap: 8px; }
.btn--sm svg { width: 16px; height: 16px; }
.link-more { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--mag); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.link-more::after { content: "\00a0→"; font-family: var(--font-data); } /* 矢印だけが次の行に行かないよう、前は改行しない空白 */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }

/* ───────── 節の頭（小見出し＝節の名前、見出し＝主張） ───────── */

.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sec--paper { background: var(--paper); }
.sec--tight { padding: clamp(40px, 5vw, 64px) 0; }
.sec + .sec:not(.sec--paper):not(.launch) { border-top: 1px solid var(--rule); }
.sec-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 52px); }
.kicker { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; font-size: 14.5px; font-weight: 700; letter-spacing: .08em; color: var(--mag); }
.kicker-no { min-width: 1.6em; padding-bottom: 2px; border-bottom: 2px solid currentColor; font-variant-numeric: tabular-nums; text-align: center; }
.claim { font-size: clamp(25px, 1.55vw + 17px, 40px); line-height: 1.42; letter-spacing: .01em; }
.claim-qual { display: inline-block; margin-top: 12px; padding: 2px 10px; border: 1px solid var(--rule-2); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.sec-lead { margin-top: 20px; font-size: 17px; line-height: 1.95; color: var(--ink-2); max-width: 40em; }
.sec-foot { margin-top: 40px; }
.sub-head { font-size: clamp(20px, .6vw + 16px, 24px); line-height: 1.5; margin-bottom: 14px; }

/* ───────── 冒頭（ホーム） ───────── */

.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero-grid { position: relative; display: grid; gap: 28px; padding-top: clamp(36px, 5vw, 64px); }
.hero-kicker { margin: 0 0 16px; font-size: 14.5px; font-weight: 700; letter-spacing: .08em; color: var(--mag); }
.hero h1 { font-size: clamp(29px, 1.2vw + 22px, 41px); line-height: 1.4; letter-spacing: .01em; }
.hero h1 .line { display: block; }
.hero-lead, .sec-lead, .page-lead { word-break: auto-phrase; }
.hero-lead { margin-top: 22px; font-size: 17px; line-height: 1.95; color: var(--ink-2); max-width: 34em; }
.hero-note { margin-top: 20px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); max-width: 32em; }
.hero-chart { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.hero-chart picture, .hero-chart img { width: 100%; }
.hero-chart img { max-width: none; }
.chart-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 10px var(--gutter) 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.chart-key { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.chart-key svg { width: 34px; height: 10px; }
.chart-key .k-ifr { stroke: var(--mag); stroke-width: 3; }
.chart-key .k-vfr { stroke: var(--mag); stroke-width: 3; stroke-dasharray: 7 5; }
@media (min-width: 600px) {
  .hero-chart { margin-inline: 0; max-width: 560px; }
  .chart-cap { margin-inline: 0; }
}
/* 600〜899px: compact の図（幅 560px まで）を欄の真ん中に置く（左に寄ると、下の運航票・時刻の目盛り（欄の幅いっぱい）と組みが偏る）。
   注記（.chart-cap）は図の中にあるので、図と同じ幅で真ん中に来る */
@media (min-width: 600px) and (max-width: 899px) { .hero-chart { margin-inline: auto; width: 100%; } }
@media (min-width: 900px) {
  .hero-chart { max-width: none; }
}
/* 幅 1260px 以上: 文を左、図を右（図は画面の右端まで） */
/* 幅 1260px 以上: 文を左、図を右（図は画面の右端まで）。図は 740〜800px（wide の文字 13.5 が 12.5px 以上）。
   wide の図を出すのは幅 900px 以上（index.html の <source media>）。それより狭いときは compact（文字 18 以上） */
@media (min-width: 1260px) {
  .hero-grid { grid-template-columns: minmax(0, 480px) 1fr; min-height: calc(max(740px, min(800px, 100vw - 520px)) * .875 + 72px); padding-top: 0; }
  .hero-copy { align-self: center; padding: 48px 0 96px; }
  .hero-chart { position: absolute; top: 0; right: calc(-1 * min(max(var(--gutter), (100vw - var(--maxw)) / 2), 160px)); width: max(740px, min(800px, 100vw - 520px)); max-width: none; }
  .hero-chart picture { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 24px), transparent), linear-gradient(180deg, #000 calc(100% - 40px), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 24px), transparent), linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-composite: intersect; }
  .chart-cap { margin: 8px 16px 0 56px; }
}
@media (min-width: 1440px) { .hero-grid { grid-template-columns: minmax(0, 560px) 1fr; } }

/* 通報の例（運航票 2 枚と時刻の目盛り） */
.brief { position: relative; padding: 28px 0 clamp(40px, 5vw, 64px); }
.brief-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 14px; }
.brief-title { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.brief-note { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); max-width: 64em; }

/* ───────── 運航票（.strip） ───────── */

.strips { display: grid; gap: 16px; }
@media (min-width: 1100px) { .strips { grid-template-columns: 1fr 1fr; gap: 24px; } }
.strip { display: grid; grid-template-columns: 48px 1fr; background: var(--sheet); border: 1px solid var(--rule-2); box-shadow: var(--shadow); }
.strip-rule { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; margin: 0; background: var(--tab); color: var(--on-tab); font-family: var(--font-data); font-weight: 700; font-size: 18px; letter-spacing: .08em; }
.strip-rule abbr { display: block; }
.strip-rule { flex-direction: column; gap: 8px; }
.strip-line { display: block; width: 30px; height: 0; border-top: 3px solid currentColor; }
.strip--vfr .strip-line { border-top-style: dashed; }
.strip-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strip-cells > div { padding: 10px 14px 12px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.strip-cells > div:nth-child(odd) { border-left: 0; }
.strip-cells dt { font-size: 12px; line-height: 1.5; color: var(--ink-3); letter-spacing: .04em; word-break: keep-all; }
.strip-cells dd { display: flex; flex-direction: column; line-height: 1.45; }
.strip-cells dd b { font-family: var(--font-data); font-size: 17px; letter-spacing: .04em; }
@media (min-width: 600px) { .strip { grid-template-columns: 64px 1fr; } .strip-cells dd b { font-size: 19px; letter-spacing: .05em; white-space: nowrap; } .strip-cells dt { white-space: nowrap; } }
.strip-cells dd .data, .strip-cells dd small { font-size: 14px; color: var(--ink-2); }
.strip-cells dd small { font-size: 13px; }
.strip-cells .sc-rte dd .data { overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .strip-cells { grid-template-columns: .9fr .9fr 1.5fr 1fr; }
  .strip-cells > div { border-bottom: 0; border-left: 1px solid var(--rule); }
  .strip-cells > div:first-child { border-left: 0; }
  .strip-cells > div:nth-child(odd):not(:first-child) { border-left: 1px solid var(--rule); }
}
.strip-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--rule-2); font-size: 14px; line-height: 1.6; }
.strip-state b { font-size: 15px; }
.strip-state .data { font-size: 13.5px; color: var(--ink-2); }
.strip-state .st-msg { color: var(--ink-2); flex-basis: 100%; }
@media (min-width: 760px) { .strip-state .st-msg { flex-basis: auto; } }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 2px; flex: none; }
.mark svg { width: 15px; height: 15px; }
.is-ack .mark { background: var(--ack); color: var(--sheet); }
.is-ack b { color: var(--ack); }
.is-pending .mark { background: var(--blue); color: var(--sheet); }
.is-pending b { color: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .is-pending .mark { animation: lamp 2.4s ease-in-out infinite; }
}
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ───────── 時刻の目盛り（.timescale）: 05:00〜18:00 JST を 780 本の 1 分の列に分ける ───────── */
/* 線の番号 = 05:00 からの分 + 1。2026/10/13 の例: 日出 05:47 → 48、日没 17:09 → 730、VFR 12:45〜13:45 → 466 / 526、IFR 14:30〜15:20 → 571 / 621（README.md「飛行の例」） */

.timescale { margin-top: 28px; }
.ts { position: relative; display: grid; grid-template-columns: repeat(780, minmax(0, 1fr)); grid-template-rows: 26px 18px 18px 1px auto; row-gap: 0; }
.ts-day { grid-row: 1 / 4; grid-column: 48 / 730; background: var(--day); border-left: 1px solid var(--dawn); border-right: 1px solid var(--dawn); }
.ts-sun { grid-row: 1; align-self: start; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); white-space: nowrap; padding: 3px 8px; }
.ts-sun--rise { grid-column: 48 / 400; }
.ts-sun--set { grid-column: 400 / 730; justify-self: end; text-align: right; }
.ts-horizon { grid-row: 4; grid-column: 1 / -1; background: var(--dawn); }
.ts-bar { grid-row: 2; align-self: center; height: 10px; background: var(--mag); position: relative; }
.ts-bar--vfr { grid-row: 3; grid-column: 466 / 526; background: repeating-linear-gradient(90deg, var(--mag) 0 6px, transparent 6px 9px); }
.ts-bar--ifr { grid-column: 571 / 621; }
.ts-bar > span { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; line-height: 1; color: var(--mag); white-space: nowrap; }
.ts-hours { grid-row: 5; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); list-style: none; }
.ts-hours li { position: relative; padding: 8px 0 0 5px; font-family: var(--font-data); font-size: 13px; line-height: 1.35; color: var(--ink-2); border-left: 1px solid var(--rule-2); white-space: nowrap; }
.ts-hours li small { display: block; font-size: 12px; color: var(--ink-3); }
.ts-hours li:last-child::after { content: ""; position: absolute; right: 0; top: 0; height: 8px; border-right: 1px solid var(--rule-2); }
.ts-legend { display: grid; gap: 6px 28px; margin-top: 14px; list-style: none; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.ts-legend li { display: flex; align-items: center; gap: 10px; }
.ts-legend .sw { width: 28px; height: 8px; flex: none; background: var(--mag); }
.ts-legend .sw--vfr { background: repeating-linear-gradient(90deg, var(--mag) 0 6px, transparent 6px 9px); }
.ts-legend .sw--day { height: 14px; background: var(--day); border-left: 1px solid var(--dawn); border-right: 1px solid var(--dawn); }
/* 凡例は項目ごとに折り返す（grid の列にすると、狭い列で「昼間（調布の日出から日没まで）」が 1〜2 文字ずつに折れる） */
@media (min-width: 760px) { .ts-legend { display: flex; flex-wrap: wrap; gap: 6px 28px; } .ts-legend li { flex: none; max-width: 100%; } }
@media (max-width: 759px) {
  .ts-hours li, .ts-hours li small { font-size: 0; padding-left: 0; }
  .ts-hours li:nth-child(3n+2) { font-size: 12px; padding-left: 4px; }
  .ts-hours li:nth-child(3n+2) small { font-size: 12px; }
  /* 日出・日没は消さず、目盛りの下に 1 行ずつ出す */
  .ts-sun { grid-column: 1 / -1; justify-self: start; text-align: left; white-space: normal; padding: 0; }
  .ts-sun--rise { grid-row: 6; margin-top: 8px; }
  .ts-sun--set { grid-row: 7; }
}
.ts-legend li > span:last-child { display: flex; flex-wrap: wrap; column-gap: 1em; }
.ts-legend .data { white-space: nowrap; }

/* ───────── 図版と画面の写真 ───────── */

.figure { margin: 0; }
.fig-cap { margin-top: 12px; font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.fig-cap b { color: var(--ink); margin-right: .6em; }
/* 銘板（画面の写真の上の札）: 左に何の画面か、右に航空データの見出し */
.placard { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 0 2px 6px; border-bottom: 1px solid var(--rule-2); font-size: 13px; line-height: 1.5; font-weight: 700; color: var(--ink-2); }
.placard .data { font-weight: 400; color: var(--ink-3); white-space: nowrap; }
/* 端末の画面（上から見せ、下は切る。写真は幅 750px の JPEG） */
.screen { position: relative; overflow: hidden; aspect-ratio: 750 / 1400; border: 7px solid var(--device); border-bottom-width: 0; border-radius: 34px 34px 0 0; background: var(--device); box-shadow: var(--shadow); }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 27px 27px 0 0; }
.screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(180deg, transparent, var(--fade, var(--sheet))); pointer-events: none; }
.sec--paper .screen, .hero .screen, .launch .screen { --fade: var(--paper); }
.launch .screen { --fade: var(--band); }
.screen--short { aspect-ratio: 750 / 1000; }
.screen--full { aspect-ratio: 750 / 1520; }
/* 送信前の確認の写真（ICAO 形式のカードの下端で切った 750×1240。画面の下の帯の文を写さない） */
.screen--preview { aspect-ratio: 750 / 1240; }
@media (prefers-color-scheme: dark) { .screen img { filter: brightness(.92); } }
/* 画面の一部（節を切り抜いた写真）: 角を少し丸めた枠だけ */
.screen-part { overflow: hidden; border: 1px solid var(--rule-2); border-radius: 12px; background: #F2F2F7; box-shadow: var(--shadow); }
.screen-part img { width: 100%; }
@media (prefers-color-scheme: dark) { .screen-part img { filter: brightness(.92); } }
/* 紙（記録の PDF） */
.paper { padding: 8px; background: #fff; border: 1px solid rgba(20, 42, 76, .2); box-shadow: 0 1px 0 rgba(20, 42, 76, .06), 0 30px 50px -30px rgba(20, 42, 76, .5); transform: rotate(-.6deg); }
.paper img { width: 100%; }
@media (prefers-reduced-motion: reduce) { .paper { transform: none; } }
/* 写真を 2〜3 枚並べる */
.shots { display: grid; gap: 28px; align-items: start; }
@media (min-width: 600px) { .shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shots--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shots--narrow { max-width: 760px; }
.figure:has(> .screen) { width: 100%; max-width: 340px; }
.figure:has(> .paper) { width: 100%; max-width: 540px; }
.shots--phones { grid-template-columns: repeat(auto-fill, minmax(200px, 300px)); justify-content: start; column-gap: 40px; }
/* 幅 600px 未満: 端末の写真は 1 列で、幅 300px までに（2 枚を並べると 1 枚が 135〜165px になり、画面の文字が読めない） */
@media (max-width: 599px) {
  .shots--2, .shots--phones, .feature-figs--2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shots > .figure:has(> .screen), .feature-figs > .figure:has(> .screen) { width: min(100%, 300px); justify-self: center; }
  .screen { border-width: 6px; border-radius: 30px 30px 0 0; }
  .screen img { border-radius: 24px 24px 0 0; }
}
/* 送信前の確認の画面 2 枚と、ICAO 形式の平文の例（.send-figs）。広い画面では画面の右に平文を縦に並べる（画面だけだと右が空く）。
   目次のあるページ（機能・使い方）は本文の欄が約 1,000px になる 1400px 以上、目次の無いホーム（.send-figs--wide）は 1100px 以上。
   ホームは写真の欄を 560px までにし、平文の枠を約 700px にする（1400px 以上で IFR の第 18 項が 1 行に収まる） */
.send-figs { display: grid; gap: 36px; align-items: start; }
.send-telex .sub-head { font-size: 17px; margin-bottom: 12px; }
.send-telex .telex + .fine { margin-top: 12px; }
@media (min-width: 1100px) {
  .send-figs--wide { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 48px; }
  .send-figs--wide .shots--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .send-figs--wide .telex { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (min-width: 1400px) {
  .send-figs { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 40px; }
  .send-figs .shots--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .send-figs .telex { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .send-figs--wide { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 48px; }
}

/* ───────── 注記（.note）・状態の札（.tag） ───────── */

.note { padding: 16px 20px 18px; border-left: 4px solid var(--blue); background: var(--blue-tint); font-size: 15px; line-height: 1.85; }
.note--ack { border-left-color: var(--ack); background: var(--ack-tint); }
.note--warn { border-left-color: var(--warn); background: var(--warn-tint); }
.note-title { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.note + .note { margin-top: 16px; }
.notes .note + .note { margin-top: 0; }
.notes { display: grid; gap: 16px; }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; } }
.tag { display: inline-block; padding: 1px 9px; border: 1px solid currentColor; border-radius: 2px; font-size: 12.5px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; vertical-align: .1em; }
.tag--prep { color: var(--blue); }
.tag--check { color: var(--warn); }
.tag--ack { color: var(--ack); }

/* ───────── 表（.table）・IFR と VFR の対照表（.table--compare） ───────── */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: 15px; line-height: 1.7; background: var(--sheet); }
.table caption { text-align: left; font-weight: 700; padding-bottom: 10px; font-size: 15px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table thead th { font-size: 13px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); background: var(--sheet-2); }
.table tbody th { font-weight: 700; }
.table--compare { table-layout: fixed; border-top: 2px solid var(--ink); }
.table--compare col.c-item { width: 30%; }
.table--compare thead th { background: transparent; padding-top: 16px; vertical-align: bottom; }
.table--compare .rulecode { display: block; font-family: var(--font-data); font-size: 30px; line-height: 1.1; color: var(--ink); letter-spacing: .04em; }
.table--compare .trip { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.table--compare .no { display: inline-block; min-width: 2.2em; font-family: var(--font-data); color: var(--mag); }
.table--compare .v { display: block; font-family: var(--font-mono); font-size: 15px; letter-spacing: .02em; overflow-wrap: anywhere; color: var(--ink); }
.table--compare .g { display: block; margin-top: 4px; font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.table--compare tbody th { font-weight: 400; color: var(--ink-2); word-break: keep-all; } /* 項目名は <wbr>（・の後）でだけ折り返す */
.table--compare tr.is-diff th { color: var(--ink); font-weight: 700; }
.table--compare tr.is-diff .v { font-weight: 700; }
.table--compare tr.is-diff td, .table--compare tr.is-diff th { background: var(--mag-tint); }
.table--compare tr.is-diff th { box-shadow: inset 4px 0 0 var(--mag); }
@media (max-width: 759px) {
  .table--compare, .table--compare tbody, .table--compare tr { display: block; width: 100%; }
  .table--compare thead { display: none; }
  .table--compare tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
  .table--compare tbody th { grid-column: 1 / -1; padding-bottom: 2px; border-bottom: 0; }
  .table--compare td { border-bottom: 0; padding-top: 4px; }
  .table--compare td::before { content: attr(data-rule); display: block; font-family: var(--font-data); font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
}

/* 区間の表（.table--legs）: LEG 1〜3 */
.table--legs th.leg { font-family: var(--font-data); white-space: nowrap; color: var(--mag); }
.table--legs td.path { white-space: nowrap; font-weight: 700; }
@media (max-width: 599px) {
  .table--legs thead { display: none; }
  .table--legs tr { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .table--legs th, .table--legs td { border: 0; padding: 0; }
  .table--legs td:last-child { grid-column: 1 / -1; margin-top: 4px; }
}

/* ───────── 一覧の部品 ───────── */

/* 仕様の短い表（dt と dd） */
.spec { margin-top: 24px; border-top: 1px solid var(--rule-2); }
.spec > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.8; }
.spec dt { font-weight: 700; word-break: keep-all; }
.spec dd { color: var(--ink-2); }
@media (max-width: 479px) { .spec > div { grid-template-columns: 1fr; gap: 2px; } }

/* 機能の一覧（.items）: 名前と説明。2 列に組む */
.items { display: grid; gap: 0 40px; border-top: 1px solid var(--rule-2); }
.items > div { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.items dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 17px; font-weight: 700; line-height: 1.55; word-break: keep-all; }
.items dt .data { font-size: 13.5px; font-weight: 400; color: var(--ink-3); }
.items dd { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
@media (min-width: 900px) { .items--2 { grid-template-columns: 1fr 1fr; } }

/* 台帳（.ledger）: 安心して使うための約束 */
.ledger { display: grid; border-top: 2px solid var(--ink); }
.ledger > div { display: grid; gap: 6px 32px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.ledger dt { font-size: 17px; font-weight: 700; line-height: 1.55; word-break: keep-all; }
.ledger dd { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
@media (min-width: 900px) { .ledger > div { grid-template-columns: 15em 1fr; } }

/* チェックリスト（.checklist）: 項目 …… 応答 */
.checklist { background: var(--sheet); border: 1px solid var(--rule-2); }
.checklist-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 20px; border-bottom: 2px solid var(--ink); font-size: 14.5px; font-weight: 700; letter-spacing: .06em; }
.checklist-head span:last-child { font-weight: 400; color: var(--ink-3); }
.checklist-head > span:last-child { white-space: nowrap; }
.checklist ol { list-style: none; counter-reset: c; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 2.2em 1fr; padding: 14px 20px 16px 12px; border-bottom: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: counter(c); font-weight: 700; color: var(--ink-3); text-align: center; line-height: 1.7; }
.check-row { display: flex; align-items: baseline; gap: 10px; margin: 0; font-weight: 700; line-height: 1.7; }
.check-row .dots { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--rule-2); transform: translateY(-5px); }
.check-row .resp { white-space: nowrap; letter-spacing: .04em; }
.check-x { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
@media (max-width: 599px) {
  .check-row { flex-wrap: wrap; }
  .check-row .dots { display: none; }
  .check-row .resp { width: 100%; font-weight: 400; font-size: 14px; color: var(--mag); white-space: normal; }
}

/* 手順（.route）: 位置通報点の三角でつなぐ。最後は飛行場の丸 */
.route { display: grid; gap: 0; list-style: none; counter-reset: s; }
.route > li { position: relative; padding: 0 0 28px 40px; }
.route > li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; border-left: 2px solid var(--mag); }
.route > li:last-child::before { display: none; }
.route .wp { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; color: var(--mag); }
.route .wp svg { width: 24px; height: 24px; fill: var(--sheet); stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.sec--paper .route .wp svg { fill: var(--paper); }
.route .step-no { margin: 0; font-size: 13px; font-weight: 700; color: var(--mag); letter-spacing: .06em; }
.route h3 { font-size: 18px; line-height: 1.5; margin: 2px 0 6px; }
.route p { font-size: 15px; line-height: 1.8; color: var(--ink-2); margin: 0; }
.route .who { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
@media (min-width: 1024px) {
  .route { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
  .route > li { padding: 42px 0 0; }
  .route > li::before { left: 26px; right: -28px; top: 11px; bottom: auto; border-left: 0; border-top: 2px solid var(--mag); }
  .route .wp { top: 0; }
}

/* 航空図の索引（.chart-index）: AD 2.24 の図の一部と EFF */
.chart-index { border: 1px solid var(--rule-2); background: var(--sheet); container-type: inline-size; }
/* 索引の欄が狭いときは、EFF を図の名前の下に置く（右に並べると欄からはみ出す） */
@container (max-width: 400px) { .chart-index li { grid-template-columns: 4.6em minmax(0, 1fr); row-gap: 0; } .chart-index .eff { grid-column: 2; } }
.chart-index-head p { margin: 0; }
.chart-index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.chart-index-head .ad { white-space: nowrap; }
.chart-index-head .ad { font-family: var(--font-data); font-size: 22px; font-weight: 700; letter-spacing: .05em; }
.chart-index-head .ad small { margin-left: 8px; font-family: var(--font-ja); font-size: 13px; font-weight: 400; color: var(--ink-2); letter-spacing: .02em; }
.chart-index-head .ed { font-family: var(--font-data); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.chart-index ol { list-style: none; }
.chart-index li { display: grid; grid-template-columns: 4.6em 1fr auto; gap: 10px; align-items: baseline; padding: 9px 16px; border-bottom: 1px solid var(--rule); font-family: var(--font-data); font-size: 13.5px; line-height: 1.5; }
.chart-index li:last-child { border-bottom: 0; }
.chart-index .cat { font-weight: 700; color: var(--blue); font-size: 12px; letter-spacing: .06em; }
.chart-index .eff { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.chart-index-foot { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--rule-2); font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }

/* 電文（ICAO 形式の平文） */
.telex { display: grid; gap: 20px; }
@media (min-width: 900px) { .telex { grid-template-columns: 1fr 1fr; gap: 28px; } }
.telex figcaption { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.telex figcaption b { font-family: var(--font-data); color: var(--ink); letter-spacing: .06em; }
.telex pre { margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--sheet-2); border: 1px solid var(--rule-2); border-left: 4px solid var(--mag); font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 600px) { .telex pre { font-size: 14.5px; } }
.telex .is-vfr pre { border-left-style: dashed; }
/* 電文の各項目は <span class="tl"> で包む（pre の中に改行は書かない）。折り返した行だけを 2 文字下げ、「-」で始まる項目の行と見分ける */
.telex .tl { display: block; padding-left: 2ch; text-indent: -2ch; text-wrap: pretty; }

/* 何を、どこへ送るか（.legs-map: インライン SVG） */
.legs-map { width: 100%; height: auto; max-width: 560px; margin-bottom: 20px; }
.legs-map .lm-grid path { stroke: var(--rule); stroke-width: 1; fill: none; }
.legs-map .lm-leg { fill: none; stroke-width: 3; stroke-linecap: round; }
.legs-map .lm-leg--1 { stroke: var(--blue); }
.legs-map .lm-leg--2 { stroke: var(--ink-3); stroke-dasharray: 8 6; }
.legs-map .lm-leg--3 { stroke: var(--mag); }
.legs-map .lm-node rect, .legs-map .lm-node path { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; }
.legs-map .lm-node circle { fill: var(--ink); }
/* 文字は viewBox の単位。横の図（--h）は幅 600px 以上で出し、いちばん縮む幅 1024px（倍率 0.78）でも 12px 以上。
   幅 600px 未満は縦の図（--v。文字を傾けない。幅 320px で倍率 0.85） */
.legs-map text { font-family: var(--font-ja); font-size: 16px; fill: var(--ink-2); }
.legs-map .lm-name { font-weight: 700; fill: var(--ink); font-size: 17px; }
.legs-map .lm-id { font-family: var(--font-data); font-weight: 700; font-size: 15.5px; fill: var(--mag); letter-spacing: .06em; }
/* 矢じり（.lm-head）: 縦の図は線の端に描いたパス、横の図は <marker> の中のパス（同じ形・同じクラスで色を付ける） */
.legs-map .lm-head { stroke-dasharray: none; stroke-linejoin: round; }
.legs-map--v { display: none; max-width: 400px; }
.legs-map--v text, .legs-map--v .lm-name, .legs-map--v .lm-id { font-size: 15px; }
@media (max-width: 599px) { .legs-map--h { display: none; } .legs-map--v { display: block; } }

/* 経過（.legs-flow）: 送信 → SWIM 受付 → 確認中 → 受理済。どの例かは、目に見える小見出し（.flow-head）で示す */
.flow { display: grid; list-style: none; margin-top: clamp(48px, 6vw, 80px); border-top: 2px solid var(--ink); }
.flow-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: clamp(48px, 6vw, 80px) 0 0; font-size: 14.5px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.flow-head > .data { font-weight: 400; color: var(--ink-3); }
.flow-head + .flow { margin-top: 12px; }
@media (min-width: 1024px) { .flow-head + .flow { margin-top: 30px; } }
.flow > li { position: relative; padding: 16px 0 18px 40px; border-bottom: 1px solid var(--rule); }
.flow .f-mark { position: absolute; left: 0; top: 18px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink-3); border-radius: 2px; background: var(--sheet); color: var(--sheet); }
.flow .f-mark svg { width: 15px; height: 15px; }
.flow .is-sent .f-mark, .flow .is-recv .f-mark { background: var(--ink-3); }
.flow .is-pending .f-mark { border-color: var(--blue); background: var(--blue); }
.flow .is-ack .f-mark { border-color: var(--ack); background: var(--ack); }
.flow .f-time { margin: 0; font-size: 13px; color: var(--ink-3); }
.flow .f-time .data { color: var(--ink); font-size: 14px; }
.flow h3 { font-size: 17px; margin: 2px 0 4px; }
.flow .is-pending h3 { color: var(--blue); }
.flow .is-ack h3 { color: var(--ack); }
.flow p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .flow > li { padding: 40px 24px 0 0; border-bottom: 0; border-top: 2px solid var(--ink-3); }
  .flow > li.is-pending { border-top: 2px dashed var(--blue); }
  .flow > li.is-ack { border-top-color: var(--ack); }
  .flow .f-mark { top: -13px; }
}

/* ───────── 2 列の組み（文と図） ───────── */

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--flip > :first-child { order: 2; }
  .split--text-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* .split--late: 2 列にするのは幅 1260px 以上。写真 2 枚（.shots--2・.feature-figs--2）を片方の欄に並べる組みで使う。
   1024〜1259px で 2 列にすると写真が 1 枚 230px ほど（画面の文字は約 7px）に縮むので、文の下に並べ、1 枚 280px 以上を保つ
   （1260px では写真の欄が約 650px、1 枚約 300px） */
@media (min-width: 1024px) and (max-width: 1259px) {
  .split--late { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split--late.split--flip > :first-child { order: 0; }
}
/* 2 列の組みの直下の節の頭は、下の余白を split の gap だけにする（見出しとリードの間が空きすぎないように） */
.split > .sec-head { margin-bottom: 0; }
.split:has(> .sec-head) { margin-bottom: clamp(32px, 4vw, 52px); }
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.feature-no { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--mag); letter-spacing: .06em; }
.feature h3 { font-size: clamp(21px, .8vw + 16px, 27px); line-height: 1.5; margin-bottom: 16px; }
.feature p { color: var(--ink-2); }
.feature-figs { display: grid; gap: 24px; align-items: start; }
@media (min-width: 600px) { .feature-figs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 入力した値と電文（.entry-map。ホーム「できること」で入力の画面の右に置く）: 欄の値と、ICAO 形式の第 15 項での書き方。
   2 列のときは画面の写真の上下の中ほどに置き、写真の欄の横に来るようにする */
.entry-rows { list-style: none; }
.entry-rows li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.entry-rows .k { display: block; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--ink-3); }
.entry-rows .v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.entry-rows .v b { color: var(--ink); }
.entry-rows .to { color: var(--mag); }
.entry-map .telex { margin-top: 20px; grid-template-columns: minmax(0, 1fr); }
/* 第 15 項の 1 行だけの例なので折り返さない（幅 244px でも収まる大きさ） */
.entry-map .telex pre { white-space: pre; font-size: 13px; padding-inline: 14px; }
@media (min-width: 600px) { .entry-map { align-self: center; } }

/* ───────── ページの頭（下層ページ）・パンくず ───────── */

.page-head { background: var(--paper); padding: 20px 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; font-size: 13.5px; color: var(--ink-3); }
.crumbs li + li::before { content: "／"; margin: 0 .4em; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink-3); text-decoration: none; word-break: keep-all; overflow-wrap: anywhere; }
.page-head .kicker { margin-top: clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(28px, 1.6vw + 20px, 44px); line-height: 1.4; }
.page-lead { margin-top: 18px; font-size: 17px; line-height: 1.95; color: var(--ink-2); max-width: 42em; }
.page-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--rule-2); max-width: 980px; }
.page-facts > div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.page-facts dt { font-size: 12.5px; color: var(--ink-3); }
.page-facts dd { font-weight: 700; line-height: 1.6; }
@media (min-width: 900px) { .page-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .page-facts > div + div { padding-left: 16px; border-left: 1px solid var(--rule); } }

/* ───────── 目次つきの本文（.doc・.toc） ───────── */

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
/* 目次のあるページ（.doc-body）は本文の欄が狭いので、1280px 未満は 2 列の組みを縦に積み、写真 3 枚・運航票 2 枚の横並びは 1400px から */
@media (max-width: 1279px) { .doc-body .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (min-width: 1024px) and (max-width: 1399px) { .doc-body .shots--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1399px) { .doc-body .strips { grid-template-columns: minmax(0, 1fr); } }
.toc { font-size: 14.5px; }
.toc-title { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .08em; margin-bottom: 8px; }
.toc ol { list-style: none; counter-reset: t; border-top: 1px solid var(--rule-2); }
.toc li { counter-increment: t; border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 1.8em 1fr; padding: 8px 0; color: var(--ink); text-decoration: none; line-height: 1.55; }
.toc a::before { content: counter(t); color: var(--mag); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 1023px) { .toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; } }
@media (min-width: 1024px) {
  .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
  .toc-in { position: sticky; top: calc(var(--head-h) + 24px); }
}
.doc-sec { padding-bottom: clamp(48px, 6vw, 80px); }
.doc-sec + .doc-sec { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule-2); }
.doc-sec .sec-head { margin-bottom: 28px; }
.doc-sec .claim { font-size: clamp(22px, 1vw + 17px, 31px); }
.doc-block { margin-top: 36px; }
.doc-block > .sub-head { margin-bottom: 16px; }

/* 次に読む */
.next { display: grid; gap: 0; list-style: none; border-top: 2px solid var(--ink); }
.next a { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.next a b { font-size: 17px; }
.next a b::after { content: " →"; font-family: var(--font-data); color: var(--mag); }
.next a span { font-size: 14.5px; color: var(--ink-2); }
.next a:hover b { text-decoration: underline; text-decoration-color: var(--mag); }
@media (min-width: 900px) { .next { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; } }

/* ───────── 記事（コラム）の組み ───────── */

.article { padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 8vw, 104px); }
.article-head { padding-bottom: 28px; border-bottom: 1px solid var(--rule-2); margin-bottom: 32px; }
.article-head h1 { font-size: clamp(27px, 1.4vw + 20px, 40px); line-height: 1.42; }
.article-sub { margin-top: 10px; font-size: clamp(16px, .4vw + 14px, 19px); font-weight: 700; line-height: 1.6; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.prose { font-size: 16.5px; line-height: 1.95; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.6em; padding-top: 1em; border-top: 1px solid var(--rule-2); font-size: clamp(21px, .7vw + 17px, 26px); line-height: 1.5; }
.prose h3 { margin-top: 2em; font-size: 18.5px; line-height: 1.55; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose code { font-family: var(--font-mono); font-size: .92em; padding: 1px 5px; background: var(--sheet-2); border: 1px solid var(--rule); border-radius: 2px; }
.prose table { width: 100%; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); font-size: 13.5px; color: var(--ink-2); }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--rule-2); color: var(--ink-2); }
.callout { padding: 20px 22px; border: 1px solid var(--rule-2); border-top: 3px solid var(--ink); background: var(--sheet-2); }
.callout-title { margin: 0 0 8px; font-weight: 700; }
.callout ul { padding-left: 1.3em; }
.article-note { font-size: 14px; line-height: 1.8; color: var(--ink-3); }
.sources { margin-top: 3em; padding-top: 1.2em; border-top: 2px solid var(--ink); font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.sources h2 { margin: 0 0 .6em; padding: 0; border: 0; font-size: 16px; }
.sources ol { padding-left: 1.4em; }
.disclaimer { margin-top: 2em; padding: 14px 18px; border: 1px solid var(--rule-2); font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.related { margin-top: 3em; }
.related h2 { font-size: 16px; margin-bottom: 8px; }
@media (min-width: 1024px) { .article .doc { padding-top: 0; } }

/* コラムの一覧（.cols） */
.cols { list-style: none; border-top: 2px solid var(--ink); }
.cols a { display: grid; gap: 4px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.cols .col-cat { font-size: 12.5px; font-weight: 700; color: var(--mag); letter-spacing: .06em; }
.cols .col-t { font-size: 18px; font-weight: 700; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.cols .col-s { font-size: 14.5px; color: var(--ink-2); }
.cols .col-d { font-size: 14px; color: var(--ink-3); }
.cols .col-time { font-size: 13px; color: var(--ink-3); }
.cols a:hover .col-t { text-decoration: underline; text-decoration-color: var(--mag); text-decoration-thickness: 2px; text-underline-offset: .3em; }
@media (min-width: 900px) {
  .cols a { grid-template-columns: 10em 1fr 5em; column-gap: 28px; align-items: baseline; }
  .cols .col-cat { grid-row: 1 / span 3; }
  .cols .col-time { grid-column: 3; grid-row: 1; text-align: right; }
  .cols .col-s, .cols .col-d { grid-column: 2; }
}

/* よくある質問（.faq）: 閉じない Q と A（ページ内リンクで直接開ける） */
.faq { border-top: 2px solid var(--ink); }
.faq-item { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.faq-q { display: grid; grid-template-columns: 2em 1fr; font-size: 17.5px; line-height: 1.6; }
.faq-q::before { content: "Q"; font-family: var(--font-data); color: var(--mag); }
.faq-a { display: grid; grid-template-columns: 2em 1fr; margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
.faq-a::before { content: "A"; font-family: var(--font-data); font-weight: 700; color: var(--ink-3); }
.faq-a > div > * + * { margin-top: .8em; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group-title { font-size: 15px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 12px; }

/* お知らせ（.news） */
.news { list-style: none; border-top: 2px solid var(--ink); }
.news-item { display: grid; gap: 4px 28px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.news-item time { font-family: var(--font-data); font-size: 14px; color: var(--ink-3); letter-spacing: .04em; }
.news-item h3 { font-size: 17.5px; line-height: 1.6; }
.news-item p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 760px) { .news-item { grid-template-columns: 8em 1fr; } .news-item time { padding-top: 3px; } }

/* 用語（.terms） */
.terms { border-top: 2px solid var(--ink); }
.terms > div { display: grid; gap: 6px 28px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.terms dt { font-weight: 700; font-size: 17px; }
.terms dt code, .terms dt .data { font-family: var(--font-data); font-weight: 700; margin-right: .6em; }
.terms dd { color: var(--ink-2); }
@media (min-width: 900px) { .terms > div { grid-template-columns: 16em 1fr; } }

/* ───────── 公開の予定（墨の帯） ───────── */

.launch { position: relative; background: var(--band); color: var(--on-ink); overflow: hidden; padding: clamp(64px, 8vw, 104px) 0 0; }
.launch a:not(.btn) { color: var(--on-ink); }
.launch .kicker { color: var(--on-ink-2); }
.launch .claim { color: var(--on-ink); }
.launch .sec-lead, .launch p { color: var(--on-ink-2); }
.launch .fine { color: var(--on-ink-2); }
.launch-grid { display: grid; gap: 48px; }
.launch-main { padding-bottom: clamp(48px, 6vw, 80px); }
.launch-device { justify-self: center; width: min(320px, 80%); align-self: end; }
.launch-device .screen { box-shadow: none; }
/* 写真の説明は写真の上に置く（写真は帯の下端に接している） */
.launch-device .fig-cap { margin: 0 0 14px; color: var(--on-ink-2); }
.launch .plan { width: 100%; margin-top: 32px; max-width: 520px; font-size: 15px; }
.launch .plan th, .launch .plan td { padding: 10px 0; border-bottom: 1px solid rgba(232, 237, 244, .2); text-align: left; font-weight: 400; }
.launch .plan td { text-align: right; }
.launch .tag { color: var(--on-ink); }
.launch .contact { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(232, 237, 244, .25); max-width: 520px; }
.launch .contact h3 { font-size: 16px; color: var(--on-ink); margin-bottom: 6px; }
.launch .mail { font-family: var(--font-data); font-size: 20px; letter-spacing: .03em; margin-bottom: 6px; }
@media (min-width: 1024px) { .launch-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }

/* ───────── フッター（.site-foot） ───────── */

.site-foot { background: var(--sheet); border-top: 1px solid var(--rule-2); padding: 48px 0 32px; font-size: 14.5px; }
.foot-top { display: grid; gap: 32px; }
.foot-brand p { margin-top: 12px; color: var(--ink-2); line-height: 1.8; max-width: 26em; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.foot-nav h2 { font-size: 13px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 8px; }
.foot-nav ul { list-style: none; }
.foot-nav li + li { margin-top: 4px; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-nav a[aria-current] { font-weight: 700; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.foot-bottom p { margin: 0 0 4px; }
@media (min-width: 900px) {
  .foot-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
  .foot-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ───────── 部品の見本のページ（/_design/）だけで使う ───────── */

.ds-section { padding: 48px 0; border-top: 1px solid var(--rule-2); }
.ds-section > h2 { font-size: 24px; margin-bottom: 8px; }
.ds-classes { margin: 8px 0 24px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.ds-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ds-demo { padding: 24px; border: 1px dashed var(--rule-2); background: var(--sheet); }
@media (max-width: 599px) { .ds-demo { padding: 12px 8px; } }
.ds-demo--paper { background: var(--paper); }
.ds-demo--flush { padding: 0; }
.ds-demo--ink { background: var(--band); color: var(--on-ink); }
.ds-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; }
.ds-swatches li { border: 1px solid var(--rule-2); font-size: 13px; }
.ds-swatches .sw { height: 56px; border-bottom: 1px solid var(--rule); }
.ds-swatches p { margin: 0; padding: 8px 10px; line-height: 1.5; }
.sw--paper { background: var(--paper); } .sw--sheet { background: var(--sheet); } .sw--sheet-2 { background: var(--sheet-2); }
.sw--ink { background: var(--ink); } .sw--ink-2 { background: var(--ink-2); } .sw--ink-3 { background: var(--ink-3); }
.sw--blue { background: var(--blue); } .sw--mag { background: var(--mag); } .sw--ack { background: var(--ack); }
.sw--warn { background: var(--warn); } .sw--dawn { background: var(--dawn); } .sw--band { background: var(--band); }
.ds-pre { margin: 12px 0 0; padding: 14px 16px; overflow-x: auto; background: var(--sheet-2); border: 1px solid var(--rule); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; white-space: pre; }
