/* 京都府シルバー人材センター連合会 デザインシステム（DADS準拠）に合わせた見た目
   色・文字・余白はデザインシステムの tokens.json の値。
   原則「大きく、はっきり、迷わせない」：本文18px以上、押せる部品48px以上、薄い文字を作らない。 */
:root {
  /* デザインシステムの色 */
  --brand: #1e5b3a;          /* 深い緑：主ボタン・リンク・文字ロゴ */
  --brand-strong: #15452b;
  --brand-soft: #e4f0e8;
  --on-brand: #ffffff;
  --band: var(--brand);      /* accent：ヘッダー・フッターの帯、H2の下線（地域テーマで差し替え） */
  --bg: #ffffff;             /* surface */
  --surface: #ffffff;
  --surface-2: #f4f5f1;      /* surface-alt */
  --ink: #1a1f1c;
  --ink-2: #3f4842;          /* ink-muted */
  --border: #6f7a73;         /* 意味を持つ枠線（入力欄・副ボタン） */
  --line: #d3d9d4;           /* divider：装飾の区切り線 */
  --client: #7a3e0c;         /* audience-client：仕事を頼みたい方 */
  --client-soft: #f8ece0;
  --open: #0b55a3;           /* status-open：受付中 */
  --open-soft: #e3edf8;
  --closed: #545b60;         /* status-closed：締切 */
  --notice: #a8340d;         /* status-notice：重要・エラー */
  --notice-soft: #fbebe4;
  --focus: #c2410c;
  --video-bg: #15452b;
  --shadow-card: 0 1px 3px rgba(26,31,28,0.16);
  /* 互換の別名（画面の部品が使う名前） */
  --primary: var(--brand); --primary-ink: var(--on-brand); --primary-soft: var(--brand-soft);
  --accent: var(--client); --accent-soft: var(--client-soft);
  --ok: var(--open); --ok-soft: var(--open-soft); --warn: var(--notice); --warn-soft: var(--notice-soft);
  /* 文字・形 */
  --font-sans: "BIZ UDPGothic", "BIZ UDGothic", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --tap-min: 48px;
  --content-max: 1040px;
  --fs: 18px;
  color-scheme: light;
}
/* 「黒」：デザインシステムは白地のみ。黒地は同じ役割の色を明るくして作った補助の配色 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-scheme]) {
    --brand: #8fd1a6; --brand-strong: #b4e3c4; --brand-soft: #1d3326; --on-brand: #0d1a12;
    --bg: #121614; --surface: #1a1f1c; --surface-2: #222925; --ink: #eef2ef; --ink-2: #c5cec8;
    --border: #8d9a92; --line: #39433d; --client: #eab07a; --client-soft: #35261a;
    --open: #8dbdf3; --open-soft: #172a40; --closed: #b9c0c4; --notice: #f4a07f; --notice-soft: #3a2018;
    --focus: #ff9a5c; --video-bg: #1d3326; --shadow-card: none; color-scheme: dark;
  }
}
:root[data-scheme="dark"], :root[data-theme="dark"]:not([data-scheme]) {
  --brand: #8fd1a6; --brand-strong: #b4e3c4; --brand-soft: #1d3326; --on-brand: #0d1a12;
  --bg: #121614; --surface: #1a1f1c; --surface-2: #222925; --ink: #eef2ef; --ink-2: #c5cec8;
  --border: #8d9a92; --line: #39433d; --client: #eab07a; --client-soft: #35261a;
  --open: #8dbdf3; --open-soft: #172a40; --closed: #b9c0c4; --notice: #f4a07f; --notice-soft: #3a2018;
  --focus: #ff9a5c; --video-bg: #1d3326; --shadow-card: none; color-scheme: dark;
}
:root[data-scheme="contrast"] {
  --brand: #ffe600; --brand-strong: #fff27a; --brand-soft: #222; --on-brand: #000; --band: #ffe600;
  --bg: #000; --surface: #000; --surface-2: #111; --ink: #fff; --ink-2: #fff; --border: #fff; --line: #fff;
  --client: #ffe600; --client-soft: #222; --open: #7dd3ff; --open-soft: #00202e; --closed: #ddd;
  --notice: #ff9d7d; --notice-soft: #2a0d00; --focus: #00e5ff; --video-bg: #111; --shadow-card: none; color-scheme: dark;
}
/* 文字サイズ切替：標準・大・特大（100%・112.5%・125%） */
:root[data-text-size="large"] { --fs: 20.25px; }
:root[data-text-size="xlarge"] { --fs: 22.5px; }

* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.8; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
img { max-width: 100%; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; margin-right: .35em; }
.wrap { max-width: var(--content-max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--on-brand); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { font-weight: 700; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: 1.78rem; line-height: 1.4; }
h2 { font-size: 1.45rem; line-height: 1.45; }
h3 { font-size: 1.22rem; line-height: 1.5; }
p { margin: 0 0 1em; }

/* 試作版の表示：消せない。公式サイトと誤解されないように */
.demo-bar { background: var(--notice); color: var(--on-brand); font-size: .95rem; line-height: 1.6; font-weight: 700; padding-block: .55rem; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: center; }
.demo-bar span { font-weight: 400; }

/* 見やすさの設定 */
.a11y-bar { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .9rem; }
.a11y-inner { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding-block: .5rem; }
.a11y-group { display: inline-flex; align-items: center; gap: .5rem; }
.a11y-label { color: var(--ink); font-weight: 700; }
.seg { display: inline-flex; border: 2px solid var(--border); border-radius: 9999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; padding: 0 .8rem; cursor: pointer; min-height: var(--tap-min); min-width: 3.2rem; }
.seg button + button { border-left: 2px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.read-btn { margin-left: auto; display: inline-flex; align-items: center; border: 2px solid var(--border); background: var(--surface); color: var(--brand); font: inherit; font-weight: 700; border-radius: var(--radius-md); padding: 0 1rem; cursor: pointer; min-height: var(--tap-min); }
.read-btn[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ヘッダー：上端に8pxの帯、文字ロゴ、電話番号を常に表示 */
.site-header { background: var(--surface); border-top: 8px solid var(--band); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: .6rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--brand); font-weight: 700; line-height: 1.3; }
.brand-mark { display: none; }
.brand-text { font-size: 1.3rem; }
.brand-text small { display: block; font-size: .9rem; color: var(--ink); }
.header-tel { margin-left: auto; display: flex; flex-direction: column; line-height: 1.25; color: var(--ink-2); font-size: .9rem; }
.header-tel b { white-space: nowrap; display: inline-flex; align-items: center; font-size: 1.55rem; color: var(--brand); font-variant-numeric: tabular-nums; user-select: all; }
.menu-btn { display: none; }
.gnav { border-top: 1px solid var(--line); }
.gnav .wrap { display: flex; flex-wrap: wrap; }
.gnav a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: .4rem .6rem; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 4px solid transparent; }
.gnav a:hover { background: var(--brand-soft); text-decoration: underline; }
.gnav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
@media (max-width: 820px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; }
  .header-tel { margin-left: 0; grid-column: 1 / -1; grid-row: 2; flex-direction: column-reverse; gap: 0; }
  .header-tel b { font-size: 1.25rem; }
  .menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.3rem; line-height: 1; padding: .3rem .7rem; border-radius: var(--radius-md); min-height: 56px; min-width: 56px; cursor: pointer; }
  .menu-btn span { font-size: .8rem; font-weight: 700; margin-top: 3px; }
  .gnav { display: none; }
  .gnav.open { display: block; }
  .gnav .wrap { flex-direction: column; }
  .gnav a { justify-content: flex-start; text-align: left; border-bottom: 1px solid var(--line); }
  .read-btn { margin-left: 0; }
  .brand-text { font-size: 1.1rem; }
}

