
@charset "utf-8";


/* -------------------------------------------------------
   基本レイアウト
------------------------------------------------------- */
body[data-doc-type="userRegist"] {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  background-color: var(--main-bg);
  margin: 0;
  padding: 0;
}

.userRegist-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* -------------------------------------------------------
   タイトル
------------------------------------------------------- */
.userRegist-title {
  height: 210px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--main-text-color);
  text-shadow: 1px 1px 10px #a19994;
}

.userRegist-title h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: bold;
}

.userRegist-title p {
  font-size: 14px;
  margin-top: 15px;
}

/* -------------------------------------------------------
   フォーム全体
------------------------------------------------------- */
.userRegist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-top: 75px;
  background-color: var(--main-bg);
  padding: 10px 0;
}

.userRegist-form-box {
  border: 1px solid #e4d8e2;
  border-radius: 10px;
  width: 75%;
  max-width: 640px;
  margin: 0 auto 50px auto;
  background: rgb(255, 235, 248);
  box-shadow: 0px 2px 42px -10px rgba(251, 214, 250, 0.8);
  padding: 50px 5px 40px 5px;

}

/* -------------------------------------------------------
   ラベル・入力欄
------------------------------------------------------- */
.userRegist-input-box {
  width: 80%;
  max-width: 480px;
  margin: 0 auto 18px auto;
  display: flex;
  flex-direction: column;
}

.userRegist-input-label {
  font-weight: bold;
  color: var(--form-label-color);
  padding-bottom: 6px;
  font-size: 15px;
  display: block;
}

/* -------------------------------------------------------
   入力欄（統一設計）
------------------------------------------------------- */
.userRegist-input-text {
  height: 44px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c8c0c6;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

/* -------------------------------------------------------
   利用規約チェック
------------------------------------------------------- */
.termsModal-content h5 {
  font-size: 15px;
  color: #ed4b4b;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* チェックボックス周り */
.userRegist-input-box-terms {
  width: 80%;
  max-width: 480px;
  display: flex;
  flex-direction:column;
  align-items: flex-start;
  margin-top: 20px;
  margin-left: 80px;
}

/* 横並び */
.userRegist-terms-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 0;
  width: 100%;
  gap: 12px;
}

.userRegist-item-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.userRegist-item-box .checkbox-text {
  margin-left: 0;
}

.agreeBox {
  display: flex;
  align-items: center;
}

/* 「会員規約に同意する」 */
.checkbox-text {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  user-select: none;  /* クリックで文字が選択されるのを防止 */
  padding-left: 5px;
}
.agreeCheckbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 0;
}
.checkbox-wrapper {
  display: flex;
  gap: 15px; /* 文字とチェックの距離を広く */
}


/* ▼リンク */
.terms-link {
  margin-top: 25px;
  font-size: 15px;
  text-decoration: underline;
  color: #0070c9;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
  /*display: inline-block;*/
}

.terms-link:hover {
  color: #005499;
  opacity: 0.8;
}

/* エラーメッセージ */
.error-message {
  display: none;
  color: #d9534f;
  font-size: 13px;
  margin-top: 15px;
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
}
/* -------------------------------------------------------
   ボタン
------------------------------------------------------- */
.userRegist-button-box {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 80px;
}

/* =============================
   Shake Animation
   ============================= */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s;
}


/* -------------------------------------------------------
   エラーメッセージ
------------------------------------------------------- */
.userRegist-text-denger,
.userRegist-text-danger {
  text-align: center;
  color: rgb(255, 0, 0);
  margin: 10px 0;
  font-size: 1rem;
}

/* -------------------------------------------------------
   ローディング（スピナー付）
------------------------------------------------------- */
.hidden {
  display: none !important;
}

#userRegistPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  text-align: center;
  font-size: 18px;
  color: #222;
}

.spinner {
  margin-bottom: 20px;
}

.spinner-circle {
  width: 48px;
  height: 48px;
  border: 5px solid #dc8eea;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
  100% { transform: rotate(360deg); }
}

/* -------------------------------------------------------
   利用規約モーダル
------------------------------------------------------- */
#termsModal {
  display: none;
  position: fixed;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
}

.termsModal-content {
  background: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  height: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* -------------------------------------------------------
   モーダル中スクロール域
------------------------------------------------------- */
.terms-scroll-box {
  overflow-y: auto;
  flex-grow: 1;
  border: 1px solid #ccc;
  padding: 15px;
  margin-top: 10px;
  border-radius: 6px;
}

/* -------------------------------------------------------
   プログレスバー
------------------------------------------------------- */
.progress-container {
  position: relative;
  width: 100%;
  background-color: #eee;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: rgb(245,212,234);
  width: 0%;
  transition: width 0.2s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: #333;
  font-weight: bold;
}

/* -------------------------------------------------------
   モーダルボタン
------------------------------------------------------- */
.termsModal-submit-button {
  background-color: #f3f2ed;
  min-width: 180px;
  line-height: 42px;
  border-radius: 24px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  margin-top: 12px;
}

.termsModal-submit-button:hover {
  background-color: #d9d8d3;
}

/* -------------------------------------------------------
   スマホ対応
------------------------------------------------------- */
@media screen and (max-width: 480px) {

  .title h1 {
    font-size: 24px;
  }

  .userRegist-form-box {
    width: 90%;
    padding: 30px 0;
  }

  .userRegist-item-box {
    flex-direction: column;
  }
  .userRegist-button-box {
    flex-direction: column;
    gap: 40px;
  }

  .userRegist-submit-button {
    min-width: 100%;
  }
}
