@charset "UTF-8";

/*///////////////////////////////////////////////
// ［パスワード再設定］ページ専用                     
///////////////////////////////////////////////*/

.reset-narrow-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
}

.text-center {
  text-align: center;
}

/* 背景色 */
.bg-cream,
.main-content,
.content-section {
  background-color: #ffffff !important;
}

/* 導入メッセージ */
.reset-lead-area {
  text-align: center;
  margin-bottom: 40px;
}
.reset-lead-text {
  font-size: 18px;
  line-height: 1.6;
  color: #202020;
  font-weight: 600;
}

/* 区切り線要素のスタイル */
.reset-border-line {
  width: 100%;
  max-width: 1040px;
  height: 1px;
  background-color: #dcdcdc;
  margin: 0 auto;
}

/* フォーム行レイアウト */
.reset-form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1040px;
  margin: 15px auto;
}

.reset-form-row.align-start {
  align-items: flex-start;
}

.reset-label-col {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}
.reset-label-col label {
  font-weight: 600;
  font-size: 18px;
  color: #202020;
}

@media (min-width: 751px) {
  .reset-form-row {
    padding-right: 15px;
  }
  .reset-form-row .reset-label-col {
    width: 440px;
    justify-content: flex-start;
    flex-shrink: 0;
  }
  /* PC版でのみバッジの左マージンを適用 */
  .badge-required {
    margin-left: 60px;
  }
}

/* 必須バッジ */
.badge-required {
  background-color: #e23e20 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  line-height: 1.2 !important;
  letter-spacing: 0.05em;
}

/* フォーム入力 */
.reset-input-col {
  flex: 1;
  width: 100%;
}

/* 各種インプット共通スタイル */
.reset-input-col input[type="email"],
.reset-input-col input[type="password"],
.reset-input-col input[type="text"] {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 15px;
  background-color: #ffffff;
  box-sizing: border-box;
}

/* メールアドレス入力欄 */
.reset-input-col input[type="email"] {
  padding: 12px 15px;
}

/* パスワード入力欄 */
.reset-input-col input[type="password"],
.reset-input-col input[type="text"] {
  padding: 12px 45px 12px 15px;
}

/* 親要素を基準線にする */
.password-field-wrapper {
  position: relative;
  width: 100%;
}

/* パスワード表示切り替え（目のアイコン） */

/* 目のマークのボタン本体 */
.password-toggle-btn {
  position: absolute;
  top: 23px;
  transform: translateY(-50%);
  right: 15px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  z-index: 5;
  box-shadow: none;
}

/* 確認用の目のマークの縦位置調整 */
.reset-form-row:not(.align-start) .password-toggle-btn {
  top: 23px;
}

