:root {
  --navy-950: #071c39;
  --navy-900: #0a2852;
  --navy-800: #103b70;
  --blue-700: #135ba7;
  --blue-600: #1b70c8;
  --blue-100: #e7f3fb;
  --aqua-500: #53bdd4;
  --aqua-100: #e7f7f8;
  --ink: #16263a;
  --muted: #586b7d;
  --line: #d7e5ee;
  --paper: #fffefa;
  --surface: #ffffff;
  --error: #bd2b3b;
  --error-bg: #fff1f3;
  --success: #18734e;
  --radius-sm: 9px;
  --radius-md: 15px;
  --radius-lg: 26px;
  --shadow: 0 22px 60px rgba(20, 60, 91, 0.14);
  --focus: 0 0 0 4px rgba(83, 189, 212, 0.28);
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  background: #edf4f5 url("/assets/learning-desk-bg.svg") center top / cover fixed;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-700);
  text-underline-offset: 0.18em;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(10, 40, 82, 0.11);
  background: rgba(255, 255, 252, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.site-header__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy-900);
  text-decoration: none;
}

.site-header__logo {
  width: 146px;
  height: auto;
}

.site-header__academy-name {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.site-header__badge {
  flex: 0 0 auto;
  padding: 7px 14px;
  color: var(--navy-900);
  border: 1px solid #b8dae7;
  border-radius: 999px;
  background: var(--aqua-100);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 80px 24px 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 254, 249, 0.96) 0%, rgba(255, 254, 249, 0.88) 43%, rgba(237, 247, 248, 0.38) 75%, rgba(231, 243, 247, 0.5) 100%);
}

