:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #12141b;
  --panel-soft: #171a22;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #b7bbc6;
  --accent: #ff2c3f;
  --gold: #d6b15f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 44, 63, 0.24), transparent 34%),
    linear-gradient(135deg, #0b0d13 0%, #181a24 52%, #26080d 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.site-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 22%),
    rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.32;
}

h1 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

h2 {
  font-size: 1.28rem;
}

h3 {
  font-size: 1.02rem;
}

p,
li {
  color: rgba(237, 239, 245, 0.86);
  font-size: 0.98rem;
  line-height: 1.9;
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(248, 250, 252, 0.88);
  font-size: 1.04rem;
}

.content-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
}

.section p:last-child,
.section ul:last-child {
  margin-bottom: 0;
}

.note-list {
  padding-left: 1.2rem;
}

.data-table {
  width: 100%;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: 12px;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: rgba(237, 239, 245, 0.88);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text);
  font-weight: 900;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.link-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.link-panel a {
  display: block;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.link-panel a:hover,
.link-panel a:focus-visible {
  border-color: rgba(255, 44, 63, 0.52);
}

.site-footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: rgba(183, 187, 198, 0.72);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 920px);
    padding-top: 18px;
  }

  .hero,
  .section {
    padding: 18px;
  }

  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }
}
