:root {
  --bg: #f3f5f8;
  --text: #1f2937;
  --muted: #5f6b7a;
  --table-head: #223447;
  --border: #e5e7eb;
  --ok: #1f8f5f;
  --partial: #b7791f;
  --ng: #c0392b;
  --unreadable: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}

.report-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.report-header {
  margin-bottom: 16px;
}

.report-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.report-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--table-head);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.col-question-id,
.question-id {
  width: 140px;
  min-width: 140px;
  white-space: nowrap;
}

.question-id {
  font-variant-numeric: tabular-nums;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 #edf1f5;
}

.col-question-id {
  position: sticky;
  left: 0;
  z-index: 3;
}

tr:hover {
  background: #f9fbfd;
}

.result {
  font-weight: 700;
}

.result-correct {
  color: var(--ok);
}

.result-partial {
  color: var(--partial);
}

.result-incorrect {
  color: var(--ng);
}

.result-unreadable {
  color: var(--unreadable);
}

.confidence-stack {
  display: grid;
  gap: 6px;
}

.confidence-chip {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.82rem;
  border: 1px solid transparent;
}

.confidence-chip .source {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.confidence-chip .value {
  font-weight: 600;
}

.confidence-high {
  background: #e7f7ee;
  color: #155d3b;
  border-color: #bee6cd;
}

.confidence-mid {
  background: #fff6dc;
  color: #7c5b12;
  border-color: #f2dc98;
}

.confidence-low {
  background: #fde7e5;
  color: #84231a;
  border-color: #f3c0bb;
}

.confidence-unknown {
  background: #edf1f5;
  color: #465364;
  border-color: #d5dde6;
}

.needs-review {
  background: #fff7f7;
  box-shadow: inset 4px 0 0 #d94141;
}

.comment {
  color: #38485a;
}

.reason {
  margin-top: 4px;
  font-size: 0.84rem;
  color: #6b7280;
}

.reason-review {
  color: #b42318;
}

.col-confidence {
  min-width: 190px;
}
