/* =========================================================
   PACO-TRAILER 投資シミュレーター セクション
   既存 style.css のトーンに合わせる
   ========================================================= */

.section-simulator {
  background: linear-gradient(180deg, #fbfaf7 0%, #f3f1ec 100%);
}

.simulator-intro {
  text-align: center;
  margin: 0 auto 1.5em;
  max-width: 720px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* タブ切替(業種別タブと同じデザイン言語) */
.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1.5em 0 1.5em;
  justify-content: center;
}
.sim-tab-btn {
  flex: 1 1 0;
  min-width: 120px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #ddd7cc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  transition: all 0.15s ease;
}
.sim-tab-btn:hover { background: #f3f1ec; }
.sim-tab-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* パネル */
.sim-pane { display: none; }
.sim-pane.active { display: block; }

/* シミュレーター本体 */
.sim-card {
  background: #fff;
  border: 1px solid #ddd7cc;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sim-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4em;
  color: #1a1a1a;
}
.sim-subtitle {
  font-size: 0.9rem;
  color: #777;
  margin: 0 0 1.5em;
  line-height: 1.6;
}

/* 入力ブロック */
.sim-inputs { display: grid; gap: 1.2em; margin-bottom: 1.5em; }
.sim-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1em;
  row-gap: 0.4em;
}
.sim-input-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}
.sim-input-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 7em;
}
.sim-input-range {
  grid-column: 1 / -1;
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #ddd7cc;
  outline: none;
  cursor: pointer;
}
.sim-input-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #1a1a1a, 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
}
.sim-input-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 3px solid #fff;
  cursor: pointer;
}
.sim-input-hint {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* 結果ブロック */
.sim-results {
  margin: 1.5em 0;
  padding: 1.5em 1.2em;
  background: #fbfaf7;
  border: 1px dashed #ddd7cc;
  border-radius: 10px;
}
.sim-results-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #777;
  margin: 0 0 1em;
  letter-spacing: 0.05em;
}
.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1em;
}
.sim-result {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  border-left: 4px solid #b89652;
}
.sim-result.primary { border-left-color: #1a1a1a; background: #f3f1ec; }
.sim-result-label {
  font-size: 0.78rem;
  color: #666;
  margin: 0 0 0.3em;
  font-weight: 600;
}
.sim-result-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.2;
}
.sim-result-value small {
  font-size: 0.7em;
  font-weight: 500;
  color: #888;
  margin-left: 0.2em;
}

.sim-note {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
  margin: 1em 0 0;
}

/* CTA */
.sim-cta {
  margin: 1.5em 0 0;
  padding: 1.5em;
  text-align: center;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
}
.sim-cta-lead {
  font-size: 1rem;
  margin: 0 0 1em;
  line-height: 1.6;
}
.sim-cta-buttons {
  display: flex;
  gap: 0.8em;
  justify-content: center;
  flex-wrap: wrap;
}
.sim-cta-buttons .btn {
  min-width: 220px;
}
.sim-cta .btn-secondary {
  background: #fff;
  color: #1a1a1a;
  border: 2px solid #fff;
}
.sim-cta .btn-secondary:hover { background: #f3f1ec; }

/* モバイル微調整 */
@media (max-width: 640px) {
  .sim-tab-btn { font-size: 0.82rem; padding: 10px 8px; min-width: 0; }
  .sim-card { padding: 20px 16px; }
  .sim-result-value { font-size: 1.15rem; }
  .sim-cta-buttons .btn { width: 100%; min-width: 0; }
}

/* 節税モデル：法人／個人の切替（2026-09-23） */
.sim-entity { display: flex; gap: 8px; margin: 12px 0 16px; }
.sim-entity-btn { padding: 8px 20px; background: #fff; border: 1.5px solid #ddd7cc; border-radius: 999px;
  cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #555; transition: all 0.15s ease; }
.sim-entity-btn:hover { background: #f3f1ec; }
.sim-entity-btn.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
