:root {
  --bg: #0b1016;
  --bg-elevated: #121923;
  --bg-soft: #182231;
  --fg: #e8eef5;
  --muted: #9aa7b5;
  --line: rgba(232, 238, 245, 0.12);
  --accent: #3d8bfd;
  --accent-soft: rgba(61, 139, 253, 0.16);
  --danger: #ff7b72;
  --radius: 14px;
  --max: 68rem;
  --narrow: 42rem;
  --font-display: "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, #1b2a40 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 0%, #152033 0%, transparent 50%),
    var(--bg);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 22, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.section-inner,
.hero__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.15rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--fg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  justify-content: flex-end;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hero {
  padding: clamp(3.5rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero__inner {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero .lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: #061018;
}

.button--primary:hover {
  filter: brightness(1.08);
}

.button--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.button--ghost:hover {
  background: var(--bg-soft);
}

.section {
  padding: 3rem 0;
}

.section--soft {
  background: linear-gradient(180deg, transparent, rgba(24, 34, 49, 0.55));
}

.section h2,
.page-title h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.section p,
.prose p,
.prose li {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.feature {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 25, 35, 0.72);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
}

.page-title {
  padding: 2.5rem 0 1rem;
}

.page-title .breadcrumb {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-title .breadcrumb a {
  color: var(--muted);
}

.prose {
  width: min(var(--narrow), 100%);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--fg);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  width: 12rem;
  background: var(--bg-elevated);
  color: var(--fg);
  font-weight: 600;
}

.prose td {
  color: var(--muted);
}

.site-form {
  width: min(32rem, 100%);
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.site-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-form .field-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-form input,
.site-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
  padding: 0.75rem 0.9rem;
}

.site-form input:focus,
.site-form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.site-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.site-form .check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  color: var(--muted);
}

.site-form .check input {
  width: auto;
  margin-top: 0.25rem;
}

.turnstile-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.thanks-box {
  width: min(var(--narrow), 100%);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 25, 35, 0.8);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: rgba(8, 12, 18, 0.7);
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .prose th {
    width: 7.5rem;
  }
}
