/* ========== カラー・フォント（楽天モバイル公式サイトのマゼンタ系） ========== */
:root {
  --brand: #ff008c;       /* 楽天モバイル マゼンタ */
  --brand-2: #e6007e;     /* グラデーション用 */
  --brand-dark: #cc0070;
  --brand-tint: #fff2f9;
  --brand-soft: #ffcce8;
  --yellow: #ffe14d;      /* PRバッジ用 */
  --bg: #ffffff;
  --alt: #f7f7f7;
  --card: #ffffff;
  --text: #333333;
  --muted: #5c5c5c;
  --text-2: #4d4d4d;      /* 説明文用（本文と補足の中間の濃さ） */
  --border: #e0e0e0;
  --good: #00965a;
  --display: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --body: "Zen Kaku Gothic New", system-ui, "Hiragino Sans", "Yu Gothic UI", sans-serif;
}
/* ダークモードは使わない（端末がダークでも、ブランドの明るい配色で表示する） */
:root { color-scheme: light only; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.75;
  font-feature-settings: "palt"; /* 和文の字間を詰めて読みやすく */
}
.ico {
  width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
em { font-style: normal; color: var(--brand); }
.nowrap { white-space: nowrap; }
.sp { display: none; }

/* ========== PR表記 ========== */
.disclosure {
  background: #1a1a1a; color: #ddd;
  font-size: 0.78rem; text-align: center; padding: 6px 16px;
}
.pr { background: var(--yellow); color: #000; font-weight: 900; border-radius: 3px; padding: 0 5px; margin-right: 6px; }
.updated { margin-left: 10px; opacity: 0.7; }

/* ========== ヘッダー ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font-family: var(--display); color: var(--brand); text-decoration: none; font-size: 1.2rem; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-weight: 700; font-size: 0.65rem; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a { position: relative; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--brand); }

/* ========== 30秒でわかるまとめ ========== */
.quick { position: relative; z-index: 2; margin-top: -36px; }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-list a {
  display: flex; align-items: center; gap: 16px; height: 100%;
  background: var(--card); color: var(--text); text-decoration: none;
  border-radius: 20px; padding: 18px 20px;
  border: 1px solid var(--brand-soft);
  box-shadow: 0 12px 30px rgba(255, 0, 140, 0.10);
  transition: transform .15s, box-shadow .15s;
}
.quick-list a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255, 0, 140, 0.18); }
.q-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 16px; background: var(--brand); color: #fff; font-size: 1.6rem;
}
.q-text { display: grid; line-height: 1.35; }
.q-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.q-text b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--brand); }
.q-text small { font-size: 0.8rem; color: var(--muted); }
.btn-sm {
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 900;
  padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; white-space: nowrap;
}

/* ========== ヒーロー ========== */
.hero {
  background:
    radial-gradient(circle at 90% 10%, var(--brand-soft), transparent 45%),
    linear-gradient(180deg, var(--brand-tint) 0%, #ffffff 100%);
  padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.chip {
  display: inline-block; margin: 0 0 16px;
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: 4px 16px; font-size: 0.9rem; font-weight: 900;
}
.hero h1 {
  font-family: var(--display); font-weight: 400; color: #1a1a1a;
  font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.15; margin: 0 0 20px;
}
.hero h1 em { color: var(--brand); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 700; margin: 0 0 28px; line-height: 1.8; }
.lead b { color: var(--brand); font-weight: 900; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-cta { display: inline-block; width: auto; }

.hero-visual { margin: 0; justify-self: end; width: 100%; max-width: 480px; }
.hero-visual img {
  width: 100%; height: auto; display: block; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(255, 0, 140, 0.25);
}

/* QRコード（PCのみ表示） */
.qr { display: flex; align-items: center; gap: 14px; }
.qr img { width: 112px; height: 112px; image-rendering: pixelated; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--border); }
.qr span { font-size: 0.85rem; font-weight: 700; color: var(--muted); line-height: 1.5; }
.qr-light span { color: #fff; }
.qr-light img { border: 0; }

/* ========== ボタン ========== */
.btn-white, .btn-outline, .btn-cta {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  font-family: var(--body); font-weight: 900; font-size: 1.1rem; letter-spacing: 0.04em;
  padding: 14px 28px; border-radius: 999px; border: 0;
  transition: transform .08s, box-shadow .08s;
}
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 5px 0 rgba(0,0,0,0.18); }
.btn-outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-cta { display: block; width: 100%; background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-dark); }
.btn-cta.inline { display: inline-block; width: auto; }
.btn-white:active, .btn-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--brand-dark); }
.btn-white.big { font-size: 1.3rem; padding: 18px 40px; }
.btn-ghost {
  width: 100%; padding: 12px; font: inherit; font-weight: 900; cursor: pointer;
  background: var(--card); color: var(--brand);
  border: 2px dashed var(--brand); border-radius: 14px;
}

/* ========== セクション共通 ========== */
.section { padding: 80px 0; }
.section.alt { background: var(--alt); }
/* セクションの目印ラベル：メニューと同じ言葉＋番号で、ひと目でどこにいるか分かるように */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-weight: 900; font-size: 1.05rem; letter-spacing: 0.06em; line-height: 1;
  color: #fff; background: var(--brand); border-radius: 999px; padding: 6px 20px 6px 6px;
  box-shadow: 0 6px 16px rgba(255, 0, 140, 0.22);
}
.kicker:not(:has(.kicker-no)) { padding: 10px 20px; }
.kicker-no {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--brand); font-family: var(--display); font-size: 0.95rem; letter-spacing: 0;
}
/* 見出しは読みやすい太字ゴシック。極太フォントは大見出し・数字だけに使う */
.section h2 { font-family: var(--body); font-weight: 900; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.4; letter-spacing: 0.01em; margin: 0 0 12px; }
/* 説明文は太字にせず、濃いめのグレーで読みやすく */
.sub { color: var(--text-2); font-weight: 500; font-size: 1.02rem; line-height: 1.85; margin: 0 0 32px; max-width: 42em; }
.fine { color: var(--muted); font-size: 0.8rem; margin: 16px 0 0; }
.label { display: block; font-weight: 900; margin: 0 0 6px; }
.label small { font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-left: 4px; }

