/* ============================================================
   DADS準拠 Web UI コンポーネント
   ------------------------------------------------------------
   デジタル庁デザインシステムβ版のコンポーネント仕様（ボタン /
   インプットテキスト / チェックボックス / フォームコントロール
   ラベル / リンクテキスト）を、Enmish v2 パレットにマッピング。

   色マッピング:
     key（主要色）      = --navy #032841（白文字 ≈14:1）
     hover / active     = color-mix による濃色派生（新規hexなし）
     入力境界（3:1）    = --color-border（= --ink-mid #6b8a9a）
     エラー             = 境界 --red / テキスト --color-error-text
     フォーカス         = 黒アウトライン4px + 2pxオフセット + 黄 #ffd43d

   アクセシビリティ原則（公式）:
     ・ラベル文字と背景 4.5:1 以上、外形と背景 3:1 以上
     ・ターゲット領域は常に 44 CSS px 以上（sm/xs は擬似要素で確保）
     ・重要度を色の違いだけで表さない
     ・disabled はタブ到達不能のため原則避ける（理由説明を近接配置）
     ・アイコンのみのボタン・外部リンクアイコンには代替テキスト必須
   ============================================================ */

/* ── リンクテキスト ──────────────────────────────────────────
   通常テキストとは「色＋下線」の複数手掛かりで区別する。
   新規タブ・外部リンクは末尾アイコン＋代替テキスト（aria-label）。
   アイコンに下線は引かないがクリック領域には含める。 */
.dads-link {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}
.dads-link:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 0.1875rem;
}
.dads-link:active { color: var(--color-link-active); }
.dads-link:visited { color: var(--color-link-visited); }
.dads-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  background: var(--color-focus);
  color: var(--navy);
}
.dads-link__icon {
  display: inline-block;
  vertical-align: -0.125em;
  width: 1em; height: 1em;
  margin-left: 0.125em;
  fill: currentColor;
  text-decoration: none;
}

/* ── ボタン ──────────────────────────────────────────────────
   アクション実行は <button>、ページ遷移は <a>。
   <a> の無効化は href を外し role="link" aria-disabled="true"。
   スタイル: data-type="solid-fill | outline | text"
   サイズ:   data-size="lg | md | sm | xs"（最小 136×56 / 96×48 / 80×36 / 72×28） */
.dads-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  position: relative;
  font-family: var(--jp);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-tight);
  text-decoration: none;
  text-underline-offset: 0.1875rem;
  cursor: pointer;
}

/* サイズ（幅はラベル長に応じて可変・min はターゲット目安） */
.dads-button[data-size="lg"] { min-width: 136px; min-height: 56px; padding: 12px 16px; border-radius: var(--radius-8); }
.dads-button[data-size="md"] { min-width: 96px;  min-height: 48px; padding: 8px 16px;  border-radius: var(--radius-8); }
.dads-button[data-size="sm"] { min-width: 80px;  min-height: 36px; padding: 2px 12px;  border-radius: var(--radius-6); }
.dads-button[data-size="xs"] { min-width: 72px;  min-height: 28px; padding: 2px 8px;   border-radius: var(--radius-4); font-size: var(--fs-14); }

/* sm / xs も上下余白を含めて 44px のターゲット領域を確保 */
.dads-button[data-size="sm"]::before,
.dads-button[data-size="xs"]::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

