@charset "UTF-8";
/* =====================================================================
   みらい市サンプルサイト — DADS（デジタル庁デザインシステムβ版）準拠スタイル
   プリミティブ値は assets/css/tokens.css（@digital-go-jp/design-tokens v2.0.1）
   このファイルはその上に敷くセマンティック層＋コンポーネント層のみを定義する。
   ===================================================================== */

/* ---------------------------------------------------------------
   1. セマンティックトークン（役割で名前を付け直す層）
   --------------------------------------------------------------- */
:root {
  /* テキスト */
  --text-body:        var(--color-neutral-solid-gray-800);
  --text-description: var(--color-neutral-solid-gray-700);
  --text-placeholder: var(--color-neutral-solid-gray-536);
  --text-onfill:      var(--color-neutral-white);
  --text-link:        var(--color-key-900);
  --text-link-visited: var(--color-primitive-purple-800);

  /* 背景 */
  --bg-body:      var(--color-neutral-white);
  --bg-subtle:    var(--color-neutral-solid-gray-50);
  --bg-key-subtle: var(--color-key-50);
  --bg-fill:      var(--color-key-900);
  --bg-fill-hover: var(--color-key-1000);
  --bg-fill-active: var(--color-key-1100);

  /* 罫線 */
  --border-divider: var(--color-neutral-solid-gray-200);
  --border-field:   var(--color-neutral-solid-gray-700);
  --border-strong:  var(--color-neutral-solid-gray-800);

  /* 状態 */
  --state-error:   var(--color-semantic-error-2);
  --state-success: var(--color-semantic-success-2);
  --state-warning: var(--color-semantic-warning-orange-2);

  /* 余白スケール（8pxグリッド） */
  --space-1: 0.5rem;   /*  8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */

  /* レイアウト */
  --container: 75rem;      /* 1200px */
  --container-narrow: 55rem; /* 880px */
  --header-h: 4.5rem;
}

/* ---------------------------------------------------------------
   2. リセット／ベース
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-400);
  line-height: var(--line-height-170);
  /* DADS: 日本語の折り返しは文節単位。auto-phrase 非対応環境は strict にフォールバック */
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--font-weight-700);
  line-height: var(--line-height-140);
  letter-spacing: 0.02em;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
p, li, dd, dt, td, th { word-break: normal; overflow-wrap: break-word; }
p { margin: 0 0 var(--space-2); }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; }

a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 0.15em; }
a:visited { color: var(--text-link-visited); }

/* DADS フォーカスインジケーター：黒2px＋黄色4px の二重リング（背景を選ばず視認できる） */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-neutral-black);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--color-primitive-yellow-300);
  border-radius: var(--border-radius-4);
}

/* スキップリンク */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100%;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-fill);
  color: var(--text-onfill);
  border-radius: 0 0 var(--border-radius-8) var(--border-radius-8);
  text-decoration: none;
  font-weight: var(--font-weight-700);
}
.skip-link:focus-visible { top: 0; color: var(--text-onfill); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------
   3. レイアウトユーティリティ
   --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-4); }
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-6); }
@media (min-width: 768px) {
  .section { padding-block: var(--space-8); }
}
.section--subtle { background: var(--bg-subtle); }

.stack > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-4); }

/* ---------------------------------------------------------------
   4. 見出し（DADS タイポグラフィスタイル準拠）
   --------------------------------------------------------------- */
.heading-xl { font-size: var(--font-size-32); line-height: var(--line-height-140); }
.heading-lg { font-size: var(--font-size-28); line-height: var(--line-height-140); }
.heading-md { font-size: var(--font-size-22); line-height: var(--line-height-150); }
.heading-sm { font-size: var(--font-size-18); line-height: var(--line-height-150); }
@media (min-width: 768px) {
  .heading-xl { font-size: var(--font-size-45); }
  .heading-lg { font-size: var(--font-size-32); }
  .heading-md { font-size: var(--font-size-24); }
  .heading-sm { font-size: var(--font-size-20); }
}