/* ========== 料金 ========== */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.plan-visual { margin: 0; }
.plan-visual img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.plan-heading { font-size: 1.15rem; font-weight: 900; margin: 0 0 12px; }
.plans { display: grid; grid-template-columns: 1fr; gap: 12px; }
.plan {
  background: var(--card); border: 2px solid var(--border); border-radius: 20px;
  padding: 18px 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
}
.plan.featured { border-color: var(--brand); background: var(--brand-tint); }
.plan-gb { font-family: var(--display); font-size: 1.5rem; margin: 0; line-height: 1.3; }
.plan-desc { color: var(--muted); font-weight: 700; margin: 0; grid-row: 2; }
.plan-price { grid-row: 1 / 4; grid-column: 2; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--brand); margin: 0; line-height: 1.2; text-align: right; }
.plan-price small { font-family: var(--body); font-weight: 900; font-size: 1rem; color: var(--text); margin-left: 4px; }
.plan-family { margin: 2px 0 0; font-size: 0.85rem; font-weight: 700; color: var(--muted); grid-row: 3; }
.plan-cta { margin-top: 20px; }

/* ========== 使用例カード（PC：ホバー／スマホ：タップ） ========== */
.has-ex { position: relative; overflow: hidden; cursor: pointer; }
.has-ex:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ex-hint {
  position: absolute; top: 10px; right: 12px; z-index: 1;
  font-size: 0.78rem; font-weight: 900; color: var(--brand);
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
  border-radius: 999px; padding: 1px 10px;
  display: inline-flex; align-items: center; gap: 3px;
}
.example {
  position: absolute; inset: 0; z-index: 2;
  background: var(--brand); color: #fff;
  padding: 16px 22px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.example b { font-size: 0.8rem; opacity: 0.9; margin-bottom: 6px; }
.example ul { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; font-weight: 700; font-size: 0.95rem; }
.example p { margin: 0; font-size: 0.92rem; font-weight: 700; line-height: 1.7; }
.example strong { color: #fff; background: rgba(255,255,255,0.22); border-radius: 4px; padding: 0 3px; }
.has-ex.open .example { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) {
  .has-ex:hover .example { opacity: 1; transform: none; pointer-events: auto; }
}

/* ========== ヒーロー：近道リンク・安心ポイント ========== */
.fast-path {
  display: inline-block; margin-top: 14px; font-weight: 900; font-size: 0.92rem;
  color: var(--brand); text-decoration: underline; text-underline-offset: 4px;
}
.trust { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.trust .ico { color: var(--good); stroke-width: 3; }

/* ========== 紹介特典：比較表・仕組み・タイムライン ========== */
.big-num { font-family: var(--display); font-weight: 400; font-size: 1.35em; }
.bonus-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.compare-card, .flow-card, .timeline-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px;
}
.compare-card h3, .flow-card h3, .timeline-card h3 { margin: 0 0 14px; font-size: 1.1rem; font-weight: 900; }
.compare-card h3 small, .timeline-card h3 small { font-weight: 700; font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: center; }
.compare-table th, .compare-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-size: 0.85rem; color: var(--muted); border-bottom: 0; }
.compare-table tbody th { text-align: left; font-size: 0.92rem; white-space: nowrap; }
.compare-table tbody th small { display: block; }
.compare-table small { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.compare-table .us { background: var(--brand-tint); }
.compare-table thead .us { background: var(--brand); color: #fff; border-radius: 14px 14px 0 0; }
.compare-table thead .us small { color: rgba(255,255,255,0.85); }
.compare-table tbody tr:last-child .us { border-radius: 0 0 14px 14px; }
.compare-table td.us b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--brand); }
.compare-table td:not(.us) { color: var(--muted); font-weight: 700; }
.compare-table td[colspan] { font-size: 0.85rem; font-weight: 700; color: var(--text); background: transparent; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: flow; }
.flow li { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding-bottom: 14px; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 50px; bottom: 0; width: 2px; background: var(--brand-soft);
}
.flow-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.3rem; }
.flow b { font-weight: 900; line-height: 1.4; align-self: end; }
.flow small { color: var(--muted); font-size: 0.82rem; line-height: 1.55; }

.timeline-card { margin-top: 16px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 9px; height: 3px; background: var(--brand-soft); border-radius: 3px; }
.timeline li { position: relative; display: grid; justify-items: center; text-align: center; padding: 0 6px; }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--brand); position: relative; z-index: 1; }
.timeline li.start .tl-dot { background: var(--card); }
.tl-month { margin-top: 10px; font-size: 0.8rem; font-weight: 900; color: var(--muted); }
.tl-title { font-weight: 900; font-size: 1rem; line-height: 1.4; }
.timeline li.pt .tl-title { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--brand); }
.timeline small { font-size: 0.8rem; color: var(--muted); }

/* ========== 計算例 ========== */
.cases { margin-bottom: 24px; }
.cases-title { margin: 0 0 10px; font-weight: 900; }
.cases-title small { font-weight: 700; font-size: 0.78rem; color: var(--muted); margin-left: 6px; }
.case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case {
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px;
  background: var(--card); border: 2px solid var(--border); border-radius: 18px; padding: 16px;
  transition: border-color .12s, transform .12s;
}
.case:hover { border-color: var(--brand); transform: translateY(-2px); }
.case.active { border-color: var(--brand); background: var(--brand-tint); }
.case.active .case-icon { background: var(--brand); color: #fff; }
.fine a { color: var(--brand); font-weight: 700; }
.case-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); font-size: 1.3rem; }
.case-body { display: grid; gap: 2px; }
.case-body b { font-weight: 900; }
.case-body small { font-size: 0.8rem; color: var(--muted); }
.case-total { font-size: 0.85rem; font-weight: 700; margin-top: 4px; }
.case-total strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--brand); margin: 0 2px; }
.case-go { grid-column: 2; font-size: 0.82rem; font-weight: 900; color: var(--brand); }

