/* blueqat 共通のデザイン（~/pm/DESIGN.md）に合わせた secscan の画面 */
:root {
  --bq-bg: #ffffff; --bq-surface: #f5f5f7; --bq-ink: #1a1a1a; --bq-ink-2: #424245; --bq-ink-3: #515154;
  --bq-muted: #6e6e73; --bq-faint: #86868b; --bq-line: #e5e7eb; --bq-link: #0066cc;
  --sev-crit: #b3261e; --sev-high: #c4501b; --sev-mid: #a86b00; --sev-low: #515154; --sev-ok: #1e7a3c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", "Noto Sans JP", sans-serif; color: var(--bq-ink); background: var(--bq-bg);
  -webkit-font-smoothing: antialiased; }
h1, h2, .bq-lead { word-break: auto-phrase; text-wrap: balance; }
a { color: var(--bq-link); }

.bq-header { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 0 24px; background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.05); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bq-header__logo img { height: 16px; width: auto; filter: brightness(0); display: block; }
.bq-header__service { font-weight: 900; font-size: 12px; letter-spacing: .2em; padding-left: 12px; border-left: 1px solid #ccc; }
.bq-header__nav { margin-left: auto; display: flex; gap: 24px; font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.bq-header__nav a { color: var(--bq-ink); text-decoration: none; }
@media (min-width: 768px) { .bq-header { height: 96px; padding: 0 48px; } .bq-header__logo img { height: 20px; } }

main { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding: 80px 0 48px; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.bq-lead { font-size: 19px; font-weight: 500; line-height: 1.375; color: var(--bq-ink-2); margin: 20px auto 0; max-width: 720px; }
@media (min-width: 768px) { .bq-lead { font-size: 22px; } .hero { padding: 112px 0 64px; } }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--bq-muted); margin: 0 0 12px; }

.scanform { display: flex; gap: 12px; max-width: 640px; margin: 36px auto 0; }
.bq-input { flex: 1; min-width: 0; border: 1px solid #d2d2d7; border-radius: 12px; padding: 12px 14px; font: inherit;
  font-size: 16px; background: #fff; color: var(--bq-ink); }
.bq-input:focus { outline: none; border-color: var(--bq-link); box-shadow: 0 0 0 4px rgba(0,102,204,.15); }
.bq-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--bq-ink);
  color: var(--bq-bg); padding: 10px 24px; font: inherit; font-size: 14px; font-weight: 700; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap; }
