:root {
  color-scheme: light;
  --ink: #12151a;
  --muted: #6d6864;
  --wine: #7a1424;
  --wine-bright: #b23a3a;
  --gold: #d7a83f;
  --paper: #fffcf8;
  --ivory: #f7f1e5;
  --base: #f8f5f0;
  --line: #e8ded8;
  --soft-red: #f6e6e6;
  --shadow: 0 18px 50px rgba(45, 31, 28, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  line-height: 1.75;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.94);
}

.header-inner,
.page,
.footer-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.page {
  padding: 56px 0 72px;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.18;
}

h2 {
  margin-top: 38px;
  margin-bottom: 10px;
  font-size: 22px;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

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

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--wine);
}

.button.disabled {
  border-color: var(--line);
  background: #ece8e4;
  color: #817b76;
  cursor: not-allowed;
}

.notice,
.document {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.notice {
  border-left: 4px solid var(--gold);
}

.document h1 {
  margin-bottom: 8px;
  font-size: 36px;
}

.document h2 {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.document h2:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.meta,
.small {
  color: var(--muted);
  font-size: 13px;
}

ul {
  padding-left: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ivory);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  padding: 24px 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 560px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    padding: 10px 0;
  }

  .nav {
    gap: 12px;
  }

  .page {
    padding-top: 28px;
  }

  .hero {
    padding: 26px 22px;
  }

  .button {
    width: 100%;
  }
}
