:root {
  color-scheme: light;
  --background: #f7faf9;
  --surface: #ffffff;
  --surface-soft: #eaf5f1;
  --text: #172522;
  --text-muted: #5e706b;
  --primary: #176b5b;
  --primary-hover: #105548;
  --border: #dce8e4;
  --shadow: 0 24px 64px rgb(28 82 69 / 12%);
  --radius-large: 32px;
  --radius-medium: 18px;
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 18%, rgb(75 169 145 / 12%), transparent 30rem),
    var(--background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgb(220 232 228 / 75%);
  background: rgb(247 250 249 / 86%);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 11px;
}

.phase-badge {
  padding: 5px 10px;
  color: var(--primary);
  background: var(--surface-soft);
  border: 1px solid #cce5dd;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 650px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(48px, 8vw, 104px);
  padding: 88px 0 72px;
}

.hero__content {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 5.7rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.hero__lead {
  margin: 28px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.mobile-break {
  display: none;
}

.hero__description {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgb(23 107 91 / 28%);
  outline-offset: 3px;
}

.button--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgb(23 107 91 / 20%);
}

.button--primary:hover {
  background: var(--primary-hover);
}

.button--primary svg,
.passkey-note__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button--secondary {
  color: var(--primary);
  background: var(--surface);
  border-color: #bcd8d0;
}

.button--secondary:hover {
  border-color: var(--primary);
}

a.button {
  text-decoration: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.phase-message {
  min-height: 1.7em;
  margin: 13px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.registration-main {
  display: grid;
  min-height: calc(100vh - 77px);
  place-items: start center;
  padding: clamp(48px, 8vw, 88px) 0;
}

.registration-card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.registration-title {
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: -0.045em;
}

.registration-description,
.registration-caution,
.registration-disabled p {
  color: var(--text-muted);
}

.registration-form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.registration-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.registration-form input {
  width: 100%;
  min-height: 52px;
  padding: 10px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid #afc9c2;
  border-radius: 11px;
  font: inherit;
}

.registration-form input:focus-visible {
  outline: 3px solid rgb(23 107 91 / 25%);
  border-color: var(--primary);
}

.registration-caution {
  margin: 18px 0 0;
  font-size: 0.85rem;
}

.registration-message {
  min-height: 1.7em;
  margin: 18px 0 0;
  color: var(--primary);
  font-weight: 700;
}

.registration-disabled {
  margin-top: 28px;
  padding: 22px;
  background: var(--surface-soft);
  border-radius: var(--radius-medium);
}

.registration-disabled h2,
.registration-disabled p {
  margin: 0;
}

.registration-disabled p {
  margin-top: 8px;
}

.hero__visual {
  display: grid;
  place-items: center;
}

.security-card {
  position: relative;
  display: grid;
  width: min(100%, 420px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(229 244 239 / 82%));
  border: 1px solid #d5e8e2;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.security-card::before,
.security-card::after {
  position: absolute;
  content: "";
  border: 1px solid rgb(23 107 91 / 10%);
  border-radius: 50%;
}

.security-card::before {
  width: 72%;
  height: 72%;
}

.security-card::after {
  width: 108%;
  height: 108%;
}

.security-card__ring {
  position: relative;
  z-index: 2;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  background: #fff;
  border: 1px solid #d5e8e2;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgb(23 107 91 / 16%);
}

.security-card__ring img {
  border-radius: 28px;
}

.security-card__dot {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  background: #66b7a3;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgb(23 107 91 / 20%);
}

.security-card__dot--one {
  top: 18%;
  right: 22%;
}

.security-card__dot--two {
  right: 13%;
  bottom: 25%;
}

.security-card__dot--three {
  bottom: 16%;
  left: 20%;
}

.passkey-note {
  display: flex;
  margin-bottom: 78px;
  padding: 28px 30px;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
}

.passkey-note__icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  color: var(--primary);
  background: var(--surface-soft);
  border-radius: 14px;
}

.passkey-note h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.5;
}

.passkey-note p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 25px 20px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 64px;
  }

  .hero__content {
    max-width: 620px;
  }

  .hero__visual {
    order: -1;
  }

  .security-card {
    width: min(100%, 360px);
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  main {
    width: min(100% - 28px, 1120px);
  }

  .site-header__inner {
    min-height: 68px;
  }

  .phase-badge {
    display: none;
  }

  .hero {
    gap: 38px;
    padding: 38px 0 50px;
  }

  .hero__visual {
    display: none;
  }

  .mobile-break {
    display: initial;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-height: 56px;
  }

  .passkey-note {
    margin-bottom: 48px;
    padding: 22px 20px;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
