:root {
  color-scheme: light;
  --page-background: #f5f7fa;
  --surface: #ffffff;
  --text-primary: #1f2933;
  --text-muted: #52606d;
  --accent: #2563eb;
  --border: #e2e8f0;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--page-background);
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

body.static-page {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}

main.page {
  width: min(960px, 100%);
  background-color: var(--surface);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  text-align: center;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

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

li + li {
  margin-top: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.6);
}

a:hover,
a:focus {
  text-decoration-color: currentColor;
}

.note {
  margin-top: -0.75rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--text-muted);
}

small {
  color: var(--text-muted);
}

.tR,
.text-right {
  text-align: right;
}

section + section {
  margin-top: 2.5rem;
}

@media (max-width: 640px) {
  body.static-page {
    padding: 2.5rem 1rem;
  }

  main.page {
    border-radius: 12px;
    padding: clamp(1.5rem, 6vw, 2.25rem);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  }

  h1 {
    margin-bottom: 1.25rem;
  }

  h2 {
    margin-top: 2rem;
  }
}
