@charset "utf-8";
/* まちまもり 公式サイト（自治体向け）共通スタイル
   - 配色は「濃紺（行政の信頼）× 若草（まちまもりのブランド）」。
   - 1ファイル完結・外部CSSフレームワーク不使用（FTP設置でもVercelでも動く）。 */

:root {
  /* 基調色 */
  --navy-900: #0a2138;
  --navy-800: #10314e;
  --navy-700: #1a4467;
  --navy-600: #2a5c86;
  --navy-50: #eef3f8;

  /* ブランド（citizen アプリの若草を行政向けに一段深く）
     ★用途を分けている。白や淡色の上に「文字」を置くときは --leaf / --leaf-600 を使わない。
       どちらもコントラストが 4.5:1 に届かず、自治体のアクセシビリティ要件を満たさないため。 */
  --leaf: #6ba516;            /* 面・アイコン・罫などの装飾用（文字色には使わない） */
  --leaf-600: #588a0f;        /* 同上（白地 4.15:1 のため文字には不可） */
  --leaf-700: #4a7a0c;        /* 白・淡色地に置く文字用（白地 5.15:1 / leaf-50 地 4.79:1） */
  --leaf-cta: #54830f;        /* 白文字を乗せるボタンの地色（白文字で 4.54:1） */
  --leaf-cta-hover: #44700a;  /* 同ホバー（白文字で 5.89:1） */
  --leaf-300: #a8d13f;        /* 濃紺の上に置く明るい若草 */
  --leaf-50: #f3f9e8;

  /* 補助 */
  --gold: #b98f43;
  --alert: #b4361f;
  --alert-50: #fdf1ee;

  /* 無彩色 */
  --ink: #14202c;
  --body: #33465a;
  --muted: #62778c;           /* 白地 4.63:1 */
  --muted-dark: #556a7f;      /* 淡いグレー地に置く注記用 */
  --line: #dfe6ee;
  --line-soft: #edf1f6;
  --bg: #f5f8fb;
  --white: #fff;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(10, 33, 56, .04), 0 8px 24px rgba(10, 33, 56, .055);
  --shadow-md: 0 4px 12px rgba(10, 33, 56, .06), 0 22px 52px rgba(10, 33, 56, .10);
  --shadow-lg: 0 34px 90px rgba(4, 20, 35, .34);
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
::selection { background: var(--leaf-300); color: var(--navy-900); }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.section { padding: 108px 0; }
.section--tight { padding: 76px 0; }
.section--gray { background: linear-gradient(180deg, #f7f9fc 0%, #f3f7fa 100%); }
.section--navy {
  background:
    radial-gradient(800px 500px at 85% 0%, rgba(42, 92, 134, .26), transparent 65%),
    var(--navy-900);
  color: #cfdbe6;
}

/* ── 見出し ───────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--leaf-700); text-transform: none;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--leaf); display: block; }
.section--navy .eyebrow { color: var(--leaf-300); }
.section--navy .eyebrow::before { background: var(--leaf-300); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.45; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.h2 { font-size: clamp(28px, 3.7vw, 40px); line-height: 1.42; letter-spacing: -.02em; margin-top: 14px; }
.h3 { font-size: 19px; }
.lead { font-size: 17px; line-height: 1.95; color: var(--muted); margin-top: 16px; max-width: 720px; }
.section--navy .lead { color: #9fb3c6; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }
.center .eyebrow { justify-content: center; }

/* ── ボタン ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer;
  border-radius: 11px; padding: 15px 28px; border: 1.5px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--leaf-cta); color: #fff; box-shadow: 0 10px 24px rgba(107, 165, 22, .3); }
.btn-primary:hover { background: var(--leaf-cta-hover); }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: 0 10px 24px rgba(10, 33, 56, .22); }
.btn-navy:hover { background: var(--navy-900); }
.btn-outline { background: rgba(255, 255, 255, .06); color: #e8eff5; border-color: rgba(255, 255, 255, .35); }
.btn-outline:hover { background: rgba(255, 255, 255, .14); }
.btn-ghost { background: #fff; color: var(--navy-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--navy-600); }
.btn-sm { padding: 11px 20px; font-size: 14px; border-radius: 9px; }

/* ── ヘッダー ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(10, 33, 56, .025);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 5px 16px rgba(10, 33, 56, .11); }
.brand-name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: .04em; line-height: 1.2; }
.brand-tag { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--body); font-size: 14.5px; font-weight: 500;
  padding: 9px 13px; border-radius: 8px;
  transition: background .16s ease, color .16s ease;
}
.site-nav a:hover { background: var(--navy-50); color: var(--navy-800); }
.site-nav a.current { color: var(--navy-800); font-weight: 700; }
/* ★ `.site-nav a`（詳細度 0,1,1）が `.btn-navy`（0,1,0）に勝って文字色を奪うため、
     ヘッダーCTAだけは詳細度を揃えて白文字を明示する。
     この行を外すと濃紺地に本文色が乗って 1.38:1 になり、ボタンの文字が読めなくなる。 */
.header-cta { margin-left: 8px; border-radius: 999px; padding-inline: 21px; }
.site-nav a.header-cta { color: #fff; }
.site-nav a.header-cta:hover { color: #fff; background: var(--navy-900); }
.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line); border-radius: 9px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy-800);
  align-items: center; justify-content: center;
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .header-cta { margin: 12px 0 0; border-radius: 999px; }
  .site-nav a.header-cta { border-bottom: 0; }
}

/* ── ヒーロー ─────────────────────────────────────── */
.hero {
  background:
    radial-gradient(700px 420px at 83% 12%, rgba(168, 209, 63, .18), transparent 70%),
    radial-gradient(780px 440px at 14% 88%, rgba(42, 92, 134, .28), transparent 72%),
    linear-gradient(145deg, #071b2e 0%, #0a2138 40%, #123b5a 100%);
  color: #d6e2ec; position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: auto -12% -52% auto;
  width: 680px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(168, 209, 63, .16);
  box-shadow: 0 0 0 70px rgba(168, 209, 63, .035), 0 0 0 150px rgba(168, 209, 63, .02);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px; align-items: center; padding: 96px 0 104px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(107, 165, 22, .16); border: 1px solid rgba(168, 209, 63, .45);
  color: #c6e58a; font-size: 13px; font-weight: 700; padding: 7px 15px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
/* 募集バッジ(年度もの)。通常バッジより一段明るくして告知として立たせる。 */
.hero-badge--recruit {
  background: rgba(168, 209, 63, .24); border-color: rgba(168, 209, 63, .7);
  color: #ddf0ac;
}
.hero h1 {
  color: #fff; font-size: clamp(35px, 4.7vw, 54px); font-weight: 900;
  line-height: 1.28; letter-spacing: -.025em; margin: 22px 0 0;
}
.hero h1 .accent { color: var(--leaf-300); }
.hero .hero-sub { font-size: 17px; line-height: 1.95; color: #b9cbdb; margin-top: 22px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-actions .btn { min-height: 54px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .11);
}
.hero-facts li { list-style: none; font-size: 13.5px; color: #a9c0d3; display: flex; align-items: center; gap: 7px; }
.hero-facts li::before { content: "✓"; color: var(--leaf-300); font-weight: 900; }
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 70px 0 78px; }
}

/* ── 実画面のスクリーンショット ─────────────────────
   すべてデモ環境（「デモ市」「デモ職員」）の画面。実データ・個人情報は写っていない。 */
.shot {
  background: #0d2942; border: 1px solid #23445f; border-radius: 20px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.shot--light {
  background: #fff; border-color: var(--line); box-shadow: var(--shadow-md);
}
.hero .shot {
  transform: perspective(1400px) rotateY(-1.8deg) rotateX(.8deg);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .35);
}
.shot-bar {
  background: #071a2c; padding: 9px 13px; min-height: 42px;
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid #1e3b53;
}
.shot--light .shot-bar { background: #f4f7fa; border-bottom-color: var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.shot-bar .r { background: #e05c4b; } .shot-bar .y { background: #dda23c; } .shot-bar .g { background: #57a94d; }
.shot-bar span { margin-left: 10px; font-size: 11.5px; font-weight: 500; color: #7f9ab1; letter-spacing: .02em; }
.shot--light .shot-bar span { color: var(--muted-dark); }
.shot img { display: block; width: 100%; }
.shot-note { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* スクリーンショットに重ねる番号の注釈（ヒーローの1枚目）。
   ★位置は画像に対する％。画像を撮り直したら .cal の left/top を確認すること。 */
.shot-anno { position: relative; }
.shot-anno .cal {
  position: absolute; width: 24px; height: 24px; border-radius: 50%;
  background: var(--leaf-cta); color: #fff; font-size: 13px; font-weight: 900;
  display: grid; place-items: center; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 2px 6px rgba(10, 33, 56, .35);
}
.anno-legend { display: grid; gap: 5px; margin-top: 13px; }
.anno-legend li { list-style: none; font-size: 12.5px; color: #b7cadb; display: flex; gap: 8px; align-items: baseline; }
.anno-legend li b {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf-cta); color: #fff;
  font-size: 11px; display: grid; place-items: center;
}
.hero .shot-note { color: #9fb5c7; text-align: center; }

/* 画面の並び（職員の画面ギャラリー） */
.shots { display: grid; gap: 26px; margin-top: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.shots figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }

/* スマホ画面（市民アプリ） */
.phones { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.phone { flex: 0 1 232px; }
.phone .screen {
  border: 8px solid #16202c; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-md); background: #16202c;
}
.phone .screen img { display: block; width: 100%; }
.phone .cap { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.7; }
.phone .cap b { display: block; color: var(--ink); font-size: 13.5px; }
.section--navy .phone .cap { color: #9fb3c6; }
.section--navy .phone .cap b { color: #fff; }

/* ── 帯（信頼バー） ─────────────────────────────────
   ★白地。濃紺前提の文字色（#fff・leaf-300・#93aec4）をここに置くと消える。
     背景を変えるときは下の4つの色指定を必ずセットで見直すこと。 */
.trustbar {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1040px; }
.trustbar-item { padding: 30px 22px; border-left: 1px solid var(--line); }
.trustbar-item:first-child { border-left: 0; }
.trustbar-item .n { font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.3; letter-spacing: -.03em; }
.trustbar-item .n small { font-size: 14px; font-weight: 700; color: var(--leaf-700); margin-left: 3px; }
.trustbar-item .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) {
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .trustbar-item { border-top: 1px solid var(--line); }
  .trustbar-item:nth-child(-n+2) { border-top: 0; }
  .trustbar-item:nth-child(odd) { border-left: 0; }
}

/* ── カード全般 ───────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid rgba(223, 230, 238, .9); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cedae5; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--leaf-50); color: var(--leaf-600); font-size: 21px; margin-bottom: 14px;
}
.card .ico.navy { background: var(--navy-50); color: var(--navy-700); }

/* 課題→解決 */
.pain { border-top: 3px solid var(--alert); }
.card.pain { position: relative; overflow: hidden; }
.card.pain::after {
  content: ""; position: absolute; inset: auto -32px -34px auto;
  width: 100px; height: 100px; border-radius: 50%; background: var(--leaf-50); z-index: 0;
}
.card.pain > * { position: relative; z-index: 1; }
.pain .before {
  font-size: 13px; font-weight: 700; color: var(--alert);
  display: flex; align-items: center; gap: 6px;
}
.pain h3 { margin: 8px 0 0; font-size: 16.5px; line-height: 1.6; }
.pain .after {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 14.5px; color: var(--navy-800); font-weight: 700;
  display: flex; gap: 8px; align-items: flex-start;
}
.pain .after::before { content: "→"; color: var(--leaf); font-weight: 900; }

/* BEFORE/AFTER 比較図(課題セクション)。左=いままで(赤の上辺)・右=まちまもり(若草の上辺)。
   若草・赤は上辺と矢印の装飾のみ(文字色には使わない — DESIGN-SYSTEM の色の使い分け)。 */
.ba { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 14px; align-items: stretch; }
.ba-panel {
  background: #fff; border: 1px solid rgba(223, 230, 238, .9); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: var(--shadow-sm);
}
.ba-before { border-top: 3px solid var(--alert); }
.ba-after { border-top: 3px solid var(--leaf); }
.ba-title { font-size: 13px; font-weight: 700; }
.ba-before .ba-title { color: var(--alert); }
.ba-after .ba-title { color: var(--leaf-700); }
.ba-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ba-chips span {
  background: #f2f5f9; border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 700; color: var(--body); white-space: nowrap;
}
.ba-after .ba-chips span { background: var(--leaf-50); color: var(--ink); }
.ba-chips .ba-flow {
  background: none; padding: 0; color: var(--leaf); font-weight: 900; font-size: 15px;
}
.ba-arrow {
  display: grid; place-items: center; color: var(--muted);
  font-size: 26px; font-weight: 900;
}
.ba-note { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.75; }
@media (max-width: 720px) {
  .ba { grid-template-columns: 1fr; gap: 8px; }
  .ba-arrow { transform: rotate(90deg); font-size: 20px; padding: 2px 0; }
}

/* 分野バッジ */
.domains { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.domain {
  display: flex; align-items: center; gap: 11px; background: #fff;
  border: 1px solid #d9e4eb; border-radius: 999px; padding: 11px 20px 11px 12px;
  box-shadow: 0 8px 22px rgba(10, 33, 56, .045); font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.domain .e { font-size: 20px; background: var(--leaf-50); border-radius: 14px; }
.domain small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }

/* 機能テーブル風リスト */
.featlist {
  display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
}
.featrow {
  display: grid; grid-template-columns: 210px 1fr; gap: 22px;
  padding: 28px 24px; border-bottom: 1px solid var(--line-soft); align-items: start;
}
.featrow:last-child { border-bottom: 0; }
.featrow .name { font-weight: 700; color: var(--ink); font-size: 15.5px; display: flex; gap: 9px; align-items: center; }
.featrow .name span { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--leaf-50); }
.featrow .desc { font-size: 14.5px; color: var(--muted); }

/* CSV出力の中身を見せる図（職員の画面）。列名は apps/admin/lib/csv.ts の定義そのまま。
   ★列を増減したら、この図と右側の「含まれないもの」も直すこと。 */
.csvfig { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 34px; }
@media (max-width: 820px) { .csvfig { grid-template-columns: 1fr; } }
.csvsheet { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.csvsheet .fname {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--bg);
  border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.csvsheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.csvsheet th, .csvsheet td { padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.csvsheet thead th { background: var(--leaf-50); color: var(--ink); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.csvsheet td { color: var(--muted); }
.csvsheet td.num { text-align: right; font-variant-numeric: tabular-nums; }
.csvsheet tbody tr:last-child th, .csvsheet tbody tr:last-child td { border-bottom: 0; }
.csvnot { border: 1px solid var(--line); border-left: 3px solid var(--alert); border-radius: 12px; padding: 18px 20px; }
.csvnot h4 { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.csvnot ul { list-style: none; display: grid; gap: 7px; }
.csvnot li { font-size: 13.5px; color: var(--muted); padding-left: 22px; position: relative; }
.csvnot li::before { content: "×"; position: absolute; left: 4px; color: var(--alert); font-weight: 900; }
@media (max-width: 720px) { .featrow { grid-template-columns: 1fr; gap: 6px; } }

/* 業務フロー4ステップ(職員の画面セクションの導入)。機能名の前に日々の流れを見せる。 */
.stepflow {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.stepflow li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow-sm);
}
.stepflow li:not(:last-child)::after {
  content: "→"; position: absolute; top: 50%; right: -15px; transform: translateY(-50%);
  color: var(--muted); font-weight: 900; font-size: 15px; z-index: 1;
}
.stepflow-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--leaf-cta); color: #fff; font-weight: 900; font-size: 15px;
  display: grid; place-items: center;
}
.stepflow b { display: block; font-size: 15px; color: var(--ink); line-height: 1.5; }
.stepflow small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
@media (max-width: 900px) {
  .stepflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepflow li:not(:last-child)::after { display: none; }
}
@media (max-width: 600px) { .stepflow { grid-template-columns: 1fr; } }

/* 安全セクション */
.safe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 720px) { .safe-grid { grid-template-columns: 1fr; } }
.safe-card {
  background: rgba(255, 255, 255, .065); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius); padding: 24px; backdrop-filter: blur(8px);
}
.safe-card h3 { font-size: 16.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.safe-card h3 .b { color: var(--leaf-300); }
.safe-card p { font-size: 14px; color: #a9c0d3; }

/* 情報システム担当向けの事実リスト（安全セクション内・safe-grid の全幅を使う） */
.itfacts { grid-column: 1 / -1; }
.itfacts dl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px 24px; margin: 14px 0 0; }
@media (max-width: 720px) { .itfacts dl { grid-template-columns: 1fr; gap: 4px 0; } }
.itfacts dt { font-size: 13.5px; font-weight: 700; color: var(--leaf-300); }
@media (max-width: 720px) { .itfacts dt { margin-top: 12px; } }
.itfacts dd { margin: 0; font-size: 14px; color: #a9c0d3; }

/* 「誰が見るか」で返るデータそのものが変わることの図（安全セクション）。
   ★これは画面の写しではなく模式図。スクリーンショットと誤解されないよう
   figcaption と .viscmp-note の断り書きを外さないこと。 */
.viscmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
@media (max-width: 760px) { .viscmp { grid-template-columns: 1fr; } }
.viscmp figure { margin: 0; }
.viscmp .vc-head { font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 9px; }
.viscmp svg { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15); }
.viscmp figcaption { margin-top: 10px; font-size: 13px; color: #a9c0d3; }
.viscmp figcaption b { display: block; color: var(--leaf-300); font-size: 12.5px; margin-bottom: 2px; }
.viscmp-note { margin-top: 16px; font-size: 12.5px; color: #8fa8bd; }

/* ステップ */
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 22px; position: relative; box-shadow: var(--shadow-sm);
}
.step .num {
  counter-increment: step; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-weight: 900; font-size: 15px;
  display: grid; place-items: center; margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(107, 165, 22, .22);
}
.step .num::before { content: "0" counter(step); }
.step h3 { font-size: 16.5px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--muted); }
.step .when { display: inline-block; margin-top: 12px; font-size: 11.5px; font-weight: 700; color: var(--leaf-700); background: var(--leaf-50); padding: 3px 10px; border-radius: 999px; }

/* 年度カレンダー（導入の流れ）。
   ★年度もの＝年度が変わったら、月の並び・年の表記・帯の位置をまとめて見直すこと。 */
.fycal { margin-top: 36px; overflow-x: auto; }
.fycal-inner { min-width: 820px; padding-bottom: 4px; }
.fycal-year { display: grid; grid-template-columns: 12fr 2.4fr; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.fycal-year span { padding-bottom: 5px; }
.fycal-year span + span { border-left: 1px solid var(--line); padding-left: 10px; }
.fycal-months {
  display: grid; grid-template-columns: repeat(12, 1fr) 2.4fr; font-size: 11.5px; color: var(--muted);
  text-align: center; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.fycal-months span:last-child { border-left: 1px solid var(--line); }
.fycal-lanes { display: grid; grid-template-columns: repeat(12, 1fr) 2.4fr; gap: 9px 0; margin-top: 12px; }
.fycal-bar {
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--leaf-cta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fycal-bar.is-quiet { background: var(--navy-700); }
.fycal-legend { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* プラン表 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--leaf); box-shadow: var(--shadow-md); position: relative; transform: translateY(-8px); }
/* ★ここは「こちらを推している」という自社の提案であって、実績の表示ではない。
     導入自治体の実名・件数を出さない方針（site/README.md）と矛盾する文言を入れないこと。 */
.plan.featured::before {
  content: "おすすめの構成"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--leaf-cta); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan .pname { font-size: 20px; font-weight: 900; color: var(--ink); }
.plan .pfor { font-size: 13px; color: var(--muted); margin-top: 4px; }
.plan .pprice {
  margin: 18px 0 4px; font-size: 17px; font-weight: 700; color: var(--navy-800);
  padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.plan .pprice small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.plan ul { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.plan li { font-size: 14px; display: flex; gap: 9px; align-items: flex-start; line-height: 1.7; }
.plan li::before { content: "✓"; color: var(--leaf); font-weight: 900; flex-shrink: 0; }
.plan li.inherit { color: var(--muted); font-weight: 700; }
.plan li.inherit::before { content: "＋"; color: var(--navy-600); }
/* 画面は実装済みだが実データ接続がまだの機能。対外文書で断定しないための表示。 */
.plan li.dev { color: var(--muted); }
.plan li.dev::before { content: "◷"; color: var(--gold); }
.badge-dev {
  display: inline-block; font-size: 10.5px; font-weight: 700; line-height: 1.6;
  color: #7a5a12; background: #fdf3dd; border: 1px solid #ecd9a4;
  padding: 0 7px; border-radius: 999px; margin-left: 7px; vertical-align: 2px;
  white-space: nowrap;
}

/* 表 */
.table-scroll { overflow-x: auto; margin-top: 32px; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; font-size: 14.5px; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 13px 16px; text-align: left; vertical-align: top; }
table.tbl thead th { background: var(--navy-800); color: #fff; font-weight: 700; font-size: 14px; border-color: var(--navy-700); }
table.tbl tbody th { background: var(--bg); font-weight: 700; color: var(--ink); }
table.tbl td.c { text-align: center; }
table.tbl .yes { color: var(--leaf-700); font-weight: 900; }
table.tbl .no { color: #8a99a7; }

/* 注記 */
.note {
  background: var(--navy-50); border: 1px solid #d3e0ec; border-left: 4px solid var(--navy-600);
  border-radius: 10px; padding: 18px 22px; font-size: 14px; color: var(--body); margin-top: 28px;
}
.note strong { color: var(--navy-800); }
.note--leaf { background: var(--leaf-50); border-color: #d5e8b4; border-left-color: var(--leaf); }
.note--warn { background: var(--alert-50); border-color: #f2d3cb; border-left-color: var(--alert); }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 23px 44px 23px 34px; font-weight: 700; color: var(--ink);
  font-size: 16px; list-style: none; position: relative; line-height: 1.65;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 23px; color: var(--leaf-700); font-weight: 900; }
.faq summary::after {
  content: ""; position: absolute; right: 14px; top: 32px; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 20px 22px 34px; font-size: 14.5px; color: var(--muted); position: relative; }
.faq .a::before { content: "A"; position: absolute; left: 0; top: 0; color: var(--navy-600); font-weight: 900; }

/* CTA */
.cta-band {
  background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-700) 55%, #1f5477 100%);
  border-radius: var(--radius-lg); padding: 56px 44px; text-align: center; color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; font-size: clamp(23px, 3vw, 31px); }
.cta-band p { color: #b9cbdb; margin-top: 14px; font-size: 15.5px; }
.cta-band .btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 560px) { .cta-band { padding: 40px 22px; } }

/* フォーム */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: 40px; box-shadow: var(--shadow-md); max-width: 720px; margin: 0 auto;
}
@media (max-width: 560px) { .form-card { padding: 26px 20px; } }
/* 問い合わせの導線2枚（フォーム / メール）。2026-09-08 に自前の送信フォームを廃止して置き換えた。 */
.contact-ways { margin-top: 28px; }
.contact-ways .card { display: flex; flex-direction: column; text-align: center; align-items: center; }
.contact-ways .way-desc { flex: 1; text-align: left; }
.contact-ways .btn { width: 100%; margin-top: 18px; }
/* ★`.card p`(0,1,1) が `.contact-note`(0,1,0) に勝つので、カード側から書く。
   これを1クラスに戻すと注記が本文と同じ大きさになる（2026-09-08 に本番で実測）。 */
.contact-ways .contact-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* フッター */
.site-footer { background: #071b2e; color: #92a9bd; padding: 56px 0 40px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-top: 68px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand .n { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.footer-desc { margin-top: 16px; font-size: 13.5px; max-width: 380px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 13.5px; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #92a9bd; text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--leaf-300); text-decoration: underline; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px;
}
/* 分岐ページのフッター（.footer-top を持たないので、上の余白と罫線を自分で持つ） */
.footer-bottom--solo { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-bottom--solo a { color: #92a9bd; text-decoration: none; display: inline-block; padding: 7px 2px; }
.footer-bottom--solo a:hover { color: var(--leaf-300); text-decoration: underline; }

/* ── 分岐ページ（/）─────────────────────────────────
   読み手を「お住まいの方」と「自治体・行政の方」に振り分けるだけのページ。
   ここに機能説明や料金を足さないこと（どちらの読者にも中途半端になる）。 */
.chooser {
  min-height: 72vh; display: flex; align-items: center; padding: 64px 0 76px;
  background:
    radial-gradient(700px 420px at 78% 8%, rgba(168, 209, 63, .13), transparent 70%),
    radial-gradient(760px 440px at 12% 92%, rgba(42, 92, 134, .13), transparent 72%),
    var(--bg);
}
.chooser-head { text-align: center; }
.chooser-icon { width: 66px; height: 66px; border-radius: 18px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.chooser-head h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: .06em; margin-top: 18px; }
.chooser-sub { margin-top: 14px; font-size: 16px; line-height: 1.95; color: var(--muted); }

.chooser-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
@media (max-width: 720px) { .chooser-cards { grid-template-columns: 1fr; } }
.chooser-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy-700);
  border-radius: var(--radius); padding: 30px 28px 26px; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.chooser-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.chooser-card--citizen { border-top-color: var(--leaf); }
.cc-emoji { font-size: 30px; line-height: 1; }
.cc-for { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.cc-title { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.55; }
.cc-desc { font-size: 14px; color: var(--muted); line-height: 1.85; }
.cc-go {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 700; color: #fff; background: var(--navy-800);
  padding: 12px 24px; border-radius: 999px;
}
.chooser-card--citizen .cc-go { background: var(--leaf-cta); }
.cc-go::after { content: "→"; }
.chooser-card:hover .cc-go { background: var(--navy-900); }
.chooser-card--citizen:hover .cc-go { background: var(--leaf-cta-hover); }

.chooser-recruit { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--muted); }
.chooser-recruit a { color: var(--leaf-700); }
.chooser-urgent {
  margin-top: 26px; background: var(--alert-50); border: 1px solid #f2d3cb; border-left: 4px solid var(--alert);
  border-radius: 12px; padding: 16px 20px; font-size: 14px; line-height: 1.85; color: var(--body);
}
.chooser-urgent strong { color: var(--alert); }

/* ── 住民向けLP（citizen.html）─────────────────────
   読み手は住民本人。高齢の方・急いでいる方が多い前提で、
   行政向けページより文字とボタンを一段大きくする。
   ★行政向けの言い回し（SLA・調達・プラン等）をここに持ち込まないこと。 */
.cz { font-size: 17px; }
.cz .h2 { font-size: clamp(26px, 3.4vw, 36px); }
.cz-lead { font-size: 17.5px; line-height: 2.0; color: var(--body); margin-top: 18px; max-width: 660px; }
.cz-lead--center { margin-left: auto; margin-right: auto; }
.btn-lg { padding: 18px 34px; font-size: 17px; border-radius: 13px; }

.cz-hero {
  background:
    radial-gradient(680px 400px at 82% 10%, rgba(168, 209, 63, .18), transparent 70%),
    linear-gradient(180deg, #f7fbf1 0%, var(--bg) 100%);
  padding: 60px 0 64px;
}
.cz-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .cz-hero-inner { grid-template-columns: 1fr; gap: 34px; } }
.cz-hero h1 { font-size: clamp(29px, 4.4vw, 40px); line-height: 1.5; letter-spacing: -.01em; text-wrap: balance; }
.cz-hero h1 .accent { color: var(--leaf-700); }
/* 見出しが単語の途中で折り返さないよう、句ごとに塊にする（スマホで効く） */
.cz-hero h1 .nw { display: inline-block; }
.cz-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cz-facts { list-style: none; display: grid; gap: 11px; margin-top: 30px; }
.cz-facts li { position: relative; padding-left: 30px; font-size: 16px; color: var(--body); }
.cz-facts li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--leaf-700); font-weight: 900; font-size: 17px;
}
.cz-hero-shot { display: flex; justify-content: center; }
.cz-hero-shot .phone { max-width: 260px; }

/* 緊急時の帯。★安全上いちばん大事なので、色と位置を弱めないこと。 */
.cz-urgent-band { background: var(--white); padding: 0 0 8px; }
.cz-urgent {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--alert-50); border: 1px solid #f2d3cb; border-left: 5px solid var(--alert);
  border-radius: 14px; padding: 22px 26px; margin-top: -26px; box-shadow: var(--shadow-sm);
}
.cz-urgent-mark { font-size: 26px; line-height: 1.3; flex: none; }
.cz-urgent strong { color: var(--alert); font-size: 17px; }
.cz-urgent p { margin-top: 6px; font-size: 16px; line-height: 1.9; }
.cz-urgent p strong { color: var(--alert); }

.cz-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
@media (max-width: 900px) { .cz-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cz-kinds { grid-template-columns: 1fr; } }
.cz-kind {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px; box-shadow: var(--shadow-sm); display: grid; gap: 6px;
}
.cz-kind .e { font-size: 32px; line-height: 1; }
.cz-kind b { font-size: 18px; color: var(--ink); }
.cz-kind span:last-child { font-size: 15px; color: var(--muted); line-height: 1.85; }

.cz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 42px; }
@media (max-width: 780px) { .cz-steps { grid-template-columns: 1fr; } }
.cz-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.cz-step-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--leaf-cta); color: #fff; font-size: 19px; font-weight: 900; margin-bottom: 14px;
}
.cz-step b { font-size: 19px; color: var(--ink); display: block; }
.cz-step p { margin-top: 8px; font-size: 15.5px; color: var(--muted); line-height: 1.9; }

.cz-shots { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; margin-top: 48px; }
.cz-shots figure { margin: 0; max-width: 260px; }
.cz-shots figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); line-height: 1.85; text-align: center; }

.cz-worry { display: grid; gap: 16px; margin-top: 38px; }
.cz-worry-item {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--leaf);
  border-radius: 14px; padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.cz-worry-item b { display: block; font-size: 18px; color: var(--ink); line-height: 1.6; }
.cz-worry-item p { margin-top: 10px; font-size: 16px; color: var(--body); line-height: 1.95; }

.cz-final { background: linear-gradient(180deg, var(--white) 0%, #f7fbf1 100%); }
.cz-final-note { margin-top: 24px; font-size: 14.5px; color: var(--muted); }

/* 下層ページ用ヘッダー */
.page-head {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #cfdbe6; padding: 64px 0 58px;
}
.page-head h1 { color: #fff; font-size: clamp(26px, 3.8vw, 38px); margin-top: 12px; }
.page-head p { color: #a9c0d3; margin-top: 16px; max-width: 720px; font-size: 16px; }
.breadcrumb { font-size: 12.5px; color: #8ba4b9; }
.breadcrumb a { color: #8ba4b9; text-decoration: none; }
.breadcrumb a:hover { color: var(--leaf-300); }

/* 本文（下層ページ） */
.prose h2 { font-size: 24px; margin: 46px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose p { margin-bottom: 16px; font-size: 15.5px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 9px; font-size: 15.5px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--navy-700); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff;
  padding: 12px 20px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.btn:focus-visible, .site-nav a:focus-visible, .nav-toggle:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--leaf-300); outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero .shot { transform: none; }
  .section { padding: 86px 0; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding-left: 18px; padding-right: 18px; min-height: 68px; }
  .brand-name { font-size: 17px; }
  .hero-inner { padding-top: 54px; padding-bottom: 62px; }
  .hero h1 { font-size: 34px; }
  .hero .hero-sub { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { display: grid; gap: 10px; }
  .section { padding: 72px 0; }
  .h2 { font-size: 28px; }
  .lead { font-size: 16px; }
  .plan.featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════
   印刷（庁内説明・稟議で紙に出す前提）
   - 濃い背景を白地に落とし、操作専用の要素を落とす。
   - <details> は site.js の beforeprint で開いてから印刷される。
   ═══════════════════════════════════════════════════════ */
@page { margin: 16mm; }
@media print {
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.7; }

  .site-header, .nav-toggle, .site-nav, .skip-link,
  .hero-actions, .cta-band .btns, .btn { display: none !important; }
  /* ★問い合わせの2つのボタンだけは紙にも残す（ここを消すと紙から連絡先が消える）。
     見た目はボタンでなく本文中のリンクにして、下の a[href]::after にURLを補わせる。 */
  .contact-ways .btn {
    display: inline !important; background: none !important; border: 0 !important;
    box-shadow: none !important; padding: 0 !important; min-height: 0 !important;
    color: #000 !important; font-weight: 700; text-decoration: underline;
  }
  .contact-note { display: none !important; }

  .hero, .page-head, .section--navy, .site-footer, .cta-band, .trustbar {
    background: none !important; background-image: none !important;
    color: #000 !important; box-shadow: none !important;
  }
  .hero::before, .hero::after { display: none !important; }
  .hero h1, .page-head h1, .cta-band h2,
  .section--navy h2, .section--navy h3, .safe-card h3, .itfacts dt, .viscmp .vc-head,
  .footer-brand .n, .footer-col h4 { color: #000 !important; }
  .hero .hero-sub, .hero-facts li, .page-head p, .cta-band p,
  .section--navy .lead, .safe-card p, .itfacts dd, .hero .shot-note,
  .viscmp figcaption, .viscmp-note, .anno-legend li,
  .footer-desc, .footer-col a, .breadcrumb, .breadcrumb a { color: #333 !important; }
  .hero h1 .accent, .hero-facts li::before, .safe-card h3 .b { color: #000 !important; }

  .section { padding: 18pt 0 !important; }
  .card, .step, .plan, .safe-card, .featlist, .shot, .form-card, .note, .domain,
  .ba-panel, .stepflow li, .viscmp figure, .csvsheet, .csvnot, .fycal-inner {
    box-shadow: none !important; border: 1px solid #999 !important;
    transform: none !important; break-inside: avoid; page-break-inside: avoid;
  }
  .viscmp figure, .fycal-inner { border: 0 !important; }
  /* 図は紙でも横並びのまま（1列に落ちると1枚の図で1ページを使ってしまう）。 */
  .viscmp { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  .viscmp svg { max-height: 42mm; }
  .csvfig { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; gap: 12px !important; }
  .fycal { overflow: visible; }
  .fycal-inner { min-width: 0; }
  /* 紙は幅が狭く帯のラベルが「…」で切れるので、帯だけ内容の幅まで伸ばす
     (各帯は別々の行に自動配置されるため、右へはみ出しても重ならない)。 */
  .fycal-bar { padding: 5px 10px !important; font-size: 9pt !important; width: max-content; min-width: 100%; }
  .safe-card { background: none !important; }
  .phone .screen { break-inside: avoid; page-break-inside: avoid; }
  .shot img, .phone .screen img { max-height: 90mm; object-fit: contain; }
  h1, h2, h3, .h2, .h3 { break-after: avoid; page-break-after: avoid; }
  .faq details { break-inside: avoid; page-break-inside: avoid; }
  table.tbl { min-width: 0; }
  .table-scroll { overflow: visible; }

  /* 紙では飛べないので、リンク先を本文に補う */
  main a[href^="http"]::after,
  main a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; word-break: break-all; }
  /* ★問い合わせのメールボタンは、表示文字がすでにアドレスそのもの。
     href には件名(URLエンコード済み)が付いていて紙に出すと文字化けの羅列に見えるので補わない。 */
  .contact-ways a[href^="mailto:"]::after { content: "" !important; }
}
