:root {
  --orange: #ff6a00;
  --orange-dark: #d94f00;
  --orange-soft: #fff3ea;
  --ink: #162033;
  --ink-soft: #334155;
  --muted: #64748b;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 42px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 106, 0, 0.08), transparent 34rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 38%, #eef2f7 100%);
  color: var(--ink);
}

a { color: var(--orange-dark); }
a:hover { color: var(--orange); }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.site-shell {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--orange);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.12));
}

.brand-name {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-name span { color: var(--orange); }

.brand-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.content { padding: 26px; }

.breadcrumbs {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumbs a { font-weight: 750; }

.hero {
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #fff8f2 100%);
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.hero p {
  max-width: 800px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #7c3b00;
  font-size: 0.78rem;
  font-weight: 850;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.metric-value {
  margin-top: 10px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.record-when {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.record-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.panel-header h2 { margin: 0; font-size: 1.05rem; }
.panel-meta { color: var(--muted); font-size: 0.82rem; font-weight: 650; }

.table-wrap { overflow-x: auto; padding: 14px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:hover { background: #fffaf6; }

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.archive-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.archive-card h2,
.archive-card h3 { margin: 0 0 7px; font-size: 1rem; }
.archive-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.archive-card a { font-weight: 850; }

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 12px;
  background: var(--orange-soft);
  color: #5f3200;
  font-size: 0.88rem;
  line-height: 1.55;
}

footer {
  padding: 24px 4px 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 850px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  main { padding: 16px 10px 28px; }
  .content { padding: 16px; }
  .brand img { width: 76px; }
  .archive-list { grid-template-columns: 1fr; }
  .record-summary { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: 1fr; }
}
