:root {
  color-scheme: light;
  --ink: #172b28;
  --muted: #5c6b68;
  --brand: #0c725f;
  --brand-dark: #085647;
  --brand-soft: #e6f4f0;
  --accent: #eaf2ff;
  --accent-line: #8db4ec;
  --conversion-accent: #e98932;
  --conversion-accent-dark: #c86d1e;
  --conversion-accent-soft: #fff2e6;
  --paper: #fff;
  --canvas: #f5f7f6;
  --line: #d6dfdc;
  --line-dark: #b9c6c2;
  --warning: #934333;
  --shadow: 0 8px 22px rgba(23, 43, 40, 0.07);
  --shadow-strong: 0 16px 42px rgba(23, 43, 40, 0.12);
  font-family: "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 17px; line-height: 1.7; }
button, input { font: inherit; }
button, a, input { outline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(12, 114, 95, 0.35); }
a { color: var(--brand-dark); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.35; }
[hidden] { display: none !important; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); }
.header-inner { display: flex; width: min(1180px, calc(100% - 32px)); min-height: 62px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #fff; background: var(--brand); font-family: Georgia, serif; font-size: 18px; }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
nav a { color: #40504d; font-size: 14px; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 5px; }

main > section { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 58fr) minmax(320px, 42fr); gap: clamp(22px, 4vw, 52px); align-items: start; padding: 28px 0 0; }
.hero-copy { min-width: 0; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(2.35rem, 4.15vw, 3.65rem); line-height: 1.07; letter-spacing: 0; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 12px 0 14px; color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.58; }
.hero-trust-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 8px; }
.hero-trust-chips span { display: inline-flex; min-height: 30px; align-items: center; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: #31413e; background: #fff; font-size: 13px; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-weight: 800; text-decoration: none; }
.button.primary { color: #fff; background: var(--conversion-accent); }
.button.primary:hover { background: var(--conversion-accent-dark); }
.button.primary:disabled { cursor: not-allowed; opacity: 0.45; }
.button.secondary { border-color: var(--line-dark); color: var(--ink); background: #fff; }
.button.secondary:hover { border-color: var(--brand); color: var(--brand); }
.button.small { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.hero-actions .button.secondary { min-height: 28px; border-color: transparent; color: var(--brand-dark); background: transparent; padding: 0; font-size: 14px; }
.hero-actions .button.secondary:hover { border-color: transparent; color: var(--brand); text-decoration: underline; text-underline-offset: 5px; }

/* TEMP_BRAND_VISUAL: TEMPORARY VISUAL PLACEHOLDER - replace with approved official asset before publication */
.brand-strip { margin: 12px 0 0; padding: 8px 0 10px; }
.brand-strip-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 7px; }
.brand-strip-heading p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 15px; font-weight: 700; }
.brand-strip-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.brand-media { min-width: 0; }
.brand-placeholder { display: inline-flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; padding: 7px 10px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.2; text-align: center; box-shadow: 0 6px 14px rgba(23, 43, 40, 0.1); }
.brand-placeholder.brand-air { background: #178c83; }
.brand-placeholder.brand-square { background: #2f3437; }
.brand-placeholder.brand-stores { background: #4169c1; }
.brand-placeholder.brand-smaregi { background: #e47732; }
.brand-placeholder.brand-posplus { background: #9655a6; }
.brand-placeholder.brand-usen { background: #3973b8; }
.brand-official { display: inline-flex; overflow: hidden; width: 100%; height: 40px; align-items: center; justify-content: center; padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.brand-official img { display: block; width: auto; max-width: 100%; height: 98px; object-fit: contain; }
.brand-official.small { height: 32px; justify-content: flex-start; padding: 3px 6px; border-left: 4px solid #4169c1; border-radius: 6px; }
.brand-official.small img { max-width: 112px; height: 78px; }
.brand-placeholder.small { min-height: 30px; justify-content: flex-start; padding: 5px 8px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; color: var(--ink); background: #fff; font-size: 12px; box-shadow: none; }
.brand-placeholder.small.brand-air { border-left-color: #178c83; }
.brand-placeholder.small.brand-square { border-left-color: #2f3437; }
.brand-placeholder.small.brand-stores { border-left-color: #4169c1; }
.brand-placeholder.small.brand-smaregi { border-left-color: #e47732; }
.brand-placeholder.small.brand-posplus { border-left-color: #9655a6; }
.brand-placeholder.small.brand-usen { border-left-color: #3973b8; }
.result-candidate .brand-media { margin-bottom: 10px; }
.result-candidate .brand-placeholder { min-height: 42px; justify-content: flex-start; padding: 8px 12px; border: 1px solid var(--line); border-left-width: 5px; color: var(--ink); background: #fff; font-size: 15px; box-shadow: none; }
.result-candidate .brand-placeholder.brand-air { border-left-color: #178c83; }
.result-candidate .brand-placeholder.brand-square { border-left-color: #2f3437; }
.result-candidate .brand-placeholder.brand-stores { border-left-color: #4169c1; }
.result-candidate .brand-placeholder.brand-smaregi { border-left-color: #e47732; }
.result-candidate .brand-placeholder.brand-posplus { border-left-color: #9655a6; }
.result-candidate .brand-placeholder.brand-usen { border-left-color: #3973b8; }
.result-candidate .brand-official { height: 44px; justify-content: flex-start; padding: 4px 8px; border-left: 5px solid #4169c1; }
.result-candidate .brand-official img { max-width: 136px; height: 94px; }

.hero-visual { min-width: 0; padding-top: 6px; }
.pos-illustration { position: relative; min-height: 220px; }
.pos-screen { position: absolute; top: 8px; right: 26px; width: min(92%, 360px); height: 180px; padding: 22px; border: 1px solid var(--line-dark); border-radius: 20px; background: var(--paper); box-shadow: 0 18px 38px rgba(23, 43, 40, 0.1); }
.pos-screen::after { content: ""; position: absolute; right: 22px; bottom: 12px; left: 22px; height: 5px; border-radius: 99px; background: #d9e2df; }
.pos-screen-bar { width: 112px; height: 12px; margin-bottom: 24px; border-radius: 99px; background: var(--brand); }
.pos-screen-row { height: 12px; margin-top: 14px; border-radius: 99px; background: #dfe8e5; }
.pos-screen-row.strong { width: 72%; background: var(--accent-line); }
.pos-screen-row.short { width: 46%; }
.pos-check { position: absolute; right: 28px; top: 58px; display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: #fff; background: var(--conversion-accent); font-size: 32px; font-weight: 900; line-height: 1; }
.payment-reader { position: absolute; right: 18px; bottom: 28px; width: 122px; height: 82px; border: 1px solid var(--line-dark); border-radius: 18px; background: #eef2f1; box-shadow: 0 12px 26px rgba(23, 43, 40, 0.1); }
.reader-light { position: absolute; top: 16px; left: 18px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); }
.reader-slot { position: absolute; right: 18px; bottom: 21px; left: 18px; height: 10px; border-radius: 99px; background: #b9c6c2; }
.receipt-shape { position: absolute; bottom: 18px; left: 28px; width: 118px; min-height: 150px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 12px 12px 4px 4px; background: #fff; box-shadow: 0 14px 28px rgba(23, 43, 40, 0.08); }
.receipt-shape::after { content: ""; position: absolute; right: 0; bottom: -10px; left: 0; height: 11px; background: repeating-linear-gradient(135deg, #fff 0 9px, transparent 9px 18px); }
.receipt-shape span { display: block; height: 8px; margin-bottom: 13px; border-radius: 99px; background: #dfe8e5; }
.receipt-shape span:first-child { width: 74%; background: var(--brand-soft); }
.receipt-shape span:last-child { width: 52%; background: var(--conversion-accent-soft); }
.qr-card { position: absolute; right: 168px; bottom: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; width: 62px; height: 62px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr-card span { border-radius: 3px; background: #3978c6; }

.diagnosis-entry { margin-top: -8px; margin-bottom: 42px; padding: clamp(20px, 2.5vw, 30px); border: 1px solid rgba(12, 114, 95, 0.38); border-radius: 14px; background: var(--brand-soft); box-shadow: var(--shadow-strong); }
.diagnosis-shell { max-width: 1120px; margin: 0 auto; }
.diagnosis-entry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 14px; }
.diagnosis-badge { display: inline-flex; min-height: 46px; align-items: center; margin: 0 0 10px; padding: 10px 20px; border-radius: 999px; color: #fff; background: var(--conversion-accent); box-shadow: 0 10px 20px rgba(200, 109, 30, 0.24); font-size: clamp(23px, 2vw, 27px); font-weight: 800; line-height: 1; }
.diagnosis-entry-heading p:not(.diagnosis-badge) { max-width: 680px; margin: 7px 0 0; color: #354642; font-size: clamp(16px, 1.35vw, 18px); font-weight: 700; line-height: 1.5; }
.diagnosis-entry h2 { max-width: 760px; margin: 0; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.12; letter-spacing: 0; }
.diagnosis-card { padding: clamp(17px, 2vw, 24px); border: 1px solid rgba(12, 114, 95, 0.34); border-radius: 10px; background: var(--paper); box-shadow: 0 10px 24px rgba(23, 43, 40, 0.08); }
.initial-question h3 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.18; }
.initial-question > p { margin: 6px 0 14px; color: var(--muted); font-size: 16px; font-weight: 700; }
.initial-question-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.initial-question-option { min-height: 58px; padding: 13px 15px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--ink); background: var(--paper); cursor: pointer; font-size: clamp(16px, 1.25vw, 18px); font-weight: 700; line-height: 1.32; text-align: left; box-shadow: 0 3px 0 rgba(12, 114, 95, 0.08); }
.initial-question-option:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); transform: translateY(-1px); }
.initial-question-option:focus-visible { border-color: var(--brand); outline: 3px solid rgba(12, 114, 95, 0.35); }
.initial-question small { display: block; margin-top: 16px; color: var(--muted); font-size: 15px; font-weight: 700; }

.diagnosis-panel { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.diagnosis-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.diagnosis-toolbar > div { width: min(680px, 74%); }
.progress-label { display: block; margin-bottom: 10px; color: var(--brand-dark); font-size: 18px; font-weight: 900; }
.progress-track { height: 14px; overflow: hidden; border: 1px solid rgba(12, 114, 95, 0.25); border-radius: 99px; background: #e4e9e7; }
.progress-track span { display: block; width: 16.66%; height: 100%; border-radius: inherit; background: var(--brand); transition: width 160ms ease; }
.text-button { padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; color: var(--brand-dark); background: transparent; cursor: pointer; font-size: 16px; font-weight: 800; }
.question-stage { max-width: none; margin-top: 26px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.question-note { display: inline-flex; min-height: 34px; align-items: center; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; color: #fff; background: var(--brand); font-size: 15px; font-weight: 800; }
.question-stage h3 { margin: 0; color: var(--ink); font-size: clamp(28px, 3vw, 34px); line-height: 1.25; font-weight: 900; }
.question-stage > p:not(.question-note) { margin: 10px 0 22px; color: var(--muted); font-size: 18px; font-weight: 700; }
.question-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.question-option { min-height: 64px; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; text-align: left; font-size: clamp(17px, 1.45vw, 19px); font-weight: 700; line-height: 1.4; box-shadow: 0 3px 0 rgba(12, 114, 95, 0.08); }
.question-option:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.question-option.is-selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 5px 0 var(--brand), 0 3px 0 rgba(12, 114, 95, 0.08); font-weight: 900; }
.question-option:focus-visible, .button:focus-visible, .official-button:focus-visible, .official-link-button:focus-visible, .detail-button:focus-visible, .table-link-button:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(12, 114, 95, 0.35); outline-offset: 3px; }
.question-actions { display: flex; gap: 12px; margin-top: 22px; }
.question-actions .button.primary { min-width: 180px; min-height: 54px; font-size: 18px; }
.question-actions .button.secondary { min-height: 52px; font-size: 17px; }

.comparison-section, .selected-comparison { margin-bottom: 48px; padding: clamp(28px, 3.5vw, 40px); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.section-header h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.section-header > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.section-header.compact { align-items: center; margin-bottom: 18px; }
.section-header.compact h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

.diagnosis-result { margin-bottom: 28px; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--accent-line); border-radius: 8px; background: var(--accent); box-shadow: var(--shadow); }
.result-heading { display: flex; align-items: flex-start; gap: 12px; }
.result-heading > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #316cb8; font-weight: 900; }
.result-heading p { margin: 0; color: #31639f; font-size: 15px; font-weight: 800; }
.result-heading h3 { margin: 2px 0 0; font-size: clamp(1.45rem, 2.5vw, 2.15rem); font-weight: 900; }
.diagnosis-result > p { margin: 16px 0 8px; font-size: 17px; font-weight: 800; }
.diagnosis-result ul { margin: 0 0 14px; padding-left: 1.3em; color: #40504d; font-size: 15px; }
.result-candidates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.result-candidate { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(23, 43, 40, 0.06); }
.result-candidate.brand-air-card { border-top-color: #178c83; }
.result-candidate.brand-square-card { border-top-color: #2f3437; }
.result-candidate.brand-stores-card { border-top-color: #4169c1; }
.result-candidate.brand-smaregi-card { border-top-color: #e47732; }
.result-candidate.brand-posplus-card { border-top-color: #9655a6; }
.result-candidate.brand-usen-card { border-top-color: #3973b8; }
.result-candidate > strong, .result-candidate > span { display: block; }
.result-candidate > strong { color: var(--ink); font-size: clamp(22px, 2vw, 26px); line-height: 1.25; font-weight: 900; }
.result-candidate > span { min-height: 3.2em; margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.result-candidate-summary { display: grid; gap: 8px; margin: 16px 0 2px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-candidate-summary span { display: grid; grid-template-columns: 88px 1fr; gap: 10px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.result-candidate-summary b { color: var(--muted); font-size: 13px; }
.result-candidate-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 16px; }
.official-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 13px 20px; border: 1px solid var(--conversion-accent); border-radius: 10px; color: #fff; background: var(--conversion-accent); cursor: pointer; font-size: 18px; font-weight: 800; text-align: center; text-decoration: none; box-shadow: 0 9px 18px rgba(200, 109, 30, 0.18); }
.official-button:hover { background: var(--conversion-accent-dark); }
.result-candidate-actions .official-button { order: 1; width: 100%; min-height: 62px; padding-inline: 14px; font-size: clamp(17px, 1.35vw, 20px); white-space: nowrap; }
.result-candidate-actions .official-button::after { content: "↗"; margin-left: 8px; font-size: 16px; }
.result-candidate-actions .detail-button { order: 2; }
.result-candidate-actions .table-link-button { order: 3; }
.result-candidate-note { order: 4; width: 100%; margin: -2px 0 0; color: var(--muted); font-size: 15px; }
.table-link-button { display: inline-flex; align-items: center; color: var(--brand-dark); font-size: 15px; font-weight: 700; }

.table-help { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; color: var(--muted); font-size: 15px; }
.mobile-scroll-help { display: none; }
.table-help b { color: var(--brand); font-size: 15px; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); background: #fff; }
.comparison-table { width: 100%; min-width: 1160px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; line-height: 1.6; }
.comparison-table th, .comparison-table td { padding: 13px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.comparison-table tr:last-child > * { border-bottom: 0; }
.comparison-table tr > *:last-child { border-right: 0; }
.comparison-table thead th { position: sticky; z-index: 2; top: 0; color: #31413e; background: #eef2f1; font-size: 13px; }
.comparison-table .column-group-row th { padding-block: 8px; color: #53625f; background: #e7ecea; text-align: center; }
.comparison-table .column-group-row .qualitative-group,
.comparison-table .qualitative-start { border-left: 2px solid var(--line-dark); }
.comparison-table th.service-column, .comparison-table th.service-cell { position: sticky; z-index: 3; left: 0; width: 190px; background: #fff; box-shadow: 4px 0 8px rgba(23, 43, 40, 0.05); }
.comparison-table thead th.service-column { z-index: 4; background: #e7ecea; }
.comparison-table thead th:not(.service-column) { width: 138px; }
.comparison-table tbody tr:hover > td, .comparison-table tbody tr:hover > th { background-color: #f9fbfa; }
.comparison-table tbody tr.is-recommended > th.service-cell { background: #f1f7ff; box-shadow: inset 4px 0 #3978c6, 4px 0 8px rgba(23, 43, 40, 0.05); }
.comparison-table .is-important { background: #f2f7ff; box-shadow: inset 2px 0 rgba(57, 120, 198, 0.2); }
.comparison-table thead .is-important { color: #234f86; background: #dceaff; }
.recommend-badge { display: inline-block; margin-bottom: 5px; padding: 2px 6px; color: #24568f; background: #dceaff; font-size: 12px; font-weight: 800; }
.service-name { display: block; font-size: 15px; }
.service-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 9px; }
.compare-check { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; font-weight: 700; }
.compare-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand); }
.detail-button { padding: 3px 0; border: 0; border-bottom: 1px solid currentColor; color: var(--brand-dark); background: transparent; cursor: pointer; font-size: 15px; font-weight: 700; }
.official-link-button { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border: 1px solid var(--line-dark); border-radius: 5px; color: var(--brand-dark); background: #fff; cursor: pointer; font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; }
.official-link-button:hover { border-color: var(--conversion-accent); color: var(--conversion-accent-dark); background: var(--conversion-accent-soft); }
.compare-toolbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0 0; }
.compare-toolbar p { margin: 0; color: var(--muted); font-size: 15px; }

.selected-comparison { scroll-margin-top: 80px; }
.direct-table { min-width: 760px; }
.direct-table th:not(.axis-column) { width: auto; }
.direct-table .axis-column { width: 160px; color: #31413e; background: #eef2f1; font-weight: 800; }
.direct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.direct-actions .official-button { min-height: 46px; padding: 10px 14px; }

.knowledge-section, .faq-section { margin-bottom: 42px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); background: #fff; }
.knowledge-grid article { min-height: 190px; padding: 22px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.knowledge-grid article > span { color: var(--brand); font-size: 15px; font-weight: 900; }
.knowledge-grid h3 { margin: 7px 0; font-size: 1.05rem; }
.knowledge-grid p { margin: 0; color: var(--muted); font-size: 16px; }
.faq-list { border-top: 1px solid var(--line-dark); background: #fff; }
.faq-list article { padding: 15px 4px 16px; border-bottom: 1px solid var(--line-dark); }
.faq-list h3 { margin: 0 0 5px; font-size: 18px; }
.faq-list p { margin: 0; color: var(--muted); }
.faq-list a { font-weight: 700; }

.transparency { display: grid; grid-template-columns: 190px 1fr auto; gap: 24px; align-items: baseline; margin-bottom: 54px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.transparency h2 { margin: 0; font-size: 1rem; }
.transparency p { margin: 0; color: var(--muted); font-size: 15px; }
.transparency .updated { white-space: nowrap; }

.detail-dialog { width: min(720px, calc(100% - 28px)); max-height: min(82vh, 760px); padding: 0; border: 1px solid var(--line-dark); color: var(--ink); background: #fff; box-shadow: 0 22px 80px rgba(23, 43, 40, 0.28); }
.detail-dialog::backdrop { background: rgba(13, 29, 26, 0.55); }
.dialog-header { position: sticky; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-header h2 { margin: 0; font-size: 1.55rem; }
.icon-button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
#detail-content { padding: 22px 24px 28px; }
.detail-lead { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--brand-soft); font-weight: 700; }
.detail-list { display: grid; grid-template-columns: 145px 1fr; margin: 0; border-top: 1px solid var(--line); }
.detail-list dt, .detail-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { padding-right: 15px; font-weight: 800; }
.detail-list dd { color: var(--muted); }
.detail-caution { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.detail-footer .detail-caution { max-width: 450px; margin: 0; }
.detail-footer .official-button { flex: 0 0 auto; min-height: 54px; padding-inline: 20px; }

footer { display: flex; min-height: 70px; align-items: center; justify-content: center; gap: 28px; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 15px; }
footer p { margin: 0; font-weight: 800; }
.noscript-message { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 30; margin: 0; padding: 12px; color: #fff; background: var(--warning); text-align: center; }

@media (max-width: 800px) {
  nav { gap: 14px; }
  nav a:nth-child(3), nav a:nth-child(4) { display: none; }
  .hero { display: block; padding: 24px 0 0; }
  .hero-visual { display: none; }
  .brand-strip-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .brand-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .initial-question-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-header, .compare-toolbar { align-items: stretch; flex-direction: column; }
  .compare-toolbar .button { width: 100%; }
  .result-candidates { grid-template-columns: 1fr; }
  .section-header { gap: 8px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-grid article { min-height: 0; }
  .transparency { grid-template-columns: 1fr; gap: 7px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner, main > section { width: min(100% - 22px, 1220px); }
  .header-inner { min-height: 56px; }
  nav a { font-size: 12px; }
  .hero { gap: 18px; padding: 18px 0 0; }
  .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.35rem); line-height: 1.08; }
  .hero-copy > p:not(.eyebrow) { margin: 10px 0 12px; font-size: 15px; line-height: 1.55; }
  .hero-trust-chips { gap: 6px; margin-bottom: 8px; }
  .hero-trust-chips span { min-height: 32px; padding-inline: 10px; font-size: 13px; }
  .hero-actions { display: block; }
  .brand-strip { margin: 8px 0 0; padding: 6px 0 8px; }
  .brand-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .brand-placeholder { min-height: 36px; padding: 6px 8px; border-radius: 7px; font-size: 12px; }
  .brand-placeholder.small { min-height: 30px; padding: 5px 7px; border-radius: 6px; font-size: 11px; }
  .diagnosis-entry { margin-top: -4px; padding: 16px 12px; border-radius: 12px; }
  .diagnosis-entry-heading { align-items: flex-start; }
  .diagnosis-badge { min-height: 42px; padding: 9px 15px; font-size: 21px; }
  .diagnosis-entry h2 { font-size: clamp(1.55rem, 7.5vw, 2.1rem); }
  .diagnosis-entry-heading p:not(.diagnosis-badge) { font-size: 15px; line-height: 1.5; }
  .diagnosis-card { padding: 15px 12px; }
  .initial-question h3, .question-stage h3 { font-size: clamp(23px, 7vw, 28px); }
  .initial-question > p, .question-stage > p:not(.question-note) { font-size: 16px; }
  .comparison-section, .selected-comparison { padding: 18px 14px; }
  .diagnosis-toolbar { align-items: flex-start; flex-direction: column; }
  .diagnosis-toolbar > div { width: 100%; }
  .question-stage { margin-top: 18px; }
  .question-options { grid-template-columns: 1fr; }
  .initial-question-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .initial-question-option { min-height: 58px; padding: 11px 10px; font-size: 15px; }
  .question-option { min-height: 58px; padding: 12px 13px; font-size: 16px; }
  .question-actions { flex-direction: column; }
  .question-actions .button { width: 100%; }
  .result-candidate { padding: 18px; }
  .result-candidate > strong { font-size: 22px; }
  .result-candidate > span { font-size: 15px; }
  .result-candidate-summary span { grid-template-columns: 1fr; gap: 1px; }
  .result-candidate-actions .official-button { white-space: normal; }
  .table-help { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 9px; font-size: 12px; }
  .table-help > span:first-child { display: block; color: var(--brand-dark); font-weight: 800; }
  .desktop-scroll-help { display: none; }
  .mobile-scroll-help { display: inline; }
  .comparison-table-wrap { box-shadow: inset -24px 0 18px -18px rgba(23, 43, 40, 0.34); }
  .comparison-table { width: max-content; min-width: 920px; table-layout: auto; }
  .comparison-table th.service-column, .comparison-table th.service-cell { position: static; width: 132px; min-width: 132px; max-width: 132px; box-shadow: none; overflow-wrap: anywhere; }
  .comparison-table tbody tr.is-recommended > th.service-cell { box-shadow: inset 4px 0 #3978c6; }
  .comparison-table th, .comparison-table td { min-width: 112px; padding: 11px 10px; overflow-wrap: anywhere; }
  .comparison-table thead th:not(.service-column), .comparison-table td { width: 112px; min-width: 112px; max-width: 132px; }
  .service-name { font-size: 13px; }
  .service-controls { align-items: flex-start; flex-direction: column; gap: 6px; }
  .compare-check, .detail-button { font-size: 11px; }
  .official-link-button { padding: 2px 5px; font-size: 10px; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dt { padding-bottom: 2px; border-bottom: 0; }
  .detail-list dd { padding-top: 0; }
  .dialog-header, #detail-content { padding-right: 17px; padding-left: 17px; }
  .detail-footer { align-items: stretch; flex-direction: column; }
  .detail-footer .official-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
