:root {
  color-scheme: light;
  --background: #fff;
  --surface: #fff;
  --surface-hover: #f4f8f6;
  --line: #dce6e0;
  --text: #20312b;
  --muted: #4d6158;
  --accent: #00695e;
  --accent-hover: #00574e;
  --accent-soft: #edf5f1;
  --focus: #027d6a;
  --button-text: #fff;
  --system-font: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-family: var(--system-font);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.65; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.page-width { width: min(1224px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 12px; left: 12px; padding: 8px 14px; background: var(--text); color: var(--surface); transform: translateY(calc(-100% - 12px)); }
.skip-link:focus { transform: none; }
.site-header, .site-footer { background: var(--surface); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.header-inner { min-height: 65px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 780; letter-spacing: -.045em; white-space: nowrap; }
.brand img { display: block; flex: 0 0 48px; width: 48px; height: 30px; object-fit: contain; }
.brand-dot { color: var(--accent); }
.header-nav { display: none; align-items: center; gap: 28px; margin-left: auto; margin-right: 12px; }
.header-nav a { color: var(--muted); font-size: 14px; font-weight: 650; }
.header-nav a:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.header-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); font-size: 13px; font-weight: 690; }
.header-contact:hover { border-color: #9bbab0; background: var(--accent-soft); }
.header-contact span { font-size: 15px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { min-height: 66px; flex-wrap: wrap; padding: 13px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.hero { display: grid; align-items: start; gap: 33px; padding-block: 35px 39px; }
.hero-main, .overview { min-width: 0; }
.hero h1 { font-size: clamp(31px, 8vw, 49px); font-weight: 720; letter-spacing: -.04em; line-height: 1.23; }
.hero-description { max-width: 38em; margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.86; }
.hero-description span { white-space: nowrap; }
.diagnosis-form { max-width: 610px; margin-top: 25px; }
.url-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 690; }
.input-row { display: grid; gap: 8px; }
.url-field { display: flex; min-width: 0; border: 1px solid #b7cbc1; border-radius: 7px; }
.url-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px var(--accent-soft); }
.url-field:has([aria-invalid="true"]) { border-color: #a13d46; }
.url-input { width: 100%; min-width: 0; min-height: 51px; padding: 10px 13px; border: 0; border-radius: inherit; background: transparent; color: var(--text); font-size: 16px; }
.url-input:focus-visible { outline: 0; }
.url-input::placeholder { color: #66786f; opacity: 1; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.primary-button { background: var(--accent); color: var(--button-text); }
.primary-button:hover { background: var(--accent-hover); }
.primary-button:disabled { opacity: .7; cursor: wait; }
.primary-button > span:last-child, .secondary-button > span { font-size: 16px; line-height: 1; }
.secondary-button { border-color: #bfd0c7; background: var(--surface); color: var(--accent); }
.secondary-button:hover { border-color: #9bbab0; background: var(--surface-hover); }
.input-row .primary-button { justify-content: center; min-height: 48px; }
.input-row .primary-button > span { font-size: 14px; line-height: 1.45; }
.form-help { max-width: 44em; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.diagnosis-message { margin-top: 8px; color: var(--muted); font-size: 14px; }
.diagnosis-message:empty, .copy-status:empty { margin-top: 0; }
.result-context:empty { display: none; }
.is-error { color: #9b3842; }

.overview { padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-hover); scroll-margin-top: 24px; }
.overview h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.overview-list { margin-top: 9px; }
.overview-list > div { display: grid; grid-template-columns: minmax(113px, .78fr) 1.45fr; align-items: baseline; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.overview-list dt { font-size: 13px; font-weight: 700; }
.overview-list dd, .overview-credit { color: var(--muted); font-size: 13px; line-height: 1.7; }
.overview-credit { margin-top: 12px; }
.overview-credit a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

.results { padding-block: 27px 41px; border-top: 1px solid var(--line); }
.results-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 11px 20px; }
.results-header > div { flex: 1 1 225px; min-width: 0; }
.results-header h2, .support-heading h2 { font-size: clamp(23px, 4vw, 30px); font-weight: 720; letter-spacing: -.03em; line-height: 1.4; }
.results-header h2 { scroll-margin-top: 22px; }
.results-url { margin-top: 4px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.copy-status { margin-top: 8px; color: var(--accent); font-size: 13px; }
.copy-fallback { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); }
.report-overview, .device-findings { display: grid; gap: 13px; margin-top: 17px; }
.report-card, .findings { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.report-card h3, .findings h3 { font-size: 16px; font-weight: 700; }
.score-table { width: 100%; margin-top: 11px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.score-table th, .score-table td { padding: 8px 5px; text-align: left; }
.score-table th:first-child { width: 44%; padding-left: 0; }
.score-table thead th { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; vertical-align: top; }
.score-table tbody tr + tr :is(th, td) { border-top: 1px solid var(--line); }
.score-table tbody th { font-size: 13px; font-weight: 660; }
.measurement-status { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.score { color: var(--text); font-size: clamp(20px, 3vw, 30px); font-weight: 710; letter-spacing: -.04em; line-height: 1.2; }
.score span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }

.technology-card { --status-ink: #425851; --status-bg: #edf2ef; }
.technology-card[data-state="clear"] { --status-ink: #075c43; --status-bg: #e7f3ed; }
.technology-card[data-state="review"] { --status-ink: #833c24; --status-bg: #f8eee6; }
.technology-indicator { display: flex; align-items: center; gap: 9px; margin-block: 12px 8px; }
.technology-mark { display: grid; flex: 0 0 34px; place-items: center; height: 34px; border-radius: 7px; background: var(--status-bg); color: var(--status-ink); font-size: 19px; font-weight: 690; line-height: 1; }
.technology-value { color: var(--status-ink); font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.report-caption, .report-card details, .result-context { color: var(--muted); font-size: 13px; }
.report-card details { margin-top: 10px; }
.report-card summary { color: var(--accent); font-weight: 670; }
.report-card ul, .finding-card ul { padding-left: 18px; }
.technology-risks { margin-top: 13px; padding: 17px; border: 1px solid #e7d5c4; border-radius: 10px; background: #fcf8f2; }
.technology-risks h3 { color: #753b25; font-size: 17px; font-weight: 700; }
.technology-risks header p { margin-top: 4px; color: #645447; font-size: 13px; line-height: 1.7; }
.technology-risks ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr)); gap: 7px 21px; margin-top: 10px; padding-left: 17px; color: #624737; font-size: 13px; line-height: 1.65; }
.technology-risks li::marker { color: #a85231; }
.technology-risk-evidence { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e7d5c4; color: #645447; font-size: 12px; line-height: 1.7; }
.technology-risk-sources { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 5px; }
.technology-risk-sources a { color: #753b25; text-decoration: underline; text-underline-offset: .18em; }
.seo-recommendation-scores { font-weight: 670; }
.seo-recommendation-plan { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e7d5c4; color: #645447; font-size: 13px; line-height: 1.7; }
.seo-recommendation-plan p + p { margin-top: 4px; }
.seo-recommendation-plan a { width: fit-content; margin-top: 10px; }

.device-findings:not(:has(> :not([hidden]))) { display: none; }
.finding-card { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.finding-card h4 { color: var(--text); font-size: 14px; font-weight: 690; }
.finding-list { margin-top: 4px; }
.finding-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-block: 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.finding-list > div:last-child { border-bottom: 0; }
.finding-list dd { color: var(--accent); text-align: right; font-weight: 680; }
.finding-list dd:empty { display: none; }
.finding-card ul { margin-top: 6px; color: var(--muted); font-size: 13px; }
.finding-card li + li { margin-top: 4px; }
.result-context { margin-top: 12px; overflow-wrap: anywhere; }

.result-cta { margin-top: 22px; padding: 19px; scroll-margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-hover); }
.result-cta h3 { font-size: clamp(19px, 4vw, 23px); font-weight: 710; letter-spacing: -.02em; }
.result-cta p { margin-top: 5px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.result-options { display: grid; gap: 7px 27px; margin: 14px 0 0; padding-left: 1.2em; color: var(--text); font-size: 14px; }
.result-options li::marker { color: var(--accent); }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.result-consultation { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 45px; padding: 9px 12px; border: 1px solid #bcd0c6; border-radius: 7px; background: var(--surface); color: var(--accent); font-size: 14px; font-weight: 690; }
.result-consultation:hover { border-color: var(--accent); background: var(--accent-soft); }
.result-consultation[data-recommended] { border-color: var(--accent); background: var(--accent); color: var(--button-text); }
.result-consultation[data-recommended]:hover { background: var(--accent-hover); }

.support { padding-block: 33px 40px; border-top: 1px solid var(--line); background: var(--surface-hover); }
.support-heading { margin-bottom: 14px; }
.support-grid { display: grid; gap: 10px; }
.support-card { display: block; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.support-card:hover { border-color: #9bbab0; }
.support-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; font-size: 15px; font-weight: 720; }
.support-card h3 span { color: var(--accent); }
.support-card p { margin-top: 5px; color: var(--muted); font-size: 13px; }

@media (min-width: 480px) {
  .input-row { grid-template-columns: minmax(0, 1fr) auto; }
  .input-row .primary-button { min-width: 141px; }
  .header-contact { padding-inline: 14px; }
}

@media (min-width: 590px) {
  .result-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-list > div { grid-template-columns: minmax(7.5em, .56fr) 1.2fr; }
}

@media (min-width: 760px) {
  .page-width { width: min(1224px, calc(100% - 72px)); }
  .header-inner { min-height: 70px; }
  .header-nav { display: flex; }
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6.2vw, 84px); padding-block: 59px 58px; }
  .hero-description { font-size: 16px; }
  .diagnosis-form { margin-top: 28px; }
  .overview { padding: 23px; }
  .report-overview { grid-template-columns: minmax(0, .78fr) minmax(0, 1.55fr); }
  .device-findings { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
  .report-card, .findings, .technology-risks { padding: 20px; }
  .score-table th, .score-table td { padding: 9px 10px; }
  .result-cta { padding: 21px; }
  .support { padding-block: 44px 54px; }
}