/* ========== 正直な注意点 ========== */
.notice { background: var(--card); border: 2px solid var(--brand-soft); border-radius: 20px; padding: 22px 24px; margin-bottom: 36px; }
.notice h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.15rem; font-weight: 900; }
.notice h3 .ico { color: var(--brand); }
/* 1行＝「番号｜見出し｜説明」で横にそろえる */
.notice-list { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 8px; }
.notice-list li {
  counter-increment: n; background: var(--alt); border-radius: 14px; padding: 14px 18px;
  display: grid; grid-template-columns: 28px 340px minmax(0, 1fr); gap: 4px 14px; align-items: center;
}
.notice-list li::before { content: counter(n); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; font-size: 0.85rem; }
.notice-list b { font-weight: 900; line-height: 1.45; }
.notice-list li > span { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.prep-heading { font-size: 1.15rem; font-weight: 900; margin: 0 0 12px; }

/* ========== 更新履歴 ========== */
.changelog-title { font-size: 1rem; font-weight: 900; margin: 24px 0 8px; }
.changelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.85rem; }
.changelog li { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; }
.changelog time { color: var(--brand); font-weight: 900; }

/* ========== 必須注釈（社内ルール：「最大14,000pt」記載時は必ず添える） ========== */
sup { font-size: 0.6em; vertical-align: super; line-height: 0; margin-left: 1px; }
.req-note { margin: 10px 0 0; font-size: 0.8rem; line-height: 1.7; color: var(--muted); }
.quick-note { margin-top: 12px; text-align: right; }
.hero .req-note { margin-top: -14px; margin-bottom: 24px; }
.summary .req-note { margin: 0 0 14px; }

/* 紹介特典：ポイント数 */
.amounts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.amounts li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--brand-tint); border-radius: 14px; padding: 14px 18px;
}
.amounts span { font-weight: 900; }
.amounts b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--brand); white-space: nowrap; }
.amounts-card .btn-cta { margin-top: 16px; }
.step-trips.info { border-color: var(--brand-soft); }
.step-trips.info h3 { color: var(--brand); }

/* ========== セクション内の小見出しを1つのデザインに統一 ========== */
/* 左にピンクのバー＋大きめの太字で、「ここから別の話題」がひと目で分かるように */
.plan-heading, .prep-heading, .cases-title, .precheck-head h3, .faq-cat,
.compare-card h3, .flow-card h3, .timeline-card h3, .changelog-title, .persona-q {
  position: relative; padding-left: 14px;
  font-size: 1.15rem; font-weight: 900; line-height: 1.45; color: var(--text);
}
.plan-heading::before, .prep-heading::before, .cases-title::before, .precheck-head h3::before, .faq-cat::before,
.compare-card h3::before, .flow-card h3::before, .timeline-card h3::before, .changelog-title::before, .persona-q::before {
  content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 5px; border-radius: 3px; background: var(--brand);
}
.cases-title small, .compare-card h3 small, .timeline-card h3 small, .persona-q small {
  display: block; margin: 2px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--muted);
}
.faq-cat { border-bottom: 0; padding-bottom: 0; margin: 32px 0 6px; }
.prep-heading, .cases-title { margin: 0 0 14px; }

/* ========== あなたはどれ？ ========== */
.persona { padding: 40px 0 0; }
.persona-card {
  background: var(--card); border-radius: 24px; padding: 24px 28px;
  border: 2px solid var(--brand-soft);
}
.persona-q { margin: 0 0 12px; font-weight: 900; font-size: 1.15rem; }
.persona-q small { font-weight: 700; font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.persona-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.persona-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 900; font-size: 1rem; cursor: pointer;
  padding: 12px 10px; border-radius: 14px;
  background: var(--alt); color: var(--text); border: 2px solid transparent;
  transition: all .12s;
}
.persona-tab .ico { font-size: 1.2rem; }
.persona-tab:hover { border-color: var(--brand-soft); }
.persona-tab.active { background: var(--brand); color: #fff; }
.persona-panel h3 { margin: 0 0 14px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 900; line-height: 1.45; }
.persona-panel h3 em { color: var(--brand); }
.persona-panel h3 small { display: inline-block; margin-left: 8px; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.persona-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.persona-points li { background: var(--brand-tint); border-radius: 14px; padding: 14px 16px; }
.persona-points b { display: block; font-weight: 900; line-height: 1.45; }
.persona-points li > span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.persona-panel > .fine { margin-top: 10px; }
.persona-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.persona-cta .btn-cta, .persona-cta .btn-outline { font-size: 0.98rem; padding: 11px 22px; }

/* ========== 楽天ユーザー特典 ========== */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } /* 大きいカード1枚＋下段4枚 */
.perk {
  display: block; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px;
  transition: border-color .12s, transform .12s;
}
.perk:hover { border-color: var(--brand); transform: translateY(-2px); }
.perk .icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand); font-size: 1.35rem; margin-bottom: 10px;
}
.perk h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 900; line-height: 1.45; }
.perk h3::after { content: " ↗"; color: var(--brand); font-size: 0.85em; }
.perk p { margin: 0; font-size: 0.9rem; }
.perk small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.8rem; }
.perk-main {
  grid-column: 1 / -1 !important; display: flex; gap: 20px; align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; padding: 26px 28px;
}
.perk-main .icon { width: 64px; height: 64px; font-size: 2rem; background: rgba(255,255,255,0.2); color: #fff; margin: 0; flex-shrink: 0; }
.perk-main h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.perk-main h3 em { color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.3em; }
.perk-main h3::after { color: #fff; }
.perk-main p { font-size: 1rem; }
.perk-main p b { background: rgba(255,255,255,0.22); border-radius: 4px; padding: 0 4px; }
.perk-main small { color: rgba(255,255,255,0.85); }

/* ========== メリット ========== */
.merits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.merits article { background: var(--card); border-radius: 18px; padding: 22px 18px; border: 1px solid var(--border); }
.merits .icon, .prep-card .icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--brand-tint); color: var(--brand); font-size: 1.5rem;
}
.merits h3 { font-size: 1.1rem; font-weight: 900; margin: 8px 0 6px; line-height: 1.4; }
.merits p { margin: 0; font-size: 0.92rem; }
.merits small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.8rem; }

