/* 福井 創業・起業ナビ 共通スタイル(コンボGの骨組みを写し、配色を紺+朱に。朱は「行動」=紹介のボタンと枠だけ) */
:root {
  --primary: #27446e;        /* 紺 */
  --primary-dark: #182c4a;
  --primary-light: #e9eef6;
  --accent: #b8501c;         /* 朱。行動専用 */
  --accent-light: #fbefe8;  /* 橙は「行動」専用: PR枠・資料請求の文字・行動ボタンだけに使う(網のデザイン原則④ 2026-10-27) */
  --note-bg: #f2f5f8;       /* 補足・注意の箱 */
  --note-line: #8a97a5;
  --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: 16.5px;
}
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(39,68,110,.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(39,68,110,.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; }

/* 窓口・包括 */
.office { background: var(--card); border-left: 5px solid var(--primary); 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(--note-bg); border-left: 5px solid var(--note-line); 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: #96400f; 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; }
}

/* PR枠(資料請求型の紹介サービス。広告表示必須) */
.pr-box { background: var(--accent-light); border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.2rem 0.8rem; margin: 1.2rem 0 1.6rem; }
.pr-box .pr-label { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 0.05rem 0.5rem; margin: 0 0 0.3rem; }
.pr-box h3 { margin: 0.2rem 0 0.4rem; }
.pr-box > p { font-size: 0.92rem; }
.pr-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.7rem; margin: 0.6rem 0 0.8rem; }
.pr-item { display: flex; flex-direction: column; gap: 0.15rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 0.95rem; text-decoration: none; color: var(--text); min-height: 48px; }
.pr-item:hover { box-shadow: 0 4px 14px rgba(184,80,28,.25); color: var(--text); }
.pr-item strong { color: var(--primary-dark); font-size: 1.02rem; }
.pr-item span { font-size: 0.86rem; color: var(--text-sub); }
.pr-item em { font-style: normal; font-weight: 700; color: var(--accent); font-size: 0.9rem; margin-top: 0.2rem; }

