/* Pricing page (/pricing/). Colour comes from the brand tokens in site.css —
   this file must not define its own palette.
   Blocks: hero with the three plans (the only place they appear), conditions
   shared by every plan, comparison with form-sales tools, comparison with other
   services, FAQ, final CTA. Backgrounds alternate white and pale blue. */
.pricing-page { color: var(--brand-navy); background: var(--white); }
.pr-narrow { max-width: 820px; }

.pr-hero { padding: 48px 0 80px; background: linear-gradient(180deg, var(--pale-blue-2), var(--white)); }
.pr-lead { max-width: 720px; margin: 20px 0 0; color: var(--text-body); font-size: 1.125rem; line-height: 1.9; }

/* The three plans. */
.pr-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 44px; align-items: stretch; }
.pr-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.pr-plan.is-recommended { border: 2px solid var(--brand-blue); }
.pr-plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 16px; border-radius: 999px; color: var(--on-brand-blue); background: var(--brand-blue); font-size: .875rem; font-weight: 800; white-space: nowrap; }
.pr-plan img { display: block; width: 96px; height: 96px; margin: 0 auto 12px; object-fit: contain; }
.pr-plan h2 { margin: 0; color: var(--brand-navy-deep); font-size: 1.375rem; text-align: center; }
.pr-plan-fit { min-height: 3.4em; margin: 8px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; text-align: center; }
.pr-plan-price { margin: 16px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--brand-navy-deep); font-weight: 700; text-align: center; }
/* px, not rem: with a larger browser font the price outgrew the three narrow cards. */
.pr-plan-price strong { font-size: 40px; letter-spacing: -.02em; }
.pr-plan-price small { display: block; color: var(--muted); font-size: .875rem; font-weight: 500; }
.pr-plan-specs { display: grid; gap: 0; margin: 8px 0 20px; }
.pr-plan-specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pr-plan-specs dt { color: var(--text-body); font-size: 1rem; }
.pr-plan-specs dd { margin: 0; color: var(--brand-navy-deep); font-weight: 800; white-space: nowrap; }
.pr-plan .button { width: 100%; margin-top: auto; border-radius: 999px; }

/* Conditions shared by every plan: setup fee on the left, the rest as a list. */
.pr-terms { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 20px; margin-top: 40px; }
.pr-setup { padding: 28px; border-radius: 18px; color: var(--white); background: var(--brand-navy-deep); }
.pr-setup-label { margin: 0; color: var(--on-dark); font-weight: 700; }
.pr-setup-price { margin: 6px 0 18px; font-weight: 700; }
.pr-setup-price strong { font-size: 2.5rem; letter-spacing: -.02em; }
.pr-setup-price small { display: block; color: var(--on-dark); font-size: .9375rem; font-weight: 500; }
.pr-setup ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 16px; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; }
.pr-setup li { position: relative; padding-left: 24px; line-height: 1.6; }
.pr-setup li::before { content: "✓"; content: "✓" / ""; position: absolute; left: 0; color: var(--on-dark); font-weight: 900; }
.pr-conditions { display: grid; gap: 0; margin: 0; padding: 8px 28px; border-radius: 18px; background: var(--white); }
.pr-conditions > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pr-conditions > div:last-child { border-bottom: 0; }
.pr-conditions dt { color: var(--brand-navy-deep); font-weight: 800; }
.pr-conditions dd { margin: 4px 0 0; color: var(--text-body); line-height: 1.8; }

/* Comparisons. Lists, not tables: each row is one grid line, values sit right at the
   bar tip, our row is the one blue mark and every other one is neutral (validated:
   CVD separation and >= 3:1 against the white card), so a reader scans in one pass. */
/* Tool comparison: three columns, our column tinted the whole way down. */
.pr-vs { margin-top: 28px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.pr-vs-head, .pr-vs-rows li { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr); }
.pr-vs-head { background: var(--pale-blue-2); }
.pr-vs-head > span { padding: 16px 20px; color: var(--brand-navy-deep); font-weight: 800; line-height: 1.4; }
.pr-vs-head small { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.pr-vs-head .is-bizform { color: var(--white); background: var(--brand-blue); }
.pr-vs-head .is-bizform small { color: var(--on-brand-blue); }
.pr-vs-rows { margin: 0; padding: 0; list-style: none; }
.pr-vs-rows li { border-top: 1px solid var(--line); }
.pr-vs-rows li > span { display: flex; align-items: center; min-height: 60px; padding: 12px 20px; font-size: 1rem; line-height: 1.5; }
.pr-vs-rows li > span > small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pr-vs-item { color: var(--brand-navy-deep); font-weight: 700; }
.pr-vs-tool { color: var(--muted); }
.pr-vs-us { color: var(--brand-navy-deep); background: var(--pale-blue); font-weight: 800; }
.pr-check { display: inline-flex; align-items: center; gap: 8px; }
.pr-check::before { content: "✓"; content: "✓" / ""; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--white); background: var(--brand-blue); font-size: .75rem; font-weight: 900; }