.hero__content {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow,
.form-intro__kicker {
  margin: 0 0 12px;
  color: var(--blue-600);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero__cohort {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 7px 16px;
  color: var(--navy-900);
  border: 1px solid rgba(27, 112, 200, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(2.1rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.28;
}

.hero__lead {
  max-width: 680px;
  margin: 26px auto 0;
  color: #384f65;
  font-size: 1rem;
  line-height: 2;
  text-wrap: pretty;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.hero__meta span {
  padding: 7px 13px;
  color: var(--navy-800);
  border: 1px solid rgba(16, 59, 112, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 600;
}

.page-shell {
  width: min(820px, calc(100% - 40px));
  margin: -64px auto 88px;
  position: relative;
  z-index: 2;
}

.form-card {
  overflow: hidden;
  border: 1px solid rgba(12, 55, 97, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 252, 0.96);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.form-intro {
  padding: 48px 56px 38px;
  text-align: center;
}

.form-intro h2,
.success h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.4;
}

.form-intro > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-section {
  padding: 50px 56px 58px;
  border-top: 1px solid var(--line);
}

.form-section--tint {
  background: linear-gradient(145deg, rgba(231, 247, 248, 0.66), rgba(239, 246, 251, 0.72));
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--navy-800), var(--blue-600));
  box-shadow: 0 8px 18px rgba(19, 91, 167, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-heading p {
  margin: 0 0 2px;
  color: var(--blue-600);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.section-heading h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.36rem;
  line-height: 1.4;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  min-width: 0;
  margin: 0 0 28px;
}

.field > label,
.candidate legend {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: var(--navy-950);
  font-size: 0.94rem;
  font-weight: 700;
}

.req,
.opt {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: 2px;
}

.req {
  color: #fff;
  background: var(--blue-700);
}

.opt {
  color: var(--muted);
  background: #e7eef2;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  color: var(--ink);
  border: 1px solid #c7d9e5;
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

select {
  padding-right: 42px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23586b7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

input:hover,
select:hover {
  border-color: #83b7d2;
  background-color: #fbfdff;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus {
  outline: none;
  box-shadow: var(--focus);
}

input:focus,
select:focus {
  border-color: var(--blue-600);
}

input::placeholder {
  color: #91a0ae;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
.consent[aria-invalid="true"] {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.field__help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.schedule-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 28px;
  padding: 16px 18px;
  color: var(--navy-800);
  border: 1px solid #b9dce7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.schedule-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.schedule-note p {
  margin: 0;
}

.candidate {
  margin: 0 0 22px;
  padding: 22px 22px 0;
  border: 1px solid #c9dce7;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
}

.candidate:last-child {
  margin-bottom: 0;
}

.candidate legend {
  margin: 0;
  padding: 0 8px;
}

.candidate .field {
  margin-bottom: 22px;
}

.candidate .field > label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.candidate[aria-invalid="true"] {
  border-color: var(--error);
  background: rgba(255, 241, 243, 0.72);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.consent-field {
  padding: 34px 56px 4px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfc;
  cursor: pointer;
  font-size: 0.88rem;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex: 0 0 20px;
  accent-color: var(--blue-700);
}

.message {
  margin: 26px 56px 0;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.message--error {
  color: var(--error);
  border: 1px solid rgba(189, 43, 59, 0.4);
  background: var(--error-bg);
}

.form-actions {
  padding: 34px 56px 48px;
  text-align: center;
}

.form-actions p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button--primary {
  min-width: 290px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  box-shadow: 0 10px 26px rgba(19, 91, 167, 0.27);
}

.button--secondary {
  color: var(--navy-800);
  border-color: #aac8da;
  background: #fff;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(19, 91, 167, 0.22);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.button__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.button.is-loading .button__spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.confirmation {
  padding-bottom: 48px;
}

.confirmation-list {
  margin: 0 56px;
  border-top: 1px solid var(--line);
}

.confirmation-list > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.confirmation-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.confirmation-list dd {
  min-width: 0;
  margin: 0;
  color: var(--navy-950);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 36px 56px 0;
}

.success {
  padding: 70px 56px;
  text-align: center;
}

.success__icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--aqua-500), var(--success));
  box-shadow: 0 12px 28px rgba(24, 115, 78, 0.2);
}

.success__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.success > p:not(.form-intro__kicker) {
  max-width: 560px;
  margin: 18px auto 30px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 28px 24px;
  color: #647687;
  border-top: 1px solid rgba(10, 40, 82, 0.09);
  background: rgba(255, 255, 252, 0.82);
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 680px) {
  .site-header__inner {
    width: calc(100% - 32px);
    min-height: 64px;
  }

  .site-header__brand {
    gap: 9px;
  }

  .site-header__logo {
    width: 112px;
  }

  .site-header__academy-name {
    padding-left: 9px;
    font-size: 0.62rem;
  }

  .site-header__badge {
    display: none;
  }

  .hero {
    padding: 54px 20px 92px;
  }

  .hero__cohort {
    font-size: 0.78rem;
  }

  .hero__lead {
    font-size: 0.91rem;
    line-height: 1.9;
  }

  .page-shell {
    width: calc(100% - 28px);
    margin-top: -46px;
    margin-bottom: 56px;
  }

  .form-card {
    border-radius: 19px;
  }

  .form-intro,
  .form-section,
  .success {
    padding-right: 22px;
    padding-left: 22px;
  }

  .form-intro {
    padding-top: 36px;
    padding-bottom: 30px;
  }

  .form-section {
    padding-top: 38px;
    padding-bottom: 40px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading > span {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    border-radius: 13px;
  }

  .candidate {
    padding-right: 16px;
    padding-left: 16px;
  }

  .consent-field,
  .form-actions {
    padding-right: 22px;
    padding-left: 22px;
  }

  .message {
    margin-right: 22px;
    margin-left: 22px;
  }

  .button {
    width: 100%;
  }

  .button--primary {
    min-width: 0;
  }

  .confirmation-list {
    margin-right: 22px;
    margin-left: 22px;
  }

  .confirmation-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .confirmation-actions {
    flex-direction: column-reverse;
    padding-right: 22px;
    padding-left: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
