/* ===============================
   料金シミュレーターセクション
================================ */
.section-simulator {
  background: #fff;
  padding: 80px 0;
}

.section-simulator .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.section-simulator h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  text-align: center;
}

.simulator-lead {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
}

/* ===============================
   比較カードエリア
================================ */
.comparison-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* プランカード */
.plan-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  border: 3px solid transparent;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.plan-card.subscription {
  border-color: #0baec4;
}

.plan-card.subscription .card-header {
  background: linear-gradient(135deg, #0baec4, #0895aa);
}

.plan-card.traditional {
  border-color: #999;
}

.plan-card.traditional .card-header {
  background: linear-gradient(135deg, #777, #555);
}

.card-header {
  padding: 24px;
  color: white;
  text-align: center;
}

.card-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.card-body {
  padding: 30px;
}

/* 入力グループ */
.input-group {
  margin-bottom: 24px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  font-size: 14px;
}

.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  transition: all 0.3s ease;
  background: #f8f8f8;
  box-sizing: border-box;
}

.input-group input[type="text"]:focus,
.input-group select:focus {
  outline: none;
  border-color: #0baec4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 174, 196, 0.1);
}

.input-group input[readonly] {
  background: #eee;
  cursor: not-allowed;
  color: #666;
}

.input-group select {
  cursor: pointer;
  font-weight: 500;
}

/* ===============================
   利用期間セクション
================================ */
.duration-section {
  background: #f8fbfc;
  border-radius: 16px;
  padding: 40px;
  box-sizing: border-box;
  margin-bottom: 40px;
  border: 2px solid #e0f2f5;
}

.duration-section h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 30px;
  text-align: center;
}

.slider-wrapper {
  margin-bottom: 20px;
}

#duration-slider {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: linear-gradient(to right, #0baec4, #f2c243);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

#duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #0baec4;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

#duration-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#duration-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #0baec4;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

#duration-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #999;
  font-size: 13px;
}

.duration-display {
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  color: #0baec4;
  margin: 30px 0;
  font-family: "Noto Sans JP", sans-serif;
}

/* 計算ボタン */
.calculate-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 18px;
  background: linear-gradient(135deg, #f28c43, #f2c243);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(242, 140, 67, 0.3);
}

.calculate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(242, 140, 67, 0.4);
}

.calculate-btn:active {
  transform: translateY(-1px);
}

/* ===============================
   結果表示セクション
================================ */
.result-section {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  animation: fadeInUp 0.6s ease;
}

.result-section h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 30px;
  text-align: center;
}

.result-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.result-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.result-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin-bottom: 15px;
}

.result-amount {
  font-size: 36px;
  font-weight: 900;
  color: #111;
  font-family: "Noto Sans JP", sans-serif;
}

.subscription-result {
  border-color: #0baec4;
}

.subscription-result .result-amount {
  color: #0baec4;
}

.traditional-result {
  border-color: #999;
}

.traditional-result .result-amount {
  color: #666;
}

/* 差額表示 */
.difference-notice {
  background: linear-gradient(135deg, #e8f8f5, #d4f1e8);
  border-left: 5px solid #4caf50;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  animation: slideInRight 0.6s ease;
}

.difference-notice.traditional-cheaper {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-left-color: #ff9800;
}

.difference-notice p {
  font-size: 20px;
  color: #111;
  margin: 0;
}

.difference-notice strong {
  font-size: 28px;
  color: #4caf50;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.difference-notice.traditional-cheaper strong {
  color: #ff9800;
}

/* ===============================
   損益分岐点セクション
================================ */
.breakeven-section {
  background: linear-gradient(135deg, #fff9e6, #fff4d4);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.breakeven-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
  text-align: center;
}

.breakeven-content {
  text-align: center;
}

.breakeven-content p {
  font-size: 18px;
  color: #111;
  font-weight: 600;
}

/* ===============================
   アニメーション
================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===============================
   スマホ対応
================================ */
@media (max-width: 768px) {
  .section-simulator {
    padding: 60px 0;
  }

  .section-simulator .inner {
    padding: 0 20px;
  }

  .section-simulator h2 {
    font-size: 24px;
  }

  .simulator-lead {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .comparison-wrapper {
    gap: 20px;
    margin-bottom: 30px;
  }

  .card-body {
    padding: 20px;
  }

  .duration-section,
  .result-section,
  .breakeven-section {
    padding: 24px;
  }

  .duration-section h3,
  .result-section h3 {
    font-size: 20px;
  }

  .duration-display {
    font-size: 36px;
  }

  .calculate-btn {
    font-size: 18px;
    padding: 16px;
  }

  .result-amount {
    font-size: 28px;
  }

  .difference-notice p {
    font-size: 16px;
  }

  .difference-notice strong {
    font-size: 22px;
  }

  .breakeven-content p {
    font-size: 16px;
  }
}
