/* 電波くらべ — サイト共通
   アプリと同じ紺を地の色に。会社の色は名札だけに使う（アプリと同じ決まり）。 */

:root {
  --bg: #f3f5f9;
  --paper: #ffffff;
  --ink: #1b2233;
  --text: #3d4659;
  --sub: #667085;
  --rule: #dde3ec;
  --navy: #0b2d6b;
  --navy-2: #123d8c;
  --blue: #1565c0;
  --tint: #e6eefb;
  --good: #1e8e3e;
  --docomo: #cc0033;
  --au: #eb5505;
  --sb: #4a5561;
  --rakuten: #e5007f;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
  --wrap: 1040px;
  --nav: 56px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --paper: #121b2e;
    --ink: #eef2f8;
    --text: #c5cddb;
    --sub: #8f9bb0;
    --rule: #24304a;
    --navy: #0e2a5e;
    --navy-2: #1a438f;
    --blue: #7fb0ff;
    --tint: #18284a;
    --good: #5cc97b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 18px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--paper); padding: 8px 12px; }

/* ナビ */
.gnav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.gnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.site-nav a { color: var(--text); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.site-nav .pill { color: #fff; background: var(--navy-2); padding: 5px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .hide-s { display: none; } .site-nav { gap: 14px; } }

/* ボタン */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 12px; font-weight: 700; font-size: 17px; line-height: 1.3; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 400; opacity: .8; }
.btn:hover { filter: brightness(1.15); }
.note { font-size: 14px; color: var(--sub); }

/* 冒頭 */
.hero { padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.kicker { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 20px; letter-spacing: 0; }
.hero h1 span { display: inline-block; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink); margin-bottom: 28px; }
.carriers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.carriers li { color: #fff; font-weight: 700; font-size: 14px; padding: 2px 10px; border-radius: 6px; }
.c-docomo { background: var(--docomo); } .c-au { background: var(--au); } .c-sb { background: var(--sb); } .c-rakuten { background: var(--rakuten); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { max-width: 280px; margin: 0 auto; } }

/* スマホの枠 */
.phone { border-radius: 34px; padding: 10px; background: #0d1424; box-shadow: 0 30px 60px -20px rgba(11, 45, 107, .45), 0 0 0 1px rgba(255,255,255,.08) inset; }
.phone img { border-radius: 26px; width: 100%; }

/* 区切り */
section.block { padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--rule); }
section.alt { background: var(--paper); }
.narrow { max-width: 760px; }

/* 画面 */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 16px; }
.shots figcaption b { display: block; color: var(--ink); font-size: 18px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* 手順 */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 64px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; }
section.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-2); color: #fff; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.steps p:last-child { margin-bottom: 0; }

/* 箇条書き */
ul.plain { padding-left: 1.2em; margin: 0 0 1em; }
ul.plain li { margin: 4px 0; }

/* 仕様の表 */
.spec { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 32%; color: var(--ink); font-weight: 700; background: var(--tint); }
@media (max-width: 560px) { .spec th, .spec td { display: block; width: 100%; } .spec th { border-bottom: 0; padding-bottom: 4px; } }

/* よくある質問 */
.faq details { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; margin: 0 0 10px; }
section.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; color: var(--ink); font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--sub); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 18px 14px; }
.faq .a p:last-child { margin-bottom: 0; }

/* 締め */
.closing { text-align: center; background: var(--navy); color: #dfe8fa; }
.closing h2 { color: #fff; }
.closing h2 span { display: inline-block; }
.closing .btn { background: #fff; color: var(--navy); }
.closing .note { color: #b4c3e3; }

/* 下層ページ */
.page { padding: clamp(32px, 5vw, 56px) 0 72px; }
.page h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.page h2 { font-size: 24px; margin: 44px 0 12px; padding-top: 4px; }
.page .meta { color: var(--sub); font-size: 14px; }
.crumbs { font-size: 13px; color: var(--sub); margin: 0 0 18px; padding: 0; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--sub); }
.page table.data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.page table.data th, .page table.data td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.page table.data th { background: var(--tint); color: var(--ink); }
.callout { background: var(--tint); border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.callout p:last-child { margin-bottom: 0; }

/* フッター */
.foot { border-top: 1px solid var(--rule); padding: 36px 0 48px; font-size: 13px; color: var(--sub); line-height: 1.8; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; font-size: 14px; }
.foot nav a { color: var(--text); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--sub); }
