/* 道具としての見やすさを優先：白地・灰色の罫線・ゴシック体。色は価格の赤と、リンク・ボタンの緑だけ */
:root {
  --bg: #ffffff;
  --bg-2: #f5f6f4;
  --bg-3: #eceee9;
  --text: #1c1f1d;
  --text-2: #555b57;
  --line: #dfe2de;
  --line-2: #c4c9c4;
  --green: #17633f;
  --green-2: #0f4a2e;
  --on-green: #ffffff;
  --red: #c8102e;
  --hl: #fff6cc;
  --warn: #8a4b00;
  --focus: #1a5fd0;
  --max: 960px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141615;
    --bg-2: #1c1f1d;
    --bg-3: #252926;
    --text: #eceeea;
    --text-2: #b0b6b1;
    --line: #2f3431;
    --line-2: #454b47;
    --green: #7fd3a6;
    --green-2: #a8e3c3;
    --on-green: #0d1c14;
    --red: #ff6b7d;
    --hl: #3a3412;
    --warn: #f0b46a;
    --focus: #7fb0ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif; font-size: 16px; line-height: 1.75; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { display: block; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sub { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }
.note { font-size: 14px; color: var(--text-2); }
ul.note { padding-left: 1.2em; }
.strong { font-weight: 700; color: var(--red); }

/* ヘッダー */
header.site { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--red); color: #fff; font-size: 16px; font-weight: 800; }
nav.global { display: flex; flex-wrap: wrap; gap: 0 4px; font-size: 14px; margin: 0 -8px; }
nav.global a { color: var(--text); text-decoration: none; padding: 8px; }
nav.global a:hover { text-decoration: underline; }
/* 広告表記：本文と同程度の大きさ */
.pr { margin: 0; background: var(--bg-2); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; padding: 6px 0; color: var(--text); }
.pr-label { display: inline-block; border: 1px solid var(--text); font-size: 12px; font-weight: 700; line-height: 1.3; padding: 0 4px; margin-right: 6px; }

main { padding: 16px 0 56px; }
h1 { font-size: clamp(23px, 5vw, 30px); line-height: 1.4; margin: 8px 0 8px; font-weight: 800; }
.h1-sub { display: block; font-size: 0.6em; font-weight: 700; color: var(--text-2); margin-top: 2px; }
h2 { font-size: 20px; line-height: 1.5; margin: 44px 0 12px; padding-left: 10px; border-left: 4px solid var(--green); font-weight: 800; }
h3 { font-size: 17px; margin: 0; }
.lead { margin: 0 0 12px; }
.meta { display: block; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--text-2); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--text-2); }

