/*
 * price-tables.css — inc/price-tables.php の料金部品
 * 旧料金画像（service_img1.png / past-review-price.jpg）の意匠に合わせる。
 * 色は旧画像から採取: ネイビー #162a70 / ティール #165870 / グリーン #237016 /
 * 表見出し #3f4c83 / 枠 #243273 / 金額ピンク #c3516b（package01 の価格色）。
 */

/* ---- 6ヶ月プラン ---- */
.bal-plan6 {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  font-family: "Noto Sans JP", sans-serif;
  color: #222222;
}
.bal-plan6-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bal-plan6-card {
  --plan-color: #162a70;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  padding: 44px 22px 22px;
  border: 1px solid #162a70;
  background: #ffffff;
  list-style: none;
}
.bal-plan6-standard { --plan-color: #165870; }
.bal-plan6-premium { --plan-color: #237016; }
.bal-plan6-name {
  position: absolute;
  /* 中央寄せは transform を使わない(親テーマ javascript.js が p に data-aos を付け、AOS が transform を上書きするため) */
  top: -30px;
  left: 7%;
  right: 7%;
  margin: 0;
  padding: 8px 0 7px;
  background: var(--plan-color);
  color: #ffffff;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
}
.bal-plan6-name::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--plan-color);
}
.bal-plan6-items {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bal-plan6-items > li {
  margin: 0 0 18px;
  list-style: none;
}
.bal-plan6-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
}
.bal-plan6-label .bal-price-check {
  flex: none;
  width: 20px;
  height: 20px;
  color: #162a70;
}
.bal-plan6-value {
  display: block;
  margin-top: 2px;
  padding-left: 28px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.bal-plan6-value small {
  margin-left: 2px;
  font-size: 18px;
  font-weight: 500;
}
.bal-plan6-sub {
  display: block;
  margin-top: 4px;
  padding-left: 28px;
  font-size: 13px;
  line-height: 1.6;
}
.bal-plan6-price {
  margin: 4px 0 0;
  padding-top: 16px;
  border-top: 1px solid #c7c7c7;
  color: #c3516b;
  font-size: 34px;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
}
.bal-plan6-price small {
  font-size: 16px;
  font-weight: bold;
}
.bal-plan6-term {
  margin: 6px 0 0;
  color: #444444;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}
.bal-plan6-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

/* ---- 過去問添削 料金表 ---- */
.bal-review-price {
  max-width: 850px;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
}
.bal-review-price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.bal-review-price-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bal-review-price-table th,
.bal-review-price-table td {
  padding: 0 14px;
  text-align: center;
  vertical-align: middle;
}
.bal-review-price-table thead td,
.bal-review-price-table thead th {
  border: 0;
  background: transparent;
}
.bal-review-price-table thead th {
  position: relative;
  padding: 10px 6px 8px;
  background: #3f4c83;
  color: #ffffff;
  font-size: 21px;
  font-weight: bold;
  line-height: 1.3;
}
.bal-review-price-table thead th.bal-review-price-shiho {
  background: #243273;
}
.bal-review-price-table thead th small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: bold;
}
.bal-review-price-table thead th::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid currentColor;
  color: #3f4c83;
}
.bal-review-price-table thead th.bal-review-price-shiho::after {
  color: #243273;
}
.bal-review-price-table tbody th,
.bal-review-price-table tbody td {
  height: 74px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.bal-review-price-table tbody th {
  background: #f1f1f1;
  color: #222222;
  font-size: 18px;
  font-weight: bold;
  border-left: 2px solid #243273;
}
.bal-review-price-table tbody td.bal-review-price-yobi {
  background: #f7f8fa;
  color: #222222;
  border-left: 2px solid #243273;
}
.bal-review-price-table tbody td.bal-review-price-shiho {
  background: #3f4c83;
  color: #ffffff;
  border-left: 2px solid #243273;
  border-right: 2px solid #243273;
}
.bal-review-price-table tbody tr:first-child > * {
  border-top: 2px solid #243273;
}
.bal-review-price-table tbody tr:last-child > * {
  border-bottom: 2px solid #243273;
}
/* 行区切り: 旧画像と同じく各列の内側に短い罫線 */
.bal-review-price-table tbody tr:not(:last-child) > * {
  background-image: linear-gradient(#b5b5b5, #b5b5b5);
  background-repeat: no-repeat;
  background-size: calc(100% - 28px) 1px;
  background-position: center bottom;
}
.bal-review-price-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .bal-plan6-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bal-plan6-card {
    padding: 40px 18px 18px;
  }
  .bal-plan6-name {
    font-size: 22px;
  }
  .bal-plan6-value {
    font-size: 30px;
  }
  .bal-plan6-price {
    font-size: 30px;
  }
  .bal-plan6-note {
    font-size: 13px;
  }
  .bal-review-price-table thead th {
    padding: 8px 2px 6px;
    font-size: 13px;
  }
  .bal-review-price-table thead th small {
    font-size: 9px;
  }
  .bal-review-price-table th,
  .bal-review-price-table td {
    padding: 0 6px;
  }
  .bal-review-price-table tbody th,
  .bal-review-price-table tbody td {
    height: 54px;
    font-size: 17px;
  }
  .bal-review-price-table tbody th {
    font-size: 14px;
  }
  .bal-review-price-table tbody tr:not(:last-child) > * {
    background-size: calc(100% - 12px) 1px;
  }
}

/* /service/online-lesson「プラン比較」: スタートアップ削除で3枚になった行を全幅に広げる(PCのみ。SPは親の縦積みのまま) */
@media screen and (min-width: 769px) {
  .service-plan-inner > .service-plan-item {
    flex: 1 1 0;
    width: auto;
  }
  /* 幅が広がってもプラン名は3枚とも詳細の上に置く(旧4枚表示と同じ並び) */
  .service-plan-inner > .service-plan-item > .service-plan-title {
    flex-basis: 100%;
  }
}

/* トップ「サービス内容」スライダー: 見出しはプラン名を強調（旧「オンライン個別指導」）、黄色の丸は契約期間 */
.service_plan_box h3.bal-plan-title {
  color: #162a70;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.service_plan_box h3.bal-plan-title-long {
  font-size: 40px;
}
.service_plan_name.bal-plan-term {
  flex-shrink: 0;
  line-height: 1.3;
  text-align: center;
}
@media screen and (max-width: 1000px) {
  .service_plan_box h3.bal-plan-title,
  .service_plan_box h3.bal-plan-title-long {
    font-size: 18px;
  }
}
/* 狭い幅で「パッケージ」の途中で折り返さないよう、語の切れ目でだけ改行させる */
.service_plan_box h3.bal-plan-title-long span {
  display: inline-block;
}

/* /service/online-lesson「料金」: 合格パッケージ画像と6ヶ月プランの大小関係を「プラン比較」に揃える
   (比較と同じく、パッケージは2枚横並び、3プランは同じ全幅を3等分。SPは従来どおり縦積み) */
@media screen and (min-width: 1001px) {
  .more_plan.bal-more-plan-pair {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    /* 縦に長くならないよう、パッケージ画像は1枚あたり約500pxに抑える(CEO指示 2026-09-28) */
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }
  .more_plan.bal-more-plan-pair img.pc {
    width: calc(50% - 20px);
    height: auto;
  }
  .bal-plan6-wide .bal-plan6 {
    /* 「プラン比較」の3プラン行(.service-plan-inner)と同じ最大幅 */
    max-width: 1300px;
  }
  .bal-plan6-wide .bal-plan6-list {
    gap: 20px;
  }
}
