/* Packet Pilot PatrolのLP（/ja/・/en/）と利用規約・プライバシーポリシー（/xx/terms/・/xx/privacy/）の見た目。
   ZTPipeのLP（ztpipe 55323a3の`lp/style.css`）の配置を参考に、色はポータルと同じスキン「空」（明るい）・「夜」（暗い）
   （portal/web/src/index.css、apps/patrol/src/ui/skins.rs）。外部のfont・scriptは使わない（nginxのCSPのself）。
   明るさ・暗さは/theme-init.jsが<html data-theme>に入れる（ポータルと同じ保存の値`patrol.theme`）。 */

:root {
  --bg: #f8fafc; --grid: rgb(148 163 184 / .15);
  --surface: #ffffff; --card: #ffffff; --raised: #e8f0fe;
  --line: rgb(15 23 42 / .12); --line-soft: rgb(15 23 42 / .06);
  --ink: #111827; --muted: #4b5563; --faint: #6b7280;
  --accent: #2563eb; --accent-end: #3b82f6; --on-accent: #ffffff; --accent-soft: rgb(37 99 235 / .1);
  --warn: #b45309; --warn-soft: rgb(180 83 9 / .1); --ok: #047857;
  --shadow: rgb(15 23 42 / .08); --shadow-strong: rgb(15 23 42 / .18);
  --sans: Manrope, Inter, "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #051013; --grid: transparent;
  --surface: #081518; --card: #0f1e22; --raised: #132529;
  --line: rgb(237 243 244 / .1); --line-soft: rgb(237 243 244 / .05);
  --ink: #edf3f4; --muted: #9ba7aa; --faint: #6b777a;
  --accent: #55e3e3; --accent-end: #6d95ee; --on-accent: #051013; --accent-soft: rgb(85 227 227 / .1);
  --warn: #f5c076; --warn-soft: rgb(245 192 118 / .1); --ok: #7fdcb4;
  --shadow: rgb(0 0 0 / .35); --shadow-strong: rgb(0 0 0 / .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-width: 320px; color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(180deg, rgb(127 168 238 / .55), rgb(207 224 251 / 0) 120px) no-repeat,
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
}
:root[data-theme="dark"] body {
  background:
    linear-gradient(150deg, rgb(6 64 67 / .55), rgb(5 16 19 / 0) 55%) fixed,
    linear-gradient(215deg, rgb(35 43 76 / .5), rgb(5 16 19 / 0) 50%) fixed,
    var(--bg);
}
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; padding: 6px 12px; border-radius: 8px; background: var(--card); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== 上の帯 ===== */
.site-head { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); }
.head-inner { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
/* 製品の印: packet-pilot.netの飛行機のマスコット（ポータルのindex.cssと同じ。中の「PP」の文字は見た目では隠す） */
.brand-mark { display: block; width: 47px; height: 32px; flex: none; overflow: hidden; color: transparent; font-size: 0; background: url("/brand/pp-plane.png") center / contain no-repeat; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-select, .theme-toggle { display: inline-flex; height: 34px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; color: var(--muted); font: 700 11px/1 var(--mono); background: var(--surface); }
.lang-select select { border: 0; outline: 0; color: inherit; font: inherit; background: transparent; }
.lang-select option { color: #111827; background: #ffffff; }
.theme-toggle { cursor: pointer; }
.lang-links { display: flex; gap: 10px; font-size: 12px; }

/* ===== ボタン ===== */
.btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 0 16px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-primary { color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-end)); box-shadow: 0 1px 2px var(--shadow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-line { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--surface); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

/* ===== LPの節 ===== */
.eyebrow { margin: 0; color: var(--accent); font: 700 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line-soft); }
h1, h2, h3 { margin: 0; line-height: 1.35; letter-spacing: -.01em; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { margin-top: 10px; font-size: 32px; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { margin-top: 14px; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.3; }
/* 日本語の見出しを意味の切れ目でだけ折る（入りきらないときはその中でも折れる） */
.hero h1 .line { display: inline-block; }
.hero .lead { margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--muted); font-size: 12px; font-weight: 600; background: var(--surface); }

/* TOPの右の正方形の画像（キャッチコピー「Security should be accessible to everyone.」と各言語の訳、機体の印、見廻りの網と盾）。
   頁の中のSVGで描き、色はここの値で空（昼）・夜を切り替える（2026-11-13ユーザー指示。企画の画像は参考で、そのものは使わない）。 */
.hero-figure { margin: 0; }
.hero-art { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; aspect-ratio: 1; overflow: hidden; border-radius: 20px; box-shadow: 0 18px 50px var(--shadow-strong);
  --ha-s1: #1f6fe5; --ha-s2: #3f93f2; --ha-s3: #7ec0f8; --ha-s4: #b4dcfc; --ha-s5: #d9eefe;
  --ha-sun: #ffffff; --ha-sun-o: .95; --ha-hill: #4a88d0; --ha-hill-o: .45; --ha-city: #2a5aa6;
  --ha-glow: #ffffff; --ha-shield: #1f6fe5; --ha-cloud: #ffffff; --ha-cloud-o: .85; --ha-star-o: 0; --ha-ink: #ffffff; --ha-sub: #eef6ff; }
:root[data-theme="dark"] .hero-art {
  --ha-s1: #020617; --ha-s2: #071a2e; --ha-s3: #0b3448; --ha-s4: #0e5a63; --ha-s5: #1b8a8a;
  --ha-sun: #55e3e3; --ha-sun-o: 0; --ha-hill: #031016; --ha-hill-o: .55; --ha-city: #020a0d;
  --ha-glow: #55e3e3; --ha-shield: #020617; --ha-cloud: #6d95ee; --ha-cloud-o: .14; --ha-star-o: .9; --ha-ink: #edf3f4; --ha-sub: #9fe8e8; }
.hero-art .ha-s1 { stop-color: var(--ha-s1); } .hero-art .ha-s2 { stop-color: var(--ha-s2); } .hero-art .ha-s3 { stop-color: var(--ha-s3); }
.hero-art .ha-s4 { stop-color: var(--ha-s4); } .hero-art .ha-s5 { stop-color: var(--ha-s5); }
.hero-art .ha-glowstop { stop-color: var(--ha-glow); }
.hero-art .ha-sunstop { stop-color: #ffffff; }
.hero-art .ha-sun { opacity: var(--ha-sun-o); }
.hero-art .ha-horizon { opacity: calc(1 - var(--ha-sun-o)); }
.hero-art .ha-stars { fill: #ffffff; opacity: var(--ha-star-o); }
.hero-art .ha-clouds { fill: var(--ha-cloud); opacity: var(--ha-cloud-o); }
.hero-art .ha-hill { fill: var(--ha-hill); opacity: var(--ha-hill-o); }
.hero-art .ha-city { fill: var(--ha-city); }
.hero-art .ha-line { fill: none; stroke: var(--ha-glow); }
.hero-art .ha-node { fill: var(--ha-glow); }
.hero-art .ha-shield { fill: var(--ha-shield); stroke: var(--ha-glow); }
.hero-art .ha-brand { font: 700 12px/1 var(--mono); fill: var(--ha-sub); letter-spacing: .22em; }
.hero-art .ha-copy { font: 800 33px/1 var(--sans); fill: var(--ha-ink); letter-spacing: -.01em; }
.hero-art .ha-sub { font: 700 15px/1 var(--sans); fill: var(--ha-sub); }

/* 見ているもののカード: 3列×2段で、どの段も同じ高さ（grid-auto-rowsの1fr）。説明の文は小さく詰める（2026-11-13ユーザー指示） */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--card); box-shadow: 0 4px 14px var(--shadow); }
.card .tag { display: inline-block; border-radius: 6px; padding: 2px 8px; color: var(--accent); font: 700 11px/1.5 var(--mono); background: var(--accent-soft); }
.card h3 { margin-top: 10px; font-size: 16px; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card li + li { margin-top: 3px; }
.note { margin: 24px 0 0; color: var(--muted); font-size: 14px; }

.option { border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 16px; padding: 36px; background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--card); }
.option .section-head { margin-bottom: 24px; }
.option-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 20px; color: var(--muted); font-size: 14px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.limits { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--surface); }
.limits h3 { font-size: 15px; }
.limits ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 14px; }
.limits li + li { margin-top: 6px; }

/* レポート通知の節（2026-11-13ユーザー指示）: 左にHTMLレポートの図、右に送り先、下にJSONとAI。
   レポートの図は製品のHTMLレポート（crates/patrol-i18n/src/report_html.rsのSTYLE）の色と形に合わせ、空・夜で変えない */
.nt-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; align-items: start; }
.nt-report { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f1f5f9; box-shadow: 0 10px 30px var(--shadow); color: #0f172a; }
.nt-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #e2e8f0; border-bottom: 1px solid #cbd5e1; }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.nt-file { margin-left: 8px; overflow: hidden; color: #475569; font: 600 11px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.nt-page { padding: 14px; font-size: 12px; line-height: 1.6; }
.nt-head { border-radius: 10px; padding: 12px 16px; color: #ffffff; background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.nt-head b { display: block; font-size: 16px; }
.nt-head span { font-size: 11px; opacity: .92; }
.nt-box { margin-top: 10px; border-radius: 10px; padding: 10px 14px; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nt-box ul { margin: 2px 0 0; padding-left: 18px; }
.nt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.nt-tile { border-top: 4px solid #94a3b8; border-radius: 8px; padding: 6px 8px; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nt-tile b { display: block; font-size: 20px; line-height: 1.2; }
.nt-tile span { display: block; color: #334155; font-size: 10px; line-height: 1.35; }
/* 優先度の色（report_html.rsのcolor: すぐ・確かめて・念のため・参考） */
.nt-tile.p1 { border-top-color: #dc2626; } .nt-tile.p1 b { color: #dc2626; }
.nt-tile.p2 { border-top-color: #c2410c; } .nt-tile.p2 b { color: #c2410c; }
.nt-tile.p3 { border-top-color: #a16207; } .nt-tile.p3 b { color: #a16207; }
.nt-tile.p4 b { color: #64748b; }
.nt-card { margin-top: 10px; border-left: 5px solid #c2410c; border-radius: 10px; padding: 10px 14px; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nt-badge { display: inline-block; border-radius: 999px; padding: 0 9px; color: #ffffff; background: #c2410c; font-size: 10.5px; font-weight: 600; }
.nt-card h4 { margin: 4px 0 6px; font-size: 13.5px; }
.nt-first { border: 1px solid #bfdbfe; border-radius: 8px; padding: 6px 10px; background: #eff6ff; }
.nt-first b { color: #1d4ed8; }
.nt-first ol { margin: 2px 0 0; padding-left: 18px; }
.nt-caption { margin: 8px 0 0; color: var(--faint); font-size: 12px; }
.nt-side h3 { font-size: 15px; }
.nt-label { margin: 14px 0 6px; color: var(--accent); font: 700 11px/1.4 var(--mono); letter-spacing: .08em; }
.nt-dest { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nt-dest li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); font-size: 14px; font-weight: 600; line-height: 1.4; }
.nt-dest small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.nt-logo { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font: 700 11px/1 var(--mono); }
.nt-logo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nt-ai { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 18px; margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--surface); }
.nt-json { margin: 0; border-radius: 8px; padding: 10px 12px; color: #a7f3d0; background: #0f172a; font: 12px/1.6 var(--mono); white-space: pre; }
.nt-arrow { color: var(--accent); font-size: 24px; font-weight: 800; }
.nt-ai b { font-size: 15px; }
.nt-ai p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--card); box-shadow: 0 4px 14px var(--shadow); }
.step .num { color: var(--accent); font: 700 13px/1 var(--mono); letter-spacing: .1em; }
.step h3 { margin-top: 10px; font-size: 18px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* 後半（コンパクトにまとめた節） */
.compact { padding: 48px 0; }
.compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compact h2 { font-size: 22px; }
/* 仕組みの節の下の3枚（見えない範囲は見えないと示す等。2026-11-13に後半の節から移した） */
.how-notes { margin-top: 16px; }
.mini { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--card); }
.mini h3 { font-size: 15px; }
.mini p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 18px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--card); }
.faq summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--card); }
.cta p { margin: 0; color: var(--muted); font-size: 14px; }
.cta b { display: block; color: var(--ink); font-size: 16px; }
.cta .hero-actions { margin-top: 0; }
/* 価格（1ライセンスあたり月額・税抜。2026-11-12に決めた価格、2026-11-13ユーザー指示で載せた） */
.price-list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 10px 0 8px; padding: 0; list-style: none; }
.price-list li { color: var(--muted); font-size: 14px; }
.price-list li b { display: inline; margin-left: 8px; color: var(--ink); font-size: 18px; }

/* ===== 下の帯 ===== */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 13px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-legal a { color: var(--muted); }

/* ===== 利用規約・プライバシーポリシー ===== */
.legal { max-width: 860px; margin: 0 auto; padding: 56px 32px 88px; }
.legal h1 { margin: 8px 0 4px; font-size: 34px; }
.legal .updated { margin: 0 0 28px; color: var(--faint); font-size: 14px; }
.legal h2 { margin: 40px 0 10px; font-size: 21px; line-height: 1.45; }
.legal h3 { margin: 24px 0 6px; font-size: 16.5px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal p { margin: 10px 0; }
.legal ul, .legal ol { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; padding-left: 1.4em; }
.legal strong { color: var(--ink); }
/* 仏・独・西の頁の「参考の訳で、正本は日本語・英語」の知らせ（ZTPipeのstyle.cssの.note-boxと同じ形） */
.legal .note-box { margin: 0 0 24px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.table-scroll { margin: 12px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { color: var(--ink); font-weight: 700; background: var(--raised); }
.legal td { color: var(--muted); }
.legal td code { overflow-wrap: normal; white-space: nowrap; }
.legal tr:last-child td { border-bottom: 0; }

/* ===== ヘルプ（/xx/help/、2026-11-13ユーザー指示）: 目次・ルールのカード・補足の枠・表 ===== */
.help-toc { margin: 20px 0 8px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--card); }
.help-toc b { color: var(--ink); font-size: 14px; }
.help-toc ol { margin: 6px 0 0; }
.help h3 { margin-top: 28px; }
.help-rule { margin: 14px 0; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; background: var(--card); }
.help-rule h4 { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; }
.help-rule h4 code { margin-left: 6px; color: var(--faint); font-size: 12px; font-weight: 500; }
.help-rule dl { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.help-rule dt { color: var(--ink); font-weight: 700; }
.help-rule dd { margin: 0; color: var(--muted); }
.legal .help-note { margin: 12px 0 0; border-radius: 8px; padding: 10px 14px; background: var(--accent-soft); font-size: 14px; }
.help-table { margin: 12px 0; }
@media (max-width: 640px) {
  .help-rule dl { grid-template-columns: 1fr; gap: 2px; }
  .help-rule dd { margin-bottom: 6px; }
}

/* ===== Cookieの知らせ（ポータルの.cookie-noteと同じ形） ===== */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; max-width: 760px; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: 13px; line-height: 1.6; background: var(--card); box-shadow: 0 10px 28px var(--shadow-strong); }
.cookie-note p { flex: 1 1 280px; margin: 0; }
.cookie-note a { white-space: nowrap; }

/* 上の帯のメニュー（5つ）が入りきらない幅では隠す（2026-11-13にShadow AI検知を足して5つになった） */
@media (max-width: 1240px) {
  .nav-links { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .option-grid { grid-template-columns: 1fr; }
  .steps, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-grid, .nt-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .hero h1 { font-size: 24px; }
  .section-head h2 { font-size: 25px; }
  .steps, .checklist, .faq, .cards { grid-template-columns: 1fr; }
  .cards { grid-auto-rows: auto; }
  .nt-ai { grid-template-columns: 1fr; }
  .nt-arrow { display: none; }
  .nt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option { padding: 22px 18px; }
  .brand .brand-name { display: none; }
  .theme-toggle { display: none; }
  /* 仏・独・西のボタンの名前が長く、375pxの幅で上の帯がはみ出したので詰める（2026-11-13） */
  .head-inner { gap: 8px; }
  .brand-mark { width: 40px; }
  .nav-actions { gap: 5px; }
  .lang-select { padding: 0 6px; }
  .btn-sm { padding: 0 9px; }
  .legal { padding: 40px 16px 56px; }
  .legal h1 { font-size: 27px; }
  .legal h2 { font-size: 19px; }
}