main { display: block; min-height: 60vh; outline: none; }
section.block { padding-block: 2.6rem; }
section.block > .wrap > h2, .section-title { padding-bottom: .4rem; border-bottom: 4px solid var(--band); margin-bottom: 1.2rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.section-title a { font-weight: 700; display: inline-flex; align-items: center; min-height: var(--tap-min); }
.page-head { background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: 1.8rem 1.6rem; }
.page-head h1 { color: var(--ink); margin-bottom: .3rem; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 1.1rem; }
.crumb { font-size: .9rem; margin-bottom: .3rem; color: var(--ink-2); }

/* トップ：大見出しと目的別の入口 */
.hero { background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: 2.4rem 2.6rem; }
.hero h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: .5rem; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 40em; }
.hero-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.33rem; margin-top: 1.6rem; }
.big-action { display: flex; flex-direction: column; gap: .5rem; padding: 1.33rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border-top: 8px solid var(--brand); background: var(--surface); color: var(--ink); text-decoration: none; }
.big-action:nth-child(1) { background: var(--brand-soft); border-top-color: var(--brand); }
.big-action:nth-child(2) { background: var(--client-soft); border-top-color: var(--client); }
.big-action .ico { display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; border-radius: 9999px; background: var(--brand); color: var(--on-brand); }
.big-action:nth-child(2) .ico { background: var(--client); }
.big-action .ico .ic { width: 1.6rem; height: 1.6rem; margin: 0; }
.big-action strong { font-size: 1.45rem; line-height: 1.4; }
.big-action span { font-size: 1.05rem; color: var(--ink); }
.big-action .go { margin-top: auto; display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--brand-strong); font-weight: 700; font-size: 1.1rem; }
.big-action:nth-child(2) .go { color: var(--client); }
.big-action:hover .go { text-decoration: underline; text-decoration-thickness: 3px; }
@media (max-width: 820px) { .hero-actions { grid-template-columns: 1fr; } .hero h1 { font-size: 1.75rem; } }

.finder { background: var(--surface); color: var(--ink); border: 2px solid var(--border); border-radius: var(--radius-md); padding: 1.33rem; margin-top: 1.33rem; }
.finder-row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: end; }
.finder-row .field { flex: 1 1 260px; margin: 0; }

