:root {
  --ink: #0b1f3a;
  --blue: #0865c7;
  --blue-deep: #043b7d;
  --sky: #eaf5ff;
  --aqua: #18d4d6;
  --line: #d9e5f2;
  --paper: #ffffff;
  --mist: #f6faff;
  --soft-ink: #52708c;
  --warning: #fff5d6;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(12, 54, 101, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.65;
}
button, a { font: inherit; }
a { color: inherit; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 20;
  padding: 8px 12px; background: var(--paper); border-radius: 8px;
}
.skip-link:focus { left: 8px; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(850px, calc(100% - 40px)); }

.site-header {
  position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 229, 242, 0.8); backdrop-filter: blur(14px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-logo { display: block; width: 132px; height: auto; max-height: 56px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav a { color: #365470; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.language-switcher { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.language-button { border: 0; cursor: pointer; padding: 4px 8px; border-radius: 7px; color: #557089; background: transparent; font-size: 0.72rem; font-weight: 700; }
.language-button.is-active { background: var(--ink); color: #fff; }

.hero { overflow: hidden; padding: 70px 0 52px; background: linear-gradient(120deg, #f5fbff 0%, #eaf6ff 53%, #dff8fc 100%); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; align-items: center; gap: 42px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--blue); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.12em; }
.hero h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.23; }
/* 見出しは文節（.phrase、app.js の文言の "\n"）の切れ目で折り返す。ヒーローの見出しは、長い方の文節
   （約9.6字分）が1行に収まる大きさにする——列の幅に比例（cqi）させるので、どの画面幅でも「を、」「く。」が
   1行に取り残されない（2026-10-26）。cqi を知らない古いブラウザは前の行の clamp を使う */
.phrase { display: inline-block; }
.hero h1, h2 { text-wrap: balance; }
.hero-copy { container-type: inline-size; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(2.2rem, 4.3vw, 3.4rem); font-size: min(3.4rem, 9.4cqi); }
.hero-lead { max-width: 580px; margin: 22px 0; color: #31536f; font-size: 1rem; }
.hero-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-radius: 13px; background: #fff; box-shadow: 0 8px 26px rgba(12, 77, 137, 0.1); color: #43627d; font-size: 0.84rem; font-weight: 700; }
.hero-price strong { color: var(--blue); font-size: 1.75rem; letter-spacing: -0.06em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font-weight: 800; text-align: center; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 20px rgba(8, 101, 199, 0.24); }
.button-primary:hover { background: var(--blue-deep); }
.button-ghost { color: var(--blue-deep); border-color: #a4cdea; background: rgba(255,255,255,0.64); }
.button-white { color: var(--blue-deep); background: #fff; }
.button-full { width: 100%; }
.microcopy { margin: 12px 0 0; color: #66819a; font-size: 0.76rem; }
.hero-visual { position: relative; min-height: 340px; }
.hero-visual img { position: relative; z-index: 1; display: block; width: 100%; max-width: 540px; margin-left: auto; border-radius: 28px; box-shadow: var(--shadow); object-fit: cover; }
.signal { position: absolute; z-index: 0; border: 2px solid rgba(24, 212, 214, 0.45); border-radius: 50%; }
.signal-one { width: 260px; height: 260px; right: -38px; top: 14px; }
.signal-two { width: 370px; height: 370px; right: -82px; top: -40px; }
.hero-float-card { position: absolute; z-index: 2; left: 0; bottom: 18px; display: flex; align-items: center; gap: 9px; max-width: 235px; padding: 13px 15px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 0.82rem; font-weight: 800; }
.float-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e4fbfa; color: #038f93; }

.trust-bar { background: var(--blue-deep); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { display: grid; gap: 2px; padding: 20px 28px; border-right: 1px solid rgba(255,255,255,0.16); }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong { font-size: 0.91rem; }
.trust-grid span { color: #c7dff7; font-size: 0.75rem; }

.section { padding: 88px 0; }
.section h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 3rem); }
.section-lead { color: #4e6d88; }
.intro { background: var(--paper); }
.sim-comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 38px; }
.comparison-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); }
.comparison-card-data { background: #f3f9ff; border-color: #cce7ff; }
.comparison-card-voice { background: #f2ffff; border-color: #bdecee; }
.card-tag { margin: 0; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
.comparison-card-data .card-tag { color: var(--blue); }
.comparison-card-voice .card-tag { color: #078f93; }
.comparison-card h3 { margin: 8px 0; font-size: 1.6rem; }
.comparison-card p:not(.card-tag) { min-height: 76px; color: #496985; font-size: 0.92rem; }
.text-link { color: var(--blue); font-size: 0.9rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.plans-section { background: var(--mist); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading > p { max-width: 420px; margin: 0; color: #58748d; font-size: 0.92rem; }
.plan-builder { display: grid; grid-template-columns: 1.34fr 0.66fr; gap: 26px; align-items: stretch; }
.plan-controls, .selected-plan, .payment-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 26px rgba(18, 66, 111, 0.05); }
.plan-controls { padding: 30px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 26px; }
legend { padding: 0; margin-bottom: 10px; font-weight: 900; font-size: 0.92rem; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.segment, .data-option { min-height: 44px; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; color: #385a76; background: #fff; font-weight: 800; }
.segment.is-active, .data-option.is-active { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 6px 16px rgba(8, 101, 199, 0.2); }
.data-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.data-option { padding: 8px 4px; font-size: 0.85rem; }
.plan-note { min-height: 24px; margin: 24px 0 0; color: #7d5721; font-size: 0.8rem; }
.selected-plan { display: flex; flex-direction: column; padding: 30px; color: #fff; border-color: var(--blue-deep); background: linear-gradient(145deg, var(--blue-deep), var(--blue)); }
.selected-label { margin: 0; color: #b9ddff; font-size: 0.78rem; font-weight: 800; }
.selected-plan h3 { margin: 12px 0 4px; font-size: 1.7rem; }
.selected-plan > p:not(.selected-small):not(.selected-label) { margin: 0; color: #d0e8ff; font-size: 0.82rem; }
.selected-price { margin: auto 0 22px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.2); }
.selected-price strong { font-size: 2.5rem; letter-spacing: -0.07em; }
.selected-price span { color: #d7edff; font-size: 0.82rem; }
.selected-small { margin: 13px 0 0; color: #d4e8ff; font-size: 0.75rem; text-align: center; }

.payment-section { background: #fff; }
.payment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.payment-card { padding: 28px; }
.payment-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--blue); background: var(--sky); font-size: 1.15rem; font-weight: 900; }
.payment-card h3 { margin: 18px 0 7px; font-size: 1.3rem; }
.payment-card p { color: #55728c; font-size: 0.9rem; }
.payment-manuals { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.flow-section { background: var(--mist); }
.flow-list { display: grid; gap: 0; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.flow-list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.flow-list li > span { color: var(--aqua); font-size: 1.22rem; font-weight: 900; }
.flow-list h3 { margin: 0; font-size: 1.08rem; }
.flow-list p { margin: 5px 0 0; color: #59758e; font-size: 0.87rem; }

.support-section { padding: 0; background: var(--blue-deep); color: #fff; }
.support-panel { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; padding: 68px 0; }
.section-kicker.light { color: var(--aqua); }
.support-panel h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.support-panel p:not(.section-kicker) { color: #c8e1fa; }
.support-actions { display: grid; gap: 10px; justify-items: stretch; }
.support-actions > p { margin: 0; text-align: center; font-size: 0.78rem; }

.faq-section { background: #fff; }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; cursor: pointer; padding: 20px 30px 20px 0; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: 4px; content: "+"; color: var(--blue); font-size: 1.45rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -2px 0 20px; color: #56738c; font-size: 0.9rem; }

.site-footer { padding: 45px 0 22px; color: #d7e6f6; background: #081d35; }
.brand-footer { padding: 5px 8px; border-radius: 10px; background: #fff; }
.brand-footer .brand-logo { width: 154px; max-height: 72px; }
.site-footer p { color: #a5bfd7; font-size: 0.83rem; }
.footer-grid { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: 0.8rem; }
.footer-links a { color: #d7e6f6; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.13); color: #8eabc3; font-size: 0.72rem; }

button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

@media (max-width: 820px) {
  .container { width: min(100% - 32px, 680px); }
  .main-nav { display: none; }
  .header-inner { gap: 12px; min-height: 63px; }
  .language-switcher { margin-left: auto; }
  .hero { padding: 48px 0 42px; }
  .hero-grid, .plan-builder, .support-panel { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; min-height: auto; margin-top: 8px; }
  .hero-visual img { max-width: 100%; }
  .hero h1 { font-size: clamp(1.7rem, 8.4vw, 3rem); font-size: min(3rem, 9.4cqi); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div, .trust-grid > div:first-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section { padding: 62px 0; }
  .sim-comparison, .payment-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .segmented-control { grid-template-columns: 1fr; }
  .data-options { grid-template-columns: repeat(3, 1fr); }
  .selected-plan { min-height: 300px; }
  .support-panel { gap: 28px; padding: 54px 0; }
  .footer-grid, .footer-bottom { align-items: start; flex-direction: column; }
  .footer-links { justify-content: start; }
}

@media (max-width: 420px) {
  .brand-logo { width: 116px; max-height: 50px; }
  .language-button { padding: 4px 6px; font-size: 0.67rem; }
  .hero-actions .button { width: 100%; }
  .hero-float-card { left: 10px; bottom: 10px; }
}