/* solid-fill（最重要アクション） */
.dads-button[data-type="solid-fill"] {
  border: 0.25rem double transparent;
  background-color: var(--navy);
  color: var(--white);
}
.dads-button[data-type="solid-fill"]:hover {
  background-color: color-mix(in srgb, var(--navy) 78%, #000000);
  text-decoration: underline;
}
.dads-button[data-type="solid-fill"]:active {
  background-color: color-mix(in srgb, var(--navy) 60%, #000000);
}

/* outline（第二アクション） */
.dads-button[data-type="outline"] {
  border: 1px solid var(--navy);
  background-color: var(--white);
  color: var(--navy);
}
.dads-button[data-type="outline"]:hover {
  background-color: color-mix(in srgb, var(--navy) 8%, var(--white));
  text-decoration: underline;
}
.dads-button[data-type="outline"]:active {
  background-color: color-mix(in srgb, var(--navy) 16%, var(--white));
}

/* text（最も控えめ。リンクと同じ手掛かり） */
.dads-button[data-type="text"] {
  border: none;
  background: transparent;
  color: var(--color-link);
  text-decoration: underline;
}
.dads-button[data-type="text"]:hover  { color: var(--color-link-hover); text-decoration-thickness: 0.1875rem; }
.dads-button[data-type="text"]:active { color: var(--color-link-active); }

/* フォーカス（全タイプ共通）: 黒枠 + 黄ハイライト */
.dads-button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}

/* disabled — 原則避ける（タブ到達不能）。必要な場合は理由説明を近接配置 */
.dads-button:disabled,
.dads-button[aria-disabled="true"] {
  background-color: var(--label-gray);
  border-color: transparent;
  color: var(--ink-light);
  text-decoration: none;
  cursor: not-allowed;
}
.dads-button[data-type="outline"]:disabled,
.dads-button[data-type="outline"][aria-disabled="true"] {
  background-color: var(--white);
  border-color: var(--ink-light);
}
.dads-button[data-type="text"]:disabled,
.dads-button[data-type="text"][aria-disabled="true"] {
  background-color: transparent;
  color: var(--ink-light);
}

/* ── インプットテキスト ──────────────────────────────────────
   1行以内のテキスト入力。原則フォームコントロールラベルと併用。
   sm = 40px / md = 48px / lg = 56px */
.dads-input-text {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}
.dads-input-text__input {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--color-border);
  background-color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-8);
  color: var(--navy);
  font-family: var(--jp);
  font-size: var(--fs-16);
  line-height: 1;
}
.dads-input-text__input[data-size="sm"] { height: 40px; }
.dads-input-text__input[data-size="md"] { height: 48px; }
.dads-input-text__input[data-size="lg"] { height: 56px; }

.dads-input-text__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}

/* エラー: aria-invalid="true" ＋ エラーテキストを aria-describedby で関連付け */
.dads-input-text__input[aria-invalid="true"] { border-color: var(--red); }

/* readonly: 破線境界。理由を support text で説明する */
.dads-input-text__input:read-only:not(:disabled) { border-style: dashed; }

/* disabled: 淡色背景と淡色文字 */
.dads-input-text__input:disabled {
  background-color: var(--gray-stripe);
  border-color: var(--label-gray);
  color: var(--ink-light);
  cursor: not-allowed;
}

.dads-input-text__error-text {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-error-text);
  font-size: var(--fs-16);
  line-height: var(--lh-150);
}

/* ── チェックボックス ────────────────────────────────────────
   複数選択用。原則 <label> で入力部とラベルを包む。
   グループ化は <fieldset> + <legend>。
   不確定状態は JS: checkbox.indeterminate = true
   入力部外寸: sm 24px / md 32px / lg 44px */
.dads-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px; /* ターゲット領域 */
  font-family: var(--jp);
  font-size: var(--fs-16);
  line-height: var(--lh-150);
  color: var(--navy);
  cursor: pointer;
}
.dads-checkbox__checkbox {
  display: inline-flex;
  flex: none;
}
.dads-checkbox__input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex: none;
  width: 24px; height: 24px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-4);
  background: var(--white);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.dads-checkbox[data-size="md"] .dads-checkbox__input { width: 32px; height: 32px; border-radius: var(--radius-6); }
.dads-checkbox[data-size="lg"] .dads-checkbox__input { width: 44px; height: 44px; border-radius: var(--radius-6); }

.dads-checkbox__input::before {
  content: '';
  width: 58%; height: 58%;
  transform: scale(0);
  background: var(--white);
  clip-path: polygon(37% 82%, 5% 52%, 17% 40%, 37% 59%, 82% 13%, 94% 25%);
}
.dads-checkbox__input:checked {
  background: var(--navy);
  border-color: var(--navy);
}
.dads-checkbox__input:checked::before { transform: scale(1); }

/* 不確定状態（JS の indeterminate プロパティで設定） */
.dads-checkbox__input:indeterminate {
  background: var(--navy);
  border-color: var(--navy);
}
.dads-checkbox__input:indeterminate::before {
  transform: scale(1);
  clip-path: inset(38% 12% 38% 12%);
}

