/*
 * レイアウトのモチーフ: State of CSS 2026（暗い地・等幅フォント・破線の区切り・枠付きの小さな表）
 * 配色: obramaestra.co.jp の青緑基調（紺 #1e3a8a → 青 #0284c7 → 緑 #10b981、地は #0f172a）（D-046）
 * 意味の色: 確定=青、推定=灰、EOL・管理画面公開=橙。赤は使わない（アクセントの青緑は意味を持たせない）
 */
:root {
  --bg: #0f172a;
  --surface: #16213a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(226, 232, 240, 0.22);
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --grad-from: #38bdf8;
  --grad-to: #34d399;
  --blue: #93c5fd;
  --gray: #cbd5e1;
  --orange: #fdba74;
  --mono: "IBM Plex Mono", "IBM Plex Sans JP", ui-monospace, monospace;
  --display: "Bebas Neue", "IBM Plex Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--mono);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--accent); word-break: break-all; }
pre { border: 1px dashed var(--line); padding: 12px; overflow-x: auto; }
pre code { color: var(--text); }

/* ---- 枠組み ---- */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px dashed var(--line);
}
.logo { font-family: var(--display); font-size: 30px; letter-spacing: 0.06em; color: var(--text); font-weight: 400; line-height: 1; }
.site-header nav { display: flex; gap: 16px; font-size: 13px; }
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 14px 16px; margin-top: 32px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted);
}
.container { max-width: 760px; margin: 0 auto; padding: 20px 16px; }
h1 { font-size: 1.5rem; line-height: 1.4; font-weight: 600; margin: 8px 0 16px; }
h2 {
  font-family: var(--mono); font-size: 1.15rem; font-weight: 600; margin: 0 0 12px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line);
}
h3 { font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; margin: 16px 0 4px; }
.block { padding: 20px 0; margin: 0 0 8px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
.disclaimer {
  font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); padding: 8px 12px; margin: 0 0 16px;
}

/* ---- 入力画面 ---- */
.hero { text-align: center; padding: 8px 0 4px; }
.hero-kicker { font-family: var(--display); font-size: 26px; letter-spacing: 0.35em; margin: 24px 0 0; color: var(--text); }
.hero-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(56px, 18vw, 112px); letter-spacing: 0.12em;
  margin: 0; line-height: 1; background: linear-gradient(135deg, var(--grad-from), #0ea5e9 45%, var(--grad-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { text-align: left; margin: 20px 0 0; }
.dropcap { float: left; font-family: var(--display); font-size: 64px; line-height: 0.85; padding: 6px 10px 0 0; color: var(--text); }
label { display: block; font-weight: 600; margin-bottom: 8px; }
input[type="text"] {
  width: 100%; font: 500 16px var(--mono); color: var(--text); background: var(--surface);
  padding: 12px; border: 1px solid var(--line); border-radius: 0;
}
input[type="text"]::placeholder { color: var(--muted); }
input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 0; }
button {
  font: 600 15px var(--mono); padding: 12px 20px; border: 1px solid var(--accent); border-radius: 0; cursor: pointer;
  background: var(--accent); color: var(--bg); width: 100%; margin-top: 10px; letter-spacing: 0.03em;
}
button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: wait; }
button.secondary { background: transparent; color: var(--accent); width: auto; }
button.secondary:hover { background: rgba(45, 212, 191, 0.1); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.error { color: var(--orange); font-weight: 600; }
.progress { margin: 14px 0 0; padding-left: 0; list-style: none; color: var(--muted); font-size: 13px; }
.progress li::before { content: "  "; white-space: pre; }
.progress li[data-state="active"] { color: var(--accent); font-weight: 600; }
.progress li[data-state="active"]::before { content: "> "; }
.progress li[data-state="done"] { color: var(--text); }
.progress li[data-state="done"]::before { content: "✓ "; }

/* ---- 結果: 要点の表（State of CSS の Start Date / End Date 風） ---- */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 8px;
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.stat dt { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.stat dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; word-break: break-word; }
.stat.tone-confirmed dd { color: var(--blue); }
.stat.tone-estimated dd { color: var(--gray); }
.stat.tone-attention dd { color: var(--orange); }
.stat.tone-neutral dd { color: var(--text); }

/* ---- 結果: 事実とリスク ---- */
.findings { list-style: none; counter-reset: f; padding: 0; margin: 0 0 12px; }
.finding { counter-increment: f; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px dashed var(--line); }
.finding::before {
  content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 10px;
  font-family: var(--display); font-size: 28px; line-height: 1; color: var(--muted);
}
.finding.level-attention::before { color: var(--orange); }
.fact { margin: 0; font-weight: 500; }
.finding.level-attention .fact { color: var(--orange); }
.risk { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.risk-label {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent);
  border: 1px solid var(--accent); padding: 0 6px; margin-right: 8px; line-height: 1.6; vertical-align: 1px;
}

/* ---- 結果: 技術・チェック ---- */
.tech { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.tech summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.tech summary::-webkit-details-marker { display: none; }
.tech summary::before { content: ">"; color: var(--accent); font-weight: 600; }
.tech[open] summary::before { content: "v"; }
.tech-name { flex: 1; word-break: break-word; font-weight: 500; }
.badge { font-size: 11px; padding: 0 8px; border: 1px solid currentColor; white-space: nowrap; }
.tone-confirmed { color: var(--blue); }
.tone-estimated { color: var(--gray); }
.tone-attention { color: var(--orange); }
.tone-neutral { color: var(--text); }
.evidence, .plain, .warnings { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; padding-left: 1.4em; word-break: break-all; }
.checks { width: 100%; border-collapse: collapse; font-size: 13.5px; border: 1px solid var(--line); }
.checks th, .checks td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.checks th { font-weight: 500; width: 42%; border-right: 1px solid var(--line); }
.checks .mark { width: 2.4em; text-align: center; font-weight: 600; color: var(--accent); }

/* ---- 利用規約 ---- */
.prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
