/* register.css — 会員登録ページ */

.register-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.register-page > .back-btn {
  align-self: flex-start;
  margin-bottom: 0;
}

.register-page__title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #111;
}

/* カード */
.register-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* フォーム全体 */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 各フィールド */
.register-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ラベル */
.register-form__label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.register-form__required {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #e7000b;
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.6;
}

.register-form__hint {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* インプット */
.register-form__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  color: #111;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}

.register-form__input::placeholder {
  color: #bbb;
}

.register-form__input:focus {
  outline: none;
  border-color: #00a63e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 166, 62, 0.12);
}

/* パスワード入力欄（目アイコン付き） */
.register-form__password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.register-form__password-wrap .register-form__input {
  padding-right: 44px;
}

.register-form__eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.register-form__eye:hover {
  color: #555;
}

/* テキストエリア */
.register-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  color: #111;
  background: #fafafa;
  resize: none;
  line-height: 1.6;
  min-height: 0;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}

.register-form__textarea::placeholder {
  color: #bbb;
}

.register-form__textarea:focus {
  outline: none;
  border-color: #00a63e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 166, 62, 0.12);
}

/* 郵便番号 */
.register-form__postal-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-form__postal-mark {
  font-size: 16px;
  color: #555;
  flex-shrink: 0;
}

.register-form__postal-wrap .register-form__input {
  max-width: 160px;
}

/* 登録情報セクション */
.register-form__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0 0;
  border-top: 1.5px solid #f0f0f0;
}

.register-form__section-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-form__section-badge {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 1px 7px;
  line-height: 1.6;
}

/* 利用規約 */
.register-form__agree {
  padding-top: 4px;
}

.register-form__agree-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.register-form__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #00a63e;
  cursor: pointer;
}

.register-form__agree-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.register-form__agree-link {
  color: #00a63e;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.15s;
}

.register-form__agree-link:hover {
  color: #008236;
}

/* 送信ボタン */
.register-form__submit {
  width: 100%;
  height: 50px;
  background: #00a63e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.register-form__submit:hover {
  background: #008236;
}

.register-form__submit:active {
  transform: scale(0.98);
}

/* ログインリンク */
.register-card__login {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 24px;
}

.register-card__login-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.register-card__login-link {
  color: #00a63e;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s;
}

.register-card__login-link:hover {
  color: #008236;
}

/* .notice--error は components.css で定義済み */

@media (max-width: 540px) {
  .register-card {
    padding: 28px 20px 24px;
    border-radius: 12px;
  }
}