.dads-checkbox:hover .dads-checkbox__input:not(:disabled) {
  border-color: color-mix(in srgb, var(--navy) 78%, #000000);
}
.dads-checkbox__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}
.dads-checkbox__input[aria-invalid="true"] { border-color: var(--red); }
.dads-checkbox__input:disabled {
  border-color: var(--ink-light);
  background: var(--gray-stripe);
  cursor: not-allowed;
}
.dads-checkbox__input:disabled:checked { background: var(--ink-light); }
.dads-checkbox:has(.dads-checkbox__input:disabled) {
  color: var(--ink-light);
  cursor: not-allowed;
}

/* ── フォームコントロールラベル ──────────────────────────────
   単一コントロール: <label for>。グループ: <fieldset> + <legend>。
   support / error は id を付与し aria-describedby で関連付ける。 */
.dads-form-control-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-family: var(--jp);
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}
.dads-form-control-label__label {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-1);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: var(--lh-150);
  color: var(--navy);
  padding: 0; /* legend リセット */
}
.dads-form-control-label[data-size="lg"] .dads-form-control-label__label { font-size: var(--fs-18); }

.dads-form-control-label__requirement {
  font-size: var(--fs-14);
  font-weight: 400;
  letter-spacing: var(--ls-tight);
}
.dads-form-control-label__requirement[data-required="true"]  { color: var(--color-error-text); }
.dads-form-control-label__requirement[data-required="false"] { color: var(--ink-secondary); }

.dads-form-control-label__support-text {
  font-size: var(--fs-16);
  line-height: var(--lh-170);
  color: var(--ink-secondary);
}
.dads-form-control-label__error-text {
  font-size: var(--fs-16);
  line-height: var(--lh-150);
  color: var(--color-error-text);
}

/* ── テキストエリア ──────────────────────────────────────────
   複数行入力。境界・状態・フォーカスはインプットテキストと同一。 */
.dads-textarea {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}
.dads-textarea__input {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 120px;
  border: 1px solid var(--color-border);
  background-color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-8);
  color: var(--navy);
  font-family: var(--jp);
  font-size: var(--fs-16);
  line-height: var(--lh-170);
  resize: vertical;
}
.dads-textarea__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}
.dads-textarea__input[aria-invalid="true"] { border-color: var(--red); }
.dads-textarea__input:read-only:not(:disabled) { border-style: dashed; }
.dads-textarea__input:disabled {
  background-color: var(--gray-stripe);
  border-color: var(--label-gray);
  color: var(--ink-light);
  cursor: not-allowed;
}
.dads-textarea__error-text {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-error-text);
  font-size: var(--fs-16);
  line-height: var(--lh-150);
}

/* ── セレクトボックス ────────────────────────────────────────
   選択肢が多い単一選択。高さは入力と同じ sm40 / md48 / lg56。 */
.dads-select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--color-border);
  background-color: var(--white);
  padding: 0 48px 0 16px;
  border-radius: var(--radius-8);
  color: var(--navy);
  font-family: var(--jp);
  font-size: var(--fs-16);
  line-height: 1;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23032841'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px;
}
.dads-select[data-size="sm"] { height: 40px; }
.dads-select[data-size="md"] { height: 48px; }
.dads-select[data-size="lg"] { height: 56px; }
.dads-select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}
.dads-select[aria-invalid="true"] { border-color: var(--red); }
.dads-select:disabled {
  background-color: var(--gray-stripe);
  border-color: var(--label-gray);
  color: var(--ink-light);
  cursor: not-allowed;
}

/* ── ラジオボタン ────────────────────────────────────────────
   単一選択。チェックボックス同様、原則 <label> で内包。
   グループは <fieldset> + <legend>。外寸 sm24 / md32 / lg44。 */
.dads-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  font-family: var(--jp);
  font-size: var(--fs-16);
  line-height: var(--lh-150);
  color: var(--navy);
  cursor: pointer;
}
.dads-radio__input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  flex: none;
  width: 24px; height: 24px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.dads-radio[data-size="md"] .dads-radio__input { width: 32px; height: 32px; }
