/* 料金表（3つのコース）・組み合わせ・料金シミュレーター・1週間のイメージ（_lib/site_parts.php の mn_price_board()・mn_week_image()）
   色：個別指導＝緑、毎日管理＝オレンジ、自習管理＝すみれ（コースのラベル・サムネイルと同じ） */
.pb { --c-ind: #0d9941; --c-ind-s: #e6f7ed; --c-man: #e2551f; --c-man-s: #fff1ea; --c-jishu: #5b45a8; --c-jishu-s: #f1eefb; }
.pb__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; background: #f3f6f4; border-radius: 16px; margin: 0 0 18px; }
.pb__tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 8px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: .95rem; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.pb__tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(26, 26, 46, .08); }
.pb__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pb__dot--ind { background: var(--c-ind); } .pb__dot--man { background: var(--c-man); } .pb__dot--jishu { background: var(--c-jishu); }
.pb__h { font-size: 1.12rem; font-weight: 900; color: var(--navy); margin: 0 0 12px; line-height: 1.5; }
.pb__h small { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-light); margin-top: 2px; }
.pb__h2 { font-size: 1.16rem; font-weight: 900; color: var(--navy); margin: 0 0 4px; }
.pb__lead { font-size: .88rem; color: var(--ink); margin: 0 0 14px; }
.pb__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.pb__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pb__table th, .pb__table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.pb__table thead th { font-size: .86rem; font-weight: 700; color: #fff; background: var(--c-ind); line-height: 1.4; }
.pb__table thead th small { display: block; font-size: .7rem; font-weight: 500; opacity: .9; }
.pb__table--man thead th { background: var(--c-man); }
.pb__table--jishu thead th { background: var(--c-jishu); }
.pb__table tbody th { text-align: left; color: var(--navy); background: #fafcfb; font-weight: 700; position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.pb__table thead th:first-child { position: sticky; left: 0; z-index: 2; }   /* 横にスクロールしても、いちばん左の列（見出しも）は動かない */
.pb__table tbody th a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--blue-line); }
.pb__table td { color: var(--navy); font-variant-numeric: tabular-nums; }
.pb__table td a { color: inherit; text-decoration: none; }
.pb__table td a:hover b { text-decoration: underline; }
.pb__table td b { font-size: 1.12rem; font-weight: 900; }
.pb__table td.na { color: var(--ink-light); }
.pb__table tr:last-child th, .pb__table tr:last-child td { border-bottom: 0; }
.pb__note { font-size: .84rem; color: var(--ink); margin: 10px 2px 0; }
.pb__note a { color: var(--blue-ink); }

.pb__combo { margin-top: 34px; }
.pbx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pbx__card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pbx__head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--navy); font-size: 1rem; }
.pbx__g { flex: none; font-size: .76rem; font-weight: 700; color: #fff; background: var(--navy); border-radius: 999px; padding: 2px 10px; }
.pbx__who { font-size: .82rem; color: var(--ink-light); margin: 0 0 10px; line-height: 1.7; }
.pbx__lines { margin: 0; padding: 0; display: grid; gap: 4px; }
.pbx__lines div { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--ink); line-height: 1.6; }
.pbx__lines dt { min-width: 0; }
.pbx__lines dd { margin: 0; flex: none; font-variant-numeric: tabular-nums; color: var(--navy); }
.pbx__lines .minus dd { color: #c2382c; font-weight: 700; }
.pbx__total { margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--line); text-align: right; color: var(--navy); font-size: .9rem; }
.pbx__lines + .pbx__total { margin-top: 10px; }
.pbx__total b { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.pbx__total small { font-size: .76rem; color: var(--ink-light); }

.pb__simbtn { text-align: center; margin: 22px 0 0; }
.pb__simbtn .mn-btn { gap: 8px; }
/* 料金シミュレーター：ボタンで開くポップアップ（<dialog>）。PCは真ん中、スマホは下からのシート（画面の2/3くらい） */
.pbs { width: min(600px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 20px 22px 22px; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(26, 26, 46, .25); overflow-y: auto; }
.pbs::backdrop { background: rgba(26, 26, 46, .45); }
.pbs[open] { animation: pbsIn .22s ease-out; }
@keyframes pbsIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pbs__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pbs__close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f4f2; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pbs__close .i { width: 20px; height: 20px; }
.pbs__foot { margin: 12px 2px 0; font-size: .8rem; color: var(--ink-light); }
html.pbs-open { overflow: hidden; }
.pbs__form { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.pbs__form label { display: flex; flex-direction: column; min-width: 0; }
.pbs__form span { font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pbs__form select { width: 100%; min-height: 48px; padding: 0 34px 0 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: .95rem; color: var(--navy); appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.pbs__out { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.pbs__warn { margin: 0 0 8px; font-size: .86rem; color: #a5560b; font-weight: 700; }
.pbs__hint { margin: 8px 0 0; font-size: .82rem; color: var(--c-jishu); font-weight: 700; text-align: right; }
.pbs__links { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; font-size: .84rem; }
.pbs__links a { color: var(--blue-ink); font-weight: 700; }

/* 1週間のイメージ */
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 14px 0 6px; }
.wk__d { min-height: 86px; background: #f7f9f8; border-radius: 10px; padding: 6px 3px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.wk__w { text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-light); line-height: 1.3; }
.wk__c { display: block; text-align: center; font-size: .64rem; font-weight: 700; line-height: 1.25; border-radius: 6px; padding: 4px 1px; letter-spacing: 0; word-break: keep-all; }
.wk__c--lesson { background: #0d9941; color: #fff; }
.wk__c--meet { background: #e2551f; color: #fff; }
.wk__c--check { background: #fff1ea; color: #b4441a; }
.wk__c--jishu { background: #5b45a8; color: #fff; }
.wk__c--hw { background: #eef1f4; color: var(--ink); font-weight: 500; }
.wk__cap { font-size: .76rem; color: var(--ink-light); margin: 0 0 4px; }

@media (max-width: 900px) {
  .pbx { grid-template-columns: minmax(0, 1fr); }
  .pbs__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pbs__form label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pbs { width: 100%; max-width: 100%; max-height: 72vh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
  .pbs[open] { animation: pbsUp .25s ease-out; }
  @keyframes pbsUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
}
@media (max-width: 520px) {
  .pb__tabs button { font-size: .86rem; gap: 5px; }
  .pb__table th, .pb__table td { padding: 11px 8px; }
  .pb__table td b { font-size: 1rem; }
  .pbs { padding: 18px 14px; }
  .pbs__form { grid-template-columns: minmax(0, 1fr); }
  .wk { gap: 3px; }
  .wk__c { font-size: .6rem; }
}
.pb__cap { margin: 16px 2px 0; font-size: .86rem; color: var(--ink); }
.pb__cap a { color: var(--blue-ink); }
.pb__cap + .pb__simbtn { margin-top: 14px; }