/* セクション見出し（左のキーカラーバー付き） */
.section-heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.section-heading::before {
  content: "";
  flex: none;
  width: 0.375rem;
  align-self: stretch;
  min-height: 1.75rem;
  background: var(--bg-fill);
  border-radius: var(--border-radius-full);
}

.lead {
  font-size: var(--font-size-18);
  line-height: var(--line-height-175);
  color: var(--text-description);
}
.text-sm { font-size: var(--font-size-14); }
.text-desc { color: var(--text-description); }

/* ---------------------------------------------------------------
   5. ヘッダー／緊急バナー／グローバルナビ
   --------------------------------------------------------------- */
.emergency {
  background: var(--color-primitive-red-900);
  color: var(--text-onfill);
}
.emergency__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
  padding-block: var(--space-1);
}
.emergency__label {
  flex: none;
  font-weight: var(--font-weight-700);
  font-size: var(--font-size-14);
  padding: 0.125rem var(--space-1);
  border: 2px solid currentColor;
  border-radius: var(--border-radius-4);
}
.emergency a { color: var(--text-onfill); font-weight: var(--font-weight-700); }
.emergency a:visited { color: var(--text-onfill); }

.utilitybar {
  display: none;
  border-bottom: 1px solid var(--border-divider);
  background: var(--bg-subtle);
  font-size: var(--font-size-14);
}
@media (min-width: 768px) { .utilitybar { display: block; } }
.utilitybar__inner {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding-block: 0.375rem;
}
.utilitybar a { color: var(--text-body); text-decoration: none; }
.utilitybar a:hover { text-decoration: underline; }
.utilitybar a:visited { color: var(--text-body); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-divider);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
  padding-block: var(--space-1);
}
.sitename {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  color: var(--text-body);
}
.sitename:visited { color: var(--text-body); }
.sitename__mark {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: var(--bg-fill);
  color: var(--text-onfill);
  border-radius: var(--border-radius-8);
  font-weight: var(--font-weight-700);
  font-size: var(--font-size-18);
}
.sitename__text { font-weight: var(--font-weight-700); font-size: var(--font-size-20); line-height: var(--line-height-130); }
.sitename__sub { display: block; font-size: var(--font-size-14); font-weight: var(--font-weight-400); color: var(--text-description); }

.header__tools { display: flex; align-items: center; gap: var(--space-1); }

/* 検索ボックス（デスクトップのみヘッダー内に表示） */
.searchbox { display: none; }
@media (min-width: 768px) { .searchbox { display: flex; } }
.searchbox {
  align-items: stretch;
  border: 2px solid var(--border-field);
  border-radius: var(--border-radius-8);
  overflow: hidden;
  background: var(--bg-body);
}
.searchbox input {
  border: 0;
  padding: 0 var(--space-2);
  min-width: 12rem;
  font: inherit;
  font-size: var(--font-size-16);
  color: var(--text-body);
  background: transparent;
}
.searchbox input::placeholder { color: var(--text-placeholder); }
.searchbox button {
  border: 0;
  padding-inline: var(--space-2);
  background: var(--bg-fill);
  color: var(--text-onfill);
  font: inherit;
  font-weight: var(--font-weight-700);
  cursor: pointer;
}
.searchbox button:hover { background: var(--bg-fill-hover); }