/* 共通の部品 */
.grid { display: grid; gap: 1.33rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); padding: 1.33rem; }
.card h3 { margin-bottom: .4rem; display: flex; align-items: center; }
.card .muted, .muted { color: var(--ink-2); font-size: .95rem; }
a.card { text-decoration: none; color: var(--ink); display: block; border-color: var(--border); }
a.card:hover { border-color: var(--brand); background: var(--brand-soft); }
a.card:hover h3 { text-decoration: underline; }
/* 状態ラベル：色と文字の両方で示す */
.tag { display: inline-block; font-size: .9rem; line-height: 1.5; padding: .05rem .55rem; border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); font-weight: 700; margin: 0 .35rem .3rem 0; white-space: nowrap; }
.tag.accent { background: var(--client); color: var(--on-brand); }
.tag.ok { background: var(--open); color: var(--on-brand); }
.tag.warn { background: var(--notice); color: var(--on-brand); }
.tag.demo { background: var(--surface); color: var(--ink); border: 2px solid var(--border); padding: 0 .5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .2rem; font: inherit; font-size: 1.1rem; line-height: 1.4; font-weight: 700; padding: .6rem 1.33rem; min-height: var(--tap-min); min-width: var(--tap-min); border-radius: var(--radius-md); border: 2px solid var(--brand); background: var(--brand); color: var(--on-brand); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { background: var(--surface); color: var(--brand); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn.accent { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.small { font-size: 1rem; padding: .35rem 1rem; }
.btn[disabled] { background: var(--surface-2); border-color: var(--border); color: var(--ink-2); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.1rem; align-items: center; }

/* 入力欄：ラベルは上、必須は文字で、エラーは直下に */
.field { margin: 0 0 1.33rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: .4rem; }
.req { display: inline-block; background: var(--notice); color: var(--on-brand); font-size: .9rem; line-height: 1.5; padding: 0 .5rem; border-radius: var(--radius-sm); margin-left: .5rem; vertical-align: .1em; }
.hint { font-size: .9rem; color: var(--ink-2); margin-top: .3rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=search], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: .65rem .9rem; min-height: 3.1rem;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
textarea { min-height: 8rem; }
.choice { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice label { display: inline-flex; align-items: center; gap: .5rem; border: 2px solid var(--border); border-radius: var(--radius-md); padding: .5rem 1rem; cursor: pointer; background: var(--surface); font-weight: 400; min-height: var(--tap-min); }
.choice input { width: 1.25em; height: 1.25em; accent-color: var(--brand); }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.err { color: var(--notice); font-size: 1rem; margin-top: .3rem; font-weight: 700; }

/* 手順 */
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.6rem; counter-reset: s; flex-wrap: wrap; }
.steps li { flex: 1 1 130px; counter-increment: s; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); padding: .5rem .8rem; font-size: .95rem; color: var(--ink-2); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; border: 2px solid var(--border); color: var(--ink); margin-right: .45rem; font-weight: 700; }
.steps li.now { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; }
.steps li.now::before { background: var(--on-brand); border-color: var(--on-brand); color: var(--brand); }
.steps li.done { color: var(--ink); }
.steps li.done::before { content: "✓"; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.flow li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); padding: .9rem 1.1rem; }
.flow .n { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; }
.flow .web { background: var(--client); }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); }
.compare th, .compare td { border-bottom: 1px solid var(--line); padding: .8rem .9rem; text-align: left; vertical-align: top; }
.compare th { background: var(--surface-2); font-size: 1rem; }
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--radius-md); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.33rem; }
.stat { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; }
.stat b { display: block; font-size: 2rem; color: var(--brand); line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* お知らせ一覧 */
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news-list li { display: flex; gap: .3rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: baseline; }
.news-list time { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: .95rem; min-width: 7em; }

.job { display: flex; flex-direction: column; gap: .4rem; border-color: var(--border); }
.job .meta { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: .95rem; color: var(--ink-2); }
.job .meta span { display: inline-flex; align-items: center; }
.job .btn-row { margin-top: auto; padding-top: .6rem; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: .9rem; align-items: end; margin-bottom: 1.33rem; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters .field:first-child { grid-column: 1 / -1; } }
.filters .field { margin: 0; }

/* 料金の目安 */
.estimate { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 150px); border-color: var(--brand); }
.estimate .total { font-size: 2.1rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.3; }
.svc-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
@media (max-width: 760px) { .svc-pick { grid-template-columns: repeat(2, 1fr); } }
.svc-pick label { position: relative; border: 2px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: .9rem; cursor: pointer; display: flex; flex-direction: column; gap: .2rem; min-height: 110px; }
.svc-pick label:has(input:checked) { border-color: var(--brand); border-width: 3px; background: var(--brand-soft); }
.svc-pick input { position: absolute; opacity: 0; }
.svc-pick label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.svc-pick .ico { color: var(--brand); }
.svc-pick .ico .ic { width: 2rem; height: 2rem; margin: 0; }
.svc-pick small { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.layout-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.33rem; align-items: start; }
.layout-2 > * { min-width: 0; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } .estimate { position: static; } }

/* 説明動画 */
.video { aspect-ratio: 16 / 9; max-width: 100%; background: var(--video-bg); color: #fff; border-radius: var(--radius-md); display: grid; place-items: center; text-align: center; padding: 1rem; position: relative; overflow: hidden; }
.video .play { width: 84px; height: 84px; border-radius: 50%; background: transparent; border: 3px solid #fff; color: #fff; font-size: 2rem; cursor: pointer; }
.progress { height: 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: .7rem 0; }
.progress i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .3s; }
.chapters { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .35rem; }
.chapters li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .95rem; }
.chapters li.done { background: var(--brand-soft); }

.notice { border: 2px solid var(--brand); background: var(--brand-soft); padding: 1rem 1.1rem; border-radius: var(--radius-md); margin: 1.1rem 0; }
.notice.ok { border-color: var(--open); background: var(--open-soft); }
.notice.warn { border-color: var(--notice); background: var(--notice-soft); }