/* ========== 紹介特典 ========== */
.bonus { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.bonus h2 em { font-family: var(--display); font-weight: 400; font-size: 1.3em; }
.bonus-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.bonus-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--brand-tint); border-radius: 14px; padding: 14px 20px;
}
.bonus-list li > span { font-family: var(--display); color: var(--brand); font-size: 1.3rem; white-space: nowrap; }
.bonus-list b small { display: block; font-weight: 700; font-size: 0.78rem; color: var(--muted); }
.hl { color: var(--brand); background: linear-gradient(transparent 60%, var(--brand-soft) 60%); }

/* ---- 結果：節約額とポイントを2つ並べて強調 ---- */
.summary-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.split-box { background: var(--alt); border-radius: 14px; padding: 12px 14px; display: grid; }
.split-box span { font-size: 0.8rem; font-weight: 900; color: var(--muted); }
.split-box b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.3; white-space: nowrap; }
.split-box small { font-size: 0.78rem; color: var(--muted); }
.split-box.pt { background: var(--brand-tint); }
.split-box.pt b { color: var(--brand); }

/* ========== シミュレーター ========== */
/* 入力欄の高さはすべてこの値にそろえる */
:root { --field-h: 54px; }
.sim-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.people { display: grid; gap: 14px; margin-bottom: 14px; }
.person { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px 20px 20px; }

/* 見出し行：名前 ／ 13〜22歳チェック ／ 削除 を1行に */
.person-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--border);
}
.person-name { font-family: var(--display); font-size: 1.15rem; color: var(--brand); line-height: 1; }
.youth-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 0.85rem; font-weight: 900; color: var(--text);
  padding: 5px 12px; border-radius: 999px; background: var(--alt); border: 2px solid transparent;
}
.youth-toggle small { font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.youth-toggle input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.youth-toggle:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.btn-remove {
  font: inherit; font-size: 0.8rem; padding: 4px 12px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
}
.btn-remove[hidden] { display: none !important; }

/* 本体：3項目を「ラベル行」「入力行」でそろえる */
.person-body {
  display: grid; grid-template-columns: 160px minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0 14px; align-items: start;
}
.pf { display: grid; grid-template-rows: auto var(--field-h); gap: 6px; min-width: 0; }
.pf-label {
  display: flex; align-items: center; gap: 8px; height: 22px; white-space: nowrap;
  font-size: 0.82rem; font-weight: 900; color: var(--muted);
}
.pf-label small { font-weight: 700; font-size: 0.78rem; }
.pf-label .link-btn { margin-left: 0; }
.input-unit { display: flex; align-items: center; gap: 8px; }
.input-unit > span { font-weight: 900; white-space: nowrap; }
.pf .input-unit { height: var(--field-h); }
.pf .input-unit input { height: 100%; }
input[type="number"], input[type="date"] {
  width: 100%; font: inherit; font-weight: 700; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text);
}
input[type="number"] { font-family: var(--display); font-weight: 400; font-size: 1.3rem; padding: 8px 12px; }
input:focus { outline: none; border-color: var(--brand); }
input::placeholder { color: var(--muted); opacity: 0.4; }

/* セグメントボタン（プルダウンの代わり） */
.seg { display: grid; gap: 6px; height: var(--field-h); }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.seg-opt { position: relative; cursor: pointer; min-width: 0; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  height: 100%; text-align: center; padding: 0 4px;
  border: 2px solid var(--border); border-radius: 12px; background: var(--bg);
  line-height: 1.3; transition: all .1s;
}
.seg-opt b { display: block; font-size: 0.95rem; white-space: nowrap; }
.seg-opt small { display: block; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.seg-opt input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.seg-opt input:checked + span small { color: rgba(255,255,255,0.85); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--yellow); }

