:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.header {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 44px 20px 52px;
}

.header-inner,
.main,
.footer-inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.header h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.header .eyebrow {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.main {
  margin-top: -28px;
  margin-bottom: 42px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 28px;
}

.placeholder {
  color: #9a3412;
  background: #ffedd5;
  border-radius: 6px;
  padding: 1px 5px;
  font-weight: 600;
}

h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}

p,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 6px;
}

a {
  color: var(--brand);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--brand-dark);
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

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

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

th {
  background: #f9fafb;
}

tr:last-child td {
  border-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 26px 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.footer a {
  text-decoration: none;
  margin-left: 12px;
}

@media (max-width: 640px) {
  .header {
    padding-top: 34px;
  }

  .header-inner,
  .main,
  .footer-inner {
    width: min(100% - 28px, 980px);
  }

  .footer-inner {
    display: block;
  }

  .footer a {
    display: inline-block;
    margin: 8px 12px 0 0;
  }
}
