/* styles.css - ダークモード基調 ゲーミング・テック系デザイン（外部フォント不使用） */
:root {
  --bg: #0a0e17;
  --bg-elev: #111827;
  --bg-card: #151d2e;
  --border: #24304a;
  --text: #e6edf7;
  --text-muted: #9aa8c1;
  --accent: #00e5ff;
  --accent-2: #ff2bd6;
  --accent-3: #7cff6b;
  --warn: #ffb020;
  --danger: #ff5c7a;
  --au: #ff7a1a;
  --bb: #3d8bff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 0 24px rgba(0, 229, 255, 0.18);
  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 43, 214, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(0, 229, 255, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--accent);
  color: #000;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* PR表記 */
.pr-banner {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
  background: #070a11;
  border-bottom: 1px solid var(--border);
}

.pr-tag {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0 0.5em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  color: #000;
  background: var(--warn);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.site-logo {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.site-logo span {
  color: var(--accent-2);
  margin: 0 0.15em;
}
.nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
}

/* ヒーロー */
.hero {
  padding: 72px 0 40px;
}
.hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.hero__title {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  line-height: 1.3;
  font-weight: 900;
}
.grad {
  background: linear-gradient(90deg, var(--au), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad--alt {
  background-image: linear-gradient(90deg, var(--accent), var(--bb));
}
.hero__lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero__lead strong {
  color: var(--text);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 24px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  color: #000;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}
.btn--cta {
  width: 100%;
  color: #fff;
  background: linear-gradient(90deg, var(--au), #ff3d6e);
  box-shadow: 0 6px 22px rgba(255, 122, 26, 0.25);
}
.btn--cta-alt,
#result-bbExcite .btn--cta {
  background: linear-gradient(90deg, var(--bb), #7a5cff);
  box-shadow: 0 6px 22px rgba(61, 139, 255, 0.25);
}
.btn--x {
  color: #fff;
  background: #000;
  border: 1px solid #3a3a3a;
}
.btn--x:hover {
  box-shadow: 0 0 0 1px #fff;
}

/* セクション */
.section {
  padding: 56px 0;
}
.section--sim {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.2));
  border-block: 1px solid var(--border);
}
.section__title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
}
.section__title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-right: 12px;
  vertical-align: -0.12em;
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 3px;
}
.section__lead {
  margin: 0 0 28px;
  color: var(--text-muted);
}
.noscript {
  color: var(--warn);
}

/* サマリーカード */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.summary-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--au);
  border-radius: var(--radius);
}
.summary-card--bbExcite {
  border-top-color: var(--bb);
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
}
.summary-card__name {
  margin: 10px 0 0;
  font-size: 1.25rem;
}
.summary-card__agency {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.spec-list {
  margin: 0 0 16px;
}
.spec-list__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.spec-list dt {
  color: var(--text-muted);
  flex-shrink: 0;
}
.spec-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}
.pros,
.cons {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.pros li,
.cons li {
  position: relative;
  padding-left: 1.5em;
  margin: 6px 0;
}
.pros li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-3);
}
.cons li::before {
  content: "!";
  position: absolute;
  left: 0.3em;
  font-weight: 900;
  color: var(--danger);
}

/* シミュレーターフォーム */
.sim-form {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field legend,
.field__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.field--row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
output {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
}
.seg-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seg-control label {
  position: relative;
  flex: 1 1 160px;
}
.seg-control input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.seg-control span {
  display: block;
  padding: 10px 14px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.seg-control input:checked + span {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--shadow-glow);
  color: var(--accent);
  font-weight: 700;
}
.seg-control input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
select:disabled {
  opacity: 0.45;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 28px;
}
.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.toggle__ui {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.15s;
}
.toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}
.toggle input:checked + .toggle__ui {
  background: var(--accent-3);
}
.toggle input:checked + .toggle__ui::after {
  transform: translateX(20px);
}
.toggle input:focus-visible + .toggle__ui {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 結果 */
.result {
  margin-top: 28px;
}
.saving-headline {
  margin: 0 0 20px;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  background: rgba(124, 255, 107, 0.08);
  border: 1px solid rgba(124, 255, 107, 0.4);
  border-radius: var(--radius);
}
.saving-amount {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--accent-3);
  text-shadow: 0 0 18px rgba(124, 255, 107, 0.45);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.result-col {
  position: relative;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.result-col.is-winner {
  border-color: var(--accent-3);
  box-shadow: 0 0 0 1px var(--accent-3), 0 0 32px rgba(124, 255, 107, 0.2);
}
.result-col.is-unavailable {
  opacity: 0.6;
}
.winner-badge {
  position: absolute;
  top: -14px;
  right: 16px;
  margin: 0;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #000;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  border-radius: 999px;
}
.winner-badge[hidden] {
  display: none;
}
.result-col__name {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.result-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--warn);
  background: rgba(255, 176, 32, 0.08);
  border-left: 3px solid var(--warn);
  border-radius: 4px;
}
.result-list {
  margin: 0 0 20px;
}
.result-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}
.result-list dt {
  color: var(--text-muted);
  flex-shrink: 0;
}
.result-list dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
}
.result-list__row--main dd {
  font-size: 1.7rem;
  color: var(--accent);
}
.result-list__row--minus dd {
  color: var(--accent-3);
}
.cta-pr {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.breakeven {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.breakeven__title {
  margin: 0 0 4px;
  font-size: 1rem;
}
.breakeven__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.seg {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--text-muted);
  background: var(--bg-elev);
}
.seg--auHikari {
  border-left-color: var(--au);
}
.seg--bbExcite {
  border-left-color: var(--bb);
}
.seg__range {
  font-family: var(--font-mono);
  font-weight: 700;
}
.seg__who {
  color: var(--text-muted);
}

.share {
  margin-top: 24px;
  text-align: center;
}
.disclaimer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 技術比較 */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.tech-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tech-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--accent);
}
.tech-card p {
  margin: 0 0 12px;
  font-size: 0.93rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tech-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tech-table caption {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  background: var(--bg-elev);
}
.tech-table th,
.tech-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}
.tech-table thead th {
  color: var(--accent);
  background: var(--bg-elev);
}
.tech-table tbody th {
  width: 160px;
  color: var(--text-muted);
  font-weight: 700;
}
.cta-box {
  margin-top: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cta-box .cta-pr {
  margin: 0 0 12px;
}
.cta-box__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.faq summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
}
.faq details[open] summary {
  color: var(--accent);
}
.faq details p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--text-muted);
}

/* フッター */
.site-footer {
  padding: 32px 0 48px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.site-footer__updated {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .hero {
    padding: 48px 0 24px;
  }
  .sim-form,
  .result-col,
  .summary-card,
  .tech-card {
    padding: 18px;
  }
  .result-list__row--main dd {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
