/* =======================
   料金ページ
   ======================= */

*,
*::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;
}

/* コンテンツ幅（SP） */
.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.section {
  margin-top: 40px;
}

.section__inner {
  max-width: 480px;
  margin: 0 auto;
}

/* =======================
   タイトルカード
   ======================= */

.section-price {
  margin-top: 24px;
}

.price-heading {
  background: #ffffffee;
  border-radius: 18px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(13, 71, 125, 0.08);
  border: 1px solid #e2f1ff;
  margin-bottom: 20px;
}

.price-heading__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #145087;
}

/* =======================
   セクション見出し
   ======================= */

.price-section {
  margin-top: 28px;
}

.price-section__title {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #145087;
  margin: 0 0 8px;
  position: relative;
  padding-bottom: 4px;
}

.price-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(255, 216, 111, 0.9),
    rgba(255, 216, 111, 0)
  );
}

.price-section__subnote {
  font-size: 11px;
  line-height: 1.7;
  color: #6a7c93;
  margin: 8px 0 0;
}

/* =======================
   テキスト
   ======================= */

.price-overview__text {
  font-size: 12px;
  line-height: 1.8;
  color: #34536f;
  margin: 0 0 8px;
}

/* =======================
   ベースカード
   ======================= */

.price-card {
  background: #ffffffee;
  border-radius: 16px;
  padding: 12px 14px 14px;
  border: 1px solid #e2f1ff;
  box-shadow: 0 4px 10px rgba(13, 71, 125, 0.05);
}

.price-card__body {
  font-size: 12px;
  line-height: 1.8;
  color: #34536f;
  margin: 0 0 6px;
}

.price-card__note {
  font-size: 11px;
  line-height: 1.7;
  color: #6a7c93;
  margin: 4px 0 0;
}

/* =======================
   リスト
   ======================= */

.price-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #34536f;
}

.price-list--bullets {
  list-style: disc;
  padding-left: 1.2em;
}

/* =======================
   ランク別カード
   ======================= */

.price-plan-list {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
}

.price-plan {
  background: #ffffffee;
  border-radius: 16px;
  padding: 12px 14px 14px;
  border: 1px solid #e2f1ff;
  box-shadow: 0 4px 10px rgba(13, 71, 125, 0.05);
}

.price-plan__rank {
  font-size: 13px;
  color: #145087;
  margin: 0 0 4px;
}

.price-plan__price {
  margin: 0 0 6px;
}

.price-plan__amount {
  font-size: 18px;
  font-weight: 600;
}

.price-plan__unit {
  font-size: 11px;
  color: #6a7c93;
  margin-left: 4px;
}

.price-plan__desc {
  font-size: 11px;
  line-height: 1.8;
  color: #4e6680;
  margin: 0;
}

/* =======================
   延長料金テーブル
   ======================= */

.price-ext-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #34536f;
}

.price-ext-table th,
.price-ext-table td {
  padding: 6px 4px;
  border-bottom: 1px dashed #e4edf7;
}

.price-ext-table th {
  text-align: left;
  width: 40%;
  color: #145087;
}

/* =======================
   オプションカード
   ======================= */

.price-option-grid {
  display: grid;
  gap: 12px;
}

.price-card__title {
  font-size: 13px;
  margin: 0 0 4px;
  color: #145087;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.price-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe9a8;
  font-size: 11px;
  color: #6b4b00;
}

/* =======================
   お支払いリスト
   ======================= */

.price-pay-list {
  margin: 0 0 6px;
  padding-left: 1.4em;
  font-size: 12px;
  line-height: 1.8;
  color: #34536f;
}

/* =======================
   シミュレーション
   ======================= */

.price-sim {
  margin-top: 8px;
  background: #ffffffee;
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid #e2f1ff;
  box-shadow: 0 4px 12px rgba(13, 71, 125, 0.08);
}

.price-sim__lead {
  font-size: 12px;
  line-height: 1.7;
  color: #34536f;
  margin: 0 0 12px;
}

/* フォーム共通 */

.price-sim-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.price-sim-form__field {
  font-size: 12px;
}

.price-sim-form__label {
  display: block;
  margin-bottom: 4px;
  color: #145087;
  font-weight: 500;
}

.price-sim-form__select,
.price-sim-form__number {
  width: 100%;
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid #d5e4ff;
  outline: none;
  background-color: #fff;
}

.price-sim-form__select:focus,
.price-sim-form__number:focus {
  border-color: #1c63d2;
}

.price-sim-form__inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-sim-form__suffix {
  font-size: 12px;
  color: #34536f;
}

.price-sim-form__hint {
  font-size: 11px;
  color: #6a7c93;
  margin: 4px 0 0;
}

/* オプションチェック */

.price-sim-options {
  display: grid;
  gap: 4px;
}

.price-sim-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #34536f;
}

.price-sim-option input {
  accent-color: #1c63d2;
}

/* 支払い方法 */

.price-sim-paytype {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
}

.price-sim-paytype label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 結果カード */

.price-sim-result {
  border-radius: 16px;
  background: #f8fbff;
  padding: 10px 12px 12px;
}

.price-sim-result__title {
  font-size: 13px;
  margin: 0 0 8px;
  color: #145087;
}

.price-sim-result__list {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #34536f;
}

.price-sim-result__list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.price-sim-result__list dt {
  margin: 0;
}

.price-sim-result__list dd {
  margin: 0;
  font-weight: 600;
}

.price-sim-result__total-row dd {
  font-size: 16px;
  color: #1c63d2;
}

/* 半金の内訳 */

.price-sim-result__split {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #d5e4ff;
}

.price-sim-result__split-title {
  font-size: 12px;
  margin: 0 0 4px;
  color: #145087;
}

.price-sim-result__split dl {
  margin: 0 0 4px;
  padding: 0;
  font-size: 12px;
  color: #34536f;
}

.price-sim-result__split dl > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.price-sim-result__note {
  font-size: 11px;
  line-height: 1.7;
  color: #6a7c93;
  margin: 4px 0 0;
}

/* ユーティリティ */

.u-sp-only {
  display: inline;
}

@media (min-width: 768px) {
  .u-sp-only {
    display: none;
  }
}

/* =======================
   PC向け
   ======================= */

@media (min-width: 768px) {
  .main,
  .section__inner {
    max-width: 960px;
  }

  .section {
    margin-top: 56px;
  }

  .section-price {
    margin-top: 40px;
  }

  .price-plan-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .price-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-sim {
    padding: 18px 20px 20px;
  }

  .price-sim-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .price-sim-form__field:nth-child(5),
  .price-sim-form__field:nth-child(6) {
    grid-column: 1 / -1;
  }
}
