@charset "utf-8";

/* ==========================================================
   相続・終活のお手伝い ── 共通スタイル
   紺 #1E3A5F ／ 金 #C4A147
   外部フォント・外部画像は一切読み込みません（オフラインで開けます）
   ========================================================== */

:root {
  --navy:      #1E3A5F;
  --navy-deep: #14283F;
  --navy-soft: #3A5C82;
  --gold:      #C4A147;
  --gold-pale: #E8DCBE;
  --ink:       #1F1D1A;
  --soft:      #6B6560;
  --line:      #DFD9CF;
  --cream:     #FAF8F3;
  --cream-2:   #F2EEE4;
  --white:     #FFFFFF;
  --red:       #B4453B;
  --green:     #3D6B52;

  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS明朝E", "MS PMincho", serif;
  --sans:  "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;

  --wrap: 1080px;
  --shadow: 0 2px 14px rgba(30, 58, 95, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--navy); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }

/* ---------------- ヘッダー ---------------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hd-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo-mk { width: 38px; height: 38px; flex: none; }
.logo-tx { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: .06em; line-height: 1.3; }
.logo-tx small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--soft); letter-spacing: .18em; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 9px 15px; border-radius: 8px; text-decoration: none;
  font-size: 15px; font-weight: 700; color: var(--navy);
}
.nav a:hover { background: var(--cream-2); }
.nav a[aria-current="page"] { color: var(--gold); }

.hd .btn-sm {
  padding: 11px 20px; border-radius: 9px; background: var(--navy); color: #fff;
  text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap;
}
.hd .btn-sm:hover { background: var(--navy-deep); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); }

/* ---------------- 見出し ---------------- */
.sec { padding: 96px 0; }
.sec-alt { background: var(--cream-2); }
.sec-navy { background: var(--navy); color: #fff; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: var(--gold); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.sec-navy h2, .sec-navy h3 { color: #fff; }

h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.55; margin: 0 0 20px; }
h3 { font-size: 21px; line-height: 1.6; margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--soft); margin: 0 0 44px; max-width: 40em; }
.sec-navy .lead { color: #C9D6E4; }

.rule { width: 46px; height: 3px; background: var(--gold); border: 0; margin: 0 0 26px; }
.center { text-align: center; }
.center .rule, .center .lead { margin-inline: auto; }

/* ---------------- ヒーロー ---------------- */
.hero { background: linear-gradient(180deg, #FDFCF9 0%, var(--cream-2) 100%); padding: 74px 0 84px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.5; margin: 0 0 24px; }
/* 見出しの黄色いマーカー。背景に回り込まないよう、線ではなく背景で引く */
.hero h1 .mk {
  background: linear-gradient(transparent 64%, var(--gold-pale) 64%, var(--gold-pale) 94%, transparent 94%);
}
.hero p { font-size: 18px; margin: 0 0 34px; color: #443F39; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--soft); }

/* ---------------- ボタン ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 17px 32px; border-radius: 11px; text-decoration: none;
  font-size: 17px; font-weight: 700; border: 2px solid transparent; cursor: pointer;
  font-family: var(--sans);
}
.btn-main { background: var(--navy); color: #fff; box-shadow: 0 4px 16px rgba(30,58,95,.2); }
.btn-main:hover { background: var(--navy-deep); }
.btn-sub { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-sub:hover { border-color: var(--navy); }
.btn-gold { background: var(--gold); color: #2A2109; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-lg { padding: 21px 44px; font-size: 19px; }

/* ---------------- カード ---------------- */
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 15px;
  padding: 34px 30px; box-shadow: var(--shadow);
}
.card .ic { width: 54px; height: 54px; margin-bottom: 18px; }
.card p { margin: 0; color: #4A453F; font-size: 16px; }
.card h3 { margin-bottom: 10px; }

.card-num { position: relative; }
.card-num .n {
  font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--gold-pale);
  position: absolute; top: 20px; right: 24px;
}

/* ---------------- 悩みリスト ---------------- */
.worry { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.worry li {
  list-style: none; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 10px;
  padding: 18px 22px; font-size: 16.5px; font-weight: 700; color: #3A342E;
}
.worry-wrap { margin: 0; padding: 0; }

/* ---------------- 流れ ---------------- */
.flow { counter-reset: st; }
.flow-item { display: grid; grid-template-columns: 92px 1fr; gap: 28px; padding-bottom: 42px; position: relative; }
.flow-item:not(:last-child)::before {
  content: ""; position: absolute; left: 45px; top: 92px; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px);
}
.flow-no {
  width: 92px; height: 92px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--gold); display: grid; place-items: center;
  font-family: var(--serif); color: var(--navy); line-height: 1.15; text-align: center;
}
.flow-no b { display: block; font-size: 30px; }
.flow-no span { font-size: 11px; letter-spacing: .14em; color: var(--soft); }
.flow-bd { padding-top: 8px; }
.flow-bd p { margin: 0; color: #4A453F; }
.flow-time { display: inline-block; margin-top: 12px; padding: 4px 13px; border-radius: 99px; background: var(--cream-2); font-size: 13px; font-weight: 700; color: var(--soft); }

/* ---------------- 料金 ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 34px 28px; box-shadow: var(--shadow); }
.plan.push { border: 2px solid var(--navy); position: relative; }
.plan.push::before {
  content: "いちばん選ばれています"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 99px; white-space: nowrap;
}
.plan h3 { margin-bottom: 6px; }
.plan .yen { font-family: var(--serif); font-size: 38px; color: var(--navy); line-height: 1.2; }
.plan .yen small { font-size: 15px; font-family: var(--sans); color: var(--soft); }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; }
.plan li { position: relative; padding: 8px 0 8px 27px; font-size: 15.5px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 7px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(42deg); }

/* ---------------- 帯CTA ---------------- */
.cta { background: var(--navy); color: #fff; padding: 82px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #C9D6E4; font-size: 17.5px; max-width: 34em; margin: 0 auto 34px; }

/* ---------------- Q&A ---------------- */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 24px 44px 24px 42px; position: relative;
  font-size: 17.5px; font-weight: 700; color: var(--navy);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; position: absolute; left: 4px; font-family: var(--serif); color: var(--gold); font-size: 19px; }
.qa summary::after {
  content: ""; position: absolute; right: 10px; top: 33px; width: 10px; height: 10px;
  border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); transition: transform .2s;
}
.qa details[open] summary::after { transform: rotate(-135deg); }
.qa .ans { padding: 0 10px 26px 42px; color: #4A453F; margin: 0; position: relative; }
.qa .ans::before { content: "A"; position: absolute; left: 4px; top: 0; font-family: var(--serif); color: var(--navy-soft); font-size: 19px; }

/* ---------------- 表 ---------------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
.tbl th { background: var(--cream-2); font-weight: 700; color: var(--navy); width: 32%; white-space: nowrap; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* ---------------- 注意書き ---------------- */
.note {
  background: #FBF6EA; border: 1px solid var(--gold-pale); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 22px 26px; font-size: 15.5px; color: #5A4E33;
}
.note strong { color: #7A6321; }

/* ---------------- フッター ---------------- */
.ft { background: var(--navy-deep); color: #B9C6D6; padding: 62px 0 30px; font-size: 15px; }
.ft-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ft h4 { color: #fff; font-family: var(--serif); font-size: 17px; margin: 0 0 14px; }
.ft a { color: #B9C6D6; text-decoration: none; }
.ft a:hover { color: #fff; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { padding: 4px 0; }
.ft-cp { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; color: #8698AC; text-align: center; }
.ft-ph { color: #E4C97A; }

/* ---------------- 画像添え ---------------- */
.figure { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 22px; box-shadow: var(--shadow); }
.figure img { display: block; margin: 0 auto; }
.figure figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--soft); }

/* ---------------- 反応 ---------------- */
@media (max-width: 920px) {
  body { font-size: 16px; }
  .sec { padding: 66px 0; }
  .hero { padding: 46px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
  .g3, .g4, .plans, .ft-in { grid-template-columns: 1fr; }
  .g2, .worry { grid-template-columns: 1fr; }
  .nav, .hd .btn-sm { display: none; }
  .burger { display: block; }
  .hd-in.open + .nav-sp { display: block; }
  .wrap, .narrow { width: calc(100% - 34px); }
}
@media (min-width: 921px) { .nav-sp { display: none !important; } }

.nav-sp { display: none; border-top: 1px solid var(--line); background: var(--white); padding: 10px 0 16px; }
.nav-sp.show { display: block; }
.nav-sp a { display: block; padding: 14px 24px; text-decoration: none; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--cream-2); }

@media print {
  .hd, .ft, .cta, .burger, .nav-sp { display: none !important; }
  body { background: #fff; }
}

/* ---------------- 選ぶだけで相談文（LINEで送る） ---------------- */
.ask { max-width: 720px; margin: 0 auto; text-align: left; background: #fff; color: var(--ink); border-radius: 18px; padding: 28px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.ask h3 { font-size: 17px; margin: 0 0 12px; color: var(--navy); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ask h3 span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold-pale); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ask h3 small { font-size: 12.5px; color: var(--soft); font-weight: 400; }
.ask-q { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed var(--line); }
.ask-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-ops button { font: inherit; font-size: 15px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); cursor: pointer; line-height: 1.4; }
.ask-ops button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ask-ops button.on::before { content: "✓ "; color: var(--gold-pale); }
.ask-in { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); }
.ask-out h3 { margin-top: 4px; }
.ask-out textarea { width: 100%; font: inherit; font-size: 15.5px; line-height: 1.75; padding: 14px; border: 2px solid var(--gold); border-radius: 12px; background: #FFFDF7; resize: vertical; }
.btn-line { background: #06C755; color: #fff; display: flex; justify-content: center; margin-top: 16px; text-decoration: none; }
.btn-line:hover { filter: brightness(1.05); }
.ask-copy { display: block; margin: 12px auto 0; font: inherit; font-size: 14px; color: var(--navy); background: none; border: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .ask { padding: 22px 16px; } .ask .btn-lg { padding: 18px 20px; font-size: 17px; } }