.dads-radio[data-size="lg"] .dads-radio__input { width: 44px; height: 44px; }
.dads-radio__input::before {
  content: '';
  width: 50%; height: 50%;
  border-radius: 50%;
  background: var(--navy);
  transform: scale(0);
}
.dads-radio__input:checked { border-color: var(--navy); }
.dads-radio__input:checked::before { transform: scale(1); }
.dads-radio:hover .dads-radio__input:not(:disabled) {
  border-color: color-mix(in srgb, var(--navy) 78%, #000000);
}
.dads-radio__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}
.dads-radio__input[aria-invalid="true"] { border-color: var(--red); }
.dads-radio__input:disabled {
  border-color: var(--ink-light);
  background: var(--gray-stripe);
  cursor: not-allowed;
}
.dads-radio:has(.dads-radio__input:disabled) {
  color: var(--ink-light);
  cursor: not-allowed;
}

/* ── テーブル ────────────────────────────────────────────────
   確認用の明細表示。<caption> で表題、th には scope を付ける。 */
.dads-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--jp);
  font-size: var(--fs-16);
  line-height: var(--lh-150);
  color: var(--navy);
}
.dads-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: var(--space-1);
}
.dads-table th {
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--navy);
}
.dads-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-divider);
  vertical-align: top;
}
.dads-table--striped tbody tr:nth-child(even) { background: var(--gray-stripe); }
.dads-table .dads-table__num {
  font-family: var(--hn);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── ノティフィケーションバナー ──────────────────────────────
   状態は色＋日本語ラベルの2点以上で伝える（色のみ禁止）。
   通知は role="status"、緊急・エラーは role="alert"。 */
.dads-banner {
  border: 2px solid;
  border-radius: var(--radius-12);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--jp);
}
.dads-banner__label {
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}
.dads-banner__title {
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--navy);
}
.dads-banner__body {
  font-size: var(--fs-16);
  line-height: var(--lh-170);
  color: var(--ink-secondary);
}
.dads-banner[data-type="info"]    { border-color: var(--ocean); background: var(--status-progress-bg); }
.dads-banner[data-type="info"]    .dads-banner__label { color: var(--status-progress); }
.dads-banner[data-type="success"] { border-color: var(--status-done); background: var(--status-done-bg); }
.dads-banner[data-type="success"] .dads-banner__label { color: var(--status-done); }
.dads-banner[data-type="warn"]    { border-color: var(--status-warn); background: var(--status-warn-bg); }
.dads-banner[data-type="warn"]    .dads-banner__label { color: var(--status-warn); }
.dads-banner[data-type="error"]   { border-color: var(--red); background: var(--status-danger-bg); }
.dads-banner[data-type="error"]   .dads-banner__label { color: var(--color-error-text); }

/* ── タグ（ピルバッジ） ──────────────────────────────────────
   NEW・ステータス等の小型ラベル。非インタラクティブ装飾 —
   クリックさせる場合は .dads-button を使う。
   色だけに頼らず必ず文言を持たせる（NEW / 達成 / 未達 …）。 */
.dads-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-family: var(--hn);
  font-size: var(--fs-14); /* バッジ＝制約要素の例外サイズ */
  font-weight: 700;
  line-height: 1; /* バッジは単一行 — 1.5だと行送りの非対称でズレて見えるため専用値 */
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.dads-tag.ja { font-family: var(--jp); letter-spacing: 0.04em; }
.dads-tag[data-color="yellow"]  { background: var(--color-focus); color: var(--navy); }   /* NEW・注目 */
.dads-tag[data-color="green"]   { background: var(--spruce); color: var(--white); }  /* おすすめ等・白文字が要る場合はSPRUCE（GREEN本体は白文字不可） */
.dads-tag[data-color="mint"]    { background: var(--green-50); color: var(--green-700); }
.dads-tag[data-color="navy"]    { background: var(--navy); color: var(--white); }
.dads-tag[data-color="slate"]   { background: var(--slate); color: var(--white); }
.dads-tag[data-color="red"]     { background: var(--red-50); color: var(--color-error-text); }
.dads-tag[data-color="outline"] { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.dads-tag[data-color="outline-white"] { background: transparent; border: 1.5px solid var(--white); color: var(--white); } /* 濃色パネル上 */

/* ── ヘッダー / グローバルナビ ────────────────────────────────
   ロゴ左・ナビ右。現在地は下線4px green＋aria-current="page"。 */
.dads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 24px;
  background: var(--white);
  border-bottom: 1px solid var(--color-border-divider);
  font-family: var(--jp);
}
.dads-header__logo img { height: 32px; display: block; }
.dads-gnav { display: flex; align-items: center; gap: 4px; }
.dads-gnav__item {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.dads-gnav__item:hover { background: var(--gray-stripe); }
.dads-gnav__item[aria-current="page"] { border-bottom-color: var(--green); }
.dads-gnav__item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}

