/*
 * /register/* 共通スタイル
 *  design-system.md のグレースケール / 4の倍数余白 / 白黒のみに準拠。
 *  Figma が Bold(700) / 24-20-16 等の値で組まれているのは、本プロジェクトの
 *  スケール（500 / 22-18-16）に丸めて使う。
 */

/* === コンテナ === */
.register {
  background: #FFFFFF;
  padding: 16px 0 56px;
}
.register__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: #1A1A1A;
  padding: 24px 16px;
  margin: 0;
}
.register__section {
  padding: 16px;
}
.register__h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #1A1A1A;
  margin: 0 0 16px;
}
.register__lede {
  font-size: 12px;
  line-height: 1.7;
  color: #1A1A1A;
  margin: 0;
}

/* === Stepper === */
.register-stepper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 16px 16px 32px;
}
.register-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.register-stepper__connector {
  flex: 1 1 0;
  height: 1px;
  min-width: 8px;
  margin-top: 10px; /* bullet中心に揃える: 20/2 */
  background: #D9D9D9;
}
.register-stepper__bullet {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.register-stepper__step--active .register-stepper__bullet {
  background: #1A1A1A;
  color: #FFFFFF;
}
.register-stepper__step--done .register-stepper__bullet {
  background: #1A1A1A;
  color: #FFFFFF;
}
.register-stepper__step--pending .register-stepper__bullet {
  background: #B3B3B3;
  color: #FFFFFF;
}
.register-stepper__label {
  font-size: 12px;
  line-height: 1.5;
  color: #808080;
  white-space: nowrap;
}
.register-stepper__step--active .register-stepper__label,
.register-stepper__step--done   .register-stepper__label {
  color: #1A1A1A;
}

/* === メール送信完了 === */
.register__email-display {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #1A1A1A;
  padding: 16px;
  margin: 0;
}

/* === フォーム === */
.register__form {
  background: #FFFFFF;
}
.register__field {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.register__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.register__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #1A1A1A;
}
.register__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #808080;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

/* テキスト入力（単独で使うときの形） */
.register__input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid #1A1A1A;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 16px; /* iOS で 16px 未満だと自動ズームされる */
  line-height: 1.5;
  color: #1A1A1A;
}
.register__input::placeholder { color: #808080; }
.register__input:focus { border-color: #1A1A1A; }

/* パスワード等で右側にアイコンボタンを置きたい場合のラッパ */
.register__input-group {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding-right: 4px;
  background: #FFFFFF;
  border: 1px solid #1A1A1A;
  border-radius: 8px;
}
.register__input-group .register__input {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px;
  min-height: auto;
}

/* radio */
.register__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 4px;
}
.register__radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  cursor: pointer;
  padding: 0 4px;
}
.register__radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.register__radio-mark {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #1A1A1A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FFFFFF;
}
.register__radio input:checked ~ .register__radio-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1A1A1A;
}
.register__radio input:focus-visible ~ .register__radio-mark {
  outline: 2px solid #1A1A1A;
  outline-offset: 2px;
}
.register__radio-label {
  font-size: 16px;
  line-height: 1.7;
  color: #1A1A1A;
}

/* helper */
.register__helper {
  font-size: 12px;
  line-height: 1.66;
  color: #4D4D4D;
  margin: 4px 0 0;
}

/* password 表示切替 */
.register__pw-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: #4D4D4D;
  cursor: pointer;
}
.register__pw-toggle:focus-visible {
  outline: 2px solid #1A1A1A;
  outline-offset: -2px;
  border-radius: 8px;
}

/* terms */
.register__terms {
  font-size: 14px;
  line-height: 1.7;
  color: #1A1A1A;
  padding: 16px;
  margin: 0;
}
.register__link { color: #1A1A1A; text-decoration: underline; }

/* === Buttons === */
.register__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}
.register__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 22px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
}
.register__button--primary {
  background: #1A1A1A;
  color: #FFFFFF;
}
.register__button--primary:disabled,
.register__button--primary[aria-disabled="true"] {
  background: #EBEBEB;
  color: #B3B3B3;
  cursor: not-allowed;
}
.register__button--secondary {
  background: #FFFFFF;
  color: #1A1A1A;
  border: 1px solid #1A1A1A;
}
.register__button-link {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #1A1A1A;
  text-decoration: none;
  padding: 4px 5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* === エラー表示 === */
.register__error {
  margin: 0 16px;
  padding: 12px 16px;
  border: 1px solid #1A1A1A;
  border-radius: 8px;
  background: #F5F5F5;
  color: #1A1A1A;
  font-size: 14px;
  line-height: 1.5;
}

/* === 確認画面 === */
.register-summary {
  margin: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.register-summary__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid #EBEBEB;
}
.register-summary__row:last-child { border-bottom: 0; }
.register-summary__key {
  font-size: 12px;
  font-weight: 500;
  color: #4D4D4D;
  margin: 0;
}
.register-summary__val {
  font-size: 16px;
  line-height: 1.7;
  color: #1A1A1A;
  margin: 0;
  word-break: break-all;
}
