/* ============================
   非ログイン共通（サインアップ／ログイン／パス再設定）
============================ */

/* モーダル全体構造 */
.g-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3000;
}

.g-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  width: min(520px, 92vw);
  z-index: 3001;
}

.g-modal .g-in {
  padding: 22px 0px 24px 0px; /* 左右の余白を減らし、均等に */
}

/* モーダルタイトル */
.g-modal h3 {
  margin: 0 10px 10px;
  font-size: 20px;
  font-weight: 700;
}

/* 閉じるボタン */
#g-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #eee;
  cursor: pointer;
}

#g-close:focus {
  outline: 2px solid #333;
}

/* 入力フォーム */
.g-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.g-input[disabled] {
  background: #f6f6f6;
  color: #666;
}

/* ボタン */
.btn-save-black {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}

.btn-save-black:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: #eee;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}

/* ---- アカウントUI（歯車） ---- */
.acc-gear {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 3100;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: default;
}

.acc-gear .acc-btn {
  background: none;
  border: none;
  padding: 0 6px;
  cursor: pointer;
  font-size: 14px;
}

.acc-gear .acc-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.acc-gear .acc-item {
  border-left: 1px solid #eee;
  padding-left: 8px;
}

.acc-gear a {
  color: #0b6bff;
  text-decoration: none;
}

.acc-gear a:hover {
  text-decoration: underline;
}

/* ---- アカウント／パスワードモーダル ---- */
.acc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3200;
}

.acc-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  width: min(560px, 94vw);
  z-index: 3201;
}

.acc-modal .in {
  padding: 22px 24px 24px;
}

.acc-modal h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.acc-row {
  margin: 10px 0;
}

.acc-row label {
  display: block;
  font-size: 12px;
  color: #444;
  margin-bottom: 6px;
}

.acc-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ============================
   サインアップモーダル専用デザイン
============================ */
.signup-modal .modal-content {
  padding: 24px 32px;
  box-sizing: border-box;
}

.signup-modal #g-form-1 {
  width: 100%;
}

.signup-modal #g-form-1 .g-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.signup-modal #g-form-1 .btn-save-black {
  width: 100%;
  margin-top: 14px;
}

.signup-modal #g-form-1 div {
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.g-modal {
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  visibility: hidden;
}
.g-modal[style*="display: block"] {
  opacity: 1;
  visibility: visible;
}

/* ============================
   仮登録メール送信後モーダル（STEP2）専用
============================ */
#g-step-2 {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 14px 28px 14px;
  text-align: center;
  background: none; /* ← 白背景は親モーダルに任せる */
  box-shadow: none; /* ← 二重影を防止 */
  box-sizing: border-box;
}

#g-step-2 h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111;
}

#g-step-2 p {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  margin: 8px 0;
}

#g-step-2 ul {
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

#g-step-2 button#g-resend {
  margin-top: 18px;
  background: #444;
  border-radius: 6px;
  width: 90%;
  max-width: 340px;
  height: 42px;
}

#g-step-2 .info-box {
  margin: 18px auto;
  max-width: 440px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  background: #fafafa;
}

/* ============================
   仮登録モーダルの位置補正・中央揃え
============================ */
.signup-modal {
  /* もともと position:fixed + transform(-50%, -50%) で中央寄せされているため flex は不要 */
}

.signup-modal .g-in {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  padding: 20px 3px 28px 3px;
}

#g-step-2 h3 {
  margin-top: 0;
}

#g-step-2 .info-box {
  margin: 18px auto;
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  max-width: 420px;
}

#g-step-2 button#g-resend {
  margin-top: 18px;
  width: 90%;
  max-width: 340px;
  height: 42px;
  border-radius: 6px;
  background: #444;
}

/* ===========================
   仮登録モーダル下部リンク（黒固定）
=========================== */
#guest-notation-links {
  margin-top: 12px;
  font-size: 12px;
  color: #000;
  text-align: center;
}

#guest-notation-links a {
  color: #000 !important;
  text-decoration: none !important;
}

#guest-notation-links a:hover {
  text-decoration: underline;
}

/* ===== パスワード再設定関連 ===== */
#resetModal .overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}

#resetModalContent {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 420px;
  text-align: center;
  z-index: 9999;
}

#resetModalContent h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

#resetForm input[type="email"] {
  width: 95%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 25px;
  margin-bottom: 16px;
  text-align: left;
}

#resetForm .btn-send {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  width: 60%;
  cursor: pointer;
}

/* ===== 完了モーダル ===== */
.done-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 420px;
  padding: 28px 24px;
  text-align: center;
  z-index: 10000;
  font-family: sans-serif;
}

.done-modal h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.done-modal p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.done-modal button {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.done-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
}

/* ===== リンク・フォーム調整 ===== */
.forgot-password {
  text-align: right;
  margin-top: 6px;
}

.forgot-password a {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
}

.btn-login {
  margin-top: 10px;
}

/* ===== パスワード再設定フォーム ===== */
.reset-wrapper {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  text-align: center;
}

.reset-wrapper h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.reset-wrapper input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 12px;
}

.password-note {
  font-size: 13px;
  color: #c00;
  text-align: left;
  margin: 6px 0 10px;
  line-height: 1.5;
}

.btn-save {
  width: 100%;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 15px;
  cursor: pointer;
}

/* ===== 完了モーダル ===== */
.reset-complete-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 28px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 380px;
  text-align: center;
  z-index: 10001;
}

.reset-complete-modal h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.reset-complete-modal p {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
}

.reset-complete-modal button {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.reset-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 10000;
}

@media (max-width: 768px) {
  #g-step-2 p {
  font-size: 0.9em;
  }
}

/* SPだけ改行させたいとき用 */
br.sp { display: none; }

@media (max-width: 768px) {
  br.sp { display: inline; }
}

.g-legal-link{
  color:#000;
  text-decoration: underline;
}
.g-legal-link:visited{
  color:#000;
}
.g-legal-link:hover{
  color:#000;
  opacity:.85;
}