/* ── パンくず ────────────────────────────────────────────────
   <nav aria-label="パンくず"> + <ol>。現在地は aria-current="page"・リンクなし。 */
.dads-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dads-breadcrumb li { display: flex; align-items: center; gap: 8px; font-family: var(--jp); font-size: var(--fs-14); line-height: var(--lh-150); color: var(--ink-secondary); }
.dads-breadcrumb li + li::before { content: "›"; color: var(--label-gray); font-family: var(--hn); }
.dads-breadcrumb a { color: var(--green-600, #3f7d6e); }
.dads-breadcrumb [aria-current="page"] { color: var(--ink-secondary); }

/* ── ページネーション ────────────────────────────────────────
   数字は44px円ターゲット・現在ページは navy 塗り＋aria-current。 */
.dads-pagination { display: flex; align-items: center; gap: 8px; }
.dads-pagination__page,
.dads-pagination__arrow {
  display: grid;
  place-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  font-family: var(--hn);
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}
.dads-pagination__arrow { border: 1px solid var(--color-border); }
.dads-pagination__page:hover,
.dads-pagination__arrow:hover { background: var(--gray-stripe); }
.dads-pagination__page[aria-current="page"] { background: var(--navy); color: var(--white); }
.dads-pagination__page:focus-visible,
.dads-pagination__arrow:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}
.dads-pagination__ellipsis { color: var(--ink-secondary); font-family: var(--hn); padding: 0 4px; }

/* ── タブ ────────────────────────────────────────────────────
   role="tablist"/"tab"。選択中= navy 下線4px＋aria-selected="true"。 */
.dads-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--color-border-divider); }
.dads-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  margin-bottom: -2px;
  min-height: 48px;
  padding: 0 20px;
  font-family: var(--jp);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: var(--lh-150);
  color: var(--ink-secondary);
  cursor: pointer;
}
.dads-tab:hover { color: var(--navy); background: var(--gray-stripe); }
.dads-tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.dads-tab:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}

/* ── アコーディオン ──────────────────────────────────────────
   <details class="dads-accordion"> + <summary>。開閉は＋/−で示す。 */
.dads-accordion { border: 1px solid var(--color-border-divider); border-radius: var(--radius-8); overflow: hidden; background: var(--white); }
.dads-accordion + .dads-accordion { margin-top: 8px; }
.dads-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  font-family: var(--jp);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: var(--lh-150);
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.dads-accordion summary::-webkit-details-marker { display: none; }
.dads-accordion summary::after { content: "＋"; font-family: var(--hn); font-size: 20px; color: var(--green-600, #3f7d6e); flex: none; }
.dads-accordion[open] summary::after { content: "−"; }
.dads-accordion summary:hover { background: var(--gray-stripe); }
.dads-accordion summary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 0.125rem var(--color-focus);
}
.dads-accordion__body { padding: 4px 20px 20px; font-family: var(--jp); font-size: var(--fs-16); line-height: var(--lh-170); color: var(--ink-secondary); }

/* ── モーダルダイアログ ──────────────────────────────────────
   <dialog class="dads-modal">。タイトル必須・主действие右端。 */
.dads-modal {
  border: none;
  border-radius: var(--radius-16);
  box-shadow: var(--elevation-8);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 48px);
  background: var(--white);
}
.dads-modal::backdrop { background: rgba(3, 40, 65, 0.5); }
.dads-modal__inner { display: flex; flex-direction: column; gap: 12px; padding: 32px; font-family: var(--jp); }
.dads-modal__title { font-size: 24px; font-weight: 700; line-height: var(--lh-150); color: var(--navy); margin: 0; }
.dads-modal__body { font-size: var(--fs-16); line-height: var(--lh-170); color: var(--ink-secondary); margin: 0; }
.dads-modal__actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 12px; }

