/* ===========================
   価格シミュレーター専用スタイル
   =========================== */

/* ── シミュレーターメイン ── */
.sim-main { padding-top: 72px; min-height: 100vh; background: #f8fafc; }

/* ── ヒーロー ── */
.sim-hero {
  background: linear-gradient(135deg, #fffde7 0%, #fff9c4 40%, #e6b800 80%, #e6b800 100%);
  padding: 56px 24px 48px;
  text-align: center;
}
.sim-hero-inner { max-width: 680px; margin: 0 auto; }
.sim-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,0.2);
  border: 2px solid rgba(212,160,23,0.6);
  color: #5a3c00;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.sim-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #1a1200;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(255,255,255,0.6);
}
.sim-hero .highlight {
  background: linear-gradient(135deg, #f59e0b, #ffe066);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sim-hero p { color: rgba(50,30,0,0.75); font-size: 0.95rem; line-height: 1.8; }

/* ── ステップバー ── */
.sim-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
}
.sim-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.sim-step-indicator span {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}
.sim-step-indicator.active .step-circle {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(26,86,219,0.15);
}
.sim-step-indicator.active span { color: var(--primary); font-weight: 700; }
.sim-step-indicator.completed .step-circle {
  background: #10b981;
  color: white;
}
.sim-step-indicator.completed span { color: #10b981; }
.step-connector {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  min-width: 32px;
  max-width: 80px;
  margin-bottom: 24px;
  transition: background 0.3s;
}
.step-connector.completed { background: #10b981; }

/* ── コンテンツレイアウト ── */
.sim-body { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
.sim-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* ── ステップパネル ── */
.sim-form-wrap { min-width: 0; }
.sim-step-panel { display: none; }
.sim-step-panel.active { display: block; animation: fadeInUp 0.4s ease; }

.step-header { margin-bottom: 32px; }
.step-num-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.step-num-badge.result { background: linear-gradient(135deg, #10b981, #059669); }
.step-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.step-header p { font-size: 0.88rem; color: var(--gray); }

/* ── フォームセクション ── */
.form-section { margin-bottom: 32px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
}
.form-label i { color: var(--primary); }

/* ── 選択カード ── */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.type-grid { grid-template-columns: repeat(2, 1fr); }
.region-grid { grid-template-columns: repeat(4, 1fr); }
.choice-wide { flex-direction: row !important; gap: 12px !important; align-items: center !important; text-align: left !important; }
.choice-wide .choice-icon-lg { flex-shrink: 0; }

.choice-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  position: relative;
}
.choice-card input { display: none; }
.choice-card:hover { border-color: var(--primary); background: var(--primary-light); }
.choice-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.choice-card:has(input:checked)::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.choice-icon {
  font-size: 1.4rem;
  color: var(--primary);
  display: flex;
  gap: 2px;
}
.choice-icon-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 50px;
}
.choice-title { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.choice-desc { font-size: 0.75rem; color: var(--gray); line-height: 1.4; }
.choice-price-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

/* ── オプションカード ── */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.option-card input { display: none; }
.option-card:hover { border-color: var(--primary); }
.option-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.option-check {
  width: 22px; height: 22px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}
.option-card:has(input:checked) .option-check {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.option-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.option-info { flex: 1; min-width: 0; }
.option-name { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.option-desc { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }
.option-price { font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-top: 4px; }

/* ── カラーグリッド ── */
.color-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.color-card input { display: none; }
.color-swatch {
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.color-card:has(input:checked) .color-swatch {
  box-shadow: 0 0 0 3px white, 0 0 0 5px var(--primary);
  transform: scale(1.1);
}
.color-card span { font-size: 0.72rem; color: var(--gray); font-weight: 500; white-space: nowrap; }
.color-card:has(input:checked) span { color: var(--primary); font-weight: 700; }

/* ── ボタングループ ── */
.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn-next { flex: 1; justify-content: center; }
.btn-outline-gray {
  background: white;
  color: var(--gray);
  border: 2px solid #e5e7eb;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.88rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-gray:hover { border-color: var(--gray); color: var(--dark); }

/* ── 見積もり結果 ── */
.result-total {
  background: var(--gold-gradient);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: #3d2800;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(212,160,23,0.35);
}
.result-total-label { font-size: 0.85rem; opacity: 0.8; margin-bottom: 12px; letter-spacing: 0.05em; }
.result-total-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.price-from-result { font-size: 1.8rem; font-weight: 700; }
#totalPriceDisplay {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}
.price-suffix { font-size: 1.1rem; opacity: 0.8; }
.result-note { font-size: 0.78rem; opacity: 0.6; }

.result-breakdown {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow);
}
.result-breakdown h3,
.result-summary h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-breakdown h3 i { color: var(--primary); }
.result-summary h3 i { color: #10b981; }
.breakdown-list { display: flex; flex-direction: column; gap: 10px; }
.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}
.bd-row:last-child { border-bottom: none; }
.bd-row.bd-total {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  border-top: 2px solid var(--primary-light);
  padding-top: 14px;
  border-bottom: none;
}
.bd-label { color: var(--dark); }
.bd-price { font-weight: 700; color: var(--dark); }
.bd-row.bd-total .bd-price { color: var(--primary); }

.result-summary {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow);
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.summary-item {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 10px 14px;
}
.summary-item-label { font-size: 0.72rem; color: var(--gray); margin-bottom: 4px; }
.summary-item-value { font-size: 0.9rem; font-weight: 700; color: var(--dark); }

.result-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.result-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.result-point i { font-size: 1.1rem; }
.result-point.green { background: #ecfdf5; color: #065f46; }
.result-point.green i { color: #10b981; }
.result-point.blue { background: var(--primary-light); color: #1e3a8a; }
.result-point.blue i { color: var(--primary); }
.result-point.amber { background: #fffbeb; color: #78350f; }
.result-point.amber i { color: var(--accent); }

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.result-btn { flex: 1; justify-content: center; min-width: 200px; }
.result-disclaimer {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.7;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.result-disclaimer i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* ── サイドバー ── */
.sim-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #f3f4f6;
}
.sidebar-title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
}
.sidebar-title i { color: var(--primary); }

/* カーポートプレビュー */
.carport-preview {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}
.preview-label {
  font-size: 0.7rem;
  color: var(--gray);
  text-align: center;
  margin-bottom: 6px;
}

/* サイドバー内訳 */
.sidebar-breakdown { margin-bottom: 16px; }
.sb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}
.sb-row:last-child { border-bottom: none; }
.sb-label { color: var(--gray); }
.sb-price { font-weight: 700; color: var(--dark); }
.sb-divider { border-top: 2px solid var(--primary-light); margin: 4px 0; }
.sb-total { font-weight: 800; color: var(--primary); font-size: 0.95rem; border-bottom: none !important; }

/* バッジ */
.sidebar-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sb-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}
.sb-badge i { font-size: 0.75rem; }

/* 連絡先カード */
.contact-mini .sidebar-title i { color: #10b981; }
.tel-cta {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  text-decoration: none;
}
.tel-cta:hover { color: var(--primary-dark); }
.tel-hours { font-size: 0.78rem; color: var(--gray); }

/* ── アニメーション ── */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.price-animate { animation: countUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ── レスポンシブ ── */
@media (max-width: 1024px) {
  .sim-content { grid-template-columns: 1fr; }
  .sim-sidebar { position: static; }
}

@media (max-width: 768px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .sim-steps-bar { padding: 10px 6px; gap: 0; }
  .sim-step-indicator { min-width: 0; flex: 1; }
  .sim-step-indicator span { display: block; font-size: 0.58rem; white-space: nowrap; text-align: center; }
  .step-circle { width: 28px; height: 28px; font-size: 0.8rem; }
  .step-connector { min-width: 8px; max-width: 32px; margin-bottom: 28px; }
  .btn-group { flex-direction: column; }
  .result-actions { flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr; }
  #totalPriceDisplay { font-size: 2.8rem; }
}

@media (max-width: 480px) {
  .choice-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .color-grid { gap: 8px; }
  .sim-steps-bar { padding: 8px 2px; }
  .sim-step-indicator span { font-size: 0.52rem; }
  .step-circle { width: 24px; height: 24px; font-size: 0.72rem; }
  .step-connector { min-width: 4px; max-width: 16px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   固定底部バー（合計金額常時表示）
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sim-fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-top: 3px solid var(--primary, #1a56db);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sim-fixed-bar.visible {
  transform: translateY(0);
}

.sim-fixed-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 左：金額エリア */
.sfb-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sfb-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sfb-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}
.sfb-yen {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fbbf24;
}
.sfb-price #sfb-total {
  font-size: 2rem;
  font-weight: 900;
  color: #fbbf24;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}
.sfb-suffix {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* 金額更新アニメーション */
@keyframes priceFlash {
  0%   { color: #fbbf24; }
  30%  { color: #ffffff; transform: scale(1.08); }
  100% { color: #fbbf24; transform: scale(1); }
}
.sfb-price #sfb-total.updating {
  animation: priceFlash 0.4s ease;
}

/* 右：商品名＋CTAボタン */
.sfb-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.sfb-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.sfb-item {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sfb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.sfb-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,158,11,0.5);
}

/* 固定バーの分だけ本文下部に余白 */
body.sim-bar-visible {
  padding-bottom: 76px;
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .sim-fixed-bar-inner {
    padding: 10px 16px;
    gap: 12px;
  }
  .sfb-price #sfb-total {
    font-size: 1.6rem;
  }
  .sfb-breakdown {
    display: none;
  }
  .sfb-btn {
    font-size: 0.82rem;
    padding: 9px 14px;
  }
  .sfb-btn span {
    display: none;
  }
  .sfb-btn::after {
    content: '無料見積もり';
  }
  body.sim-bar-visible {
    padding-bottom: 68px;
  }
}

@media (max-width: 480px) {
  .sfb-yen { font-size: 0.95rem; }
  .sfb-price #sfb-total { font-size: 1.4rem; }
  .sfb-label { font-size: 0.65rem; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STEP1 メーカータブ
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.maker-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.maker-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.maker-tab::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #e5e7eb;
  transition: background 0.2s;
}
.maker-tab:hover {
  border-color: var(--primary, #1a56db);
  box-shadow: 0 4px 16px rgba(26,86,219,0.12);
  transform: translateY(-2px);
}
.maker-tab:hover::before {
  background: var(--primary, #1a56db);
}
.maker-tab.active {
  border-color: var(--primary, #1a56db);
  background: #eff6ff;
  box-shadow: 0 4px 16px rgba(26,86,219,0.15);
}
.maker-tab.active::before {
  background: var(--primary, #1a56db);
}

/* アイコン */
.maker-tab-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 10px;
  flex-shrink: 0;
}
.maker-tab.active .maker-tab-icon {
  background: white;
}

/* テキストグループ */
.maker-tab-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}
.maker-tab-desc {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 3px;
  font-weight: 400;
}

/* 名前＋説明をまとめるコンテナ */
.maker-tab-name {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 矢印 */
.maker-tab-arrow {
  color: #9ca3af;
  font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.maker-tab:hover .maker-tab-arrow,
.maker-tab.active .maker-tab-arrow {
  color: var(--primary, #1a56db);
  transform: translateX(4px);
}

/* スマホ */
@media (max-width: 480px) {
  .maker-tab { padding: 14px 16px; gap: 12px; }
  .maker-tab-icon { width: 40px; height: 40px; font-size: 1.5rem; }
  .maker-tab-name { font-size: 1rem; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STEP2 商品選択グリッド（小カード型）
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 台数フィルターボタン */
.cars-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cars-btn {
  padding: 6px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  background: white;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.cars-btn:hover {
  border-color: var(--primary, #1a56db);
  color: var(--primary, #1a56db);
}
.cars-btn.active {
  background: var(--primary, #1a56db);
  border-color: var(--primary, #1a56db);
  color: white;
}

/* 商品グリッド：3列 */
.product-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* 1枚のカード */
.product-select-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-select-card:hover {
  border-color: var(--primary, #1a56db);
  box-shadow: 0 4px 16px rgba(26,86,219,0.13);
  transform: translateY(-2px);
}
.product-select-card.active {
  border-color: var(--primary, #1a56db);
  box-shadow: 0 4px 16px rgba(26,86,219,0.18);
  background: #eff6ff;
}

/* 選択済みチェックマーク */
.psc-check {
  display: none;
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: var(--primary, #1a56db);
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.product-select-card.active .psc-check {
  display: flex;
}

/* サムネイル */
.psc-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 10px 10px 0 0;
}
.psc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-select-card:hover .psc-thumb img {
  transform: scale(1.05);
}
.no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 1.8rem;
}

/* カード情報エリア */
.psc-info {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.psc-cars-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  padding: 1px 7px;
  border-radius: 999px;
  width: fit-content;
}
.psc-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
}
.psc-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary, #1a56db);
}
.psc-colors {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* ローディング・エラー */
.loading-products,
.loading-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #9ca3af;
  font-size: 0.9rem;
}
.loading-error { color: #ef4444; }
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: #9ca3af;
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .product-select-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .psc-name { font-size: 0.78rem; }
  .psc-price { font-size: 0.74rem; }
}
@media (max-width: 400px) {
  .product-select-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .psc-info { padding: 6px 8px 8px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STEP3 サイズ・カラー
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* サイズ選択 */
.sim-selects {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sim-select-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 14px;
  transition: border-color 0.2s;
  cursor: pointer;
  position: relative;
}
.sim-select-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  margin-right: 6px;
  pointer-events: none;
}
.sim-select-wrap select {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.sim-select-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  pointer-events: none;
}
.sim-select-wrap:focus-within {
  border-color: var(--primary, #1a56db);
}
.sim-select-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}
.sim-select-wrap select {
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a2e;
  background: transparent;
  cursor: pointer;
  min-width: 90px;
}

/* カラーグリッド（全色表示） */
.sim-color-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.sim-color-full-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.sim-color-full-item:hover {
  border-color: var(--primary, #1a56db);
  box-shadow: 0 2px 10px rgba(26,86,219,0.1);
  transform: translateY(-2px);
}
.sim-color-full-item.active {
  border-color: var(--primary, #1a56db);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.scf-name {
  font-size: 0.7rem;
  color: #374151;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-all;
}
.sim-color-full-item.active .scf-name {
  color: var(--primary, #1a56db);
}
.no-color-note {
  color: #9ca3af;
  font-size: 0.85rem;
  padding: 16px 0;
}

/* カラードット（サイズバリエーション） */
.color-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}
.color-dot-xs  { width: 14px; height: 14px; }
.color-dot-sm  { width: 20px; height: 20px; }
.color-dot-md  { width: 28px; height: 28px; }
.color-dot-bordered { border: 2px solid #d1d5db; }
.color-dot-half {
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   サイドバー・全体レイアウト
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sim-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}
.sim-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.sim-form-wrap {
  min-width: 0;
}
.sim-step-panel {
  display: none;
}
.sim-step-panel.active {
  display: block;
}
.step-header {
  margin-bottom: 24px;
}
.step-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #1a1a2e;
  margin: 8px 0 6px;
}
.step-header p {
  color: #6b7280;
  font-size: 0.88rem;
}
.step-num-badge {
  display: inline-block;
  background: var(--primary, #1a56db);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.step-num-badge.result {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.form-section {
  margin-bottom: 28px;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
}
.form-label i { color: var(--primary, #1a56db); }

/* ボタングループ */
.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary, #1a56db), #1e40af);
  color: white;
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26,86,219,0.4);
}
.btn-next { flex: 1; justify-content: center; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-outline-gray {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}
.btn-outline-gray:hover {
  border-color: #9ca3af;
  color: #374151;
}
.btn-outline-sm {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  padding: 10px 20px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   サイドバー
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sim-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}
.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-title i { color: var(--primary, #1a56db); }
.sidebar-product-thumb {
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  min-height: 80px;
}
.thumb-placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 10px;
  color: #d1d5db;
  font-size: 0.78rem;
}
.thumb-placeholder-box i { font-size: 2rem; }
.sidebar-breakdown { margin-bottom: 12px; }
.sb-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.82rem;
  color: #374151;
}
.sb-label { color: #6b7280; }
.sb-price { font-weight: 600; }
.sb-discount .sb-price { color: #10b981; }
.sb-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}
.sb-total {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary, #1a56db);
}
.sidebar-selection { margin-top: 12px; border-top: 1px solid #f0f0f0; padding-top: 12px; }
.ss-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.78rem;
}
.ss-label { color: #9ca3af; }
.ss-val { color: #374151; font-weight: 600; text-align: right; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.sb-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}
.sb-badge i { color: var(--primary, #1a56db); font-size: 0.75rem; }
.contact-mini { text-align: center; }
.tel-cta {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary, #1a56db);
  text-decoration: none;
  margin: 8px 0 4px;
  letter-spacing: 0.02em;
}
.tel-hours { font-size: 0.75rem; color: #9ca3af; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STEP5 見積もり結果
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.result-product-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.result-thumb-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.result-product-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}
.result-total {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  color: white;
}
.result-total-label { font-size: 0.82rem; opacity: 0.7; margin-bottom: 8px; }
.result-total-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.price-from-result { font-size: 1.5rem; font-weight: 700; color: #fbbf24; }
#totalPriceDisplay { font-size: 3.2rem; font-weight: 900; color: #fbbf24; font-family: 'Montserrat', sans-serif; }
.price-suffix { font-size: 0.9rem; opacity: 0.7; }
.result-note { font-size: 0.75rem; opacity: 0.5; margin-top: 8px; }
.result-breakdown, .result-summary {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.result-breakdown h3, .result-summary h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breakdown-list { display: flex; flex-direction: column; gap: 8px; }
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
.breakdown-row.discount { color: #10b981; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 8px;
}
.sum-label { font-size: 0.7rem; color: #9ca3af; font-weight: 600; }
.sum-val { font-size: 0.85rem; font-weight: 700; color: #1a1a2e; }
.result-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.result-point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
}
.result-point.green { background: #f0fdf4; color: #166534; }
.result-point.blue  { background: #eff6ff; color: #1e40af; }
.result-point.amber { background: #fffbeb; color: #92400e; }
.result-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.result-btn { flex: 1; justify-content: center; }
.result-disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.8;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

/* ── レスポンシブ（サイドバー・全体） ── */
@media (max-width: 900px) {
  .sim-content { grid-template-columns: 1fr; }
  .sim-sidebar { position: static; }
}
@media (max-width: 768px) {
  .sim-body { padding: 20px 16px 32px; }
  .step-header h2 { font-size: 1.3rem; }
  .sim-color-grid-full { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .summary-grid { grid-template-columns: 1fr; }
  #totalPriceDisplay { font-size: 2.4rem; }
  .result-actions { flex-direction: column; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ステップバー クリック対応
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sim-step-indicator {
  cursor: pointer;
  transition: opacity 0.2s;
  user-select: none;
}
.sim-step-indicator:hover .step-circle {
  opacity: 0.8;
  transform: scale(1.1);
}
.sim-step-indicator.completed .step-circle {
  background: #10b981;
  color: white;
}
.sim-step-indicator.completed:hover .step-circle {
  background: #059669;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   屋根材カラー・STEP4新UI
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 屋根材カラー：disabledスタイル */
.sim-color-full-item.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.scf-disabled-note {
  font-size: 0.65rem;
  color: #e63946;
  margin-top: 2px;
  display: block;
}
.form-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* ラジオカード（工事・設置場所・残土） */
.sim-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sim-radio-card {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.sim-radio-card input[type=radio] { display: none; }
.sim-radio-card i {
  font-size: 1.5rem;
  color: #9ca3af;
  transition: color 0.2s;
}
.sim-radio-card span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
}
.sim-radio-card small {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.3;
}
.sim-radio-card:hover {
  border-color: var(--primary);
}
.sim-radio-card.active {
  border-color: var(--primary);
  background: rgba(30,64,175,0.05);
}
.sim-radio-card.active i { color: var(--primary); }

/* 設置エリアタブ */
.sim-area-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sim-area-tab {
  padding: 8px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}
.sim-area-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.sim-area-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* フリーテキスト */
.sim-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.6;
  color: #374151;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.sim-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.08);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .sim-radio-card { min-width: calc(50% - 6px); flex: 0 0 calc(50% - 6px); }
  .sim-area-tab { padding: 7px 12px; font-size: 0.8rem; }
}

/* カラーグループ選択（プレーンルーフ等） */
.color-group-item {
  min-width: 120px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}
.cg-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  margin-bottom: 4px;
}
.color-dot-sm {
  flex-shrink: 0;
}