/* ハンバーガー */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1px solid var(--border-divider);
  border-radius: var(--border-radius-8);
  background: var(--bg-body);
  color: var(--text-body);
  cursor: pointer;
  font-size: 0.6875rem;
  font-family: inherit;
}
.menu-toggle__bars { display: block; width: 1.25rem; height: 0.75rem; position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after,
.menu-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; transition: transform .2s, opacity .2s;
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars span { top: 5px; }
.menu-toggle__bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* グローバルナビ */
.gnav { border-bottom: 1px solid var(--border-divider); background: var(--bg-body); }
.gnav__list { list-style: none; }
@media (max-width: 767px) {
  .gnav {
    display: none;
    position: sticky; top: var(--header-h); z-index: 30;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--elevation-2);
  }
  .gnav.is-open { display: block; }
  .gnav__list > li { border-bottom: 1px solid var(--border-divider); }
  .gnav__list a {
    display: block;
    padding: var(--space-2);
    text-decoration: none;
    color: var(--text-body);
    font-weight: var(--font-weight-700);
  }
  .gnav__list a:visited { color: var(--text-body); }
  .gnav__list a[aria-current="page"] { color: var(--text-link); background: var(--bg-key-subtle); }
  .gnav__search { padding: var(--space-2); }
  .gnav__search .searchbox { display: flex; }
  .gnav__search .searchbox input { min-width: 0; flex: 1; height: 3rem; }
}
@media (min-width: 768px) {
  .gnav__list { display: flex; }
  .gnav__list a {
    display: flex;
    align-items: center;
    height: 3.5rem;
    padding-inline: var(--space-3);
    text-decoration: none;
    color: var(--text-body);
    font-weight: var(--font-weight-700);
    border-bottom: 4px solid transparent;
  }
  .gnav__list a:visited { color: var(--text-body); }
  .gnav__list a:hover { background: var(--bg-key-subtle); }
  .gnav__list a[aria-current="page"] { color: var(--text-link); border-bottom-color: var(--bg-fill); }
  .gnav__search { display: none; }
}

/* ---------------------------------------------------------------
   6. パンくずリスト
   --------------------------------------------------------------- */
.breadcrumb { background: var(--bg-subtle); font-size: var(--font-size-14); }
.breadcrumb ol {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 var(--space-1);
  padding-block: var(--space-1);
}
.breadcrumb li { display: flex; align-items: center; gap: var(--space-1); }
.breadcrumb li + li::before {
  content: "";
  width: 0.4rem; height: 0.4rem;
  border-top: 2px solid var(--color-neutral-solid-gray-536);
  border-right: 2px solid var(--color-neutral-solid-gray-536);
  transform: rotate(45deg);
}
.breadcrumb [aria-current="page"] { color: var(--text-description); }

/* ---------------------------------------------------------------
   7. ヒーロー
   --------------------------------------------------------------- */
.hero { background: var(--bg-key-subtle); }
.hero__inner { padding-block: var(--space-6); }
@media (min-width: 768px) {
  .hero__inner {
    padding-block: var(--space-10);
    display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-6); align-items: center;
  }
}
.hero__title {
  font-size: var(--font-size-32);
  line-height: var(--line-height-140);
  margin-bottom: var(--space-2);
}
@media (min-width: 768px) { .hero__title { font-size: var(--font-size-48); } }
.hero__figure {
  border-radius: var(--border-radius-16);
  background: linear-gradient(135deg, var(--color-key-200), var(--color-primitive-cyan-200));
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  color: var(--color-key-1100);
  font-weight: var(--font-weight-700);
  margin-top: var(--space-4);
}
@media (min-width: 768px) { .hero__figure { margin-top: 0; } }

/* ---------------------------------------------------------------
   8. ボタン
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 3rem;              /* 48px = タッチターゲット確保 */
  padding: 0 var(--space-3);
  border-radius: var(--border-radius-8);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-700);
  line-height: var(--line-height-150);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn--solid { background: var(--bg-fill); color: var(--text-onfill); }
.btn--solid:visited { color: var(--text-onfill); }
.btn--solid:hover { background: var(--bg-fill-hover); }
.btn--solid:active { background: var(--bg-fill-active); }

.btn--outline { background: var(--bg-body); color: var(--text-link); border-color: currentColor; }
.btn--outline:visited { color: var(--text-link); }
.btn--outline:hover { background: var(--bg-key-subtle); }

.btn--text { min-height: 2.75rem; padding-inline: var(--space-1); color: var(--text-link); background: transparent; }

