:root {
  --navy: #12304f;
  --blue: #1f6fb8;
  --blue-soft: #e8f1fa;
  --cta: #e2621b;
  --cta-dark: #c4510f;
  --ink: #1f2933;
  --muted: #5b6876;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --tbd: #fff4c2;
  --radius: 10px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { text-decoration: none; }
h1, h2, h3 { line-height: 1.45; color: var(--navy); }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.section { padding-block: 64px; }
.section--soft { background: var(--bg-soft); }
.section__lead { color: var(--muted); margin-bottom: 2rem; }
.center { text-align: center; }
.sp-only { display: none; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1.3; }
.logo__sub { font-size: .72rem; color: var(--muted); }
.logo__main { font-weight: 700; font-size: 1.05rem; }
.global-nav { display: flex; align-items: center; gap: 16px; }
.global-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.global-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.global-nav .btn { white-space: nowrap; }
.global-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.nav-toggle { display: none; }

.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 12px 0 0; margin: 0; font-size: .8rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 .5em; }

/* ボタン */
.btn { display: inline-block; padding: .85em 1.8em; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; transition: background .2s; }
.btn--cta { background: var(--cta); color: #fff; box-shadow: 0 3px 0 var(--cta-dark); }
.btn--cta:hover { background: var(--cta-dark); }
.btn--ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn--sm { padding: .45em 1.2em; font-size: .9rem; }
.btn--lg { font-size: 1.15rem; padding: 1em 2.6em; }

/* ヒーロー */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #1d4d7f 100%); color: #fff; padding-block: 72px 80px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin: .4rem 0 1rem; }
.hero__eyebrow { display: inline-block; background: rgba(255,255,255,.14); padding: .2em .9em; border-radius: 999px; font-size: .85rem; }
.hero__text { font-size: 1.05rem; opacity: .92; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero .btn--ghost { background: transparent; color: #fff; border-color: #fff; }

.page-head { padding-block: 32px 8px; }
.page-head h1 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); margin: 0 0 .8rem; }
.page-head__lead { color: var(--muted); }
.updated { font-size: .82rem; color: var(--muted); }

/* カード */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.card__tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: .1em .7em; border-radius: 4px; margin-bottom: .6rem; }
.card__link { font-weight: 700; }
.card--worry { border-left: 4px solid var(--cta); }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.6em; margin-bottom: .5rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: "STEP " counter(step); display: block; font-weight: 700; color: var(--cta); font-size: .85rem; }

/* 表 */
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 640px; background: #fff; font-size: .93rem; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; }
tbody th { background: var(--bg-soft); white-space: nowrap; }

/* 要確認（料金などあとで正式な値を入れる箇所） */
.tbd { background: var(--tbd); border-bottom: 2px dashed #d4a900; padding: 0 .3em; font-weight: 700; }

.note { font-size: .85rem; color: var(--muted); }
.source { font-size: .78rem; color: var(--muted); margin-top: -1rem; }
.box { background: var(--blue-soft); border-radius: var(--radius); padding: 20px 24px; margin: 1.5rem 0; }
.box--point::before { content: "ポイント"; display: block; font-weight: 700; color: var(--blue); margin-bottom: .3rem; }

article h2 { margin-top: 3rem; padding-bottom: .4rem; border-bottom: 3px solid var(--blue-soft); }
article ul, article ol { padding-left: 1.4em; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 20px 24px; margin: 1.5rem 0 2rem; }
.toc p { font-weight: 700; margin-bottom: .4rem; }
.toc ol { margin: 0; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); }
.faq summary::before { content: "Q. "; color: var(--blue); }
.faq > div { padding: 0 20px 16px; }

/* CTA帯 */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding-block: 56px; }
.cta-band__lead { display: inline-block; background: var(--cta); padding: .2em 1em; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.cta-band__title { color: #fff; font-size: clamp(1.35rem, 3.4vw, 1.9rem); }
.cta-band__text { max-width: 640px; margin-inline: auto; opacity: .9; }
.cta-band__mail { margin-top: 1rem; font-size: .9rem; }
.cta-band__mail a { color: #fff; }

/* フッター */
.site-footer { background: #0c2238; color: #c9d4df; font-size: .88rem; padding-block: 40px 90px; }
.site-footer a { color: #fff; }
.site-footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer__name { font-weight: 700; color: #fff; font-size: 1rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 28px; }
.site-footer__note { margin-top: 24px; font-size: .78rem; opacity: .8; }
.site-footer__copy { font-size: .78rem; }

.float-cta { display: none; }

@media (max-width: 1120px) {
  .nav-toggle { display: block; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .4em .9em; font: inherit; font-size: .85rem; color: var(--navy); }
  .global-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .global-nav.is-open { display: flex; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-header__inner { position: relative; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .section { padding-block: 48px; }
  h2 { font-size: 1.35rem; }
  .hero { padding-block: 48px 56px; }
  .hero__actions .btn { width: 100%; }
  .table-wrap::before { content: "← 表は横にスクロールできます →"; display: block; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
  table { min-width: 560px; }
  .float-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    background: var(--cta); color: #fff; text-align: center; font-weight: 700; text-decoration: none;
    padding: .9em; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  }
}