/* 会員マイページ */
.member-card { background: var(--brand); color: var(--on-brand); border-radius: var(--radius-lg); padding: 1.33rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; max-width: 540px; }
.member-card .qr { background: #fff; padding: 8px; border-radius: var(--radius-md); width: 132px; height: 132px; display: grid; place-items: center; color: #000; font-size: .8rem; }
.member-card .qr img, .member-card .qr canvas { width: 116px !important; height: 116px !important; }
.member-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; font-size: .95rem; }
.member-card dd { margin: 0; font-weight: 700; }
@media (max-width: 480px) { .member-card { grid-template-columns: 1fr; justify-items: start; } }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 1.6rem 0 1.1rem; }
.tabs button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--ink-2); padding: .6rem 1rem; cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -2px; min-height: var(--tap-min); }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.bars { display: flex; align-items: end; gap: .9rem; height: 190px; padding: .5rem 0; border-bottom: 2px solid var(--border); }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; height: 100%; font-size: .9rem; color: var(--ink-2); }
.bars i { display: block; width: 100%; max-width: 56px; background: var(--brand); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.bars b { color: var(--ink); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.photo-prev { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.photo-prev img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--line); }

/* センターを探す */
.center-list { display: grid; gap: .7rem; }
.center-item { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.result-box { margin-top: 1.1rem; }
.region-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }

/* 質問コーナー */
.bot-fab { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--brand); color: var(--on-brand); border: 2px solid var(--on-brand); border-radius: 9999px; padding: .7rem 1.3rem; font: inherit; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; display: flex; gap: .2rem; align-items: center; min-height: 56px; }
.bot { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 41; width: min(420px, calc(100vw - 32px)); height: min(580px, calc(100vh - 130px)); background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.bot[hidden] { display: none; }
.bot-head { display: flex; justify-content: space-between; align-items: center; padding: .4rem .5rem .4rem 1rem; background: var(--brand); color: var(--on-brand); }
.bot-head button { background: transparent; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; min-width: var(--tap-min); min-height: var(--tap-min); }
.bot-log { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 88%; padding: .6rem .9rem; border-radius: var(--radius-md); font-size: 1rem; line-height: 1.7; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); }
.msg.me a { color: inherit; }
.msg.bot-m { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); }
.bot-chips { display: flex; gap: .4rem; flex-wrap: wrap; padding: 0 .9rem .6rem; }
.bot-chips button { font: inherit; font-size: .9rem; border: 2px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 9999px; padding: 0 .8rem; min-height: 40px; cursor: pointer; }
.bot-form { display: flex; gap: .35rem; padding: .6rem; border-top: 1px solid var(--line); }
.bot-form input { flex: 1; min-height: var(--tap-min); font: inherit; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 0 .7rem; background: var(--surface); color: var(--ink); min-width: 0; }
.bot-form button { font: inherit; font-weight: 700; border: 2px solid var(--brand); border-radius: var(--radius-md); background: var(--brand); color: var(--on-brand); padding: 0 .9rem; cursor: pointer; min-height: var(--tap-min); display: inline-flex; align-items: center; }
.bot-form #botMic { background: var(--surface); color: var(--brand); border-color: var(--border); }
.bot-form #botMic .ic { margin: 0; }
.bot-form #botMic.on { background: var(--notice); border-color: var(--notice); color: var(--on-brand); }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: .8rem 1.2rem; border-radius: var(--radius-md); opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* フッター：上端に8pxの帯、住所・電話・FAX・受付時間 */
.site-footer { background: var(--surface-2); border-top: 8px solid var(--band); margin-top: 3rem; padding-block: 2.2rem 6rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.8rem; }
.footer-name { font-weight: 700; font-size: 1.2rem; color: var(--brand); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.copy { color: var(--ink-2); font-size: .9rem; margin-top: 1.6rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.dx-item { display: grid; grid-template-columns: 3.1rem 1fr; gap: .9rem; }
.dx-item .ico { display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; border-radius: 9999px; background: var(--brand-soft); color: var(--brand); }
.dx-item .ico .ic { width: 1.6rem; height: 1.6rem; margin: 0; }
.done-mark { color: var(--brand); }
.done-mark .ic { width: 4rem; height: 4rem; margin: 0; }
.receipt { font-size: 1.6rem; font-weight: 700; letter-spacing: .05em; color: var(--brand); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