.btn--lg { min-height: 3.5rem; font-size: var(--font-size-18); padding-inline: var(--space-4); }
.btn--sm { min-height: 2.5rem; font-size: var(--font-size-14); padding-inline: var(--space-2); }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------
   9. カード／ユーティリティリンク
   --------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: var(--space-3); }
}
@media (max-width: 767px) {
  .grid--2sp { grid-template-columns: repeat(2, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--bg-body);
  border: 1px solid var(--border-divider);
  border-radius: var(--border-radius-12);
}
.card__title { font-size: var(--font-size-18); font-weight: var(--font-weight-700); line-height: var(--line-height-150); }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
/* カード全体をクリック領域にする（リンクテキストは実リンクのまま） */
.card--link { position: relative; transition: background-color .15s, box-shadow .15s; }
.card--link:hover { background: var(--bg-key-subtle); box-shadow: var(--elevation-1); }
.card--link .card__title a::after { content: ""; position: absolute; inset: 0; }
.card--link:focus-within { outline: 2px solid var(--color-neutral-black); outline-offset: 2px; box-shadow: 0 0 0 6px var(--color-primitive-yellow-300); }
.card--link .card__title a:focus-visible { outline: none; box-shadow: none; }

/* アイコン付きの利用者導線タイル */
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 7.5rem;
  padding: var(--space-2);
  text-align: center;
  text-decoration: none;
  color: var(--text-body);
  background: var(--bg-body);
  border: 1px solid var(--border-divider);
  border-radius: var(--border-radius-12);
  font-weight: var(--font-weight-700);
  line-height: var(--line-height-150);
}
.tile:visited { color: var(--text-body); }
.tile:hover { background: var(--bg-key-subtle); border-color: var(--color-key-300); }
.tile__icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: var(--border-radius-full);
  background: var(--bg-key-subtle);
  color: var(--bg-fill);
}
.tile:hover .tile__icon { background: var(--color-key-100); }

/* ---------------------------------------------------------------
   10. お知らせリスト
   --------------------------------------------------------------- */
.newslist { list-style: none; border-top: 1px solid var(--border-divider); }
.newslist > li { border-bottom: 1px solid var(--border-divider); }
.newslist__item {
  display: block;
  padding-block: var(--space-2);
  text-decoration: none;
  color: var(--text-body);
}
.newslist__item:visited { color: var(--text-body); }
.newslist__item:hover .newslist__title { text-decoration: underline; }
.newslist__meta { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 0.25rem; }
.newslist__date { font-size: var(--font-size-14); color: var(--text-description); font-variant-numeric: tabular-nums; }
.newslist__title { line-height: var(--line-height-160); color: var(--text-link); }
@media (min-width: 768px) {
  .newslist__item { display: grid; grid-template-columns: 7rem 8rem 1fr; align-items: baseline; gap: var(--space-2); }
  .newslist__meta { display: contents; }
  .newslist__meta > * { margin: 0; }
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0 var(--space-1);
  border-radius: var(--border-radius-4);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-700);
  line-height: var(--line-height-150);
  white-space: nowrap;
  background: var(--color-neutral-solid-gray-100);
  color: var(--color-neutral-solid-gray-800);
}
.chip--key     { background: var(--color-key-50);  color: var(--color-key-1000); }
.chip--warning { background: var(--color-primitive-orange-100); color: var(--color-primitive-orange-1100); }
.chip--error   { background: var(--color-primitive-red-100); color: var(--color-primitive-red-1100); }
.chip--success { background: var(--color-primitive-green-100); color: var(--color-primitive-green-1000); }

/* ---------------------------------------------------------------
   11. 注釈ブロック（notification banner）
   --------------------------------------------------------------- */
