:root {
  color-scheme: light;
  font-family:
    "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN",
    sans-serif;
  color: #17211b;
  background: #f3f8f5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 5%, rgb(174 222 196 / 38%), transparent 28rem),
    radial-gradient(circle at 90% 95%, rgb(199 231 213 / 48%), transparent 26rem),
    #f5f9f7;
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 20px;
}

.form-card {
  position: relative;
  width: min(100%, 560px);
  padding: 56px 56px 44px;
  overflow: hidden;
  background: rgb(255 255 255 / 96%);
  border: 1px solid #e0ebe4;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgb(26 70 45 / 12%);
}

.form-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #1d7a4c, #5eb989);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  place-items: center;
  background: #176c42;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgb(23 108 66 / 22%);
}

.form-header {
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #438263;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  color: #17271e;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.lead {
  margin: 12px 0 0;
  color: #66736b;
  font-size: 14px;
  line-height: 1.8;
}

.form-field {
  margin-bottom: 23px;
}

label {
  display: flex;
  align-items: center;
  margin-bottom: 9px;
  color: #2a382f;
  font-size: 14px;
  font-weight: 700;
}

.required {
  margin-left: 8px;
  padding: 2px 7px;
  color: #21724a;
  font-size: 10px;
  line-height: 1.4;
  background: #e7f4ec;
  border-radius: 20px;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  color: #17211b;
  background: #fbfdfc;
  border: 1px solid #cfdad3;
  border-radius: 10px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

input::placeholder {
  color: #a2aca6;
}

input:hover {
  border-color: #a9bcb0;
}

input:focus {
  background: #fff;
  border-color: #2c8a59;
  box-shadow: 0 0 0 4px rgb(44 138 89 / 12%);
}

input[aria-invalid="true"] {
  border-color: #cf4f4f;
}

input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(207 79 79 / 10%);
}

.error-message {
  min-height: 18px;
  margin: 5px 0 -18px;
  color: #bd3f3f;
  font-size: 12px;
}

.submit-error {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #9e3535;
  font-size: 13px;
  line-height: 1.6;
  background: #fff3f3;
  border: 1px solid #f1d0d0;
  border-radius: 8px;
}

.submit-error:not(:empty) {
  display: block;
}

button {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 31px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: #176c42;
  border: 0;
  border-radius: 11px;
  box-shadow: 0 9px 22px rgb(23 108 66 / 20%);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

button:hover:not(:disabled) {
  background: #125d38;
  box-shadow: 0 11px 26px rgb(23 108 66 / 26%);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgb(44 138 89 / 28%);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.spinner {
  display: none;
  width: 19px;
  height: 19px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

button.is-loading .button-label {
  display: none;
}

button.is-loading .spinner {
  display: block;
}

.privacy-note {
  margin: 16px 0 0;
  color: #89928d;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.success-view {
  padding: 52px 0 58px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  color: #fff;
  place-items: center;
  background: #238354;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgb(35 131 84 / 24%);
}

.success-icon svg {
  width: 39px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.success-view .lead {
  margin-top: 18px;
}

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

@media (max-width: 600px) {
  .page-shell {
    align-items: start;
    padding: 20px 14px;
  }

  .form-card {
    padding: 38px 24px 32px;
    border-radius: 18px;
  }

  .brand-mark {
    margin-bottom: 23px;
  }

  .form-header {
    margin-bottom: 29px;
  }

  .success-view {
    padding: 44px 0 52px;
  }
}

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