/* =============================================
   signup-modal.css
   会員登録モーダル専用スタイル（独立ファイル）
   他ページから <link> で読み込んで使用可能
   ============================================= */

/* --- ローディングスピナー ------------------------ */
.signup-modal-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
}
.signup-modal-loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: var(--primitive-pink-500-default, #de7676);
  border-radius: 50%;
  animation: signup-modal-spin 0.8s linear infinite;
}
@keyframes signup-modal-spin {
  to { transform: rotate(360deg); }
}

/* --- モーダル外枠 -------------------------------- */
.u-modal > input[type="checkbox"] {
  display: none;
}
.u-modal > input[type="checkbox"] ~ div,
.u-modal > input[type="checkbox"] ~ label {
  transition: 0.3s;
  visibility: hidden;
  opacity: 0;
}
.u-modal > input[type="checkbox"]:checked ~ div,
.u-modal > input[type="checkbox"]:checked ~ label {
  visibility: visible;
  opacity: 1;
}
.u-modal > input[type="checkbox"]:not(:checked) ~ div,
.u-modal > input[type="checkbox"]:not(:checked) ~ label {
  display: none;
}
.u-modal__container {
  position: fixed;
  z-index: 102;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 980px;
  max-width: calc(100% - 16px);
}
.u-modal__content {
  background-color: #fbfbfb;
  overflow-y: auto;
  max-height: 90vh;
}
.u-modal__close {
  position: absolute;
  top: 10px;
  right: 0;
  height: 40px;
  width: 40px;
  background: url("/images/icon-close.svg") no-repeat 0 / contain;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}
@media screen and (min-width: 601px) {
  .u-modal__close {
    top: 50px;
    right: 40px;
  }
}
.u-modal__overlay {
  position: fixed;
  z-index: 101;
  inset: 0;
  background-color: rgba(46, 53, 81, 0.4);
}

/* --- モーダル内コンテンツ ------------------------ */
.signup-modal {
  padding: 0 16px;
}
.signup-modal .form-check-area {
  text-align: left;
}
.signup-modal .input-border {
  border-radius: 4px;
  border: 1px solid #808080;
}

.signup-modal__container {
  padding: 16px;
}
@media screen and (min-width: 601px) {
  .signup-modal__container {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 0;
  }
}

.signup-modal__heading {
  line-height: 1.5;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
@media screen and (min-width: 601px) {
  .signup-modal__heading {
    margin-bottom: 24px;
    font-size: 30px;
  }
}

.signup-modal__to-existing {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
@media screen and (min-width: 601px) {
  .signup-modal__to-existing {
    font-size: 16px;
  }
}
.signup-modal__to-existing::after {
  display: inline-block;
  height: 40px;
  width: 40px;
  background: url("https://teket.jp/images/about202202/icon_arrow_right.svg") 0 / contain no-repeat;
  content: "";
  vertical-align: middle;
}

.signup-modal__form-wrap {
  margin: 16px 0;
}
@media screen and (min-width: 601px) {
  .signup-modal__form-wrap {
    margin: 24px 0;
  }
}

.signup-modal__input {
  position: relative;
  margin-bottom: 16px;
}
.signup-modal__input label {
  z-index: 1;
  position: absolute;
  left: 16px;
  top: -12px;
  margin: 0;
  padding: 0 4px;
  background-color: #fbfbfb;
}

.signup-modal__submit {
  margin-top: 16px;
}

/* ボタン共通 */
.signup-modal__btn,
.signup-modal__btn:link,
.signup-modal__btn:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: var(--radius-full, 999px);
  background: var(--primitive-pink-500-default, #de7676);
  box-shadow: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  transition: opacity 0.4s;
}
@media screen and (min-width: 601px) {
  .signup-modal__btn {
    max-width: 448px;
    margin-left: auto;
    margin-right: auto;
  }
}
.signup-modal__btn:hover {
  opacity: 0.8;
  text-decoration: none;
  color: #fff;
}

/* 無料会員登録ボタン */
.signup-modal__btn--primary {
  margin-bottom: 8px;
}
.signup-modal__btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* dアカウントボタン */
.signup-modal__btn--daccount,
.signup-modal__btn--daccount:link,
.signup-modal__btn--daccount:visited {
  height: 48px;
  border-radius: 4px;
  background: #bb2739;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}
.signup-modal__btn--daccount:hover {
  background-color: #991e2d;
  color: #fff;
  opacity: 1;
}

/* --- フォーム汎用 -------------------------------- */
.form-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #858585;
  letter-spacing: 0;
  line-height: 1.43;
  margin: 24px 0 4px;
}
.form-title--required::after {
  display: inline-block;
  content: "";
  background: url("https://teket.jp/images/icon-require-asterisk.svg") center / contain no-repeat;
  width: 9px;
  height: 8px;
  vertical-align: text-top;
  margin-left: 2px;
}

.form-check-area {
  margin-top: 8px;
}

.form-check {
  display: inline-block !important;
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  margin: 0;
}
.form-check:checked + label::before {
  background: #cd955e url("https://teket.jp/images/check.svg") no-repeat center center / 10px 7px;
  border: 1px solid #cd955e;
}

.form-check-label {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  line-height: 16px;
  vertical-align: middle;
  padding: 12px 0 12px 28px;
  cursor: pointer;
  font-size: 12px;
}
@media screen and (max-width: 600px) {
  .form-check-label {
    display: flex;
    margin-right: 0;
  }
}
.form-check-label::before {
  position: absolute;
  left: 0;
  top: 50%;
  display: inline-block;
  content: "";
  background: #f8f4f4;
  box-sizing: border-box;
  border: 1px solid #dedede;
  border-radius: 2px;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.input-oneline {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 100%;
  height: 40px;
  font-size: 14px;
  color: #000;
  letter-spacing: 0;
  font-weight: 300;
  padding: 10px 15px;
  box-sizing: border-box;
}

/* --- ユーティリティ ------------------------------ */
.error-message {
  font-size: 12px;
  font-weight: 300;
  color: #c00;
}

.hide {
  display: none !important;
}

.mt-20 {
  margin-top: 20px;
}

.c-link {
  color: #cd955e;
  text-decoration: underline;
}