.notice {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--border-divider);
  border-left-width: 0.375rem;
  border-radius: var(--border-radius-8);
  background: var(--bg-subtle);
}
.notice__icon { flex: none; font-weight: var(--font-weight-700); }
.notice__title { font-weight: var(--font-weight-700); margin-bottom: 0.25rem; }
.notice > div > :last-child { margin-bottom: 0; }
.notice--info    { border-left-color: var(--color-key-900);  background: var(--color-key-50); }
.notice--info .notice__icon { color: var(--color-key-900); }
.notice--warning { border-left-color: var(--color-semantic-warning-orange-2); background: var(--color-primitive-orange-50); }
.notice--warning .notice__icon { color: var(--color-semantic-warning-orange-2); }
.notice--error   { border-left-color: var(--state-error); background: var(--color-primitive-red-50); }
.notice--error .notice__icon { color: var(--state-error); }
.notice--success { border-left-color: var(--state-success); background: var(--color-primitive-green-50); }
.notice--success .notice__icon { color: var(--state-success); }

/* ---------------------------------------------------------------
   12. アコーディオン（details/summary）
   --------------------------------------------------------------- */
.accordion { border: 1px solid var(--border-divider); border-radius: var(--border-radius-8); overflow: hidden; }
.accordion + .accordion { margin-top: var(--space-1); }
.accordion > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-subtle);
  font-weight: var(--font-weight-700);
  cursor: pointer;
  list-style: none;
  line-height: var(--line-height-160);
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 0.6rem; height: 0.6rem;
  border-bottom: 2px solid var(--text-link);
  border-right: 2px solid var(--text-link);
  transform: rotate(45deg) translate(-0.15em, -0.15em);
  transition: transform .2s;
}
.accordion[open] > summary::after { transform: rotate(-135deg) translate(-0.15em, -0.15em); }
.accordion > summary:hover { background: var(--bg-key-subtle); }
.accordion__body { padding: var(--space-2); }
.accordion__body > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   13. テーブル
   --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-16);
  min-width: 34rem;
}
.table caption {
  text-align: left;
  font-weight: var(--font-weight-700);
  padding-bottom: var(--space-1);
}
.table th, .table td {
  padding: var(--space-2);
  border: 1px solid var(--border-divider);
  text-align: left;
  vertical-align: top;
  line-height: var(--line-height-160);
}
.table thead th { background: var(--color-key-50); color: var(--color-key-1100); }
.table tbody th { background: var(--bg-subtle); font-weight: var(--font-weight-700); white-space: nowrap; }

/* ---------------------------------------------------------------
   14. ステップナビゲーション
   --------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--space-2); }
@media (min-width: 768px) { .steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-3); } }
.steps > li {
  counter-increment: step;
  padding: var(--space-2);
  border: 1px solid var(--border-divider);
  border-top: 4px solid var(--bg-fill);
  border-radius: 0 0 var(--border-radius-8) var(--border-radius-8);
}
.steps > li::before {
  content: "STEP " counter(step);
  display: block;
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-700);
  color: var(--text-link);
  margin-bottom: 0.25rem;
}
.steps__title { font-weight: var(--font-weight-700); margin-bottom: 0.25rem; line-height: var(--line-height-150); }

/* ---------------------------------------------------------------
   15. 目次
   --------------------------------------------------------------- */
.toc {
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--border-radius-12);
}
.toc__title { font-weight: var(--font-weight-700); margin-bottom: var(--space-1); }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; padding-block: 0.25rem; }
.toc li::before { content: counter(toc) ". "; color: var(--text-description); }

/* ---------------------------------------------------------------
   16. フォーム
   --------------------------------------------------------------- */
.field { margin-bottom: var(--space-4); }
.field__label {
  display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap;
  font-weight: var(--font-weight-700);
  margin-bottom: 0.25rem;
}
.field__req, .field__opt {
  font-size: var(--font-size-14);
  padding: 0.0625rem var(--space-1);
  border-radius: var(--border-radius-4);
  font-weight: var(--font-weight-700);
}
.field__req { background: var(--color-primitive-red-100); color: var(--color-primitive-red-1100); }
.field__opt { background: var(--color-neutral-solid-gray-100); color: var(--color-neutral-solid-gray-800); }
.field__hint { font-size: var(--font-size-14); color: var(--text-description); margin-bottom: var(--space-1); }
.field__error {
  display: none;
  align-items: center; gap: var(--space-1);
  color: var(--state-error);
  font-weight: var(--font-weight-700);
  font-size: var(--font-size-14);
  margin-top: 0.25rem;
}
.field.is-invalid .field__error { display: flex; }

