/* ============================================================
   MIRAI AI 雑用Bot - フォーム共通スタイル
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #f5f5f5;
  padding: 24px 16px 48px;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #0a3d62;
  margin-bottom: 8px;
}

.header p {
  font-size: 14px;
  color: #555;
}

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

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

label .required {
  color: #c0392b;
  margin-left: 4px;
  font-size: 12px;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: #0a3d62;
}

/* ボタン */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #0a3d62;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s;
}

.btn:hover {
  background: #1a5276;
}

.btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* 同意ボックス */
.consent-box {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 14px;
}

.consent-box h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0a3d62;
}

.consent-box h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: #333;
}

.consent-box ul {
  padding-left: 18px;
  margin-bottom: 4px;
}

.consent-box li {
  margin-bottom: 2px;
}

.consent-box p {
  margin-bottom: 4px;
}

/* 同意チェック */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  background: #fff;
  border: 2px solid #0a3d62;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.consent-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

/* エラーメッセージ */
.error-msg {
  color: #c0392b;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* 完了画面 */
.thanks-box {
  text-align: center;
  padding: 16px 0;
}

.thanks-box .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.thanks-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0a3d62;
  margin-bottom: 12px;
}

.thanks-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

/* Bot説明文 */
.bot-desc {
  background: #f0f4f8;
  border-left: 4px solid #0a3d62;
  border-radius: 0 4px 4px 0;
  padding: 16px 18px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #333;
  line-height: 1.8;
}

.bot-desc p {
  margin-bottom: 10px;
}

.bot-desc p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: #555;
}

.bot-desc-sub {
  margin-top: 6px;
}

/* フッター */
.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.footer a {
  color: #0a3d62;
  text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
  }
}