/* 条件フォーム（検索ボックスのように） */
.calc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.calc h2 { margin: 0 0 10px; border: 0; padding: 0; font-size: 17px; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields > label:first-child { grid-column: 1 / -1; } }
label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); }
select { width: 100%; margin-top: 4px; min-height: 46px; padding: 8px 10px; font: inherit; font-size: 16px; font-weight: 700; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; }
.filters { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.filters legend { float: left; font-size: 13px; font-weight: 700; color: var(--text-2); margin-right: 8px; padding: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 400; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }

/* 結果 */
.result-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; margin-top: 24px; }
.result-head h2 { margin: 0; }
.cond { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-2); }
.rank-list { list-style: none; padding: 0; margin: 10px 0 0; border-top: 2px solid var(--text); }
.row { border-bottom: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main act" "sub act"; gap: 2px 16px; align-items: center; }
.row.top { background: var(--hl); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.row-main { grid-area: main; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; }
.no { font-size: 20px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.row.top .no { color: var(--red); }
.name { font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; }
.name:hover { text-decoration: underline; }
.plan { margin: 0; font-size: 13px; color: var(--text-2); }
.approx { color: var(--warn); }
.price { margin: 0; text-align: right; white-space: nowrap; line-height: 1.15; }
.price .lbl { display: block; font-size: 11px; color: var(--text-2); }
.price .yen { color: var(--red); font-size: 14px; font-weight: 700; }
.price b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.row-sub { grid-area: sub; padding-left: 38px; }
.facts-line { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.warn-text { color: var(--warn); margin-left: 6px; }
.r-note { margin: 0; font-size: 13px; color: var(--warn); }
.row-act { grid-area: act; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 132px; }
.r-detail summary { cursor: pointer; font-size: 14px; color: var(--green); text-align: center; min-height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 6px; }
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; grid-template-areas: "main" "sub" "act"; }
  .row-sub { padding-left: 38px; }
  .row-act { flex-direction: row; flex-wrap: wrap; padding-left: 38px; min-width: 0; }
  .row-act > * { flex: 1; }
  .r-detail[open] { flex-basis: 100%; }
  .price b { font-size: 24px; }
}

/* ○△の印 */
.marks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 13px; }
.marks li { white-space: nowrap; }
.marks .m { font-weight: 700; margin-right: 2px; }
.marks .good .m { color: var(--green); }
.marks .warn { color: var(--warn); }
.marks .neutral { color: var(--text-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--line-2); color: var(--text); background: var(--bg); line-height: 1.3; }
.btn:hover { background: var(--bg-2); color: var(--text); }
.btn.go { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn.go::after { content: "›"; margin-left: 6px; font-size: 1.2em; line-height: 1; }
.btn.go:hover { background: var(--green-2); border-color: var(--green-2); color: var(--on-green); }

.excluded { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.excluded-title { margin: 0; font-weight: 700; color: var(--text); }
.excluded ul { margin: 0; padding-left: 1.2em; }

/* 内訳 */
.breakdown { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; background: var(--bg); }
.breakdown th, .breakdown td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.breakdown thead th { font-size: 12px; color: var(--text-2); font-weight: 400; }
.breakdown tfoot th, .breakdown tfoot td { font-weight: 800; border-bottom: 0; }

/* 表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table caption { caption-side: top; text-align: left; font-size: 13px; color: var(--text-2); padding-bottom: 6px; }
.table th, .table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { background: var(--bg-2); font-size: 13px; color: var(--text-2); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.table tbody th { font-weight: 700; }
.table tr.self { background: var(--hl); }
.svc-table .marks { margin: 0; }
.ship-table th, .ship-table td { padding: 8px 6px; font-size: 14px; }
.ship-table thead th a { color: var(--text); }
.sim-total { font-size: 16px; margin: 12px 0 0; }
.sim-total strong { color: var(--red); font-size: 22px; font-variant-numeric: tabular-nums; }

/* 要点（サービス別の冒頭） */
.svc-head { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.svc-head h1 { margin: 0; }
.answer { margin: 14px 0 8px; padding: 12px 14px; border: 2px solid var(--green); border-radius: 8px; }
.answer p { margin: 0; }
.answer strong { color: var(--red); }

.terms { margin: 0; border-top: 1px solid var(--line-2); }
.terms div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .terms div { grid-template-columns: 1fr; gap: 0; } }
.terms dt { font-weight: 700; font-size: 14px; color: var(--text-2); }
.terms dd { margin: 0; }
.caution { margin: 12px 0 0; padding: 10px 14px 10px 2em; background: var(--hl); border-radius: 6px; font-size: 15px; }
.facts { margin: 8px 0 0; font-size: 14px; display: grid; gap: 2px; }
.facts div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; }
details.sources { margin-top: 10px; font-size: 14px; }
details.sources summary { cursor: pointer; color: var(--green); }
details.sources ul { padding-left: 1.2em; }
details.sources a { word-break: break-all; }
.cta-box { margin: 32px 0 12px; padding: 16px; background: var(--bg-2); border-radius: 8px; text-align: center; }
.cta-box p { margin: 0 0 10px; }

/* 頭文字マーク（各社ロゴではない） */
.mono { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 5px; background: var(--hue); color: #fff; font-size: 12px; font-weight: 800; vertical-align: -4px; }
.mono.sm { width: 20px; height: 20px; font-size: 11px; }
.mono.lg { width: 48px; height: 48px; font-size: 24px; border-radius: 10px; margin: 0; flex: none; }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 28px 12px 0; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--green); font-weight: 800; margin-right: 8px; }
.faq summary::after { content: "＋"; position: absolute; right: 4px; color: var(--text-2); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 14px; padding-left: 22px; }

/* このサイトについて */
.about-site { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; margin-top: 44px; padding: 16px; background: var(--bg-2); border-radius: 8px; }
.about-site img { width: 100%; height: auto; border-radius: 6px; }
.about-site h2 { margin-top: 0; }
@media (max-width: 640px) { .about-site { grid-template-columns: 1fr; } .about-site img { max-width: 320px; } }

.prose { max-width: 760px; }
.prose li { margin: 4px 0; }

/* スマホ：結果を見ている間の条件バー */
.cond-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--text); color: var(--bg); font-size: 14px; font-weight: 700; }
.cond-bar a { color: var(--bg); white-space: nowrap; }
.cond-bar[hidden] { display: none; }
@media (min-width: 761px) { .cond-bar { display: none !important; } }

footer.site { border-top: 1px solid var(--line); background: var(--bg-2); padding: 20px 0 40px; font-size: 13px; color: var(--text-2); }
footer.site nav { display: flex; gap: 2px 14px; flex-wrap: wrap; margin-bottom: 8px; }
footer.site a { color: var(--text-2); }
footer.site p { margin: 4px 0; }
/* 横にスクロールする表：左の列を固定し、地域名を折り返さない */
.ship-table th[scope="row"], .ship-table thead th:first-child { position: sticky; left: 0; z-index: 1; white-space: nowrap; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
.ship-table thead th:first-child { background: var(--bg-2); }
.ship-table thead th { white-space: nowrap; }
