:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #10233f;
  --muted: #5b687a;
  --line: #d9e3ee;
  --accent: #2f80d1;
  --accent-deep: #17365f;
  --success: #0f766e;
  --error: #b42318;
  --radius: 12px;
  --shadow: 0 20px 48px rgba(16, 35, 63, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(47, 128, 209, 0.12), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Page wrapper ===== */
.beta-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ===== Header ===== */
.beta-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.beta-page-brand {
  display: grid;
  gap: 2px;
}

.beta-page-brand strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.beta-page-brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.beta-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.beta-page-nav a {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.beta-page-nav a:hover {
  text-decoration: underline;
}

/* ===== Hero layout ===== */
.beta-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* ===== Card ===== */
.beta-page-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.beta-page-card h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
  line-height: 1.3;
}

.beta-page-card h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
}

.beta-page-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.beta-page-card p:last-of-type {
  margin-bottom: 0;
}

.beta-page-card ul {
  margin: 0;
  padding-left: 1.3rem;
}

.beta-page-card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.beta-page-card li + li {
  margin-top: 6px;
}

/* ===== Kicker badge ===== */
.beta-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 128, 209, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ===== Summary grid in hero sidebar ===== */
.beta-summary-grid {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.beta-summary-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.beta-summary-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.beta-summary-item span {
  color: var(--muted);
  font-size: 0.83rem;
}

/* ===== Registration step flow ===== */
.register-steps {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.register-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.register-step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.register-step-body strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.register-step-body span {
  color: var(--muted);
  font-size: 0.83rem;
}

/* ===== Form layout ===== */
.beta-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.beta-form-layout > :last-child {
  position: sticky;
  top: 24px;
}

/* ===== Contact form ===== */
.contact-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid #c9d9e9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 128, 209, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aab8c8;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

/* ===== Form section separators ===== */
.form-section-head {
  display: block;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.form-gap {
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

/* ===== Disclaimer box ===== */
.beta-note-box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.beta-note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ===== Submit button ===== */
.beta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.beta-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.beta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.beta-secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* ===== Form status message ===== */
.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.form-help.is-success {
  color: var(--success);
  font-weight: 700;
}

.form-help.is-error {
  color: var(--error);
  font-weight: 700;
}

/* ===== Success message ===== */
.beta-complete {
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.06);
}

.beta-complete h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.beta-complete p {
  margin: 0 0 14px;
}

.beta-complete.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

/* ===== Page footer ===== */
.beta-page-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .beta-page-hero,
  .beta-form-layout {
    grid-template-columns: 1fr;
  }

  .beta-form-layout > :last-child {
    position: static;
  }
}

@media (max-width: 640px) {
  .beta-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .beta-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .beta-page-card {
    padding: 22px 18px;
  }
}

/* 日本語の改行制御 */
.phrase {
  display: inline-block;
}

body {
  line-height: 1.75;
  letter-spacing: 0.02em;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

h1,
h2,
h3,
.beta-page-nav a,
.beta-button,
.beta-secondary-button {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
.beta-page-card h1 {
  line-height: 1.25;
}

h2,
.beta-page-card h2 {
  line-height: 1.35;
}

h3,
.beta-summary-item strong,
.register-step-body strong {
  line-height: 1.38;
}

.beta-page-card p,
.beta-page-card li,
.beta-summary-item span,
.register-step-body span,
.beta-note-box p,
.form-help {
  line-height: 1.75;
}
