/* ベース */

body {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

main {
  padding: 2rem 0;
}

/* メインコンテンツ */

.signup-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}

.title-text {
  margin-top: 3rem;
  margin-bottom: 2rem;
  text-align: left;
  color: #333;
  font-size: 2rem;
  font-weight: bold;
  width: 90%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* LISAアカウント通知 */
.lisa-account-notice {
  width: 90%;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.5rem;
  background-color: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 6px;
  text-align: center;
}

.lisa-account-notice p {
  margin: 0;
  color: #1976d2;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .lisa-account-notice p {
    font-size: 0.85rem;
  }
}

/* フォームグループ（統合版） */
.signup-form .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.signup-form .form-group label {
  width: 160px;
  flex-shrink: 0;
  margin-right: 10%;
  margin-bottom: 0;
  text-align: left;
  color: #555;
  font-size: 1rem;
  display: block;
  line-height: 1.2;
  margin-bottom: 20px; /* label下に余白を追加 */
}

.signup-form .form-group input,
.signup-form .form-group small {
  flex: 1;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1.1rem;
  height: 56px;
  margin-top: 10px; /* input上に余白を追加 */
}

.signup-form .form-group input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.signup-form .form-group input::placeholder {
  color: #aaa;
  opacity: 1;
}

@media (max-width: 768px) {
  .signup-form .form-group {
    flex-direction: column;
    align-items: stretch;
  }
  .signup-form .form-group label {
    min-width: 0;
    margin-right: 0;
    margin-bottom: 8px;
    text-align: left;
  }
}

/* ボタン */
.signup-form button[type="submit"] {
  display: block;
  margin: 24px auto;
  width: auto;
  min-width: 180px;
  padding: 0.75rem;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.signup-form button[type="submit"]:hover {
  background-color: #354b60;
}

.signup-form button[type="submit"]:active {
  background-color: #354b60;
}

/* エラーメッセージ */
.error-message {
  min-height: 1.5em; /* 1行分の高さを確保 */
  word-break: break-all; /* 長い単語も折り返す */
  text-align: center;
  color: #dc3545;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.signup-form .text-center {
  text-align: center;
}
.signup-form .text-center a {
  color: #888;
  transition: color 0.2s;
}
.signup-form .text-center a:hover {
  color: #000;
}

.label-required {
  color: #e74c3c; /* オレンジ寄り */
  font-size: 0.85em;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 6px; /* spanと下のテキストの間に余白 */
}

/* スピナー */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