.input, .select, .textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-1) var(--space-2);
  font: inherit;
  font-size: var(--font-size-16);
  color: var(--text-body);
  background: var(--bg-body);
  border: 2px solid var(--border-field);
  border-radius: var(--border-radius-8);
}
.textarea { min-height: 8rem; line-height: var(--line-height-170); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-placeholder); }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--state-error); background: var(--color-primitive-red-50); }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-body) 50%), linear-gradient(135deg, var(--text-body) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 1.35rem, calc(100% - 0.9rem) 1.35rem;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  padding-right: var(--space-5);
}
.input--sm { max-width: 18rem; }

.choice-list { display: grid; gap: var(--space-1); }
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  min-height: 2.75rem;
  padding: var(--space-1);
  border-radius: var(--border-radius-8);
  cursor: pointer;
  line-height: var(--line-height-170);
}
.choice:hover { background: var(--bg-key-subtle); }
.choice input { width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--bg-fill); flex: none; }

fieldset { margin: 0 0 var(--space-4); padding: 0; border: 0; }
legend { padding: 0; font-weight: var(--font-weight-700); margin-bottom: 0.25rem; }

/* ---------------------------------------------------------------
   17. ページネーション
   --------------------------------------------------------------- */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: center; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem;
  padding-inline: var(--space-1);
  border: 1px solid var(--border-divider);
  border-radius: var(--border-radius-8);
  text-decoration: none;
  color: var(--text-link);
  font-variant-numeric: tabular-nums;
}
.pagination a:visited { color: var(--text-link); }
.pagination a:hover { background: var(--bg-key-subtle); }
.pagination [aria-current="page"] { background: var(--bg-fill); color: var(--text-onfill); border-color: var(--bg-fill); font-weight: var(--font-weight-700); }

/* ---------------------------------------------------------------
   18. ページトップへ戻る／フッター
   --------------------------------------------------------------- */
.pagetop { display: flex; justify-content: flex-end; padding-block: var(--space-2); }

.footer { background: var(--color-key-1100); color: var(--text-onfill); }
.footer a { color: var(--text-onfill); text-decoration: none; }
.footer a:visited { color: var(--text-onfill); }
.footer a:hover { text-decoration: underline; }
.footer__top { padding-block: var(--space-6); display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.2fr 2fr; } }
.footer__name { font-size: var(--font-size-20); font-weight: var(--font-weight-700); margin-bottom: var(--space-1); }
.footer__addr { font-size: var(--font-size-14); line-height: var(--line-height-175); color: var(--color-key-100); font-style: normal; }
.footer__nav { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .footer__nav { grid-template-columns: repeat(3, 1fr); } }
.footer__navtitle { font-weight: var(--font-weight-700); margin-bottom: var(--space-1); font-size: var(--font-size-14); color: var(--color-key-100); }
.footer__nav ul { list-style: none; display: grid; gap: 0.375rem; font-size: var(--font-size-14); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.25);
  padding-block: var(--space-2);
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
  align-items: center; justify-content: space-between;
  font-size: var(--font-size-14);
}
.footer :focus-visible { outline-color: var(--color-neutral-white); }

/* サンプル注記（このサイトが実在の自治体ではないことの明示） */
.samplebar {
  background: var(--color-primitive-yellow-100);
  color: var(--color-primitive-yellow-1200);
  font-size: var(--font-size-14);
  line-height: var(--line-height-150);
}
.samplebar__inner { padding-block: var(--space-1); }
.samplebar strong { font-weight: var(--font-weight-700); }
