/* さいたまホームページ相談室 診断アプリ */
:root {
  --bg: #e3f1fb;
  --surface: #ffffff;
  --text: #1b2340;
  --text-sub: #4d5675;
  --text-muted: #6b7491;
  --line: #d6e2ee;
  --track: #dbe6f0;
  --accent: #e8343f;
  --accent-strong: #d42634;
  --accent-soft: #fde9eb;
  --grad: linear-gradient(90deg, #ff8a2a 0%, #f2264d 100%);
  --line-green: #06c755;
  --line-green-hover: #05b34c;
  --pass: #1d7a45;
  --pass-bg: #e5f5eb;
  --warn: #b35500;
  --warn-bg: #fff0dd;
  --fail: #d02a36;
  --fail-bg: #fde6e8;
  --na: #5d6680;
  --na-bg: #f1f4f8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(40, 80, 130, 0.08);
  --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --header-h: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.has-sticky { padding-bottom: 84px; }
a { color: var(--accent-strong); }
button { font: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.35; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid #2f6fd6; outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 20px; padding-bottom: 40px; outline: none; }

/* ---------- ヘッダー・フッター ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 17px; min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-icon { width: 28px; height: 28px; color: var(--accent); flex: none; }
.header-nav { display: flex; align-items: center; gap: 14px; flex: none; }
.header-nav a { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--accent-strong); display: inline-flex; align-items: center; min-height: 44px; }
.header-nav a.pill { color: #fff; background: var(--grad); padding: 0 16px; border-radius: 999px; min-height: 38px; }
.header-nav .desk-only { display: none; }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 13px; color: var(--text-sub); }
.site-footer p + p { margin-top: 6px; }
.site-footer strong { color: var(--text); }

/* ---------- 共通部品 ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; }
.stack > * + * { margin-top: 14px; }
.section { margin-top: 28px; }
.section-title { font-size: clamp(19px, 5vw, 22px); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 5px; height: 1.1em; border-radius: 3px; background: var(--accent); flex: none; }
.section-title.underline { display: inline-block; padding-bottom: 6px; }
.section-title.underline::before { display: none; }
.section-title.underline::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 6px; }
.lead { color: var(--text-sub); margin-top: 6px; }
.muted { color: var(--text-muted); font-size: 14px; }
.small { font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 18px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; width: 100%; text-align: center; line-height: 1.3;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(242, 38, 77, 0.22); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-outline { background: #fff; color: var(--accent-strong); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-line { background: var(--line-green); color: #fff; border-color: var(--line-green); box-shadow: 0 4px 12px rgba(6, 199, 85, 0.25); }
.btn-line:hover { background: var(--line-green-hover); border-color: var(--line-green-hover); }
.btn-small { min-height: 44px; font-size: 16px; padding: 8px 16px; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn .chev { margin-left: auto; }
.btn .chev + span, .btn span + .chev { }
.text-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.back-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.back-link:hover { text-decoration: underline; }

/* 判定ラベル（色に頼らず記号と文字で区別する） */
.status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; border: 1.5px solid transparent; line-height: 1.6; }
.status-pass { color: var(--pass); background: var(--pass-bg); }
.status-warn { color: var(--warn); background: var(--warn-bg); }
.status-fail { color: var(--fail); background: var(--fail-bg); }
.status-na { color: var(--na); background: var(--na-bg); border: 1.5px dashed #9aa3b8; }
.prio { font-weight: 700; font-size: 14px; color: var(--text-sub); white-space: nowrap; }
.prio b { color: var(--accent-strong); }
.pill-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; vertical-align: 2px; }
.pill-req { background: var(--accent); color: #fff; }
.pill-opt { background: #8a97ad; color: #fff; }

.notice { border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; border: 2px solid var(--line); }
.notice-error { border-color: var(--fail); background: #fff7f8; }
.notice-error .notice-title { color: var(--fail); }
.notice-warn { border-color: #e9b26b; background: #fffaf2; }
.notice-title { font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }
.notice .btn { margin-top: 12px; }
.notice-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }

.loading { display: grid; place-items: center; min-height: 40vh; color: var(--text-sub); gap: 12px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--track); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 画面1 入力 ---------- */
.hero { text-align: center; padding: 8px 0 4px; }
.hero-kicker { font-weight: 700; color: var(--accent-strong); font-size: 14px; }
.hero h1 { font-size: clamp(21px, 5.8vw, 40px); font-weight: 800; margin-top: 4px; letter-spacing: 0.01em; }
.hero p { color: var(--text-sub); margin-top: 6px; font-weight: 500; }
.url-form { margin-top: 18px; }
.url-form label { font-weight: 700; display: block; margin-bottom: 8px; }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 17px;
  border: 1.5px solid #b9c7d8; border-radius: 12px; background: #fff; color: var(--text);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9aa3b8; }
.input:focus, .textarea:focus { border-color: #2f6fd6; outline: 3px solid rgba(47, 111, 214, 0.2); outline-offset: 0; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border: 3px solid var(--fail); }
.field-error { color: var(--fail); font-weight: 700; font-size: 14px; margin-top: 6px; display: flex; gap: 4px; }
.url-form .btn { margin-top: 14px; }
.url-form .muted { text-align: center; margin-top: 10px; font-weight: 500; }

.term-list { display: grid; gap: 10px; margin-top: 18px; }
.term { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; }
.term-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; min-width: 76px; display: flex; align-items: center; gap: 10px; }
.term-name::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--accent); }
.term-desc { border-left: 1px solid var(--line); padding-left: 14px; font-size: 15px; }
.term-icon { width: 30px; height: 30px; color: var(--accent); margin-left: auto; flex: none; }

.check-list { list-style: none; margin: 10px 0 0; padding: 0; }
.check-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list .tick { color: var(--accent); font-weight: 800; }

details.disclosure > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary .caret { transition: transform 0.2s; color: var(--text-sub); }
details.disclosure[open] > summary .caret { transform: rotate(180deg); }
.about-list { margin: 8px 0 0; padding-left: 1.2em; }
.about-list li + li { margin-top: 4px; }
.mini-history a { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.mini-history a:last-child { border-bottom: 0; }
.mini-history .score { font-weight: 800; font-family: var(--font-head); }
.empty-text { text-align: center; color: var(--text-sub); }

/* ---------- 画面2 診断中 ---------- */
.progress-hero { text-align: center; }
.progress-hero h1 { font-size: clamp(28px, 7vw, 40px); font-weight: 800; }
.progress-hero .target { font-weight: 700; font-size: 18px; word-break: break-all; margin-top: 4px; }
.progress-bar { height: 10px; border-radius: 6px; background: #fbd7dc; overflow: hidden; position: relative; }
.progress-bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #fbd7dc, var(--accent)); border-radius: 6px; transition: width 0.4s; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 17px; }
.steps li:last-child { border-bottom: 0; }
.step-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #9aa3b8; flex: none; display: grid; place-items: center; font-size: 14px; color: #fff; }
.steps li[data-status="running"] .step-mark { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li[data-status="done"] .step-mark { background: var(--accent); border-color: var(--accent); }
.steps li[data-status="missing"] .step-mark, .steps li[data-status="error"] .step-mark { border-style: dashed; color: var(--na); }
.step-state { margin-left: auto; white-space: nowrap; font-size: 14px; color: var(--text-sub); font-weight: 500; text-align: right; }

/* ---------- 画面3 結果 ---------- */
.result-meta h1 { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.result-meta h1::before { content: ""; width: 5px; height: 1.1em; border-radius: 3px; background: var(--accent); }
.meta-line { display: flex; flex-wrap: wrap; gap: 2px 0; color: var(--text-sub); font-size: 14px; margin-top: 4px; }
.meta-line > span { white-space: nowrap; }
.meta-line > span:not(.meta-url) + span::before { content: "｜"; color: #a8b3c5; margin: 0 6px; }
.meta-url { font-weight: 700; color: var(--text); word-break: break-all; white-space: normal !important; flex-basis: 100%; }
.diff-up, .diff-down, .diff-flat { font-weight: 700; color: var(--text); }

.result-grid { display: grid; gap: 14px; margin-top: 14px; }
.conclusion { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.big-score { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 68px; line-height: 1; letter-spacing: -0.02em; }
.big-score small { font-size: 26px; color: var(--text); margin-left: 2px; }
.gauge { width: 76px; height: 76px; flex: none; }
.gauge text { font-family: var(--font-body); font-weight: 700; font-size: 11px; fill: var(--text-sub); }
.conclusion-side { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
@media (min-width: 768px) { .conclusion-side { flex-basis: auto; flex: 1; min-width: 150px; border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 14px; } }
.rank-pill { display: inline-flex; align-items: baseline; gap: 6px; background: var(--accent-soft); border-radius: 10px; padding: 4px 14px; font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.rank-pill b { color: var(--accent); font-size: 34px; line-height: 1.1; }
.lowest { font-weight: 700; margin-top: 6px; font-size: 15px; }
.lowest-desc { font-size: 13px; color: var(--text-sub); }

.cat-bars { padding: 6px 16px; }
.cat-bar { display: grid; grid-template-columns: 28px 58px 52px 1fr 14px; align-items: center; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.cat-bar:last-child { border-bottom: 0; }
.cat-icon { width: 26px; height: 26px; color: var(--accent); }
.cat-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.cat-score { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--accent); border-left: 1px solid var(--line); padding-left: 8px; }
.cat-body { min-width: 0; }
.cat-desc { font-size: 13px; color: var(--text-sub); line-height: 1.45; }
.cat-lowest { font-size: 12px; font-weight: 700; color: var(--fail); border: 1.5px solid currentColor; border-radius: 6px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.bar { height: 10px; border-radius: 6px; background: var(--track); margin-top: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f04d5b, var(--accent)); }
.chev { color: var(--text-sub); font-weight: 700; }

.prio-list { margin-top: 12px; display: grid; gap: 10px; }
.prio-item { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.prio-item[open] { background: #fff6f7; border-color: #f6c5cb; }
.prio-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 52px; }
.prio-item > summary::-webkit-details-marker { display: none; }
.prio-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; font-family: var(--font-head); }
.prio-head { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.prio-name { font-weight: 700; font-size: 17px; }
.prio-item[open] .chev { transform: rotate(90deg); }
.prio-body { padding: 0 14px 14px 54px; }
.prio-body p { font-size: 15px; }
.prio-body .btn { margin-top: 10px; }

.summary-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.summary-table th, .summary-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.summary-table th { background: #f3f7fb; width: 38%; font-weight: 700; white-space: nowrap; }

/* ---------- 画面4 カテゴリ別詳細 ---------- */
.tabs { position: sticky; top: var(--header-h); z-index: 10; background: var(--bg); padding: 8px 0; margin: 4px -16px 0; padding-left: 16px; padding-right: 16px; }
.tablist { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid #b9c7d8; border-radius: 14px; overflow: hidden; background: #fff; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 6px 2px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 15px; line-height: 1.2; border-left: 1px solid #d0dae6; }
.tab:first-child { border-left: 0; }
.tab .tab-score { font-size: 14px; }
.tab[aria-current="page"] { background: var(--accent); color: #fff; box-shadow: inset 0 -4px 0 #9e1622; }
.cat-head { margin-top: 12px; }
.cat-head h1 { font-size: 34px; font-weight: 800; }
.cat-head .cat-desc { font-size: 18px; font-weight: 700; color: var(--text); font-family: var(--font-head); }
.count-line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-weight: 700; font-size: 15px; }
.check-rows { display: grid; gap: 12px; margin-top: 14px; }
.check-row { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; }
.check-row.is-na { background: #fafbfd; }
.check-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.check-top .divider { width: 1px; height: 18px; background: var(--line); }
.check-name { font-size: 19px; font-weight: 700; font-family: var(--font-head); margin-top: 6px; }
.check-measured { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 15px; }
.check-measured b { font-weight: 700; }
.check-advice { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: 15px; display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.check-advice b { white-space: nowrap; }
.na-note { margin-top: 8px; font-size: 14px; color: var(--na); }
.pass-toggle { margin-top: 14px; }
.pass-toggle > summary { list-style: none; }
.pass-toggle > summary::-webkit-details-marker { display: none; }
.pass-toggle .check-rows { margin-top: 12px; }

/* ---------- 画面5 対応表 ---------- */
.fix-list { display: grid; gap: 12px; margin-top: 14px; }
.fix-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; border: 1.5px solid #cfe0ee; }
.fix-label { font-weight: 700; font-size: 14px; color: var(--text-sub); }
.fix-issue { font-family: var(--font-head); font-weight: 800; font-size: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.fix-arrow { text-align: center; font-size: 20px; color: var(--text-sub); line-height: 1.2; margin: 4px 0; }
.fix-how { font-size: 15px; margin-top: 2px; }
.fix-card .btn { margin-top: 12px; }
.fix-card:target { outline: 3px solid var(--accent); }

/* ---------- 画面6 料金とCTA ---------- */
.plan-grid { display: grid; gap: 14px; margin-top: 14px; }
.plan-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; border: 1.5px solid #cfe0ee; }
.plan-card.is-recommended { border: 2.5px solid var(--accent); }
.plan-name { font-family: var(--font-head); font-weight: 800; font-size: 24px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.plan-badge { font-size: 14px; color: var(--accent-strong); border: 2px solid var(--accent); border-radius: 999px; padding: 0 12px; font-weight: 800; }
.plan-price { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-top: 2px; }
.plan-price b { font-size: 34px; letter-spacing: 0.01em; }
.dot-list { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.dot-list li { position: relative; padding-left: 22px; font-weight: 500; }
.dot-list li + li { margin-top: 4px; }
.dot-list li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.plan-why { font-size: 13px; color: var(--text-sub); margin-top: 8px; }
.monitor { background: #fff4f5; border: 2px solid #f3a3ad; border-radius: 16px; padding: 16px 18px; }
.monitor h3 { color: var(--accent-strong); font-size: 22px; font-weight: 800; }
.monitor .dot-list { border-top: 0; padding-top: 0; margin-top: 6px; }
.cta-group { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.cta-group .cta-note { text-align: center; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.cta-line-wrap { order: 1; }
.cta-form-wrap { order: 2; }
.cta-form { background: #fff; color: var(--accent-strong); border-color: var(--accent); }

/* 固定CTA（モバイルのみ） */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(40, 80, 130, 0.1); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sticky-inner { display: flex; gap: 10px; align-items: center; max-width: 600px; margin: 0 auto; }
.sticky-inner .btn { min-height: 48px; font-size: 17px; }
.sticky-close { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #b9c7d8; background: #fff; flex: none; cursor: pointer; font-size: 20px; color: var(--text); }

/* ---------- 画面7 フォーム ---------- */
.form-card h1 { font-size: clamp(26px, 7vw, 36px); font-weight: 800; }
.form-group-title { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.form-group-title::before { content: ""; width: 5px; height: 1.1em; border-radius: 3px; background: var(--accent); flex: none; }
.form-group-title::after { content: ""; flex: 1; height: 2px; background: #b9d5ea; border-radius: 1px; }
.field { margin-top: 16px; }
.field label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; font-size: 17px; }
.field .hint { font-size: 14px; color: var(--text-sub); margin-top: 6px; }
.error-summary a { font-weight: 700; margin-right: 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn-primary { margin-top: 22px; font-size: 20px; min-height: 58px; }
.privacy-note { text-align: center; font-size: 14px; margin-top: 10px; }
.done-mark { font-size: 40px; color: var(--pass); line-height: 1; }

/* ---------- 画面8 履歴 ---------- */
.history-list { display: grid; gap: 14px; margin-top: 16px; }
.history-card { display: block; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; color: var(--text); position: relative; }
.history-card:hover { box-shadow: 0 4px 16px rgba(40, 80, 130, 0.14); }
.history-score { font-family: var(--font-head); font-weight: 800; font-size: 32px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; line-height: 1.2; }
.history-score .rank { color: var(--accent); }
.diff-badge { font-size: 16px; background: var(--accent-soft); color: var(--text); padding: 2px 10px; border-radius: 10px; }
.history-domain { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-top: 4px; padding-right: 24px; }
.history-url { word-break: break-all; font-size: 15px; padding-right: 24px; }
.history-date { color: var(--text-sub); font-size: 15px; }
.history-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.history-cat { display: flex; align-items: center; gap: 8px; border: 1.5px solid #cfe0ee; border-radius: 10px; padding: 6px 10px; background: #f6fafd; font-family: var(--font-head); font-weight: 800; }
.history-cat .v { margin-left: auto; font-size: 20px; }
.history-card .chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; }

.past-band { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin-top: 4px; }
.past-band svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--text); }

/* ---------- 管理画面 ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }

/* ---------- デスクトップ ---------- */
@media (min-width: 768px) {
  body.has-sticky { padding-bottom: 0; }
  .sticky-cta { display: none !important; }
  .header-nav .desk-only { display: inline-flex; }
  .card { padding: 24px 26px; }
  .term-list { grid-template-columns: repeat(2, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .two-col > * + * { margin-top: 0; }
  .url-row { display: flex; gap: 12px; }
  .url-row .input { flex: 1; }
  .url-row .btn { width: auto; margin-top: 0; flex: none; }
  .result-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .result-grid .r-summary { grid-column: 1 / -1; order: 3; }
  .result-grid .r-priority { grid-column: 1 / -1; order: 4; }
  .result-grid .r-detail { grid-column: 1 / -1; order: 5; }
  .r-conclusion { display: flex; align-items: center; }
  .summary-table.desk-tiles { display: none; }
  .tiles { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
  .r-detail .btn { max-width: 520px; margin: 0 auto; display: flex; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .fix-card { display: grid; grid-template-columns: 1fr 40px 1fr auto; align-items: center; gap: 10px; }
  .fix-arrow { margin: 0; transform: rotate(-90deg); }
  .fix-card .btn { margin-top: 0; width: auto; }
  .check-row:not(.is-pass) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
  .check-row:not(.is-pass) .check-advice, .check-row:not(.is-pass) .na-note { grid-column: 2; grid-row: 1 / span 3; border-top: 0; margin-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 20px; align-self: start; }
  .cta-group { max-width: 560px; margin-left: auto; margin-right: auto; }
  .cta-line-wrap { order: 2; }
  .cta-form-wrap { order: 1; }
  .cta-form { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(242, 38, 77, 0.22); }
  .form-card { max-width: 720px; margin: 0 auto; }
  .history-cats { grid-template-columns: repeat(4, 1fr); }
  .narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
}
.tiles { display: none; }
.tile { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: #f8fbfe; }
.tile-label { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.tile-value { font-weight: 700; margin-top: 2px; word-break: break-all; }

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

/* 2026-11-25 結果画面の案内（AI表示確率・カテゴリ別の大まかな案内・LP案内） */
.ai-chance { border: 2px solid #f6c5cb; background: #fff8f9; }
.ai-chance-main { font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1.5; }
.ai-chance-main b { color: var(--accent-strong); font-size: 34px; margin-left: 4px; white-space: nowrap; }
.ai-chance-note { font-size: 14px; color: var(--text-sub); margin-top: 4px; }
.prio-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 52px; text-decoration: none; color: var(--text); }
.prio-link:hover { background: #fff6f7; border-color: #f6c5cb; }
.prio-measured { flex-basis: 100%; font-size: 14px; }
.guide-list { display: grid; gap: 12px; margin-top: 14px; }
.guide-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; border: 1.5px solid #cfe0ee; }
.guide-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.guide-head .cat-icon { width: 26px; height: 26px; }
.guide-score { margin-left: auto; font-size: 24px; }
.guide-score small { font-size: 14px; margin-left: 2px; }
.guide-text { font-size: 15px; margin: 6px 0 8px; }
.lp-link { width: auto; max-width: 100%; white-space: normal; }
@media (min-width: 768px) { .guide-list { grid-template-columns: 1fr 1fr; } }