/* 計算機のフォーム・結果(コンボDの型) */
.tool-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; }
.form-row { margin-bottom: 1rem; }
.form-row > label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.form-row .note { font-size: 0.8rem; color: var(--text-sub); font-weight: 400; }
input[type="number"], input[type="text"], select { width: 100%; max-width: 100%; padding: 0.6rem 0.7rem; font-size: 16px; min-height: 44px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; }
input[type="number"] { max-width: 200px; }
input:focus, select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.input-unit { display: inline-flex; align-items: center; gap: 0.4rem; }
.input-unit input { width: auto; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-group label { font-weight: 400; border: 1.5px solid var(--border); border-radius: 999px; padding: 0.6rem 0.9rem; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font-size: 0.95rem; background: #fff; }
.radio-group input { margin-right: 0.3rem; }
.radio-group label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); font-weight: 700; }
button.calc-btn { background: var(--primary); color: #fff; font-size: 1.05rem; font-weight: 700; border: none; border-radius: 8px; padding: 0.7rem 2.2rem; min-height: 48px; cursor: pointer; }
button.calc-btn:hover { background: var(--primary-dark); }
.result-box { background: var(--primary-light); border: 2px solid var(--primary); border-radius: var(--radius); padding: 1.2rem; margin: 1.2rem 0; }
.result-box.hidden { display: none; }
.result-main { font-size: 0.95rem; }
.result-main .big { font-size: 2.2rem; font-weight: 700; color: var(--primary-dark); }
.result-sub { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 0.8rem; font-size: 0.88rem; }
.result-sub .item strong { display: block; font-size: 1.2rem; color: var(--text); }

/* 要点の箱(2026-10-06) */
.keypoints { background: #f6f8fb; border-left: 4px solid var(--primary); border-radius: 8px; padding: 0.8rem 1rem 0.6rem; margin: 0.9rem 0 1.1rem; }
.keypoints .kp-label { font-size: 0.8rem; font-weight: 700; color: var(--primary); letter-spacing: 0.08em; margin: 0 0 0.3rem; }
.keypoints ul { margin: 0 0 0.3rem; padding-left: 1.2rem; }
.keypoints li { margin: 0.2rem 0; line-height: 1.55; font-size: 0.97rem; }
.keypoints .count { margin: 0.2rem 0 0; }

/* 設計24(2026-11-13) 読まれる記事の4つの視点 */
main a { overflow-wrap: anywhere; }
.keypoints .kp-go { font-size: 0.85rem; white-space: nowrap; }
.pr-box .pr-title { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin: 0.2rem 0 0.4rem; }
.toc { background: #f6f8fb; border: 1px solid #dde3ea; border-radius: 8px; padding: 0.5rem 0.9rem; margin: 0.6rem 0 1.2rem; }
.toc summary { cursor: pointer; font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.toc ol { margin: 0.5rem 0 0.2rem; padding-left: 1.3rem; }
.toc li { margin: 0.25rem 0; font-size: 0.93rem; line-height: 1.5; }

.count { font-size: 0.85rem; color: var(--text-sub); }
.link-list { list-style: none; margin: 0.6rem 0; padding: 0; }
.link-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.link-list li a { font-weight: 700; }

/* ---- 創業ナビで足したもの ---- */
/* トップの入口(主役2つは大きく、ほかは小さく) */
.entry-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; margin: 1rem 0 1.4rem; }
.entry-main a { display: block; background: var(--card); border: 2px solid var(--primary); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--text); }
.entry-main a:hover { background: var(--primary-light); color: var(--text); }
.entry-main strong { display: block; font-size: 1.15rem; color: var(--primary-dark); line-height: 1.45; margin-bottom: 0.3rem; }
.entry-main span { font-size: 0.9rem; color: var(--text-sub); }
.entry-sub { list-style: none; margin: 0 0 1.4rem; }
.entry-sub li { border-bottom: 1px solid var(--border); margin: 0; }
.entry-sub a { display: block; padding: 0.75rem 0.2rem; text-decoration: none; }
.entry-sub a strong { color: var(--primary-dark); }
.entry-sub a span { display: block; font-size: 0.86rem; color: var(--text-sub); }

/* 手順(番号つきの段) */
.flow { list-style: none; margin: 1rem 0 1.4rem; counter-reset: fl; }
.flow > li { counter-increment: fl; position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem 0.8rem 3.6rem; margin-bottom: 0.6rem; }
.flow > li::before { content: counter(fl); position: absolute; left: 0.9rem; top: 0.9rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow h3 { margin: 0 0 0.3rem; }
.flow p:last-child, .flow ul:last-child { margin-bottom: 0; }
.flow .where { font-size: 0.88rem; color: var(--text-sub); }

/* 市町のカード(横断一覧。スマホで横にはみ出さないよう表ではなくカード) */
.city-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem 0.8rem; margin-bottom: 1rem; }
.city-card h3 { font-size: 1.2rem; margin: 0 0 0.2rem; }
.city-card .one { color: var(--text-sub); font-size: 0.93rem; margin-bottom: 0.6rem; }
.city-card dl { margin: 0; }
.city-card dt { font-size: 0.8rem; font-weight: 700; color: var(--primary); letter-spacing: 0.04em; margin-top: 0.7rem; }
.city-card dd { margin: 0.1rem 0 0; font-size: 0.95rem; }
.city-card dd ul { margin: 0.2rem 0 0 1.2rem; }
.city-card .src { font-size: 0.8rem; color: var(--text-sub); margin: 0.7rem 0 0; }
.tag { display: inline-block; font-size: 0.76rem; font-weight: 700; border-radius: 4px; padding: 0 0.45rem; margin-right: 0.3rem; background: var(--primary-light); color: var(--primary-dark); vertical-align: middle; }
.tag.end { background: #eceff2; color: var(--text-sub); }
.none { color: var(--text-sub); }

/* 管轄の早見(市町を選ぶ) */
.pick { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0.8rem 0 1.2rem; }
.pick select { max-width: 320px; }
.pick-out { margin-top: 0.8rem; }
.pick-out table { width: 100%; }

/* くらべる表(個人と法人) */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0.8rem 0; }
.cmp > div { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 0.9rem; }
.cmp .cmp-h { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; color: var(--primary-dark); }
.cmp .sum { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); }
.cmp table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 0.4rem; }
.cmp td { padding: 0.25rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp td.num { text-align: right; white-space: nowrap; padding-left: 0.5rem; }
@media (max-width: 560px) { .cmp { grid-template-columns: 1fr; } }
.diff-line { font-size: 1.05rem; margin: 0.6rem 0 0; }
.diff-line strong { font-size: 1.3rem; color: var(--primary-dark); }
.warn { color: var(--danger); font-weight: 700; }
.premise { font-size: 0.86rem; color: var(--text-sub); background: var(--note-bg); border-radius: 8px; padding: 0.6rem 0.9rem; margin: 0 0 1rem; }
.premise ul { margin: 0.2rem 0 0 1.2rem; }

/* 期限つきの数字 */
.kigen { background: #fff8e6; border-left: 5px solid #c79a1a; border-radius: 8px; padding: 0.8rem 1rem; margin: 1rem 0; font-size: 0.95rem; }
.kigen p:last-child { margin-bottom: 0; }

/* 出典 */
.sources { font-size: 0.86rem; }
.sources li { margin-bottom: 0.35rem; }

/* スマホ固定ナビ(絵文字なし) */
@media (max-width: 768px) { .bottom-nav a { font-size: 0.82rem; } }