/* 目のアイコン */
.password-toggle-btn::before {
  content: "";
  display: block;
  width: 18px;
  height: 12px;
  border: 2px solid #888888;
  border-radius: 50% / 50%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

/* 目の中心の丸 */
.password-toggle-btn::after {
  content: "";
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #888888;
  border-radius: 50%;
}

/* 目の上の斜め線 */
.password-toggle-btn:not(.is-visible) {
  background: linear-gradient(45deg, transparent 45%, #888888 45%, #888888 55%, transparent 55%) no-repeat;
  background-size: 20px 20px;
  background-position: center;
}
.password-toggle-btn:hover::before {
  border-color: #22935e;
}
.password-toggle-btn:hover::after {
  background-color: #22935e;
}

/* 入力欄の下にある注記 */
.input-instruction-text {
  display: block;
  font-size: 18px;
  line-height: 1.6;
  color: #3c3c3c;
  font-weight: 200;
  margin-top: 8px;
}

/* 注意事項（メール送信画面用） */
.reset-notice-box {
  max-width: 640px;
  margin: 30px auto 40px;
  font-size: 14px;
  line-height: 1.6;
  color: #3c3c3c;
  text-align: center;
}
.reset-notice-box p {
  margin-bottom: 10px;
}
.reset-notice-box p:last-child {
  margin-bottom: 0;
}

/* エラーメッセージ用の箱（パスワード不一致時用） */
.error-message-box {
  max-width: 640px;
  margin: 15px auto 0;
  padding: 10px 15px;
  background-color: #fde8e8;
  border: 1px solid #f8b4b4;
  color: #e23e20;
  font-size: 13px;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
}

.reset-field-error {
  display: block;
  margin-top: 6px;
  color: #b00020;
  font-size: 13px;
  font-weight: 700;
}

.reset-input-col [aria-invalid="true"] {
  border-color: #b00020 !important;
  outline: 2px solid rgba(176, 0, 32, .12);
}

/* ボタン・アクション関係 */
.reset-action-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.mt-40 {
  margin-top: 40px !important;
}

/* 戻る・送信・トップ共通のベーススタイル */
.btn-reset-back,
.btn-reset-submit,
.btn-reset-to-top {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 16px;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.5s, border-color 0.5s, opacity 0.5s;
  padding: 0 30px;
}

/* 戻るボタン（白背景・緑枠） */
.btn-reset-back {
  background-color: #ffffff;
  color: #22935e;
  border: 3px solid #22935e;
  min-width: 200px;
  cursor: pointer;
}
.btn-reset-back:hover {
  background-color: #f0fcf6;
}
.btn-reset-back::before {
  content: "◀";
  font-size: 18px;
  margin-right: 10px;
}

/* 送信・更新ボタン */
.btn-reset-submit {
  background-color: #22935e;
  color: #ffffff;
  border: none;
  min-width: 200px;
  cursor: pointer;
}
.btn-reset-submit::after {
  content: "▶";
  font-size: 16px;
  margin-left: 10px;
}
.btn-reset-submit:hover {
  background-color: #1a7148;
}

/* 変更・送信完了メッセージ */
.reset-complete-area {
  margin: 30px 0 40px;
}
.reset-complete-text {
  font-size: 18px;
  line-height: 1.8;
  font-weight: bold;
  color: #333333;
}

/* トップページへボタン */
.btn-reset-to-top {
  background-color: #22935e;
  color: #ffffff;
  border: none;
  min-width: 280px;
  cursor: pointer;
}
.btn-reset-to-top::after {
  content: "▶";
  font-size: 16px;
  margin-left: 10px;
}
.btn-reset-to-top:hover {
  background-color: #1a7148;
}

.d-none {
  display: none !important;
}

/* レスポンシブ表示 */
@media (max-width: 750px) {
  .content-section {
    padding: 40px 0;
  }
  .reset-lead-text {
    font-size: 18px;
    text-align: center;
  }
  .reset-complete-text {
    font-size: 18px;
    text-align: center;
  }

  .reset-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding-right: 0;
    width: 100%;
  }
  .reset-form-row.align-start {
    align-items: flex-start;
  }

  .reset-label-col {
    width: 100%;
  }
  .reset-label-col label {
    font-size: 18px;
  }

  .badge-required {
    margin-left: 0 !important;
  }

  .reset-input-col {
    width: 100%;
    margin-right: 0;
  }

  .password-toggle-btn {
    top: 23px;
  }

  .input-instruction-text {
    font-size: 16px;
    margin-top: 6px;
    text-align: left;
  }

  .reset-notice-box {
    font-size: 14px;
    text-align: center;
  }

  .reset-action-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: 30px;
  }
  .mt-40 {
    margin-top: 25px !important;
  }
  
  .reset-action-group:has(.btn-reset-back) .btn-reset-back,
  .reset-action-group:has(.btn-reset-back) .btn-reset-submit {
    flex: 1;
    min-width: 0;
    height: 50px;
    font-size: 18px;
    border-radius: 14px;
    padding: 0 10px;
  }
  .btn-reset-back {
    border: 2px solid #22935e;
  }
  
  .reset-action-group:not(:has(.btn-reset-back)) .btn-reset-submit,
  .btn-reset-to-top {
    display: inline-flex !important;
    flex: none !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 90% !important;
    height: 50px !important;
    font-size: 18px !important;
    border-radius: 14px !important;
    padding: 0 30px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
