/* ==================================================
   Otonacica 無料会員登録ページ
================================================== */

.register-page {
  background:
    radial-gradient(circle at 7% 12%, rgba(169, 153, 103, 0.09), transparent 28%),
    var(--paper);
}

.register-header {
  height: 82px;
  border-bottom: 1px solid rgba(41, 42, 43, 0.1);
}

.register-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.register-brand span {
  font: 500 25px Georgia, serif;
  letter-spacing: 0.06em;
}

.register-brand small {
  margin-top: 6px;
  color: #77736a;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.register-header .login {
  border-color: var(--line);
}

.register-header nav .btn[aria-current="page"] {
  box-shadow: none;
}

.register-main {
  min-height: calc(100vh - 82px);
  padding: 66px 0 82px;
  overflow: hidden;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 0.72fr);
  gap: clamp(54px, 8vw, 120px);
  align-items: center;
}

/* ---------- 左側イントロ ---------- */
.register-intro {
  position: relative;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.deer-bg {
  position: absolute;
  z-index: -1;
  width: min(560px, 48vw);
  aspect-ratio: 1;
  top: 50%;
  left: 42%;
  translate: -50% -50%;
  opacity: 0.2;
  pointer-events: none;

  /* 鹿ロゴ画像を生成後、下の none を url("../images/otonanocica.png") に変更 */
  background-image: url("../images/otonanocica.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.register-eyebrow {
  margin: 0 0 23px;
  color: var(--gold);
  font: 700 12px Georgia, serif;
  letter-spacing: 0.24em;
}

.register-intro h1 {
  margin: 0;
  font: 500 clamp(40px, 5.2vw, 40px) serif;
  letter-spacing: 0.12em;
}

.register-lead {
  margin: 28px 0 42px;
  color: #555651;
  font: 17px/2 serif;
  letter-spacing: 0.06em;
}

.register-points {
  max-width: 400px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.register-points li {
  min-height: 53px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.register-points span {
  color: var(--gold);
  font: 12px Georgia, serif;
  letter-spacing: 0.1em;
}

/* ---------- 登録カード ---------- */
.register-card {
  position: relative;
  padding: 45px 46px 36px;
  border: 1px solid rgba(169, 153, 103, 0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(39, 43, 42, 0.09);
}

.register-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border: 1px solid rgba(169, 153, 103, 0.16);
  border-radius: 2px;
  pointer-events: none;
}

.register-card__heading {
  position: relative;
  margin-bottom: 32px;
  text-align: center;
}

.register-card__heading p {
  margin: 0 0 10px;
  color: var(--gold);
  font: 700 10px Georgia, serif;
  letter-spacing: 0.22em;
}

.register-card__heading h2 {
  margin: 0 0 10px;
  font: 500 28px serif;
  letter-spacing: 0.12em;
}

.register-card__heading span {
  color: #74746f;
  font-size: 13px;
}

.register-form {
  position: relative;
}

.register-server-error {
  margin-bottom: 22px;
  padding: 14px 16px;
  color: #8b2f2f;
  background: #fff1ef;
  border: 1px solid #d9a09a;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.register-status-message {
  margin: 0 auto 22px;
  padding: 14px 16px;
  color: #315e4a;
  background: #eef8f2;
  border: 1px solid #9fc6ad;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.form-field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.form-field > label,
.form-field legend {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.form-field em {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  align-items: center;
  border-radius: 2px;
  color: #fff;
  background: #9d704f;
  font-size: 9px;
  font-style: normal;
  vertical-align: 1px;
}

.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="text"],
.register-form select {
  width: 100%;
  height: 50px;
  border: 1px solid #cfcbc1;
  border-radius: 3px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="text"] {
  padding: 0 14px;
}

.register-form input:focus,
.register-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 153, 103, 0.13);
}

.register-form input::placeholder {
  color: #aaa8a1;
}

.field-note,
.field-error {
  margin: 7px 0 0;
  color: #7c7b75;
  font-size: 11px;
  line-height: 1.55;
}

.field-error {
  color: #a7443d;
  font-weight: 700;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 65px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 45px;
  height: 32px;
  translate: 0 -50%;
  border: 0;
  border-left: 1px solid var(--line);
  color: #77736a;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.birthday-selects {
  display: grid;
  grid-template-columns: minmax(90px, 1.5fr) auto minmax(64px, 1fr) auto minmax(64px, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.birthday-selects select {
  padding: 0 9px;
}

.birthday-selects b {
  color: #686863;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- 性別選択 ---------- */
.gender-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gender-options label {
  position: relative;
  cursor: pointer;
}

.gender-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-options span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfcbc1;
  border-radius: 3px;
  color: #595a56;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.gender-options input:checked + span {
  border-color: var(--gold);
  color: #655833;
  background: #f3f0e7;
  box-shadow: inset 0 0 0 1px var(--gold);
}

.gender-options input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.gender-options span:hover {
  border-color: var(--gold);
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 27px 0 22px;
  color: #595a56;
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
}

.agreement input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.agreement a {
  color: #77663a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.register-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  cursor: pointer;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.register-submit span {
  margin-left: auto;
  font-size: 18px;
}

.register-form button.register-submit:disabled,
.register-form button.register-submit[aria-disabled="true"] {
  color: #fff;
  background: #b8b8b8 !important;
  box-shadow: none !important;
  opacity: 0.58;
  filter: grayscale(1);
  cursor: not-allowed;
}

.register-submit:not(:disabled):hover {
  box-shadow: 0 10px 28px rgba(117, 99, 52, 0.3);
}

.register-mail-note {
  margin: 11px 0 0;
  color: #85847e;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.login-guide {
  position: relative;
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
}

.login-guide span {
  margin-right: 8px;
  color: #777771;
}

.login-guide a {
  color: #77663a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sp-only {
  display: none;
}

/* ==================================================
   タブレット
================================================== */
@media (max-width: 900px) {
  .register-header nav {
    gap: 16px;
  }

  .register-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(430px, 1fr);
    gap: 40px;
  }

  .register-intro h1 {
    font-size: 43px;
  }

  .register-card {
    padding-right: 38px;
    padding-left: 38px;
  }
}

/* ==================================================
   スマートフォン（640px以下）
================================================== */
@media (max-width: 640px) {
  .register-header {
    height: 64px;
  }

  .register-brand span {
    font-size: 21px;
  }

  .register-brand small {
    font-size: 8px;
  }

  .register-header .menu {
    border-color: #bcb7ab;
    background: transparent;
  }

  .register-header .menu i {
    background: var(--ink);
  }

  .register-main {
    min-height: 0;
    padding: 35px 0 54px;
  }

  .register-layout {
    display: block;
  }

  .register-intro {
    min-height: 0;
    margin-bottom: 30px;
    display: block;
    text-align: center;
  }

  .deer-bg {
    width: 250px;
    top: 45%;
    left: 50%;
    opacity: 0.3;
  }

  .register-eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
  }

  .register-intro h1 {
    font-size: 37px;
  }

  .register-lead {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.8;
  }

  .register-points {
    display: none;
  }

  .register-card {
    margin-right: -6px;
    margin-left: -6px;
    padding: 37px 24px 29px;
    box-shadow: 0 15px 40px rgba(39, 43, 42, 0.07);
  }

  .register-card::before {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .register-card__heading {
    margin-bottom: 27px;
  }

  .register-card__heading h2 {
    font-size: 25px;
  }

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

  .birthday-selects {
    grid-template-columns: minmax(80px, 1.4fr) auto minmax(57px, 1fr) auto minmax(57px, 1fr) auto;
    gap: 4px;
  }

  .birthday-selects select {
    padding: 0 5px;
    font-size: 13px;
  }

  .agreement {
    font-size: 11px;
  }

  .login-guide span,
  .login-guide a {
    display: block;
  }

  .login-guide span {
    margin: 0 0 7px;
  }

  .sp-only {
    display: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-form input,
  .register-form select {
    transition: none;
  }
}




/* ==================================================
   認証メール送信後ページ専用・追加CSS
   既存の register.css の末尾へ追加してください
================================================== */

.check-email-main {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 72px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 5%, rgba(169, 153, 103, 0.1), transparent 34%),
    var(--paper);
}

.check-email-deer {
  position: absolute;
  top: 50%;
  left: calc(50% - 480px);
  width: 460px;
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: 0.3;
  pointer-events: none;
  background-image: url("../images/otonanocica.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.check-email-card {
  position: relative;
  width: min(700px, calc(100% - 48px));
  padding: 57px 64px 49px;
  border: 1px solid rgba(169, 153, 103, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(39, 43, 42, 0.09);
  text-align: center;
}

.check-email-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(169, 153, 103, 0.15);
  border-radius: 2px;
  pointer-events: none;
}

.mail-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0ede4;
}

.mail-icon span {
  position: relative;
  width: 35px;
  height: 24px;
  display: block;
  border: 1.5px solid #8d805d;
  border-radius: 2px;
}

.mail-icon span::before,
.mail-icon span::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 21px;
  height: 1.5px;
  background: #8d805d;
}

.mail-icon span::before {
  left: 0;
  rotate: 35deg;
  transform-origin: left center;
}

.mail-icon span::after {
  right: 0;
  rotate: -35deg;
  transform-origin: right center;
}

.check-email-eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 700 10px Georgia, serif;
  letter-spacing: 0.24em;
}

.check-email-card h1 {
  margin: 0;
  font: 500 31px serif;
  letter-spacing: 0.08em;
}

.check-email-lead {
  margin: 22px 0 28px;
  color: #5d5e59;
  font: 15px/1.9 serif;
  letter-spacing: 0.03em;
}

.check-email-action {
  margin: 0 auto 34px;
  padding: 18px 20px;
  border-top: 1px solid #d6cfbc;
  border-bottom: 1px solid #d6cfbc;
  color: #6d6c66;
  font-size: 12px;
}

.check-email-action span,
.check-email-action strong {
  display: block;
}

.check-email-action strong {
  margin-top: 5px;
  color: var(--ink);
  font: 600 18px serif;
  letter-spacing: 0.04em;
}

.check-email-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  text-align: left;
}

.check-email-steps li {
  position: relative;
  padding: 0 18px;
}

.check-email-steps li + li {
  border-left: 1px solid var(--line);
}

.check-email-steps li > span {
  color: var(--gold);
  font: 12px Georgia, serif;
  letter-spacing: 0.1em;
}

.check-email-steps p {
  margin: 9px 0 0;
}

.check-email-steps b,
.check-email-steps small {
  display: block;
}

.check-email-steps b {
  font-size: 13px;
}

.check-email-steps small {
  margin-top: 7px;
  color: #7a7973;
  font-size: 10px;
  line-height: 1.65;
}

.mail-help {
  position: relative;
  margin-top: 38px;
  padding: 26px 30px;
  background: #f5f3ed;
  text-align: left;
}

.mail-help h2 {
  margin: 0 0 14px;
  font-size: 13px;
}

.mail-help ul {
  margin: 0;
  padding-left: 1.3em;
  color: #696963;
  font-size: 11px;
  line-height: 1.9;
}

.mail-help-links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px 25px;
}

.resend-mail {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a99a70;
  border-radius: 3px;
  color: #6f613b;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.change-email {
  color: #716744;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-home {
  position: relative;
  margin-top: 27px;
  display: inline-block;
  color: #77766f;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .check-email-main {
    min-height: 0;
    padding: 38px 0 55px;
  }

  .check-email-deer {
    width: 280px;
    top: 180px;
    left: 50%;
    opacity: 0.045;
  }

  .check-email-card {
    width: calc(100% - 32px);
    padding: 42px 25px 35px;
  }

  .check-email-card::before {
    inset: 8px;
  }

  .mail-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
  }

  .check-email-card h1 {
    font-size: 25px;
  }

  .check-email-lead {
    font-size: 13px;
  }

  .check-email-steps {
    display: block;
  }

  .check-email-steps li {
    min-height: 67px;
    display: grid;
    grid-template-columns: 35px 1fr;
    padding: 15px 0;
    align-items: start;
  }

  .check-email-steps li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .check-email-steps p {
    margin: 0;
  }

  .mail-help {
    margin-top: 28px;
    padding: 23px 21px;
  }

  .mail-help-links {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .resend-mail {
    width: 100%;
  }

  .change-email {
    text-align: center;
  }
}
