/* プランとお申し込み（pricing.html）の見た目。課金の担当。色は style.css の :root のトークン（明るい・暗いの両方）だけを使う。
   スマホ 375px を第一に作り、広い画面ではプランを 3 列に並べる。 */

.pr { padding-top: 16px; padding-bottom: 8px; max-width: 980px; }
.pr-back { margin: 0 0 8px; font-size: .9em; }
.pr-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; min-height: 40px; }
.pr-back a:hover { color: var(--brand); }
.pr-back .ico { width: 1.1em; height: 1.1em; }
.pr-head { margin-bottom: 18px; }
.pr-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--muted); font-size: .875em; }
.pr-badge { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-weight: 700; font-size: .8em; }
.pr-title { font-size: 1.55em; margin: 0 0 6px; }
.pr-lead { color: var(--muted); margin: 0; }
.pr-loading { color: var(--muted); }
.pr-small { color: var(--muted); font-size: .85em; margin: 10px 0 0; }
.pr-center { text-align: center; }
.pr-exam-pick { max-width: 420px; }

.pr-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 18px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--fg); }
.pr-note p { margin: 0; }
.pr-note .ico { color: var(--brand); margin-top: 3px; }
.pr-note[hidden] { display: none; }

.pr-section { margin: 0 0 28px; }
.pr-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15em; margin: 0 0 14px; }
.pr-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .85em; font-weight: 800; flex: none; }

/* 払い方の切り替え */
/* 月払い／半年払い／年払い の 3 つ。375px 幅でも横に 3 つ並ぶ（1 つ 110px ほど）。「おすすめ」の印は年払いの上の縁に重ねる */
.pr-interval { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); max-width: 520px; margin: 14px 0 16px; }
.pr-int { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 52px; padding: 8px 4px 6px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; line-height: 1.3; text-align: center; }
.pr-int.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.pr-save { font-size: .72em; font-weight: 600; color: var(--ok); }
.pr-save:empty { display: none; }
.pr-rec { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); max-width: 100%; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .66em; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pr-rec[hidden] { display: none; }

/* プランのカード */
.pr-plans { display: grid; gap: 12px; }
@media (min-width: 760px) { .pr-plans { grid-template-columns: repeat(3, 1fr); } }
.pr-plan { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 18px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s; }
.pr-plan:hover:not([disabled]) { border-color: var(--brand); }
.pr-plan.on { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -1px; }
.pr-plan[disabled] { cursor: not-allowed; opacity: .6; }
.pr-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-plan-name { font-weight: 800; font-size: 1.1em; }
.pr-tag { font-size: .75em; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.pr-tag.muted { background: var(--surface-2); color: var(--muted); }
.pr-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.pr-price .num { font-size: 1.7em; font-weight: 800; letter-spacing: -.01em; }
.pr-per { color: var(--muted); font-size: .85em; }
.pr-eq { margin: -6px 0 0; color: var(--muted); font-size: .8em; }
.pr-saving { margin: -4px 0 0; color: var(--ok); font-size: .8em; font-weight: 700; }
.pr-q { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pr-q .ico { width: 1.2em; height: 1.2em; color: var(--brand); }
.pr-desc { color: var(--muted); font-size: .9em; line-height: 1.6; flex: 1; }
.pr-pick { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 4px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 700; }
.pr-plan.on .pr-pick { background: var(--brand); color: var(--on-brand); }
.pr-pick .ico { width: 1.1em; height: 1.1em; }

/* 最終確認 */
.pr-confirm { padding: 18px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 76px; }
.pr-confirm[hidden] { display: none; }
.pr-summary { margin: 0 0 16px; display: grid; gap: 0; }
.pr-summary > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .pr-summary > div { grid-template-columns: 9em 1fr; gap: 12px; } }
.pr-summary dt { color: var(--muted); font-size: .85em; font-weight: 700; }
.pr-summary dd { margin: 0; }
#prSumPrice { font-weight: 800; font-size: 1.1em; }
.pr-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 16px; border-radius: var(--radius-sm); background: var(--mark-soft); color: var(--fg); border: 1px solid color-mix(in srgb, var(--mark) 35%, transparent); }
.pr-warn p { margin: 0; font-size: .92em; }
.pr-warn .ico { color: var(--mark); margin-top: 3px; }
.pr-consents { border: 0; padding: 0; margin: 0; }
.pr-consents legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.pr-check { border-bottom: 1px dashed var(--line); padding: 12px 0; line-height: 1.6; }
.pr-check:last-child { border-bottom: 0; }
.pr-submit { margin-top: 16px; }
.pr-exam-pick[hidden], #prBody[hidden] { display: none; }
.pr-warn > span, .pr-note > .ico { flex: none; display: inline-flex; }

/* 公開記念キャンペーン（月払い・最初の 2 か月 20% オフ） */
.pr-campaign { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--mark-soft); color: var(--mark); font-weight: 700; font-size: 14px; }
.pr-camp s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.pr-camp { color: var(--mark); }