.spu-box { margin-top: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; }
.spu-box .input-unit { max-width: 280px; }
.help { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.help b { color: var(--brand); }

.summary {
  position: sticky; top: 80px;
  background: var(--card); border: 3px solid var(--brand); border-radius: 24px; padding: 28px;
  box-shadow: 0 16px 40px rgba(255,0,140,0.12);
}
.summary-title { font-weight: 900; margin: 0; }
.summary-total { font-family: var(--display); font-size: clamp(2.4rem, 4.4vw, 3.6rem); color: var(--brand); line-height: 1.15; margin: 4px 0 16px; white-space: nowrap; }
.summary-total small { font-size: 1.1rem; color: var(--text); margin-left: 4px; }
.summary-rows { margin: 0 0 20px; }
.summary-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.summary-rows .sep { border-top: 2px solid var(--border); margin-top: 4px; }
.summary-rows dt { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.summary-rows dd { margin: 0; font-weight: 900; white-space: nowrap; }
.summary-rows dd.good { color: var(--good); }
.note { background: var(--brand-tint); padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; }
.link-sub { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-weight: 700; font-size: 0.9rem; }

/* ---- 料金の調べ方ガイド ---- */
.guide { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; }
.guide summary { padding: 14px 20px; font-size: 0.98rem; color: var(--brand); }
.guide summary .ico { margin-right: 6px; }
.btn-share .ico { margin-right: 6px; }
.guide-body { padding: 0 20px 18px; font-size: 0.92rem; }
.guide-body > p { margin: 0 0 10px; }
.carrier-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.carrier-table th, .carrier-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); }
.carrier-table th { color: var(--muted); font-size: 0.8rem; background: var(--alt); }
.carrier-table td:first-child { font-weight: 900; white-space: nowrap; }
.guide-tips { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.guide-tips b { color: var(--brand); }

/* ---- 人ごとの入力の補助 ---- */
.mini small { font-weight: 500; margin-left: 4px; }
.link-btn {
  font: inherit; font-size: 0.78rem; font-weight: 900; cursor: pointer;
  background: none; border: 0; padding: 0; margin-left: 6px;
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
}

/* ---- 診断ダイアログ ---- */
.dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  border: 0; border-radius: 24px; padding: 24px 24px 18px; overflow-y: auto;
  background: var(--card); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.dialog::backdrop { background: rgba(30, 0, 18, 0.55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dialog-head h3 { margin: 0; font-size: 1.2rem; font-weight: 900; }
.dialog-head small { color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.dialog-close {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
  background: var(--alt); border: 0; color: var(--text);
}
.q { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.q legend { font-weight: 900; margin-bottom: 6px; padding: 0; }
.q label {
  display: flex; gap: 10px; align-items: center; cursor: pointer;
  padding: 10px 14px; border: 2px solid var(--border); border-radius: 12px; font-weight: 700; font-size: 0.95rem;
}
.q input { accent-color: var(--brand); width: 18px; height: 18px; }
.q label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.diag-result {
  margin-top: 16px; padding: 14px 18px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 700; text-align: center;
}
.diag-result b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0 4px; }
.diag-result span { display: block; font-size: 0.85rem; opacity: 0.9; }
.dialog-actions { margin-top: 16px; }
.dialog-actions .btn-cta:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

/* ---- 共有・カレンダーボタン ---- */
.share { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.share-title { margin: 0 0 8px; font-size: 0.85rem; font-weight: 900; color: var(--muted); text-align: center; }
.share-buttons, .cal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-line, .btn-share {
  display: block; text-align: center; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 0.92rem;
  padding: 10px 12px; border-radius: 999px;
}
.btn-line { background: #06c755; color: #fff; border: 0; }
.btn-share { background: var(--card); color: var(--text); border: 2px solid var(--border); }
.btn-share:hover { border-color: var(--brand); color: var(--brand); }
.cal { grid-column: 1 / -1; border-top: 1px dashed var(--border); padding-top: 14px; }
.cal-buttons { max-width: 460px; }

/* ---- 準備（端末・エリア） ---- */
.prep { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.prep-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.prep-card .btn-outline { margin-top: auto; } /* ボタンをカードの下端にそろえる */
.prep-card ol, .prep-card .fine { margin-bottom: 16px; }
.prep-card h3 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 900; }
.prep-card ol { margin: 0 0 8px; padding-left: 1.3em; display: grid; gap: 6px; }
.prep-card b { color: var(--brand); }
.btn-outline.small { font-size: 0.95rem; padding: 10px 20px; margin-top: 10px; }
.checklist-heading { font-size: 1.3rem; font-weight: 900; margin: 0 0 14px; }
.checklist-heading small { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.mini-link { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--brand); white-space: nowrap; }

/* ========== 4ステップ ========== */
.step-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step-tab {
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--border); border-radius: 18px;
  padding: 18px; display: flex; gap: 14px; align-items: center;
  position: relative; transition: all .12s;
}
.step-tab i { font-style: normal; font-family: var(--display); font-size: 2.2rem; color: var(--brand); line-height: 1; width: 40px; flex-shrink: 0; text-align: center; }
.step-tab b { font-weight: 900; line-height: 1.4; }
.tab-text { display: grid; gap: 6px; justify-items: start; }
.step-tab:hover { border-color: var(--brand); }
.step-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-tab.active i { color: #fff; }
.step-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  border: 10px solid transparent; border-top-color: var(--brand); border-bottom: 0;
}
.step-tab.warn:not(.active) { border-color: var(--brand); }
.step-panel { margin-top: 18px; background: var(--brand-tint); border-radius: 20px; padding: 28px 32px; }
.step-detail h3 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 900; }
.step-detail ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 1.05rem; }
.tip { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; font-size: 0.95rem; }
.tip > .ico { color: var(--brand); font-size: 1.2rem; margin-top: 2px; }
.tip a { color: var(--brand); font-weight: 700; }
.tip.warn { border-left: 5px solid var(--brand); }

/* ---- つまずきポイント ---- */
.trip-badge {
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 900; line-height: 1;
  color: #b45309; background: #fff4db; border: 1px solid #fcd88a; border-radius: 999px; padding: 3px 8px;
}
.trip-badge.inline { vertical-align: 0.1em; margin: 0 2px; }
.trip-top {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; align-items: center;
  background: #fffaf0; border: 2px solid #fcd88a; border-radius: 18px; padding: 16px 20px; margin-bottom: 20px;
}
.trip-top-title { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 900; color: #b45309; white-space: nowrap; }
.trip-top-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: t; }
.trip-top-list li { counter-increment: t; }
.trip-top-list button {
  width: 100%; height: 100%; font: inherit; text-align: left; cursor: pointer; color: var(--text);
  display: grid; grid-template-columns: 26px 1fr; gap: 0 8px; align-items: center;
  background: var(--card); border: 1px solid #fcd88a; border-radius: 12px; padding: 10px 12px;
}
.trip-top-list button::before {
  content: counter(t); grid-row: 1 / 3; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: #f59e0b; color: #fff; font-weight: 900; font-size: 0.85rem;
}
.trip-top-list b { font-weight: 900; font-size: 0.92rem; line-height: 1.4; }
.trip-top-list span { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.trip-top-list button:hover { border-color: #f59e0b; }

/* ステップの中身：左「やること」／右「つまずきやすいポイント」 */
.step-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.step-todo { padding-top: 18px; } /* 右の枠（枠線2px＋余白16px）と見出しの高さをそろえる */
.step-todo h3, .step-trips h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 1.05rem; font-weight: 900; }
.step-trips { background: var(--card); border: 2px solid #fcd88a; border-radius: 16px; padding: 16px 18px; }
.step-trips h3 { color: #b45309; }
.trips { margin: 0; display: grid; gap: 12px; }
.trip { padding-left: 14px; border-left: 4px solid #f59e0b; }
.trip dt { font-weight: 900; line-height: 1.45; }
.trip dd { margin: 4px 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.trip dd b { color: var(--text); }
.trip.info { border-left-color: var(--good); }
.trip.info dt::before { content: "安心："; color: var(--good); }
.trip:not(.info) dt::before { content: "注意："; color: #b45309; }

/* ステップの完了チェック（チェックリストを統合） */
.step-done {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  margin-top: 20px; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 2px dashed var(--brand-soft); font-weight: 900;
}
.step-done input { width: 22px; height: 22px; accent-color: var(--good); }
.step-done:has(input:checked) { border-style: solid; border-color: var(--good); color: var(--good); }
.step-tab.done { border-color: var(--good); }
.step-tab.done i { color: transparent; position: relative; }
.step-tab.done i::after { content: "✓"; position: absolute; inset: 0; color: var(--good); font-family: var(--body); font-weight: 900; }
.step-tab.done.active i::after { color: #fff; }
.cond-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cond-progress .progress { flex: 1; }
.cond-progress .progress-text { margin: 0; white-space: nowrap; }
.done-msg { display: flex; justify-content: center; align-items: center; gap: 8px; }

/* 準備のチェック */
.precheck { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px; }
.precheck-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.precheck-head h3 { margin: 0; font-size: 1.1rem; font-weight: 900; }
.precheck-count { font-family: var(--display); color: var(--brand); font-size: 1.2rem; }
.checks.two { grid-template-columns: 1fr 1fr; }
.step1-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 16px; }

.deadline {
  margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px 24px;
  display: grid; grid-template-columns: 200px auto 1fr; gap: 32px; align-items: start; /* 3つのラベルの高さをそろえる */
}
.deadline .field { margin: 0; display: block; }
.deadline p { margin: 0; }
.deadline-date { font-family: var(--display); font-size: 1.4rem; color: var(--brand); }
.payout ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.payout li { background: var(--alt); border-radius: 10px; padding: 6px 12px; font-size: 0.9rem; }
.payout li strong { color: var(--brand); }

/* ========== チェックリスト ========== */
.checklist-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px 32px; }
.progress { height: 12px; background: var(--alt); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s; }
.progress-text { margin: 8px 0 20px; color: var(--muted); font-weight: 700; }
.progress-text b { color: var(--brand); font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.check-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.check-groups h3 { font-size: 1.05rem; font-weight: 900; margin: 0 0 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks label {
  display: flex; gap: 12px; align-items: center; cursor: pointer;
  padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px;
}
.checks input { width: 22px; height: 22px; accent-color: var(--brand); flex-shrink: 0; }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.done-msg { margin: 20px 0 0; text-align: center; font-weight: 900; font-size: 1.15rem; color: var(--brand); }

/* ========== FAQ・運営者 ========== */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.two-col > * { min-width: 0; }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { font-weight: 900; font-size: 1.05rem; cursor: pointer; }
details p { color: var(--muted); margin: 8px 0 0; }
.faq-cat { font-size: 1rem; font-weight: 900; color: var(--brand); margin: 28px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--brand-soft); }
.faq-points, .faq-list { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }
.faq-points b { color: var(--brand); }
.faq-list b { color: var(--text); }
.faq-more { margin: 24px 0 0; color: var(--muted); font-size: 0.9rem; }
.faq-more a { color: var(--brand); font-weight: 700; }
.faq-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.faq-links a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.operator dl { margin: 16px 0 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 8px 24px; }
.operator dl div { padding: 12px 0; border-bottom: 1px dashed var(--border); display: grid; grid-template-columns: 4.5em 1fr; gap: 8px; }
.operator dl div:last-child { border-bottom: 0; }
.operator dt { color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.operator dd { margin: 0; }
.operator a { color: var(--brand); }

/* ========== 最終CTA・フッター ========== */
.final-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; text-align: center; padding: 72px 0;
}
.final-cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 8px; line-height: 1.3; }
.final-cta p { margin: 0 0 28px; opacity: 0.9; }
.final-inner { display: flex; align-items: center; justify-content: center; gap: 56px; }
footer { padding-top: 32px; padding-bottom: 96px; font-size: 0.78rem; color: var(--muted); }

.sticky-cta { display: none; }

/* ========== タブレット ========== */
@media (max-width: 1024px) {
  html { scroll-padding-top: 112px; }
  /* スマホ・タブレット：メニューを2段目に横スクロールで表示 */
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 0; }
  .brand { padding: 6px 0 2px; line-height: 1.1; }
  .nav {
    order: 3; width: 100%; margin: 0; gap: 6px;
    overflow-x: auto; padding: 6px 0 8px; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 5px 14px; border-radius: 999px; background: var(--alt); font-size: 0.85rem; }
  .nav a.active { background: var(--brand); color: #fff; }
  .nav a.active::after { display: none; }
  .btn-sm { margin-left: auto; }
  .quick-list { grid-template-columns: 1fr; gap: 10px; }
  .quick { margin-top: -24px; }
  .merits { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .persona-points { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: minmax(0, 1fr); }
  .case-list { grid-template-columns: 1fr; }
  .notice-list li { grid-template-columns: 28px 220px minmax(0, 1fr); }
  .sim-grid, .bonus, .two-col, .hero-grid, .plan-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-visual { justify-self: center; }
  .plan-visual { max-width: 520px; margin: 0 auto; }
  .summary { position: static; }
  /* タブレット：月額を1行目、データ量と電話番号を2行目に */
  .person-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
  .pf-fee { grid-column: 1 / -1; }
  .pf-fee .input-unit { max-width: 260px; }
  .step-tabs { grid-template-columns: repeat(2, 1fr); }
  .step-tab.active::after { display: none; }
  .step-cols { grid-template-columns: minmax(0, 1fr); }
  .step-todo { padding-top: 0; }
  .trip-top { grid-template-columns: minmax(0, 1fr); }
  .deadline { grid-template-columns: 1fr; gap: 12px; }
}

/* ========== スマホ ========== */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .sp { display: inline; }
  .pc { display: none; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 52px; }
  .btn-sm { display: none; }
  .hero-cta a, .hero-cta .btn-cta { width: 100%; }
  .facts li { padding: 14px 16px; }
  .plan { padding: 16px 18px; }
  .plan-gb { font-size: 1.25rem; }
  .plan-cta { display: block; }
  .pc-only { display: none !important; }
  .merits { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr; }
  .perk-main { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; }
  .persona { padding-top: 28px; }
  .persona-card { padding: 18px 16px; }
  .persona-q small { display: block; margin: 2px 0 0; }
  .persona-tab { flex-direction: column; gap: 4px; font-size: 0.85rem; padding: 10px 4px; }
  .persona-cta a.btn-cta, .persona-cta a.btn-outline { width: 100%; text-align: center; }
  .split-box b { font-size: 1.2rem; }
  .notice-list li { grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
  .notice-list li > span { grid-column: 2; }
  .step-todo { padding-top: 0; }
  .notice, .compare-card, .flow-card, .timeline-card { padding: 18px 16px; }
  /* タイムラインは縦向きに */
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .timeline li { grid-template-columns: 20px 1fr; justify-items: start; text-align: left; column-gap: 12px; padding: 0; }
  .timeline li > :not(.tl-dot) { grid-column: 2; }
  .tl-dot { grid-row: 1 / 4; }
  .tl-month { margin-top: 0; }
  .compare-table td.us b { font-size: 1.2rem; }
  .compare-table th, .compare-table td { padding: 10px 6px; }
  .compare-table tbody th { font-size: 0.82rem; }
  .compare-table td[colspan] { font-size: 0.78rem; }
  .trust { flex-direction: column; }
  .person { padding: 14px 16px 16px; }
  .person-body { grid-template-columns: minmax(0, 1fr); }
  .pf-fee .input-unit { max-width: none; }
  .person-head { flex-wrap: wrap; row-gap: 8px; }
  .step-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .step-tab { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; }
  .step-tab i { font-size: 1.6rem; width: auto; text-align: left; }
  .step-panel { padding: 20px 16px; }
  .trip-top-list { grid-template-columns: minmax(0, 1fr); }
  .step-trips { padding: 14px; }
  .check-groups { grid-template-columns: 1fr; gap: 20px; }
  .prep { grid-template-columns: 1fr; }
  .checks.two { grid-template-columns: 1fr; }
  /* スマホ：まとめカードは横スワイプ */
  .quick { margin-top: -16px; }
  .quick .wrap { padding: 0; }
  .quick-list {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 16px 14px; scrollbar-width: none;
  }
  .quick-list::-webkit-scrollbar { display: none; }
  .quick-list li { flex: 0 0 80%; scroll-snap-align: center; }
  .quick-list a { padding: 14px 16px; }
  .q-icon { width: 44px; height: 44px; font-size: 1.35rem; }
  .q-text b { font-size: 1.3rem; }
  .precheck { padding: 18px 16px; }
  .cal-buttons { max-width: none; }
  .checklist-card { padding: 20px 16px; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform .25s;
  }
  .sticky-cta.show { transform: none; }
}

/* ============================================================
   検索対策・記事ページ
   ============================================================ */
/* h1の中のキャンペーン名ラベル（見た目は従来のラベルのまま） */
.hero h1 .chip { display: table; font-family: var(--body); font-size: 0.9rem; font-weight: 900; line-height: 1.6; letter-spacing: 0.02em; }
.h1-catch { display: block; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.footer-links a { color: var(--brand); font-weight: 700; font-size: 0.85rem; }

/* 記事カード（トップの「読みもの」と記事一覧） */
.article-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.article-cards a {
  display: grid; gap: 6px; height: 100%; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px;
  transition: border-color .12s, transform .12s;
}
.article-cards a:hover { border-color: var(--brand); transform: translateY(-2px); }
.article-cards b { font-weight: 900; line-height: 1.5; }
.article-cards span { font-size: 0.85rem; color: var(--muted); }
.article-cards span::after { content: " →"; color: var(--brand); font-weight: 900; }

/* 記事・固定ページ */
.sub-main { max-width: 860px; padding-top: 24px; padding-bottom: 40px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--brand); font-weight: 700; }
.article-meta { font-size: 0.8rem; color: var(--muted); margin: 0 0 8px; }
.article h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 900; line-height: 1.45; margin: 0 0 16px; }
.article-lead { font-size: 1.05rem; color: var(--text-2); line-height: 1.9; margin: 0 0 28px; padding: 16px 20px; background: var(--brand-tint); border-radius: 14px; }
.article h2 {
  position: relative; margin: 44px 0 14px; padding: 0 0 10px 16px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 900; line-height: 1.45;
  border-bottom: 2px solid var(--brand-soft);
}
.article h2::before { content: ""; position: absolute; left: 0; top: 0.15em; bottom: calc(10px + 0.15em); width: 6px; border-radius: 3px; background: var(--brand); }
.article p { line-height: 1.9; margin: 0 0 14px; }
.article a:not(.btn-cta):not(.btn-outline) { color: var(--brand); font-weight: 700; }
.article .btn-outline { display: inline-block; }

.answer-box { border: 3px solid var(--brand); border-radius: 18px; padding: 20px 22px; margin-bottom: 8px; }
.answer-title { display: inline-block; background: var(--brand); color: #fff; font-weight: 900; font-size: 0.85rem; border-radius: 999px; padding: 2px 12px; margin: 0 0 10px !important; }
.pt-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.pt-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--brand-tint); border-radius: 12px; padding: 12px 16px; }
.pt-list span { font-weight: 900; }
.pt-list b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--brand); white-space: nowrap; }

.table-wrap { overflow-x: auto; margin: 0 0 10px; }
.data-table { width: 100%; min-width: 420px; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table thead th { background: var(--brand); color: #fff; font-size: 0.85rem; }
.data-table tbody th { font-weight: 900; }
.data-table td b { color: var(--brand); font-weight: 900; }
.data-table tr.total th, .data-table tr.total td { background: var(--brand-tint); }

.step-list { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.step-list li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.step-list li::before { content: counter(s); grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--display); }
.step-list b { font-weight: 900; }
.step-list span { font-size: 0.92rem; color: var(--text-2); line-height: 1.75; }

.check-list, .link-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; line-height: 1.75; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--good); font-weight: 900; }
.link-list li::before { content: "→ "; color: var(--brand); font-weight: 900; }

.usage-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.usage-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.usage-card b { display: block; font-family: var(--display); font-weight: 400; color: var(--brand); font-size: 1.15rem; margin-bottom: 4px; }
.usage-card p { margin: 0 !important; font-size: 0.9rem; line-height: 1.7 !important; }

.trip-box { border-left: 4px solid #f59e0b; background: #fffaf0; border-radius: 0 12px 12px 0; padding: 12px 16px; margin-bottom: 10px; }
.trip-box p { margin: 0 !important; }
.trip-box-title { font-weight: 900; color: #b45309; margin-bottom: 4px !important; }

.article-cta {
  margin: 48px 0 0; padding: 26px 24px; border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, var(--brand-tint), #fff); border: 2px solid var(--brand-soft);
}
.article-cta-label { display: inline-block; background: var(--brand); color: #fff; border-radius: 999px; padding: 3px 14px; font-size: 0.8rem; font-weight: 900; margin: 0 0 10px !important; }
.article-cta-main { font-size: 1.15rem; font-weight: 900; }
.article-cta-main b { color: var(--brand); font-size: 1.25em; }
.article-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.article-cta-buttons .btn-cta { display: inline-block; width: auto; }
.article-cta .req-note { text-align: left; }

.related { margin-top: 48px; }
.related-title { font-size: 1.15rem; font-weight: 900; margin: 0 0 12px; }
.related .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .article-cards, .related .article-cards, .usage-cards { grid-template-columns: minmax(0, 1fr); }
  .article-cta { padding: 20px 16px; }
  .article-cta-buttons a { width: 100%; }
  .sub-page .btn-sm { display: none; }
}

/* ============================================================
   スマホ実機チェック後の調整（2026-11-18）
   ============================================================ */
/* 日本語を文節で改行する（「こちら｜ら」「最大｜14,000pt」のような変な位置で切れないように） */
body { word-break: auto-phrase; }
h1, h2, h3, .lead, .btn-cta, .btn-outline, .btn-white, .persona-panel h3, .article-cta-main, summary { text-wrap: balance; }
.disclosure .updated { white-space: nowrap; }
.persona-tab, .kicker, .step-tab b, .trip-badge { white-space: nowrap; }

/* 計算結果の内訳 */
.summary-formula { margin: -8px 0 14px; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.split-box small { white-space: normal; line-height: 1.5; margin-top: 2px; }
.summary-rows dd { text-align: right; }
.dd-note { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); white-space: normal; margin-top: 2px; }

/* メニューの「‹ ›」矢印（PCでは非表示） */
.nav-arrow { display: none; }
@media (max-width: 1024px) {
  .header-inner { position: relative; }
  .nav-arrow:not([hidden]) {
    display: grid; place-items: center; position: absolute; bottom: 8px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--brand); color: #fff; font-size: 1.3rem; font-weight: 900; line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 0, 140, 0.35);
  }
  .nav-arrow.left { left: 12px; }
  .nav-arrow.right { right: 12px; }
  /* 端をうっすら消して「まだ続く」ことを見せる */
  .nav.fade-right { -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 96%); mask-image: linear-gradient(to right, #000 78%, transparent 96%); }
  .nav.fade-left { -webkit-mask-image: linear-gradient(to left, #000 78%, transparent 96%); mask-image: linear-gradient(to left, #000 78%, transparent 96%); }
  .nav.fade-left.fade-right { -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 22%, #000 78%, transparent 96%); mask-image: linear-gradient(to right, transparent 4%, #000 22%, #000 78%, transparent 96%); }
}

@media (max-width: 600px) {
  /* まとめカード：横スワイプをやめて、縦にコンパクトに並べる */
  .quick { margin-top: -16px; }
  .quick .wrap { padding: 0 16px; }
  .quick-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; overflow: visible; padding: 0; }
  .quick-list li { flex: none; }
  .quick-list a { padding: 12px 14px; gap: 12px; }
  .q-icon { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 12px; }
  .q-text b { font-size: 1.2rem; }
  .quick-note { text-align: left; }

  /* 記事の表：横スクロールさせず画面幅に収める */
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0; font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 10px 8px; }
  .data-table thead th { font-size: 0.75rem; }

  /* 「あなたはどれ？」のタブ：文字が切れないよう小さめに */
  .persona-tab { font-size: 0.8rem; padding: 10px 2px; }

  .pt-list li, .amounts li { flex-wrap: wrap; }
  .article-cta-main { font-size: 1.05rem; }
}
.data-table th { white-space: nowrap; }
@media (max-width: 600px) {
  .big-num { font-size: 1.15em; }
}
.dd-note { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 10px; }
@media (max-width: 600px) {
  /* 計算結果：2つの箱を縦に並べ、はみ出さないように */
  .summary-split { grid-template-columns: minmax(0, 1fr); }
  .split-box { grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
  .split-box span { grid-column: 1; }
  .split-box b { grid-column: 2; grid-row: 1 / 3; }
  .split-box small { grid-column: 1; }
  .summary { padding: 22px 16px; }
}