/* ── ドロワー（モバイルナビ） ────────────────────────────────
   右からの全高パネル。項目は48pxターゲット。 */
.dads-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  background: var(--white);
  box-shadow: var(--elevation-6);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dads-drawer__item {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-8);
  font-family: var(--jp);
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.dads-drawer__item:hover { background: var(--gray-stripe); }
.dads-drawer__item[aria-current="page"] { background: var(--green-50); color: var(--green-700); }

/* ── ステップインジケーター ──────────────────────────────────
   手続きの現在位置。done=navy塗り✓ / current=枠navy＋薄緑リング。
   <ol class="dads-steps"><li data-state="done|current|">。 */
.dads-steps { display: flex; list-style: none; margin: 0; padding: 0; font-family: var(--jp); }
.dads-steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dads-steps li + li::before {
  content: '';
  position: absolute;
  top: 19px;
  height: 2px;
  left: calc(-50% + 32px);
  right: calc(50% + 32px);
  background: var(--color-border-divider);
}
.dads-steps li[data-state="done"] + li::before { background: var(--navy); }
.dads-steps__dot {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  display: grid;
  place-content: center;
  background: var(--white);
  border: 2px solid var(--color-border);
  color: var(--ink-secondary);
  font-family: var(--hn);
  font-size: var(--fs-16);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.dads-steps__label { font-size: var(--fs-14); font-weight: 700; line-height: var(--lh-150); color: var(--ink-secondary); }
.dads-steps li[data-state="done"] .dads-steps__dot { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dads-steps li[data-state="current"] .dads-steps__dot { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 4px var(--green-50); }
.dads-steps li[data-state="done"] .dads-steps__label,
.dads-steps li[data-state="current"] .dads-steps__label { color: var(--navy); }

/* ── プログレス / ローディング ──────────────────────────────
   進捗は必ず数値ラベルを併記。スピナーは reduced-motion 尊重。 */
.dads-progress { height: 8px; background: var(--gray-stripe); border-radius: var(--radius-full); overflow: hidden; }
.dads-progress__bar { height: 100%; background: var(--navy); border-radius: var(--radius-full); }
.dads-spinner {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  border: 4px solid var(--green-50);
  border-top-color: var(--navy);
  animation: dads-spin 1s linear infinite;
}
@keyframes dads-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dads-spinner { animation-duration: 2.5s; } }

/* ── カード ──────────────────────────────────────────────────
   面の基本。影は elevation-1、枠線版は --outline。 */
.dads-card {
  background: var(--white);
  border-radius: var(--radius-16);
  box-shadow: var(--elevation-1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--jp);
}
.dads-card--outline { box-shadow: none; border: 1px solid var(--color-border-divider); }
.dads-card__title { font-size: 20px; font-weight: 700; line-height: var(--lh-150); color: var(--navy); margin: 0; }
.dads-card__body { font-size: var(--fs-16); line-height: var(--lh-170); color: var(--ink-secondary); margin: 0; }

/* ── ツールチップ ────────────────────────────────────────────
   補足の最終手段（重要情報は本文に書く）。navy地・白字14px。 */
.dads-tooltip { position: relative; display: inline-flex; }
.dads-tooltip__bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-family: var(--jp);
  font-size: var(--fs-14);
  line-height: var(--lh-150);
  padding: 6px 12px;
  border-radius: var(--radius-6);
  white-space: nowrap;
}
.dads-tooltip__bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy);
}

/* ── 検索ボックス ────────────────────────────────────────────
   入力＋navy実行ボタンの結合。ボタンに aria-label か文言。 */
.dads-search { display: flex; }
.dads-search__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-8) 0 0 var(--radius-8);
  padding: 0 16px;
  font-family: var(--jp);
  font-size: var(--fs-16);
  color: var(--navy);
  background: var(--white);
}
.dads-search__input:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}
.dads-search__button {
  min-width: 64px;
  height: 48px;
  border: none;
  background: var(--navy);
  color: var(--white);
  border-radius: 0 var(--radius-8) var(--radius-8) 0;
  font-family: var(--jp);
  font-size: var(--fs-16);
  font-weight: 700;
  cursor: pointer;
}
.dads-search__button:hover { background: color-mix(in srgb, var(--navy) 78%, #000000); }
.dads-search__button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 0.125rem var(--color-focus);
}
