/* リセット・基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ヘッダー */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 1.8rem;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  font-size: 0.95rem;
}

/* フォーム */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #1a1a2e;
}

.required {
  color: #e74c3c;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  background: #4a6cf7;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #3a5ce5;
}

button[type="submit"]:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* 非表示 */
.hidden {
  display: none;
}

/* 追加質問セクション */
#additional-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #1a1a2e;
}

/* 完了メッセージ */
.complete-message {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.complete-message h2 {
  color: #27ae60;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.complete-message p {
  color: #555;
  margin-bottom: 8px;
}

#session-info {
  margin-top: 20px;
  padding: 12px;
  background: #f0f4ff;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #4a6cf7;
}

/* ローディング */
#loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #4a6cf7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

#loading p {
  color: #666;
}

/* エラーメッセージ */
.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
