/**
 * calendar-page.css — /price-v2/calendar.html 専用スタイル
 * 3タブUI と 各タブ内の独立シミュレータ用
 */

/* ============= タブUI ============= */
.cal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 24px 0 0;
  border-bottom: 2px solid #e3e8ef;
}

.cal-tabs .cal-tab {
  appearance: none;
  background: transparent;
  border: none;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}

.cal-tabs .cal-tab:hover {
  color: #0d6efd;
}

.cal-tabs .cal-tab.is-active {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
}

.cal-tabs .cal-tab i {
  margin-right: 6px;
}

/* ============= タブパネル ============= */
.cal-pane {
  display: none;
  padding: 28px 0 16px;
}

.cal-pane.is-active {
  display: block;
}

.cal-pane__lead {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: #f7f9fc;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .cal-pane__lead {
    grid-template-columns: 1fr;
  }
}

.cal-pane__lead img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}

.cal-pane__lead p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

/* ============= シミュレータ ============= */
.cal-simulator {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@media (max-width: 900px) {
  .cal-simulator {
    grid-template-columns: 1fr;
  }
}

.cal-config {
  min-width: 0;
}

.cal-result {
  background: linear-gradient(180deg, #f0f6ff 0%, #e6f0ff 100%);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 80px;
  align-self: start;
}

@media (max-width: 900px) {
  .cal-result {
    position: static;
  }
}

/* ============= セクション ============= */
.cal-section {
  margin-bottom: 22px;
}

.cal-section__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2a3548;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-section__label .cal-help {
  font-size: 0.85rem;
  color: #adb5bd;
  cursor: help;
}

/* ============= オプションボタン ============= */
.cal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.cal-option {
  appearance: none;
  background: #fff;
  border: 2px solid #e3e8ef;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-option:hover {
  border-color: #adb5bd;
  background: #f8fbff;
}

.cal-option.is-active {
  border-color: #0d6efd;
  background: #eaf2ff;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

.cal-option__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2a3548;
}

.cal-option__desc {
  font-size: 0.8rem;
  color: #6c757d;
}

/* ============= スライダー ============= */
.cal-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #e3e8ef;
  border-radius: 3px;
  outline: none;
}

.cal-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #0d6efd;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cal-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #0d6efd;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
}

.cal-slider__display {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0d6efd;
}

.cal-slider__range {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #adb5bd;
}

/* ============= 価格表示 ============= */
.cal-price {
  font-size: 2rem;
  font-weight: 700;
  color: #0d6efd;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cal-price-label {
  font-size: 0.85rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: -6px;
}

.cal-detail {
  font-size: 0.85rem;
  color: #495057;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.7;
}

.cal-detail > div + div {
  margin-top: 2px;
}

.cal-cta {
  display: block;
  background: #0d6efd;
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s, transform 0.15s;
}

.cal-cta:hover {
  background: #0b5ed7;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.cal-cta[aria-disabled="true"] {
  background: #adb5bd;
  pointer-events: none;
}

.cal-note {
  font-size: 0.78rem;
  color: #6c757d;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

/* ============= 価格表（参考用静的テーブルがあれば） ============= */
.cal-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
}

.cal-table-wrap h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2a3548;
  margin: 0 0 12px;
}

.cal-pane__warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.88rem;
  color: #5d4037;
}
