/* クレカ損得帳 — 共通スタイル（いつもライト表示）
   カード会社のサイトの見せ方（白地・券面が主役・大きな数字・幅の広い申し込みボタン・小さな※注釈）に合わせた版 */
:root {
  color-scheme: only light;
  --bg: #ffffff;
  --band: #f3f7f5;          /* 区切りの帯（薄いミントグレー） */
  --surface: #ffffff;
  --ink: #333333;
  --ink-2: #4d4d4d;
  --muted: #737373;
  --line: #e2e2e2;
  --line-2: #cfcfcf;
  --accent: #0b7a5e;        /* このサイトの色：リンク・現在地 */
  --accent-ink: #086a51;
  --accent-soft: #e6f3ee;
  --cta: #c45a00;           /* 申し込みボタン（白文字でコントラスト4.5以上） */
  --cta-ink: #a64c00;
  --warn-bg: #fff4e5;
  --warn-ink: #8a4b00;
  --neg: #b3261e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .06);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8; letter-spacing: .02em; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f0b54a; outline-offset: 2px; border-radius: 4px; }
.num, .tabnum { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.small { font-size: 13px; line-height: 1.7; }
.small a, .sources a { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* ── ヘッダー（白・下線のタブ） ─────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); -webkit-backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: stretch; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .06em; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 700; padding: 0 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--accent-ink); }
.nav a[aria-current="page"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .nav { margin: 8px -20px 0; padding: 0 10px; width: calc(100% + 40px); border-top: 1px solid var(--line); }
  .nav a { padding: 10px 12px 9px; }
  .logo { font-size: 17px; }
}
@media (max-width: 560px) { .nav { margin: 8px -16px 0; padding: 0 6px; width: calc(100% + 32px); } }

