/* ===== トークン ===== */
:root {
  --navy: #0f2a4a;
  --navy-700: #1b3c63;
  --blue: #2563a8;
  --accent: #1aa5a0;       /* ティール系アクセント */
  --accent-dark: #128b87;
  --ink: #1c2733;
  --muted: #5a6b7b;
  --line: #e1e7ee;
  --bg: #ffffff;
  --bg-tint: #f4f7fb;
  --bg-cta: #0f2a4a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 42, 74, 0.08);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

a { color: inherit; text-decoration: none; }

.accent { color: var(--accent); }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700;
  font-size: 0.98rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(26,165,160,.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; padding: 16px; font-size: 1.05rem; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 900; font-size: 1.25rem; color: var(--navy); display: flex; align-items: baseline; gap: 8px; }
.logo-sub { font-size: .62rem; letter-spacing: .15em; color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .9rem; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--accent); }
.site-header .btn-primary { margin-left: 0; }

/* ===== ヒーロー ===== */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, rgba(26,165,160,.12), transparent),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; padding: 92px 0 84px;
}
.hero-eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; color: #aee5e2;
  border: 1px solid rgba(174,229,226,.4); padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.35; letter-spacing: .01em; }
.hero-lead { margin-top: 24px; font-size: 1.06rem; color: #d4e0ec; }
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges { list-style: none; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; color: #cfe0ee; }

/* ===== セクション共通 ===== */
.section { padding: 84px 0; }
.section-tint { background: var(--bg-tint); }
.section-eyebrow { text-align: center; color: var(--accent); font-weight: 700; font-size: .9rem; letter-spacing: .08em; margin-bottom: 10px; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; line-height: 1.45; color: var(--navy); }
.section-lead { text-align: center; color: var(--muted); margin: 18px auto 0; max-width: 720px; }

/* ===== カード ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--muted); }

/* ===== レイヤーテーブル ===== */
.layer-table { max-width: 760px; margin: 40px auto 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.layer-row { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 0; }
.layer-row > div { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.layer-head { background: var(--navy); color: #fff; font-weight: 700; }
.layer-head > div { border-bottom: none; }
.layer-highlight { background: rgba(26,165,160,.09); }
.layer-highlight > div { font-weight: 700; color: var(--navy); }
.layer-row:last-child > div { border-bottom: none; }

/* ===== 流れ ===== */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; counter-reset: none; }
.flow-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px 24px; box-shadow: var(--shadow); }
.flow-num {
  position: absolute; top: -18px; left: 22px; width: 38px; height: 38px;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 1.1rem;
}
.flow-step h3 { font-size: 1rem; color: var(--navy); margin: 8px 0; }
.flow-step p { font-size: .9rem; color: var(--muted); }

/* ===== 比較表 ===== */
.table-wrap { overflow-x: auto; margin-top: 40px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 15px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: .92rem; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare tbody th { text-align: left; color: var(--ink); font-weight: 700; background: var(--bg-tint); }
.compare .col-self { background: rgba(26,165,160,.10); font-weight: 700; color: var(--navy); }
.compare thead .col-self { background: var(--accent); color: #fff; }
.note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 16px; }

/* ===== 料金: 代表プラン ===== */
.btn-ghost-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost-dark:hover { background: var(--bg-tint); border-color: var(--accent); }

.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: stretch; }
.plan-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.plan-popular { border: 2px solid var(--accent); box-shadow: 0 14px 40px rgba(26,165,160,.18); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 16px; border-radius: 999px;
}
.plan-name { font-size: 1.25rem; font-weight: 900; color: var(--navy); }
.plan-target { font-size: .85rem; color: var(--muted); margin: 6px 0 18px; min-height: 2.6em; }
.plan-price { font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1.2; }
.plan-price .yen { font-size: 1.1rem; margin-right: 2px; }
.plan-price .per { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan-setup { font-size: .8rem; color: var(--accent-dark); font-weight: 700; margin-top: 6px; }
.plan-feat { list-style: none; margin: 16px 0 24px; display: grid; gap: 10px; }

/* 初期費用バナー */
.setup-banner { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 28px auto 0; background: #fff; border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.setup-banner-icon { font-size: 1.6rem; line-height: 1.4; }
.setup-banner strong { color: var(--navy); font-size: 1.05rem; }
.setup-banner p { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.plan-feat li { font-size: .9rem; color: var(--ink); padding-left: 24px; position: relative; }
.plan-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.plan-card .btn { margin-top: auto; }

/* ===== 料金: シミュレーター ===== */
.simulator { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); margin-top: 40px; overflow: hidden; }
.sim-head { background: var(--navy); color: #fff; padding: 26px 32px; }
.sim-head h3 { font-size: 1.3rem; font-weight: 900; }
.sim-head p { font-size: .92rem; color: #cfe0ee; margin-top: 4px; }
.sim-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; }
.sim-inputs { padding: 30px 32px; display: grid; gap: 26px; }
.sim-field { display: grid; gap: 10px; }
.sim-label { font-size: .92rem; font-weight: 700; color: var(--navy); }
.sim-label strong { color: var(--accent-dark); }
.sim-options { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-opt {
  flex: 1 1 auto; min-width: 120px; padding: 11px 14px; border: 1.5px solid var(--line);
  background: #fff; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.sim-opt:hover { border-color: var(--accent); }
.sim-opt.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sim-select { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; font-family: inherit; background: #fbfcfe; color: var(--ink); }
.sim-select:focus { outline: none; border-color: var(--accent); }
.sim-hint { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.sim-checks { display: grid; gap: 12px; }
.sim-check { font-size: .9rem; color: var(--ink); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.sim-check input { width: 18px; height: 18px; accent-color: var(--accent); }

input[type="range"]#simVolume { width: 100%; accent-color: var(--accent); height: 6px; }
.sim-range-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }

.sim-result { background: var(--bg-tint); padding: 32px 28px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.sim-setup { display: flex; justify-content: space-between; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; }
.sim-setup-label { font-size: .8rem; color: var(--muted); font-weight: 700; }
.sim-setup-val { font-size: 1.15rem; font-weight: 900; color: var(--navy); }
.sim-setup-val .yen { font-size: .85rem; margin-right: 1px; }
.sim-result-label { font-size: .88rem; color: var(--muted); font-weight: 700; }
.sim-total { font-size: 2.6rem; font-weight: 900; color: var(--navy); line-height: 1.1; margin: 6px 0; }
.sim-total .yen { font-size: 1.4rem; margin-right: 2px; }
.sim-unit { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.sim-unit strong { color: var(--accent-dark); font-size: 1.05rem; }
.sim-breakdown { list-style: none; display: grid; gap: 7px; margin-bottom: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sim-breakdown li { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink); }
.sim-breakdown li span:last-child { font-weight: 700; }
.sim-result .btn { margin-top: auto; }
.sim-disclaimer { font-size: .76rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ===== FAQ ===== */
.faq { margin-top: 36px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 4px 4px; box-shadow: 0 2px 10px rgba(15,42,74,.04); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 20px; color: var(--accent); font-weight: 900; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: .92rem; }

/* ===== CTA / フォーム ===== */
.section-cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; }
.section-cta .section-title { color: #fff; }
.section-cta .section-lead { color: #d4e0ec; }
.lead-form { background: #fff; border-radius: var(--radius); padding: 34px 30px; margin-top: 36px; box-shadow: var(--shadow); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form label { display: block; font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.lead-form label.full { grid-column: 1 / -1; }
.req { color: #e0556b; font-size: .72rem; margin-left: 6px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: .95rem; font-family: inherit; font-weight: 400; color: var(--ink); background: #fbfcfe;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,165,160,.15); }
.consent { display: flex; align-items: center; gap: 10px; font-weight: 500 !important; }
.consent input { width: auto; margin: 0; }
.consent a { color: var(--accent); text-decoration: underline; }
.form-note { margin-top: 14px; text-align: center; font-weight: 700; color: var(--accent-dark); }

/* ===== フッター ===== */
.site-footer { background: #0a1d33; color: #c4d2e0; padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-weight: 900; font-size: 1.2rem; color: #fff; display: flex; align-items: baseline; gap: 8px; }
.footer-desc { font-size: .88rem; margin-top: 8px; color: #93a6b8; }
.footer-meta { font-size: .85rem; text-align: right; color: #93a6b8; }
.footer-meta a { color: #cfe0ee; text-decoration: underline; }
.footer-meta a:hover { color: #fff; }
.footer-copy { margin-top: 12px; font-size: .78rem; }

/* ===== 法務ページ（プライバシーポリシー） ===== */
.legal { padding: 64px 0 80px; }
.legal-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: var(--navy); text-align: center; margin-bottom: 24px; }
.legal-lead { color: var(--muted); margin-bottom: 36px; }
.legal-sec { margin-bottom: 32px; }
.legal-sec h2 { font-size: 1.15rem; color: var(--navy); font-weight: 700; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--accent); }
.legal-sec p { color: var(--ink); margin-bottom: 12px; }
.legal-sec ul { padding-left: 1.3em; color: var(--ink); }
.legal-sec li { margin-bottom: 8px; }
.legal-contact { background: var(--bg-tint); border-radius: 12px; padding: 20px 24px; line-height: 2; }
.legal-contact a { color: var(--accent-dark); text-decoration: underline; }
.legal-date { text-align: right; color: var(--muted); font-size: .88rem; margin-top: 36px; }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .plan-cards { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .sim-body { grid-template-columns: 1fr; }
  .sim-result { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .cards, .cards-3, .cards-4, .flow { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sim-opt { min-width: 0; flex-basis: 100%; }
  .layer-row { grid-template-columns: 1fr 1fr 1fr; }
  .layer-row > div { font-size: .8rem; padding: 11px 10px; }
  .footer-inner, .footer-meta { text-align: left; }
  .footer-meta { text-align: left; }
  .hero { padding: 64px 0 60px; }
}
