/* =====================================================
   simulator.css — Plan cards & comparison styles
   ===================================================== */

/* ─── Hero ─── */
.sim-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sim-hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img-desk { width: 100%; height: 100%; object-fit: cover; }
.hero-img-mob  { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(7,12,26,0.92) 0%,
    rgba(7,12,26,0.75) 50%,
    rgba(7,12,26,0.4) 100%
  );
}
.sim-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 40px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 20px 0 28px;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.hero-stat { text-align: center; padding: 0 24px; }
.hero-stat span { display: block; font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.hero-stat small { font-size: 0.78rem; color: var(--text-secondary); }
.hero-stat-div { width: 1px; height: 36px; background: var(--border); }
.hero-cta { margin-top: 8px; }

/* ─── ヒーローの文字色 ──────────────────────────────────────────
   ★ここだけは白系の文字で固定する。
     ページ全体は白基調（本文は濃い色）だが、ヒーローは
     「暗い写真＋暗いフィルター」の上に文字を置いているため、
     本文と同じ濃い色にすると ★暗い上に暗い文字＝読めない★ になる。
     フロント（index-front.php）も、ヒーローだけは写真に合わせた
     文字色にして、その下から白基調に戻る作りで揃えている。
   ★.sim-hero の中だけに閉じること。外に出すと白基調のページに
     白い文字が漏れて消える。 */
.sim-hero h1            { color: #ffffff; }
.sim-hero .text-gold    { color: #f0c869; }          /* 暗い写真の上では明るい金 */
.sim-hero .hero-desc    { color: rgba(255,255,255,0.86); }
.sim-hero .hero-stat span  { color: #ffffff; }
.sim-hero .hero-stat small { color: rgba(255,255,255,0.72); }
.sim-hero .hero-stat-div   { background: rgba(255,255,255,0.28); }
.sim-hero .gold-divider    { background: #f0c869; }
.sim-hero .badge-gold {
  background: rgba(240,200,105,0.16);
  border-color: rgba(240,200,105,0.45);
  color: #f5d98c;
}

/* ─── Section header ─── */
.section-header { margin-bottom: 48px; }
.section-header p { margin-top: 12px; font-size: 0.95rem; }

/* ─── Plan cards grid ─── */
.plan-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ─── Carrier group ─── */
.carrier-group { }
.carrier-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.carrier-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.carrier-badge {
  font-size: 0.75rem;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(18,128,127,0.30);
  border-radius: 20px;
  padding: 2px 10px;
}
.plan-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plan-throttle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  overflow: hidden;
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(7,12,26,0.14);
}
.plan-featured {
  border-color: var(--gold-dim);
  background: linear-gradient(160deg, rgba(168,131,42,0.10) 0%, rgba(255,255,255,0) 60%);
  transform: scale(1.03);
}
.plan-featured:hover { transform: scale(1.03) translateY(-6px); }

.plan-featured-ribbon {
  position: absolute;
  top: 18px; right: -28px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 36px;
  transform: rotate(45deg);
  transform-origin: center;
}

.plan-sim-img {
  width: 100%;
  aspect-ratio: 5/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-mid);
}
.plan-sim-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.plan-card:hover .plan-sim-img img { transform: scale(1.04); }

.plan-header { margin-bottom: 20px; }
.plan-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 8px 0 12px;
  color: var(--text-primary);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}
.price-unit { font-size: 0.85rem; color: var(--text-secondary); }
.price-jpy-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.plan-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 14px 0;
  margin-bottom: 20px;
}
.plan-stat { flex: 1; text-align: center; }
.stat-val { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.stat-lbl { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.plan-stat-divider { width: 1px; height: 32px; background: var(--border); }

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-features li:last-child { border-bottom: none; }
.feat-check { color: var(--teal); font-size: 0.9rem; }

.plan-buy-btn { margin-top: 4px; }

/* ─── Comparison table ─── */
.compare-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}
.compare-tbl th, .compare-tbl td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-tbl th {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--bg-card);
}
.compare-tbl .col-attr { width: 200px; }
.compare-tbl .col-featured {
  background: rgba(168,131,42,0.07);
}
.compare-tbl tbody tr:hover { background: var(--bg-mid); }
.compare-tbl tfoot td { border-bottom: none; padding-top: 20px; }
.compare-group-row td {
  background: var(--bg-mid);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-top: 1px solid var(--border-strong);
}

/* ─── How it works ─── */
.how-section {
  position: relative;
  overflow: hidden;
}
.how-bg {
  position: absolute;
  inset: 0;
}
.how-bg img { width: 100%; height: 100%; object-fit: cover; }
/* ★白基調に合わせて、写真の上を白く透かす。
     ここを濃紺のままにすると、白いページの真ん中に黒い帯が残り、
     さらに本文が濃い色なので「暗い上に暗い文字」で読めなくなる。 */
.how-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.90);
}
.how-section .container { position: relative; z-index: 1; }

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.how-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.how-step-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 2px solid var(--border-strong);
}
.how-step-img img { width: 100%; height: 100%; object-fit: cover; }
.how-step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 12px;
}
.how-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.how-step p  { font-size: 0.875rem; }
.how-step-arrow {
  font-size: 1.5rem;
  color: var(--border-strong);
  margin-top: 60px;
  padding: 0 8px;
  flex-shrink: 0;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .plan-cards-row { grid-template-columns: 1fr 1fr; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-6px); }
  .steps-grid { flex-direction: column; align-items: center; gap: 32px; }
  .how-step-arrow { transform: rotate(90deg); margin: 0; }
  .hero-img-desk { display: none; }
  .hero-img-mob  { display: block; width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 640px) {
  .plan-cards-row { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .sim-hero { min-height: 100svh; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 12px; }
}