/* ── 文字 ─────────────── */
h1, h2, h3 { line-height: 1.45; letter-spacing: .03em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(26px, 4vw, 36px); }
h2 { font-size: clamp(21px, 2.8vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.lede { font-size: 16px; color: var(--ink-2); max-width: 46em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: .06em; }
.updated { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.crumbs { font-size: 12px; color: var(--muted); padding-top: 14px; margin: 0; }
.crumbs a { color: var(--muted); }

/* ── ブロック ─────────────── */
.hero { padding: 30px 0 24px; }
.hero h1 { margin-bottom: 12px; }
.section { padding: 44px 0; }
.band { background: var(--band); }
.section-head { margin-bottom: 22px; text-align: center; }
.section-head h2 { display: inline-block; position: relative; padding-bottom: 12px; }
.section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 3px; margin-left: -20px; border-radius: 2px; background: var(--accent); }
.section-head p { color: var(--muted); margin: 10px auto 0; max-width: 40em; font-size: 15px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 24px; }
@media (max-width: 560px) { .pad { padding: 18px 16px; } .section { padding: 34px 0; } }
.panel h2.h { font-size: 18px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.4; }

/* ── ボタン ─────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: var(--radius-sm); text-decoration: none; border: 1.5px solid var(--accent); color: var(--accent-ink); background: #fff; cursor: pointer; line-height: 1.4; }
.btn:hover { background: var(--accent-soft); }
.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { background: var(--accent-ink); }
.btn.apply { background: var(--cta); border-color: var(--cta); color: #fff; padding: 13px 22px; font-size: 16px; box-shadow: 0 2px 0 var(--cta-ink); }
.btn.apply::after { content: "›"; font-size: 20px; line-height: 1; margin-left: 4px; }
.btn.apply:hover { background: var(--cta-ink); }
.btn.apply.sub { padding: 9px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn .pr { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.detail-link { font-size: 14px; font-weight: 700; }

/* ── バッジ・注記 ─────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; line-height: 1.4; padding: 3px 9px; border-radius: 4px; background: #f0f0f0; color: var(--ink-2); font-weight: 700; display: inline-block; max-width: 100%; }
.badge.good { background: var(--accent-soft); color: var(--accent-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.flag { margin: 8px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--warn-bg); color: #6f420b; font-size: 13px; line-height: 1.6; }
.pr-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.pr-note::before { content: "PR"; display: inline-block; font-weight: 700; font-size: 11px; padding: 0 6px; margin-right: 6px; border: 1px solid var(--line-2); border-radius: 3px; }
.campaign { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); border: 1px solid #f1d3a2; font-size: 14px; color: #6f420b; }

/* ── 大きな数字（カード会社のサイトの「年会費 0円」の見せ方） ─────────────── */
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.stats-row > div { padding: 10px 12px; border-right: 1px solid var(--line); text-align: center; min-width: 0; }
.stats-row > div:last-child { border-right: 0; }
.stats-row .k { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.stats-row .v { display: block; font-size: 24px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.stats-row .v.txt { white-space: normal; }
@media (max-width: 560px) { .stats-row > div { padding: 8px 6px; } .stats-row .v { font-size: 18px; } .stats-row .k { font-size: 11px; } .benefit-icons > div { font-size: 11px; } }
.stats-row .v small { font-size: 13px; font-weight: 700; margin-left: 1px; }
.stats-row .v.txt { font-size: 14px; font-weight: 700; padding-top: 4px; }
.v.pos { color: var(--accent-ink); }
.v.neg { color: var(--neg); }

/* ── カードのイメージ（ロゴ・ブランドマークは描かない） ─────────────── */
.cardviz {
  --c1: #445; --c2: #889;
  position: relative; display: block; width: 100%; aspect-ratio: 1.586; border-radius: 5.5% / 8.7%;
  background: linear-gradient(140deg, var(--c1) 0%, var(--c2) 100%);
  color: #fff; overflow: hidden; container-type: inline-size;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .35), 0 2px 4px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.cardviz::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 38%), radial-gradient(90% 70% at 100% 100%, rgba(0,0,0,.18), transparent 60%); }
.cardviz::after { content: ""; position: absolute; right: 7%; top: 9%; width: 9%; aspect-ratio: 1; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.85' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8.5 6.5a8 8 0 0 1 0 11'/%3E%3Cpath d='M12 4a12 12 0 0 1 0 16'/%3E%3Cpath d='M15.5 1.8a15.5 15.5 0 0 1 0 20.4'/%3E%3Cpath d='M5 9a4 4 0 0 1 0 6'/%3E%3C/svg%3E"); }
.cardviz .cv-chip { position: absolute; left: 9%; top: 36%; width: 14%; aspect-ratio: 1.32; border-radius: 16%; background: linear-gradient(135deg, #f7e3a6, #c9a24f 55%, #e9cf86); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cardviz .cv-chip::before { content: ""; position: absolute; inset: 22% 30%; border: 1px solid rgba(0,0,0,.18); border-radius: 2px; }
.cardviz .cv-name { position: absolute; left: 9%; right: 9%; bottom: 10%; font-weight: 700; font-size: 7.6cqw; line-height: 1.25; letter-spacing: .03em; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cardviz .cv-tier { position: absolute; left: 9%; top: 11%; font-size: 5cqw; font-weight: 700; letter-spacing: .16em; opacity: .9; }
.cardviz.plain { background: repeating-linear-gradient(135deg, #f3f3f3 0 10px, #ebebeb 10px 20px); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cardviz.plain::before, .cardviz.plain::after { display: none; }
.cardviz.plain .cv-name { text-shadow: none; bottom: auto; top: 14%; font-size: 7cqw; }
.cardviz.plain .cv-note { position: absolute; left: 9%; bottom: 11%; font-size: 5.4cqw; line-height: 1.4; color: var(--muted); }
.cardimg { display: block; width: 100%; height: auto; aspect-ratio: 1.586; object-fit: contain; }
.thumb { display: block; width: 132px; flex: none; }

/* ── トップ ─────────────── */
.home-hero { background: linear-gradient(160deg, #eaf5f0 0%, #f6faf8 50%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 36px; align-items: start; padding: 36px 0 44px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px 0 32px; } }
.hero-grid > * { min-width: 0; }
.hero-copy h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.4; margin-bottom: 14px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.hero-points li { padding-left: 24px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.card-fan { position: relative; height: 176px; margin: 22px 0 14px; max-width: 430px; }
.card-fan > * { position: absolute; width: 210px; }
.card-fan > :nth-child(1) { left: 0; top: 30px; transform: rotate(-9deg); }
.card-fan > :nth-child(2) { left: 104px; top: 6px; transform: rotate(-1deg); z-index: 2; }
.card-fan > :nth-child(3) { left: 208px; top: 32px; transform: rotate(8deg); z-index: 1; }
@media (max-width: 560px) { .card-fan { height: 132px; } .card-fan > * { width: 150px; } .card-fan > :nth-child(2) { left: 76px; } .card-fan > :nth-child(3) { left: 152px; } }

.finder { padding: 22px; box-shadow: 0 8px 28px rgba(0, 0, 0, .08); border: 0; }
.finder h2 { font-size: 19px; margin-bottom: 2px; }
.finder .q { margin-top: 16px; }
.finder .q > .label { font-weight: 700; font-size: 14px; margin-bottom: 7px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; cursor: pointer; color: var(--ink-2); line-height: 1.5; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid #f0b54a; outline-offset: 2px; }
.finder-results { margin-top: 18px; display: grid; gap: 10px; }
.pick { display: grid; grid-template-columns: 24px 96px minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.pick.first { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta) inset; }
.pick .rank { width: 24px; height: 24px; font-size: 12px; }
.pick.first .rank { background: var(--cta); color: #fff; }
.pick .nm { font-weight: 700; font-size: 15px; line-height: 1.4; }
.pick .why { font-size: 12px; color: var(--muted); line-height: 1.5; }
.pick .amt { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--accent-ink); font-size: 16px; }
.pick .acts { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.finder .more-link { display: block; text-align: center; margin-top: 12px; font-weight: 700; font-size: 14px; }

.purpose { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 880px) { .purpose { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.purpose a { display: block; padding: 16px 16px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.purpose a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.purpose b { display: block; font-size: 15px; margin-bottom: 4px; }
.purpose b::after { content: " ›"; color: var(--accent); }
.purpose span { font-size: 13px; color: var(--muted); line-height: 1.6; display: block; }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 880px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.tool-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tool-card .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.tool-card .ico svg { width: 26px; height: 26px; }
.tool-card h3 { font-size: 17px; }
.tool-card p { color: var(--muted); font-size: 14px; margin: 0; }
.tool-card .go { margin-top: auto; font-weight: 700; color: var(--accent-ink); font-size: 14px; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; counter-reset: pt; }
@media (max-width: 880px) { .points { grid-template-columns: minmax(0, 1fr); } }
.points li { list-style: none; padding: 22px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; counter-increment: pt; }
.points li::before { content: counter(pt); display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; line-height: 44px; font-size: 18px; }
.points li strong { display: block; font-size: 16px; margin-bottom: 6px; }
.points li p { margin: 0; color: var(--muted); font-size: 14px; text-align: left; }

/* ── シミュレーター ─────────────── */
.calc { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc > * { min-width: 0; }
.calc-inputs { position: sticky; top: 76px; background: var(--band); border: 0; }
@media (max-width: 900px) { .calc-inputs { position: static; } }
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 6px 0 0; }
.money { display: flex; align-items: center; gap: 8px; }
.money input[type="text"] { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 22px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: 0; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); }
.money input[type="text"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.money .unit { font-weight: 700; color: var(--ink-2); }
.money.sm input[type="text"] { font-size: 16px; padding: 6px 10px; }
input[type="range"] { width: 100%; margin: 12px 0 0; accent-color: var(--accent); height: 28px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presets button { font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; }
.presets button:hover { border-color: var(--accent); color: var(--accent-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
select { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); width: 100%; max-width: 100%; }
details.mix { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; }
details.mix > summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
details.mix > summary::-webkit-details-marker { display: none; }
details.mix > summary::after { content: "＋"; color: var(--muted); font-weight: 400; }
details.mix[open] > summary::after { content: "－"; }
details.mix[open] > summary { margin-bottom: 8px; }
.mix-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 8px; align-items: center; margin-bottom: 10px; }
.mix-row > label:first-child { font-size: 13px; font-weight: 700; margin: 0; line-height: 1.4; }
.mix-row select, .mix-row .check { grid-column: 2; font-size: 13px; }
.econ-h { font-weight: 800; font-size: 13px; color: var(--accent-ink); margin: 0 0 6px; }
.check input:disabled + span { opacity: .55; }

.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.results-head h2 { font-size: 20px; }
.results-head .sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.results-head .sort select { width: auto; padding: 5px 8px; }
.summary { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.summary .k { font-size: 12px; opacity: .85; }
.summary .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.4; }
.summary .row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-end; }
.summary p { margin: 8px 0 0; font-size: 13px; opacity: .95; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* 計算結果の行（カード会社の一覧のような「券面＋数字の列＋幅いっぱいのボタン」） */
.result { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.result.top { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta) inset; }
.result-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 0; }
.result-head > div { min-width: 0; }
.rank { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #ededed; color: var(--ink-2); font-weight: 800; font-size: 14px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.result.top .rank { background: var(--cta); color: #fff; }
.result .name { font-weight: 700; font-size: 17px; line-height: 1.45; }
.result .name a { color: inherit; text-decoration: none; }
.result .name a:hover { text-decoration: underline; }
.result .sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.result-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 18px; }
.result-body .thumb { width: 150px; }
.result .badges { padding: 0 18px 10px; }
.breakdown { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 18px 12px; font-size: 13px; color: var(--ink-2); }
.breakdown span b { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.breakdown .minus b { color: var(--neg); }
.result-cta { display: flex; gap: 14px; align-items: center; padding: 0 18px 14px; }
.result-cta .btn.apply { flex: 1; }
@media (max-width: 600px) {
  .result-head { padding: 12px 14px 0; }
  .result-body { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 10px 14px; }
  .result-body .thumb { width: 100px; }
  .result-body .stats-row { grid-template-columns: minmax(0, 1fr); border: 0; }
  .result-body .stats-row > div { border: 0; padding: 0; text-align: left; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .result-body .stats-row > div:first-child .v { font-size: 21px; }
  .result-body .stats-row .v { font-size: 15px; }
  .result .badges, .breakdown { padding-left: 14px; padding-right: 14px; }
  .result-cta { padding: 0 14px 12px; flex-direction: column; align-items: stretch; gap: 8px; }
  .result-cta .detail-link { text-align: center; }
}
details.more { border-top: 1px solid var(--line); background: #fcfcfc; }
details.more summary { cursor: pointer; list-style: none; padding: 10px 18px; font-size: 13px; color: var(--accent-ink); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "＋"; font-weight: 400; color: var(--muted); }
details.more[open] summary::after { content: "－"; }
details.more .body { padding: 0 18px 16px; font-size: 13px; color: var(--ink-2); }
details.more .body ul { margin: 0 0 10px; padding-left: 1.2em; }
details.more .body li { margin-bottom: 4px; }
details.more .body .small a { word-break: break-all; }

/* ── 表 ─────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
table.data thead th { background: #f4f4f4; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody th { font-weight: 700; white-space: nowrap; }
table.data td.n { font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
table.data .rate { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data .note { display: block; font-size: 12px; color: var(--muted); }
.extras-table td { font-size: 13px; }
@media (max-width: 720px) {
  table.data.stack { min-width: 0; }
  table.data.stack thead { display: none; }
  table.data.stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.data.stack tbody tr:last-child { border-bottom: 0; }
  table.data.stack th, table.data.stack td { display: block; padding: 2px 0; border: 0; white-space: normal; }
  table.data.stack tbody th { font-size: 16px; margin-bottom: 4px; }
  table.data.stack td::before { content: attr(data-label) "："; color: var(--muted); font-size: 12px; }
}

/* ── カード一覧（行） ─────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; align-items: center; }
.card-grid { display: grid; gap: 14px; }
.card-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px 24px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-item[hidden] { display: none; }
.card-item .ci-viz { grid-row: span 2; align-self: start; display: block; }
.card-item .ci-main { min-width: 0; }
.card-item h3 { font-size: 18px; line-height: 1.45; margin-bottom: 2px; }
.card-item h3 a { color: var(--ink); text-decoration: none; }
.card-item h3 a:hover { text-decoration: underline; }
.card-item .ci-net { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.card-item .ci-net b { color: var(--accent-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.card-item .feat { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; padding-left: 1.1em; }
.card-item .feat li { margin-bottom: 2px; }
.card-item .acts { grid-column: 2; display: flex; gap: 14px; align-items: center; }
.card-item .acts .btn.apply { flex: 1; max-width: 360px; }
@media (max-width: 680px) {
  .card-item { grid-template-columns: 112px minmax(0, 1fr); padding: 16px; gap: 10px 14px; }
  .card-item .ci-viz { grid-row: auto; }
  .card-item .ci-main { display: contents; }
  .card-item .ci-title { grid-column: 2; align-self: center; }
  .card-item .stats-row, .card-item .feat { grid-column: 1 / -1; }
  .card-item .feat { margin-top: 0; }
  .card-item .acts { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 8px; }
  .card-item .acts .btn.apply { max-width: none; }
  .card-item .acts .detail-link { text-align: center; }
}

/* ── カード紹介ページ ─────────────── */
.detail-top { background: linear-gradient(180deg, #eef6f2 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.detail-head { text-align: center; padding: 22px 0 4px; }
.detail-head h1 { font-size: clamp(26px, 4vw, 36px); }
.detail-head .one { color: var(--ink-2); margin: 6px 0 0; font-size: 15px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: center; padding: 22px 0 34px; }
@media (max-width: 760px) { .detail-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; } .detail-hero .viz { max-width: 300px; margin: 0 auto; width: 100%; } }
.detail-hero .viz .cardviz, .detail-hero .viz .cardimg { transform: rotate(-3deg); }
.benefit-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; text-align: center; }
.benefit-icons > div { font-size: 12px; line-height: 1.45; color: var(--ink-2); font-weight: 700; min-width: 0; }
.benefit-icons .bi { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: 0; line-height: 1.1; }
.detail-hero .stats-row { margin-bottom: 18px; }
.detail-hero .actions .btn.apply { min-width: 300px; }
@media (max-width: 560px) { .detail-hero .actions .btn.apply { width: 100%; min-width: 0; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.good-list, .care-list { margin: 0; padding: 0; list-style: none; }
.good-list li, .care-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.good-list li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.care-list li::before { content: "!"; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 800; text-align: center; line-height: 18px; }
.mini-calc .row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; }
.mini-calc .money { max-width: 260px; }
.mini-calc .out .v { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--accent-ink); }
.mini-calc .out .k { font-size: 13px; color: var(--muted); }
.mini-calc .bd { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0, 0, 0, .06); }
  .sticky-cta .nm { font-weight: 700; font-size: 14px; line-height: 1.3; min-width: 0; }
  .sticky-cta .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
  .sticky-cta .btn.apply { padding: 10px 16px; font-size: 15px; flex: none; }
  body.has-sticky { padding-bottom: 76px; }
}

/* ── 本文 ─────────────── */
.prose h2 { margin: 40px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); font-size: 22px; }
.prose h3 { margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: #f4f4f4; white-space: nowrap; }
@media (max-width: 560px) { .prose th { white-space: normal; } }
.callout { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); border-left: 4px solid var(--accent); margin: 0 0 1.2em; }
.callout p:last-child { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; display: flex; align-items: flex-start; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; text-align: center; line-height: 24px; margin-top: 2px; }
.faq summary::after { content: "＋"; color: var(--muted); font-weight: 400; margin-left: auto; }
.faq details[open] summary::after { content: "－"; }
.faq .a { padding: 0 0 15px 34px; color: var(--ink-2); }
.faq .a p:last-child { margin: 0; }
.sources { font-size: 12px; color: var(--muted); word-break: break-all; }
.sources li { margin-bottom: 4px; }

/* ── 新NISA ─────────────── */
.chart { margin-top: 8px; }
.chart svg { width: 100%; height: auto; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; }
.stats .k { font-size: 12px; color: var(--muted); }
.stats .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.stats .v.accent { color: var(--accent-ink); }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } .stats .v { font-size: 20px; } }

/* ── 2枚の使い分け ─────────────── */
.pair { margin: 0 0 16px; padding: 18px 20px; border-radius: var(--radius); background: #fffaf3; border: 1.5px solid #f1d3a2; }
.pair h3 { font-size: 17px; margin-bottom: 2px; }
.pair h3 b { color: var(--cta-ink); font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.pair .gain { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.pair .gain b { color: var(--accent-ink); }
.pair-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .pair-cards { grid-template-columns: minmax(0, 1fr); } }
.pair-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.pair-card .thumb { width: 96px; }
.pair-card .nm { font-weight: 700; font-size: 15px; line-height: 1.4; }
.pair-card .nm a { color: inherit; text-decoration: none; }
.pair-card .use { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 2px 0 4px; }
.pair-card .amt { font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: 0; margin-bottom: 8px; }
.pair-card .amt small { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 4px; }
.pair-card .btn.apply { width: 100%; }
.pair.quiet { background: #f7f7f7; border-color: var(--line); padding: 12px 16px; }
.pair.quiet p { margin: 0; font-size: 14px; color: var(--ink-2); }
.pair-hint { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: #f7f7f7; font-size: 13px; color: var(--ink-2); }
.pair-mini { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fffaf3; border: 1.5px solid #f1d3a2; font-size: 13px; line-height: 1.55; }
.pair-mini b { color: var(--cta-ink); font-size: 14px; }
.pair-mini span { color: var(--ink-2); }
.pair-mini a { font-weight: 700; }

/* ── 2枚を比べるページ ─────────────── */
.vs-cards { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 0 10px; }
.vs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; min-width: 0; }
.vs-card .viz { display: block; max-width: 230px; margin: 0 auto 14px; }
.vs-card h2 { font-size: 18px; margin-bottom: 10px; }
.vs-card h2 a { color: var(--ink); text-decoration: none; }
.vs-card .stats-row { margin-bottom: 12px; }
.vs-card .acts { display: grid; gap: 8px; }
.vs-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; letter-spacing: .04em; }
@media (max-width: 760px) {
  .vs-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .vs-mark { display: none; }
  .vs-card { padding: 12px 10px; }
  .vs-card h2 { font-size: 15px; }
  .vs-card .stats-row { grid-template-columns: minmax(0, 1fr); border: 0; }
  .vs-card .stats-row > div { border: 0; padding: 2px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; text-align: left; }
  .vs-card .stats-row .v { font-size: 15px; }
  .vs-card .btn.apply { padding: 10px 6px; font-size: 13px; letter-spacing: 0; }
  .vs-card .btn.apply::after { display: none; }
}
.conclusion .good-list li { font-size: 15px; }
.vs-table td.win { background: var(--accent-soft); font-weight: 800; color: var(--accent-ink); }
.vs-table td.win::after { content: "多い"; display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 3px; background: var(--accent); color: #fff; vertical-align: 1px; }
.vs-table td { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.spec-table td { font-size: 13px; }
.vs-calc .mix-row { grid-template-columns: 170px minmax(0, 1fr); }
@media (max-width: 560px) { .vs-calc .mix-row { grid-template-columns: 112px minmax(0, 1fr); } }
.vs-calc .vo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vs-calc .vo { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: #fff; display: grid; gap: 4px; align-content: start; min-width: 0; }
.vs-calc .vo.win { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.vs-calc .vo .k { font-size: 13px; font-weight: 700; }
.vs-calc .vo .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--accent-ink); line-height: 1.3; }
.vs-calc .vo .bd { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.vs-calc .verdict { margin: 12px 0 0; font-size: 15px; }
@media (max-width: 560px) { .vs-calc .vo .v { font-size: 19px; } }
.vs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 880px) { .vs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vs-tiles { grid-template-columns: minmax(0, 1fr); } }
.vs-tile { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.vs-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.vs-tile .vt-viz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 220px; }
.vs-tile b { font-size: 15px; line-height: 1.45; }
.vs-tile .go { font-size: 13px; font-weight: 700; color: var(--accent-ink); }

/* ── 使い方別のページ ─────────────── */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 880px) { .levels { grid-template-columns: minmax(0, 1fr); } }
.lv h3 { font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
.lv ol { margin: 0 0 10px; padding-left: 1.3em; font-size: 14px; }
.lv ol li { margin-bottom: 4px; }
.lv ol b { color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: 0; margin-left: 4px; }
.gold-list { display: grid; gap: 12px; }
.rank-at { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.gold-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.gold-item .ci-viz { display: block; }
.gold-item h3 { font-size: 17px; margin-bottom: 2px; }
.gold-item h3 a { color: var(--ink); text-decoration: none; }
.gold-item .fee { margin: 0 0 6px; font-size: 14px; }
.gold-item .be { font-size: 14px; margin: 0 0 6px; }
.gold-item .acts { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .gold-item { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px; } .gold-item .acts { flex-direction: column; align-items: stretch; } .gold-item .acts .detail-link { text-align: center; } }

/* ── カード紹介ページの「2枚目にするなら」・更新履歴 ─────────────── */
.partner-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.partner-row .thumb { width: 120px; }
.partner .plus { color: var(--cta-ink); }
@media (max-width: 560px) { .partner-row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; } .partner-row .thumb { width: 88px; } }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.updates li:last-child { border-bottom: 0; }
.updates time { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
@media (max-width: 560px) { .updates li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.recent { margin-top: 22px; }
.recent h3 { font-size: 16px; margin-bottom: 4px; }

/* ── 経済圏で選ぶ ─────────────── */
.eco-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.eco-nav a { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.eco-nav a:hover { background: var(--accent-soft); }
.eco { border-top: 1px solid var(--line); }
.eco:nth-of-type(even) { background: var(--band); }
.eco-title { margin-bottom: 14px; }
.eco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 880px) { .eco-grid { grid-template-columns: minmax(0, 1fr); } }
.eco-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.eco-col h3 { font-size: 15px; margin-bottom: 8px; }
.eco-col .good-list li { font-size: 14px; }
.eco-col.muted-col { background: #fafafa; }
.eco-col.muted-col .good-list li::before { border-color: var(--line-2); }
.eco-rank-h { font-size: 17px; margin: 24px 0 6px; }
.eco-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 14px; font-weight: 700; }

/* ── フッター ─────────────── */
.site-footer { padding: 36px 0 44px; background: #2f3a36; color: #d9e0dd; font-size: 14px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.site-footer .cols a { color: #fff; text-decoration: none; }
.site-footer .cols a:hover { text-decoration: underline; }
.site-footer p { font-size: 12px; color: #b7c2be; margin: 0 0 8px; line-height: 1.8; }
.site-footer .brand { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: 16px; letter-spacing: .06em; }
main { display: block; }
