/* 福井介護・終活ナビ 共通スタイル(コンボDの骨組みを流用・介護向けに配色と文字サイズを調整) */
:root {
  --primary: #2f5d7c;        /* 落ち着いた藍 */
  --primary-dark: #1f4157;
  --primary-light: #e8f0f6;
  --accent: #c9822b;         /* 温かい橙 */
  --accent-light: #fbf1e3;
  --text: #24292e;
  --text-sub: #5a6470;
  --bg: #f6f8fa;
  --card: #ffffff;
  --border: #d9e1e8;
  --danger: #b03a2e;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.9; font-size: 17px;
}
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ヘッダー */
.site-header { background: var(--card); border-bottom: 3px solid var(--primary); padding: 0.7rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.brand { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); text-decoration: none; }
.brand small { font-size: 0.72rem; font-weight: 400; color: var(--text-sub); display: block; line-height: 1.2; }
.site-header nav { display: flex; gap: 0.9rem; font-size: 0.92rem; }
.site-header nav a { text-decoration: none; display: inline-block; padding: 0.7rem 0.35rem; font-weight: 700; }

/* メイン */
main { max-width: 880px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-sub); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-sub); display: inline-block; padding: 0.5rem 0.1rem; }
h1 { font-size: 1.55rem; color: var(--primary-dark); margin-bottom: 0.8rem; line-height: 1.4; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 0.8rem; padding-left: 0.6rem; border-left: 5px solid var(--primary); line-height: 1.4; }
h3 { font-size: 1.08rem; margin: 1.3rem 0 0.5rem; color: var(--primary-dark); }
p { margin-bottom: 0.9rem; }
ul, ol { margin: 0 0 0.9rem 1.5rem; }
li { margin-bottom: 0.25rem; }
.lead { color: var(--text-sub); margin-bottom: 1.5rem; }
h2[id], h3[id], section[id] { scroll-margin-top: 1rem; }

/* カード */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; }

