/* 料金の比較に必要な文字と余白を主役にする。画像は既存の案内役を再利用。 */
/* 2026-09-04(市場再設計 design-brief.md §4-2): 角丸を skin.css 側と同じ 0/8/12(var(--r-card))/999 の
   段階へ揃えた(旧: 20px/16px/10pxが混在)。色・余白・文言・DOM構造は変えていない。 */
.pb-shell { color: var(--text); padding-top: 8px; }
.pb-intro { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 26px; }
.pb-kicker { margin: 0 0 8px; color: var(--brand); font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .08em; }
.pb-intro h2 { margin: 0; font-size: clamp(27px, 3.2vw, 38px); line-height: 1.35; letter-spacing: -.03em; }
.pb-lead { margin: 12px 0 0; color: var(--muted-strong); font-size: 14px; line-height: 1.7; }
.pb-guide { flex: 0 0 128px; width: 128px; height: 128px; object-fit: contain; mix-blend-mode: multiply; }
.pb-guide.is-unavailable { display: none; }
.pb-layout { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.6fr); gap: 28px; align-items: start; }
.pb-selector { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.pb-fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.pb-fieldset + .pb-fieldset { margin-top: 24px; }
.pb-fieldset legend { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 800; }
.pb-clinics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pb-clinic, .pb-area { border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); font: inherit; cursor: pointer; }
.pb-clinic { border-radius: 8px; min-height: 46px; padding: 10px 8px; font-weight: 800; }
.pb-clinic[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pb-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pb-area { display: grid; justify-items: center; align-content: center; min-height: 112px; border-radius: var(--r-card); padding: 10px 6px; gap: 4px; text-align: center; }
.pb-area[aria-pressed="true"] { background: var(--brand-softer); border: 2px solid var(--brand); padding: 9px 5px; }
.pb-area:hover, .pb-clinic:hover { border-color: var(--brand); }
.pb-area-icon { display: block; width: 36px; height: 36px; color: var(--brand); }
.pb-area-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pb-area-name { font-size: 15px; font-weight: 800; }
.pb-area-detail { font-size: var(--fs-2xs); line-height: 1.45; color: var(--muted-strong); overflow-wrap: anywhere; }
.pb-optional-check { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.pb-optional-check p { margin: 0 0 5px; font-size: var(--fs-2xs); color: var(--muted-strong); }
.pb-check-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; min-height: 44px; background: none; border: 0; color: var(--brand); text-align: left; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.pb-results { min-width: 0; }
.pb-status { margin: 0 0 14px; color: var(--muted-strong); font-size: 14px; line-height: 1.7; }
.pb-change-area { display: none; }
.pb-results-body { min-width: 0; }
.pb-courses { display: grid; gap: 16px; }
.pb-course { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); min-width: 0; }
.pb-course-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pb-course h3 { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -.015em; }
.pb-session-count { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 22px; font-weight: 800; line-height: 1.4; }
.pb-session-count span { font-size: var(--fs-2xs); }
.pb-price-caption { color: var(--brand); font-size: 13px; font-weight: 800; margin: 18px 0 2px; }
.pb-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; color: var(--brand); }
.pb-total strong { font-size: clamp(34px, 3.6vw, 44px); line-height: 1.25; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pb-total span { font-size: 13px; font-weight: 700; }
.pb-total-note { margin: 4px 0 18px; font-size: var(--fs-2xs); color: var(--muted-strong); }
.pb-parts { display: grid; gap: 6px; margin: 0 0 16px; font-size: 14px; line-height: 1.7; }
.pb-parts strong { font-size: var(--fs-2xs); color: var(--muted-strong); }
.pb-conditions { padding: 14px 16px; background: var(--surface-2); border-radius: 8px; }
.pb-conditions h4 { margin: 0 0 8px; font-size: 13px; }
.pb-conditions ul { margin: 0; padding-left: 1.3em; }
.pb-conditions li { padding-left: 2px; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.pb-conditions li + li { margin-top: 6px; }
.pb-validity { margin: 12px 0 0; font-size: var(--fs-2xs); color: var(--muted-strong); }
.pb-course-source { display: inline-flex; align-items: center; min-height: 44px; margin-top: 7px; color: var(--brand); font-size: var(--fs-2xs); line-height: 1.6; text-underline-offset: 3px; }
.pb-price-note { font-size: var(--fs-2xs); line-height: 1.75; color: var(--muted-strong); margin: 14px 2px; }
.pb-treatment-note { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.pb-treatment-note h4 { font-size: 14px; margin: 0 0 8px; }
.pb-treatment-note p { margin: 0; font-size: 13px; line-height: 1.8; }
.pb-treatment-note p + p { margin-top: 8px; }
.pb-contact { display: grid; gap: 10px; padding-top: 12px; }
.pb-consult { min-height: 50px; font-size: 15px; }
.pb-official { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; color: var(--brand); font-size: 13px; text-underline-offset: 4px; }
.pb-outbound-note { margin: 0; color: var(--muted-strong); font-size: var(--fs-2xs); line-height: 1.7; }
.pb-retry { margin-bottom: 12px; min-height: 44px; }
.pb-loading { display: grid; place-items: center; min-height: 200px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.pb-shell :is(button, a):focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.pb-check-back { margin-bottom: 14px; }
@media (max-width: 760px) {
  .pb-shell { padding-top: 0; }
  .pb-intro { margin: 0 0 18px; }
  .pb-intro h2 { font-size: 28px; }
  .pb-guide { width: 96px; height: 112px; flex-basis: 96px; }
  .pb-lead { font-size: 13px; margin-top: 10px; }
  .pb-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pb-selector { padding: 18px; }
  .pb-fieldset + .pb-fieldset { margin-top: 18px; }
  .pb-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pb-area { min-height: 96px; }
  .pb-area-name { font-size: 14px; }
  .pb-area-detail { font-size: var(--fs-2xs); }
  .pb-optional-check { margin-top: 18px; padding-top: 12px; }
  .pb-course { padding: 20px; }
  .pb-course h3 { font-size: 18px; }
  .pb-results { scroll-margin-top: 90px; }
  /* v102: svh の無い端末(iOS 15.0〜15.3)は vh の行を使う。svh のある端末は次の宣言が上書きする。 */
  .pb-results[aria-busy="true"] { min-height: calc(100vh - 90px); min-height: calc(100svh - 90px); }
  .pb-status:focus { outline: none; }
  .pb-change-area:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; margin: -7px 0 10px; border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
  .pb-area-field { scroll-margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-shell .spinner { animation-duration: 2s; }
}
