/* 料金のページ・原価のページ(PR-03・PR-06)。土台は LP(/lp/lp.css)の色・ボタン・ナビ。藍色 1 色、数字は表の中だけ等幅 */
.pr { background: var(--bg); }
.pr .nav-in .btn.primary { margin-left: 8px; }
.pr-hero { padding: 64px 0 40px; }
.pr-eyebrow { color: var(--acc-ink); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.pr-hero h1 { margin-top: 10px; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.35; letter-spacing: -0.02em; }
.pr-lead { margin-top: 18px; color: var(--mut); font-size: 17px; max-width: 40em; }
.pr-today { margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pr-today > div { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.pr-today dt { font-size: 13px; color: var(--mut); font-weight: 600; }
.pr-today dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.pr-today dd b { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.pr-today dd small { color: var(--mut); font-size: 13px; }
.pr-today p { margin-top: 6px; font-size: 12px; color: var(--faint); }
.pr-today > div:first-child { background: var(--acc); border-color: transparent; color: var(--acc-fg); }
.pr-today > div:first-child dt, .pr-today > div:first-child dd small { color: color-mix(in srgb, var(--acc-fg) 80%, transparent); }

.pr-sec { padding: 64px 0; }
.pr-sec.tint { background: var(--tint); }
.pr-h { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.4; }
.pr-sub { margin-top: 10px; color: var(--mut); max-width: 46em; }

/* 式 */
.pr-formula { list-style: none; padding: 0; margin: 28px 0 0; display: flex; align-items: stretch; gap: 10px; }
.pr-formula + .pr-formula { margin-top: 12px; }
.pr-formula > li:not(.pf-op) { flex: 1 1 0; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; position: relative; }
.pr-formula b { display: block; font-size: 16px; }
.pr-formula b em { font-style: normal; color: var(--acc-ink); }
.pr-formula p { margin-top: 6px; font-size: 13px; color: var(--mut); line-height: 1.7; }
.pf-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-ink); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.pf-op { display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--faint); flex: 0 0 18px; }
.pf-op.eq { color: var(--acc); }
.pr-formula > li.pf-mid { background: var(--acc-soft); border-color: transparent; }
.pr-formula > li.pf-end { background: var(--acc); border-color: transparent; color: var(--acc-fg); }
.pr-formula > li.pf-end p { color: color-mix(in srgb, var(--acc-fg) 82%, transparent); }
.pr-example { margin-top: 18px; padding: 16px 20px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--acc) 40%, var(--line)); background: var(--panel); }
.pe-h { font-weight: 700; font-size: 14px; }
.pe-calc { margin-top: 6px; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pr-notes { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pr-notes > div { padding: 18px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.pr-notes h3 { font-size: 15px; }
.pr-notes p { margin-top: 8px; font-size: 14px; color: var(--mut); line-height: 1.8; }

/* シミュレーション */
.sim-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--acc); color: var(--acc-fg); border-color: transparent; }
.chip.ghost { background: transparent; }
.sim { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.sim-in { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 8px 20px 16px; }
.sim-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sr-l { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sr-l b { font-size: 15px; }
.sr-l small { font-size: 12px; color: var(--mut); line-height: 1.6; }
.sr-n { display: flex; align-items: center; gap: 4px; flex: none; }
.sr-n input { width: 72px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; text-align: right; padding: 0 8px; font-variant-numeric: tabular-nums; }
.sr-u { font-size: 12px; color: var(--mut); width: 2.4em; }
.sr-b { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-size: 18px; line-height: 1; cursor: pointer; }
.sr-b:active { transform: scale(.94); }
.sim-auto { display: block; margin-top: 12px; font-size: 13px; color: var(--mut); }
.sim-auto small { display: block; margin-left: 1.6em; color: var(--faint); }
.sim-out { position: sticky; top: 84px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 18px; box-shadow: var(--shadow); }
.so-l { font-size: 13px; color: var(--mut); font-weight: 600; }
.so-v { margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.so-v b { font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; }
.so-v small { color: var(--mut); }
.so-y { margin-top: 4px; font-size: 14px; color: var(--mut); }
.so-bars { margin-top: 16px; display: grid; gap: 8px; }
.bl-row { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; border-radius: 6px; }
.bl-row:focus-visible { outline: 2px solid color-mix(in srgb, var(--acc) 45%, transparent); outline-offset: 2px; }
.bl-l { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-t { height: 18px; display: block; }
.bl-t i { display: block; height: 100%; background: var(--acc); border-radius: 0 4px 4px 0; transition: width 240ms var(--ease); }
.bl-row:hover .bl-t i { background: color-mix(in srgb, var(--acc) 80%, #fff); }
.bl-v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4.5em; text-align: right; }
.so-bal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.so-bal label { font-size: 14px; color: var(--mut); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.so-bal-i { width: 110px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; text-align: right; padding: 0 8px; font-variant-numeric: tabular-nums; }
.so-days { margin-top: 10px; font-weight: 700; font-size: 15px; }
.so-chart { position: relative; margin-top: 8px; }
.so-note { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.7; }

/* グラフ */
.ch { display: block; overflow: visible; touch-action: pan-y; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-tick { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { fill: var(--acc); fill-opacity: .1; }
.ch-dot { fill: var(--acc); stroke: var(--panel); stroke-width: 2; }
.ch-cross { stroke: var(--mut); stroke-width: 1; }
.ch-tip[hidden] { display: none; }
.ch-tip { position: absolute; pointer-events: none; background: var(--fg); color: var(--bg); border-radius: 10px; padding: 6px 10px; font-size: 12px; display: grid; min-width: 140px; box-shadow: var(--shadow); }
.ch-tip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ch-tip span { opacity: .75; }

/* 単価の一覧 */
.pl { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.pl-g, .gk-card, .sim-in, .sim-out { min-width: 0; }
.pl-g h3 { font-size: 18px; }
.pl-n { margin-top: 4px; font-size: 13px; color: var(--mut); }
.pl-s { margin-top: 4px; font-size: 12px; color: var(--faint); }
.pl-s a { color: var(--acc-ink); }
.pt-wrap { margin-top: 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.pt { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt th, .pt td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pt thead th { font-size: 12px; color: var(--mut); font-weight: 600; background: color-mix(in srgb, var(--tint) 60%, var(--panel)); white-space: nowrap; }
.pt tbody tr:last-child > * { border-bottom: 0; }
.pt tbody th { font-weight: 600; min-width: 12em; }
.pt th small, .pt td small { display: block; font-size: 11px; color: var(--faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.pt small.warn, .pl-n.warn { color: #9a5b00; }
.pt td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt td b { font-size: 15px; }
.pt td.num { text-align: right; }
.pt td.strong { font-weight: 700; }
.pl-more { margin-top: 10px; }
.pl-more summary { cursor: pointer; color: var(--acc-ink); font-size: 14px; font-weight: 600; }

/* Game の利益 */
.pr-game { max-width: 820px; }
.pr-game p { margin-top: 16px; color: var(--mut); font-size: 16px; }
.pr-game .btn { margin-top: 24px; }
/* よくある質問 */
.pr-faq { max-width: 880px; }
.pr-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.pr-faq summary { cursor: pointer; font-weight: 700; }
.pr-faq details p { margin-top: 8px; color: var(--mut); font-size: 15px; }
.pr-faq h2 { margin-bottom: 12px; }

/* 原価の記録 */
.gk-cards { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.gk-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; position: relative; }
.gk-card h3 { font-size: 15px; }
.gk-card .gk-big { margin-top: 6px; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.gk-card .gk-big small { font-size: 14px; color: var(--mut); font-weight: 600; margin-left: 4px; }
.gk-card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.gk-card dt { color: var(--mut); }
.gk-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.gk-card .gk-src { margin-top: 10px; font-size: 12px; color: var(--faint); }
.gk-card .gk-src a { color: var(--acc-ink); }
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st.ok { color: #1f7a4d; } .st.changed { color: #b4232c; } .st.unreadable { color: #9a5b00; } .st.manual { color: var(--mut); }
.gk-checks td.gk-found { white-space: normal; min-width: 16em; max-width: 28em; font-size: 12px; color: var(--mut); overflow-wrap: anywhere; }
.gk-checks td a { color: var(--acc-ink); }
.gk-cmp { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gk-cmp .gk-card .so-bars { margin-top: 12px; }
.gk-cmp .bl-row { grid-template-columns: minmax(0, 12em) minmax(0, 1fr) auto; }

@media (max-width: 960px) {
  .pr-today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-notes { grid-template-columns: minmax(0, 1fr); }
  .sim { grid-template-columns: minmax(0, 1fr); }
  .sim-out { position: static; }
  .gk-cards, .gk-cmp { grid-template-columns: minmax(0, 1fr); }
  .pr .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .pr-hero { padding: 40px 0 24px; }
  .pr-today dd b { font-size: 26px; }
  .pr-formula { flex-direction: column; }
  .pf-op { flex: none; height: 18px; }
  .sim-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .sr-n { justify-content: flex-end; }
  .so-v b { font-size: 42px; }
  .bl-row, .gk-cmp .bl-row { grid-template-columns: minmax(0, 7em) minmax(0, 1fr) auto; }
}