/* 段階ナビ(トップ) */
.steps { list-style: none; margin: 1rem 0; counter-reset: st; }
.steps li { position: relative; margin-bottom: 0.7rem; }
.steps a, .steps .soon { display: grid; grid-template-columns: 3rem 1fr; gap: 0.6rem; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.steps a:hover { box-shadow: 0 4px 14px rgba(47,93,124,.18); transform: translateY(-2px); color: var(--text); }
.steps .num { counter-increment: st; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.steps .num::before { content: counter(st); }
.steps .soon .num { background: #9aa6b2; }
.steps h3 { margin: 0 0 0.2rem; font-size: 1.08rem; }
.steps p { margin: 0; font-size: 0.9rem; color: var(--text-sub); }
.steps .soon { color: var(--text-sub); background: #f2f4f6; }
.steps .soon .badge { display: inline-block; font-size: 0.72rem; background: #9aa6b2; color: #fff; border-radius: 999px; padding: 0.05rem 0.6rem; margin-left: 0.4rem; vertical-align: middle; }

/* グリッド・カード */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; margin: 1rem 0; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--text); display: block; transition: box-shadow .15s, transform .15s; }
.tool-card:hover { box-shadow: 0 4px 14px rgba(47,93,124,.18); transform: translateY(-2px); color: var(--text); }
.tool-card .tool-icon { font-size: 1.6rem; }
.tool-card h3 { color: var(--primary-dark); margin: 0.3rem 0; font-size: 1.02rem; }
.tool-card p { font-size: 0.85rem; color: var(--text-sub); margin: 0; }
.tool-card .meta { font-size: 0.8rem; color: var(--text-sub); }

/* 市町チップ */
.chip-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1.4rem; }
.chip-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.95rem; border: 1.5px solid var(--primary); border-radius: 999px; background: #fff; color: var(--primary-dark); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.chip-nav a.cur, .chip-nav a:hover { background: var(--primary); color: #fff; }
.chip-nav a small { font-weight: 400; margin-left: 0.3rem; font-size: 0.78rem; }

/* 施設一覧 */
.fac-list { list-style: none; margin: 0.6rem 0 1rem; }
.fac { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 0.6rem; }
.fac .nm { font-weight: 700; font-size: 1.02rem; }
.fac .sub { font-size: 0.8rem; color: var(--text-sub); display: inline-block; background: var(--primary-light); border-radius: 6px; padding: 0 0.5rem; margin-left: 0.4rem; vertical-align: middle; }
.fac .ad { font-size: 0.9rem; color: var(--text-sub); margin: 0.15rem 0 0; }
.fac .ln { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.9rem; margin-top: 0.3rem; }
.fac .ln a { display: inline-flex; align-items: center; min-height: 40px; padding: 0.2rem 0; text-decoration: none; font-weight: 700; }
.fac .ln span { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-sub); }
.count { font-size: 0.85rem; color: var(--text-sub); }

/* 窓口・包括 */
.office { background: var(--card); border-left: 5px solid var(--accent); border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 0.8rem; }
.office .nm { font-weight: 700; font-size: 1.02rem; }
.office .ad, .office .ar { font-size: 0.9rem; color: var(--text-sub); margin: 0.1rem 0 0; }
.office .tel { font-size: 1.05rem; margin: 0.25rem 0 0; }
.office .tel a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.office .src { font-size: 0.78rem; color: var(--text-sub); margin: 0.2rem 0 0; }

/* テーブル */
.table-scroll { overflow-x: auto; margin: 0.8rem 0; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 0.92rem; background: #fff; }
table.tbl th, table.tbl td { border: 1px solid var(--border); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
table.tbl th { background: var(--primary-light); white-space: nowrap; }
table.tbl td.num { text-align: right; white-space: nowrap; }

/* チェックリスト */
.checklist { list-style: none; margin: 0.6rem 0 1rem; }
.checklist li { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.9rem 0.6rem 2.4rem; margin-bottom: 0.45rem; position: relative; }
.checklist li::before { content: "☐"; position: absolute; left: 0.8rem; top: 0.55rem; color: var(--primary); font-size: 1.1rem; }

/* 注意書き・CTA */
.disclaimer { font-size: 0.82rem; color: var(--text-sub); background: var(--card); border: 1px dashed var(--border); border-radius: 8px; padding: 0.8rem 1rem; margin: 1.5rem 0; }
.disclaimer strong { color: var(--danger); }
.cta-box { background: var(--primary-light); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.cta-box a { font-weight: 700; display: inline-block; padding: 0.4rem 0; }
.note-box { background: var(--accent-light); border-left: 5px solid var(--accent); border-radius: 8px; padding: 0.9rem 1.1rem; margin: 1.2rem 0; }
.note-box p:last-child { margin-bottom: 0; }
.related { margin: 2rem 0 0; }
.related ul { list-style: none; margin-left: 0; }
.related li { margin-bottom: 0.2rem; }
.related li a { display: inline-block; padding: 0.45rem 0; }
.related li::before { content: "▶ "; color: var(--primary); font-size: 0.8rem; }

/* ボタン */
.next-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; min-height: 48px; padding: 0.6rem 1.2rem; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 0.98rem; flex: 1 1 220px; text-align: center; line-height: 1.4; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #a86a1f; color: #fff; }
.btn-outline { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

/* フッター */
.site-footer { background: var(--primary-dark); color: #d7e3ec; padding: 1.5rem 1rem 2rem; font-size: 0.88rem; text-align: center; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.6rem 0; }
.site-footer nav a { display: inline-block; padding: 0.6rem 0.2rem; }
.site-footer .copyright { font-size: 0.78rem; color: #c5d4df; margin-top: 0.8rem; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.35rem; }
}

/* スマホ固定フッターナビ */
.bottom-nav { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 64px; }
  .site-header nav { display: none; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; text-decoration: none; color: var(--text-sub); font-size: 0.74rem; font-weight: 700; gap: 0.1rem; }
  .bottom-nav a .ic { font-size: 1.3rem; line-height: 1; }
}