.bq-btn:hover { background: #000; }
@media (max-width: 560px) { .scanform { flex-direction: column; } }
.note { font-size: 13px; color: var(--bq-muted); line-height: 1.6; text-align: center; margin: 16px auto 0; max-width: 640px; }
.error { max-width: 640px; margin: 20px auto 0; background: #fdecea; color: var(--sev-crit); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; font-weight: 700; }

section { padding: 48px 0; }
section > h2 { font-size: 28px; font-weight: 900; letter-spacing: -.03em; margin: 0 0 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bq-card { background: var(--bq-surface); border-radius: 24px; padding: 28px; }
.bq-card h3 { font-size: 17px; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.bq-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.625; color: var(--bq-ink-3); }

.bq-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.bq-table th, .bq-table td { border-bottom: 1px solid var(--bq-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.bq-table th { font-weight: 800; border-bottom-color: #c7c7cc; white-space: nowrap; }
.tablewrap { overflow-x: auto; }

.scores { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 8px; }
.score { background: var(--bq-surface); border-radius: 24px; padding: 32px; text-align: center; }
.score .label { font-size: 15px; font-weight: 700; color: var(--bq-muted); }
.score .grade { font-size: 88px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 12px 0 4px; }
.score .pts { font-size: 17px; font-weight: 700; color: var(--bq-ink-2); }
.score .sub { font-size: 13px; color: var(--bq-muted); margin-top: 8px; line-height: 1.6; }

.bar { display: block; width: 100%; height: 8px; margin-top: 12px; appearance: none; border: 0; background: #e5e5ea; border-radius: 999px; }
.bar::-webkit-meter-bar { background: #e5e5ea; border: 0; border-radius: 999px; height: 8px; }
.bar::-webkit-meter-optimum-value, .bar::-webkit-meter-suboptimum-value, .bar::-webkit-meter-even-less-good-value { background: var(--bq-ink); border-radius: 999px; }
.bar::-moz-meter-bar { background: var(--bq-ink); border-radius: 999px; }
.hero--result { padding-bottom: 32px; }
.h1-host { font-size: clamp(2rem, 5vw, 3.4rem) !important; }
.h1-mid { font-size: 28px; font-weight: 900; margin: 0; }
.sub--crit { color: var(--sev-crit); font-weight: 800; }
.center { text-align: center; } .gap { margin-top: 32px; }

.sev { display: inline-block; font-size: 12px; font-weight: 900; padding: 2px 10px; border-radius: 999px; color: #fff;
  white-space: nowrap; }
.sev-重大 { background: var(--sev-crit); } .sev-高 { background: var(--sev-high); } .sev-中 { background: var(--sev-mid); }
.sev-低 { background: var(--sev-low); } .sev-情報 { background: var(--bq-faint); } .sev-良 { background: var(--sev-ok); }
.finding { border-bottom: 1px solid var(--bq-line); padding: 18px 0; }
.finding h3 { font-size: 17px; font-weight: 800; margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.finding .where { font-size: 13px; color: var(--bq-muted); font-weight: 700; }
.finding p { margin: 6px 0 0; font-size: 15px; line-height: 1.625; color: var(--bq-ink-3); }
.finding .fix { color: var(--bq-ink); }
.finding .fix::before { content: "直し方 › "; font-weight: 800; }
details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 800; font-size: 15px; padding: 12px 0; }
.ok { color: var(--sev-ok); font-weight: 800; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; color: var(--bq-muted); }
.disclaimer { background: var(--bq-surface); border-radius: 16px; padding: 20px 24px; font-size: 14px; line-height: 1.7;
  color: var(--bq-ink-2); }
.pending { text-align: center; padding: 120px 0; }
.spinner { width: 40px; height: 40px; border: 4px solid #e5e5ea; border-top-color: var(--bq-ink); border-radius: 50%;
  margin: 0 auto 24px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.bq-footer { border-top: 1px solid var(--bq-line); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  padding: 36px 24px 48px; margin-top: 64px; }
.bq-footer img { filter: grayscale(1); opacity: .7; height: 16px; display: block; }
.bq-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; font-weight: 700; }
.bq-footer nav a { color: var(--bq-ink-3); text-decoration: none; }
.bq-footer small { margin-left: auto; color: var(--bq-faint); font-size: 11px; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--bq-ink); cursor: pointer;
  font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.okmsg { max-width: 640px; margin: 20px auto 0; background: #e8f5ec; color: var(--sev-ok); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; font-weight: 700; }
.bq-select { flex: 0 0 auto; width: auto; }
.siteform { max-width: none; margin: 0; }
.sitebox { border-top: 1px solid var(--bq-line); }
.sitebox h2 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sitebox p { font-size: 15px; line-height: 1.625; color: var(--bq-ink-3); }
.copy { user-select: all; color: var(--bq-ink); }
.note.left { text-align: left; margin-left: 0; }
.actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.linkbtn2 { background: none; border: 0; padding: 0; font: inherit; color: var(--bq-link); font-size: 15px; font-weight: 700; cursor: pointer; }
.linkbtn2:hover { text-decoration: underline; text-underline-offset: 4px; }
.plan { text-align: left; } .plan .label { text-align: left; }
.price { font-size: 56px !important; } .price small { font-size: 15px; font-weight: 700; color: var(--bq-ink-2); letter-spacing: 0; }
.plist { padding-left: 1.2em; line-height: 1.9; color: var(--bq-ink-3); font-size: 15px; }
.plain { font-size: 15px; line-height: 1.7; color: var(--bq-ink-3); margin: 8px 0; }
.actions-center { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.steps { list-style: none; padding: 0; margin: 28px auto 0; max-width: 420px; text-align: left; }
.steps li { position: relative; padding: 8px 0 8px 32px; font-size: 15px; color: var(--bq-faint); }
.steps li::before { content: ""; position: absolute; left: 6px; top: 13px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #d2d2d7; box-sizing: border-box; }
.steps li.now { color: var(--bq-ink); font-weight: 700; }
.steps li.now::before { border-color: var(--bq-ink); border-top-color: transparent; animation: spin 1s linear infinite; }
.steps li.done { color: var(--bq-ink-3); }
.steps li.done::before { background: var(--sev-ok); border-color: var(--sev-ok); }
@media (prefers-reduced-motion: reduce) { .steps li.now::before { animation: none; } }
.tierbox { background: var(--bq-surface); border-radius: 16px; padding: 16px 20px; font-size: 14px; line-height: 1.7;
  color: var(--bq-ink-2); margin-top: 16px; }
.scores--one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.banner { max-width: 1024px; margin: 24px auto 0; }
.upsell { display: flex; gap: 20px; align-items: center; justify-content: space-between; text-align: left;
  max-width: 640px; margin: 28px auto 0; border: 2px solid var(--bq-ink); border-radius: 20px; padding: 20px 24px; background: #fff; }
.upsell__title { margin: 0; font-size: 17px; font-weight: 900; }
.upsell__body { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--bq-ink-3); }
@media (max-width: 560px) { .upsell { flex-direction: column; align-items: stretch; } .upsell .bq-btn { justify-content: center; } }
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi { background: var(--bq-surface); border-radius: 20px; padding: 20px 22px; }
.kpi__label { font-size: 13px; font-weight: 700; color: var(--bq-muted); }
.kpi__num { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.kpi__num small { font-size: 18px; }
.kpi__sub { font-size: 12px; color: var(--bq-muted); line-height: 1.6; margin-top: 6px; }
.barsvg { display: block; width: 100%; height: auto; max-height: 160px; }
.barsvg .bar { fill: var(--bq-ink); }
.barsvg .hit { fill: transparent; }
.barsvg g:hover .bar { fill: var(--bq-link); }
.barsvg .base { stroke: var(--bq-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--bq-muted); margin-top: 6px; }
.backend { border: 2px solid var(--bq-ink); border-radius: 20px; padding: 20px 24px; margin-top: 24px; }
.backend h2 { margin-bottom: 8px !important; }
.mono-in { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.bq-card--go { display: block; text-decoration: none; color: inherit; border: 2px solid var(--bq-ink); background: #fff; }
.bq-card--go:hover { box-shadow: 0 10px 30px -12px rgba(0,0,0,.2); }
.estate-form { max-width: 720px; margin: 0 auto; }
.fgrid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.estate-form label { display: block; font-size: 13px; font-weight: 700; color: var(--bq-ink-2); }
.estate-form label .bq-input { margin-top: 6px; width: 100%; }
.estate-form label.full { margin-top: 14px; }
.estate-form .more { margin-top: 16px; }
.estate-form select.bq-input { appearance: auto; }

/* POQET の中（埋め込み）: 共通ヘッダの代わりの小さなメニューと、短いフッタ */
.bq-embednav { display: flex; gap: 4px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid var(--bq-line); }
.bq-embednav a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--bq-ink-3); text-decoration: none; }
.bq-embednav a[aria-current="page"] { background: var(--bq-surface); color: var(--bq-ink); }
.bq-footer--embed { padding: 20px 16px 28px; margin-top: 40px; }
