/* =========================================================================
   料金プラン（pricing.html）だけのスタイル。共通のクラスと色は site.css。
   - 色は site.css の変数だけを使う。角は丸めない
   - 影は「おすすめ」の札だけ
   ========================================================================= */

/* ---- 区間 ---- */
.pr-sec { padding: 72px 0; }
@media (max-width: 640px) { .pr-sec { padding: 56px 0; } }
.pr-stack { display: flex; flex-direction: column; gap: 32px; }

/* ---- 月払い・年払いの切り替え ----
   html[data-bill] は site.js が付ける。付く前（読み込み中）は年払いの見た目 */
html[data-bill="monthly"] .yearly-only { display: none; }
html:not([data-bill="monthly"]) .monthly-only { display: none; }

.bill-toggle { display: flex; }
.bill-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 700;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--text);
  cursor: pointer;
}
.bill-toggle__btn + .bill-toggle__btn { border-left: 0; }
.bill-toggle__btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.bill-toggle__save { padding: 1px 8px; background: var(--mustard); color: var(--ink); font-size: 12px; }

/* ---- プランのカード ---- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan--featured { border: 2px solid var(--ink); }

/* おすすめの札: カードの上の縁にまたがる。absolute なので中身を押し下げない */
.plan__badge {
  position: absolute;
  top: -15px;
  left: 34px;
  padding: 3px 14px;
  background: var(--ink);
  color: var(--mustard);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 14px -6px rgba(20, 23, 26, 0.45);
}

.plan__head { display: flex; flex-direction: column; gap: 4px; }
.plan__kind { font-size: 14px; color: var(--text-muted); }
.plan__name { font-size: 28px; line-height: 1.3; }

.plan__price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.plan__base { font-size: 14px; color: var(--text-muted); }
.plan__off { padding: 2px 12px; background: var(--mustard); color: var(--ink); font-size: 14px; }
.plan__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan__value { font-size: 48px; font-weight: 500; line-height: 1.1; }
.plan__unit { font-size: 15px; color: var(--text-sub); }
.plan__note { font-size: 14px; color: var(--text-sub); }
.plan__save { font-weight: 700; color: var(--text); }

.plan__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.plan__features li { padding: 12px 0; border-bottom: 1px solid var(--line); }

.plan__cta { margin-top: auto; min-height: 52px; font-size: 16px; }

.pr-login { margin: 0; font-size: 15px; }
.pr-login a { font-weight: 700; color: var(--ochre); }
.pr-env { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ---- 機能比較表（狭い画面では横にスクロール） ---- */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-scroll:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
  border-top: 2px solid var(--text);
}
.compare th, .compare td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}
.compare thead th { border-bottom: 2px solid var(--text); font-size: 18px; }
.compare tbody th { width: 30%; font-weight: 700; }

.pr-more { align-self: flex-start; }

/* ---- お申し込みの流れ ---- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px;
}
.step { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--text); padding-top: 18px; }
.step__num { font-size: 13px; font-weight: 600; color: var(--ochre); }
.step__title { font-size: 19px; }
.step__text { font-size: 15px; color: var(--text-sub); }
.step__text a { font-weight: 700; color: var(--ochre); }

/* 通常料金の月払いは割引が無い。通常月額と割引の札を見えなくする（年払いと行の高さはそろえたまま） */
html[data-phase="regular"][data-bill="monthly"] .plan__base,
html[data-phase="regular"][data-bill="monthly"] .plan__off { visibility: hidden; }

/* 相場塾会員向け（pricing-soubajuku.html） */
.pr-member-notice { margin: 0; font-size: 16px; font-weight: 700; color: var(--ochre); word-break: auto-phrase; }
.pr-member-notice span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.plan__member { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); text-align: center; }
.pr-member-link { align-self: flex-start; }

/* お申し込みの流れの文は文節の切れ目で折り返す（「す。」だけが落ちないように） */
.step__text { word-break: auto-phrase; }
