/* 全体レイアウト */
body {
  font-family: sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 40px;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
}

.title {
  font-size: 32px;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 14px;
  margin-left: 10px;
  color: #666;
}

.login-area {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  background: #f0f0f0;
  padding: 40px;
}

.login-form,
.register-box {
  flex: 1 1 45%;
}

.login-form label,
.register-box label {
  display: block;
  margin-top: 20px;
  margin-bottom: 5px;
}

.login-form input,
.register-box input,
.register-box select {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.login-form button,
.register-box button {
  margin-top: 30px;
  width: 100%;
  padding: 15px;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
}

.forgot {
  margin-top: 20px;
}

.register-box .first-time {
  font-weight: bold;
  margin-bottom: 10px;
}

.note {
  font-size: 12px;
  color: #666;
  margin-top: 40px;
}

/* --- モーダンモーダル --- */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0; /* top, right, bottom, left をまとめる新しい書き方 */
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); /* 背景ぼかしで高級感 */
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 40px 30px;
  border-radius: 12px; /* 角丸で柔らかく */
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  width: 95%;
  max-width: 500px;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.modal-content label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border 0.3s;
}

.modal-content input:focus {
  border-color: #111;
  outline: none;
}

.radio-group {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px; /* ラジオとテキストの間隔 */
  margin: 0;
}

.radio-group input[type="radio"] {
  margin: 0; /* デフォルトのずれを消す */
}

.terms-block {
  display: flex;
  align-items: center;
  gap: 8px; /* チェックボックスとテキストの間隔 */
  margin-top: 1.5rem;
}

.terms-block input[type="checkbox"] {
  margin: 0; /* ブラウザデフォルトのズレ防止 */
}

.terms-block label {
  margin: 0; /* デフォルトマージンを消す */
  font-size: 14px;
  line-height: 1.4;
}

.modal-content button[type="submit"] {
  width: 100%;
  margin-top: 30px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.modal-content button[type="submit"]:hover {
  background: #333;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

.close:hover {
  color: #111;
}


/* レスポンシブ */
/* スマホレイアウト専用調整 */
@media (max-width: 768px) {

  body {
    padding: 20px; /* スマホで左右余白を調整 */
  }

  .container {
    padding: 20px;
  }

  .title {
    font-size: 24px; /* タイトル少し小さめ */
    text-align: center;
  }

  .login-area {
    flex-direction: column;
    background: #f0f0f0;
    padding: 30px 20px;
  }

  .login-form,
  .register-box {
    flex: 1 1 100%;
  }

  .login-form label,
  .register-box label {
    margin-top: 15px;
  }

  .login-form button,
  .register-box button {
    margin-top: 20px;
  }

  .forgot {
    text-align: center;
    margin-top: 20px;
  }

  .register-box {
    text-align: center;
  }

  .register-box .first-time {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .note {
    margin-top: 30px;
    font-size: 11px;
    line-height: 1.5;
  }

  /* LINEボタンは表示しない */
  .line-login {
    display: none;
  }

  /* モーダル */
	.modal-content {
    width: 80%;
    margin: 10% auto; /* 上下の余白を少し増やす */
    padding: 30px 20px; /* 内側パディングを少し調整 */
  }

  .modal-content label{
	margin-top:5px
  }
}

    /* ボタン */
    :root {
        --black: #4c4c4c;
        --white: #eaeaea;
        --gray: #808080;
        --text-arrow-space: 16px;
        --shaft-width: 1px;
        --newshaft-width: 64px;
        --shaft-thickness: 1px;
        --arrow-head-width: 8px;
        --arrow-head-thickness: var(--shaft-thickness);
    }

.error {
  color: red;
  font-size:12px;
}

div#id_signup-gender {
  display: flex;
}

/* 戻るボタン */
.sample_btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  outline: none;
  border-bottom: 2px;
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}

.sample_btn:hover{
  color: #cbbd9f;
}

.center-wrapper a {
  position: relative;
}

.center-wrapper a::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #cbbd9f;
  bottom: -10px;
  transform: scale(0, 1);
  transition: transform 0.5s;
  transform-origin: center top;
}

.center-wrapper a:hover::after {
  transform: scale(1, 1)
}

.center-wrapper {
  display: flex;
  justify-content: center;  /* 水平方向に中央 */
  align-items: center;      /* 垂直方向に中央 */
  margin-top: 2rem;
}