/* Bar charts on white cards. */
.pr-chart { margin-top: 32px; padding: 28px 32px 32px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.pr-chart + .pr-chart { margin-top: 20px; }
.pr-chart-title { margin: 0; color: var(--brand-navy-deep); font-size: 1.25rem; line-height: 1.5; }
.pr-chart-caption { margin: 8px 0 0; color: var(--text-body); line-height: 1.8; }
.pr-chart-group { margin: 26px 0 4px; color: var(--brand-blue); font-size: .875rem; font-weight: 800; letter-spacing: .04em; }
.pr-bars { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pr-chart-caption + .pr-bars { margin-top: 22px; }
.pr-bars li { display: grid; grid-template-columns: 12em minmax(0,1fr); align-items: center; gap: 16px; min-height: 44px; padding: 5px 12px; margin: 0 -12px; border-radius: 10px; }
.pr-bar-label { color: var(--text-body); font-size: 1rem; line-height: 1.4; }
.pr-bar-label small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.pr-bar-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pr-bar { flex: 0 1 auto; min-width: 3px; width: var(--w); height: 16px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--muted) 65%, var(--white)); }
.pr-bar-value { flex: none; color: var(--brand-navy-deep); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-bars .is-bizform { background: var(--pale-blue); }
.pr-bars .is-bizform .pr-bar-label { color: var(--brand-navy-deep); font-weight: 800; }
.pr-bars .is-bizform .pr-bar { background: var(--brand-blue); }
.pr-bars .is-bizform .pr-bar-value { font-weight: 800; }

/* Extra costs: company on the left, cost on the right. */
.pr-extra { display: grid; margin: 20px 0 0; }
.pr-extra > div { display: grid; grid-template-columns: 9em minmax(0,1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.pr-extra dt { color: var(--brand-navy-deep); font-weight: 700; }
.pr-extra dd { margin: 0; color: var(--text-body); line-height: 1.7; }
.pr-extra .is-bizform { margin-top: 10px; padding: 14px 16px; border-top: 0; border-radius: 10px; background: var(--pale-blue); }
.pr-extra .is-bizform dt, .pr-extra .is-bizform dd { color: var(--brand-navy-deep); font-weight: 800; }

.pr-basis { margin-top: 28px; }
.pr-basis ol { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 1.4em; color: var(--muted); font-size: .9375rem; line-height: 1.75; }

/* The final CTA is the shared .final-cta (site.css); its long heading wraps freely. */
.final-cta h2 .heading-line { white-space: normal; }

@media (max-width: 1024px) {
  .pr-plans { gap: 14px; }
  .pr-bars li { grid-template-columns: 9.5em minmax(0,1fr); }
  .pr-plan { padding: 24px 18px; }
  .pr-terms { grid-template-columns: minmax(0,1fr); }
}

/* Three cards side by side (tablets only; phones stack them, with full-size buttons and text):
   keep "スタンダードを相談する" on one line. */
@media (min-width: 768.02px) and (max-width: 1024px) {
  .pr-plan .button { padding-inline: 8px; font-size: clamp(14px, 1.9vw, 16px); }
  .pr-plan-specs dt { font-size: .9375rem; }
}

@media (max-width: 768px) {
  .pr-hero { padding: 28px 0 56px; }
  /* A short title: a little larger than the shared phone size, with tighter lines. */
  .pr-hero .hero-title { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.25; }
  .pr-lead { margin-top: 14px; font-size: 1rem; }
  .pr-plans { grid-template-columns: minmax(0,1fr); gap: 24px; margin-top: 32px; }
  .pr-plan img { width: 80px; height: 80px; }
  .pr-plan-fit { min-height: 0; }
  .pr-plan-price strong { font-size: 36px; }
  .pr-terms { margin-top: 28px; }
  .pr-setup, .pr-conditions { padding-inline: 20px; }
  .pr-setup ul { grid-template-columns: minmax(0,1fr); }
  /* Tool comparison: item name on its own line, then the two answers side by side with their captions. */
  .pr-vs { margin-top: 24px; }
  .pr-vs-head { display: none; }
  .pr-vs-rows li { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .pr-vs-item { grid-column: 1 / -1; min-height: 0; padding: 14px 16px 6px; }
  .pr-vs-tool, .pr-vs-us { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 0; padding: 8px 16px 14px; }
  .pr-vs-rows li > span > small { position: static; width: auto; height: auto; clip: auto; white-space: normal; margin-bottom: 4px; color: var(--muted); font-size: .75rem; font-weight: 700; }
  .pr-vs-us > small { color: var(--brand-blue); }
  /* Charts: label above its bar, bars full width. */
  .pr-chart { margin-top: 24px; padding: 20px 16px 22px; }
  .pr-chart-title { font-size: 1.125rem; }
  .pr-bars { gap: 8px; }
  /* Name and value share the first line; the bar takes the full width underneath,
     so a long value never runs off a narrow screen. */
  .pr-bars li { grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; min-height: 0; padding: 8px 10px; margin: 0 -10px; }
  .pr-bar-track { display: contents; }
  .pr-bar-label { grid-column: 1; grid-row: 1; }
  .pr-bar-value { grid-column: 2; grid-row: 1; align-self: baseline; }
  .pr-bar { grid-column: 1 / -1; grid-row: 2; }
  .pr-extra > div { grid-template-columns: minmax(0,1fr); gap: 2px; }
  .pr-basis ol { font-size: .875rem; }
}
