/* =======================
   予約ページ共通
   ======================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  color: #145087;
}

/* 背景より前に出す */
.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* メインレイアウト */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.section {
  margin-top: 40px;
}

.section__inner {
  max-width: 480px;
  margin: 0 auto;
}

/* 見出しカード */
.reserve-heading {
  background: #ffffffee;
  border-radius: 18px;
  padding: 16px 8px 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(13, 71, 125, 0.08);
  border: 1px solid #e2f1ff;
  margin-bottom: 24px;
}

.reserve-heading__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.25em;
  color: #145087;
}

.reserve-heading__sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: #6b7b8c;
}

/* ステップ表示 */
.reserve-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.reserve-steps__item {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #6a7c93;
}

.reserve-steps__num {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e0edff;
  color: #145087;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.reserve-steps__item--current .reserve-steps__num {
  background: #1c63d2;
  color: #fff;
}

.reserve-steps__label {
  display: block;
}

/* フォーム共通 */
.reserve-form {
  display: grid;
  gap: 16px;
}

.form-section {
  background: #ffffffee;
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: 0 4px 12px rgba(13, 71, 125, 0.06);
  border: 1px solid #e2f1ff;
}

.form-section__title {
  font-size: 14px;
  margin: 0 0 10px;
  color: #145087;
}

.form-row {
  margin-bottom: 10px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row--two {
  display: flex;
  gap: 10px;
}

.form-row__item {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.form-required {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #ffebef;
  color: #e6466c;
}

/* 入力系 */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #c9d7ea;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #1c63d2;
  box-shadow: 0 0 0 2px rgba(28, 99, 210, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: #7b8ba0;
}

/* オプション */
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.option-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f7fbff;
  border: 1px solid #d6e4f8;
}

.option-item input[type="checkbox"] {
  accent-color: #1c63d2;
}

/* 同意エリア */
.form-section--agree {
  background: #f8fbff;
}

.agree-box__text {
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 8px;
}

.agree-links {
  margin: 0 0 8px;
  padding-left: 16px;
  font-size: 11px;
}

.agree-links li {
  margin-bottom: 2px;
}

.agree-links a {
  color: #1c63d2;
  text-decoration: none;
}

.agree-list {
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.agree-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.agree-item input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #1c63d2;
}


/* =======================
   料金・シミュレーション
   ======================= */

.form-section--price {
  background: #ffffffee;
}

/* 支払い方法カード */
.price-payment {
  margin-bottom: 12px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid #d6e4f8;
}

.price-payment__label {
  font-size: 12px;
  font-weight: 600;
  color: #145087;
  margin: 0 0 4px;
}

.price-payment__options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.price-payment__radio {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-payment__radio input[type="radio"] {
  accent-color: #1c63d2;
}

.price-payment__hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #7b8ba0;
  line-height: 1.5;
}

/* 料金シミュレーションカード */
.price-summary {
  margin-top: 8px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2f1ff;
  box-shadow: 0 2px 8px rgba(13, 71, 125, 0.05);
}

.price-summary__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #145087;
}

.price-summary__list {
  margin: 0 0 6px;
  padding: 0;
  display: grid;
  gap: 2px;
  font-size: 11px;          /* ← 全体少し小さめ */
}

.price-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.price-summary__row dt {
  margin: 0;
  color: #8a98b1;           /* ← 少し薄め */
  font-weight: 400;         /* ← 細め */
}

.price-summary__row dd {
  margin: 0;
  font-weight: 500;
  font-size: 12px;
  color: #145087;
}

/* 合計行 */
.price-summary__row--total {
  padding-top: 4px;
  margin-top: 2px;
  border-top: 1px dashed #dde6f5;
}

.price-summary__row--total dd {
  font-size: 13px;
  color: #1c63d2;
}

/* 支払い内訳行 */
.price-summary__row--split dt {
  font-size: 10px;
}

.price-summary__row--split dd {
  font-size: 12px;
}

/* 大きめの合計表示帯 */
.price-summary__total-box {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e4f0ff, #f5f8ff);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.price-summary__total-label {
  margin: 0;
  font-size: 11px;
  color: #5c6f8a;
}

.price-summary__total-amount {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #145087;
}

/* 注意書き */
.price-summary__note {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: #7b8ba0;
  line-height: 1.6;
}

/* PC で少しだけ余裕を持たせる */
@media (min-width: 768px) {
  .price-payment,
  .price-summary {
    padding: 12px 14px 14px;
  }

  .price-summary__list {
    font-size: 11.5px;
  }
}





/* ボタン */
.reserve-button-area {
  margin-top: 18px;
  text-align: center;
}

.reserve-button-area--confirm {
  margin-top: 24px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #1c63d2;
  color: #fff;
}

.btn-secondary {
  background: #ffffffdd;
  color: #145087;
  border: 1px solid #c6d5ea;
}

.reserve-button-area .btn-secondary {
  margin-right: 10px;
}

.reserve-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #6a7c93;
  line-height: 1.6;
}

/* 確認カード */
.confirm-card {
  background: #ffffffee;
  border-radius: 18px;
  padding: 16px 14px 18px;
  box-shadow: 0 4px 12px rgba(13, 71, 125, 0.06);
  border: 1px solid #e2f1ff;
}

.confirm-title {
  font-size: 13px;
  margin: 12px 0 6px;
  color: #145087;
}

.confirm-title:first-of-type {
  margin-top: 0;
}

.confirm-list {
  margin: 0;
  font-size: 12px;
}

.confirm-row {
  display: flex;
  padding: 3px 0;
  border-bottom: 1px dashed #e3e8f2;
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-row dt {
  width: 40%;
  color: #6a7c93;
}

.confirm-row dd {
  margin: 0;
  width: 60%;
}

/* 完了カード */
.complete-card {
  background: #ffffffee;
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 4px 12px rgba(13, 71, 125, 0.06);
  border: 1px solid #e2f1ff;
}

.complete-main {
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.8;
}

.complete-text {
  font-size: 12px;
  margin: 0 0 8px;
  line-height: 1.8;
}

.complete-list {
  font-size: 11px;
  margin: 0 0 16px 1.1em;
  padding: 0;
  line-height: 1.7;
}

.complete-list li {
  margin-bottom: 2px;
}

.complete-buttons {
  text-align: center;
}

.complete-buttons .btn-secondary {
  margin-right: 8px;
}

/* 画面幅が小さい時 */
@media (max-width: 360px) {
  .form-row--two {
    flex-direction: column;
  }
}

/* PC 表示 */
@media (min-width: 768px) {
  .main,
  .section__inner {
    max-width: 960px;
  }

  .section {
    margin-top: 56px;
  }

  .reserve-heading {
    margin-bottom: 28px;
  }

  .reserve-form {
    gap: 18px;
  }

  .confirm-card,
  .complete-card {
    max-width: 640px;
    margin: 0 auto;
  }
}



