@charset "UTF-8";

.form-container {
  max-width: 900px;
  margin: 180px auto 50px;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
h2 { border-bottom: 2px solid #0056b3; padding-bottom: 10px; color: #0056b3; font-size: 22px; }
h3 { background: #eef5fc; padding: 10px; border-left: 4px solid #0056b3; margin-top: 0; font-size: 16px; }
h4 { font-size: 14px; margin-bottom: 10px; color: #0056b3; }
textarea { line-height: 1.5em; }
.form-desc { font-size: 13px; color: #666; margin-bottom: 20px; }
.section-notice { font-size: 12px; color: #e65100; margin-bottom: 15px; }
.form-section { margin-bottom: 30px; }
.field { margin-bottom: 18px; }
label { font-weight: bold; display: block; margin-bottom: 6px; font-size: 14px; }
.sub-label { font-weight: normal; font-size: 13px; margin-right: 8px; }
.badge { font-size: 11px; padding: 2px 6px; border-radius: 3px; color: #fff; margin-left: 6px; }
.badge.req { background-color: #e53935; }
.badge.opt { background-color: #757575; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
input[type="file"] { font-size: 13px; margin-top: 4px; }
small { display: block; font-size: 11px; color: #666; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.radio-group label, .checkbox-group label { font-weight: normal; cursor: pointer; font-size: 14px; }
.conditional-block { background: #fdf8e4; padding: 15px; border-radius: 6px; border: 1px solid #faebcc; margin-top: 10px; }
.hidden { display: none; }
.send-form { width: 100%; }
.submit-btn {
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}
.submit-btn:hover {
  background-color: #003d80;
}
.back-btn {
  background-color: #757575;
  color: white;
  border: none;
  padding: 14px;
  width: 40%;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}
/* 確認画面テーブル */
.confirm-table { width: 100%; border-collapse: collapse; margin-bottom: 25px; }
.confirm-table th, .confirm-table td { border: 1px solid #ddd; padding: 10px; font-size: 13px; text-align: left; }
.confirm-table th { background: #f0f4f8; width: 30%; }
.confirm-table ul { margin: 0; padding-left: 18px; }
.btn-group {
  display: flex;
  gap: 10px;
}
/* Thanksページ */
/* 完了アイコン */
.icon-check {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 20px;
  text-align: center;
}
/* 見出し */
h1 {
  font-size: 24px;
  color: #111111;
  margin-bottom: 30px;
  font-weight: bold;
  text-align: center;
}
/* 本文エリア */
.info-box {
  text-align: left;
  background-color: #f1f3f5;
  padding: 20px;
  border-radius: 6px;
  margin: 0 auto 30px;
  font-size: 15px;
  width: 500px;
}
.info-box p {
  margin: 0 0 15px 0;
}
.confirm {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* 確認画面（confirm.php）用レスポンシブ対応 */
@media (max-width: 600px) {
  .confirm-table,
  .confirm-table tbody,
  .confirm-table tr,
  .confirm-table th,
  .confirm-table td {
    display: block;
    width: 100%;
  }
  .confirm-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
  }
  .confirm-table th,
  .confirm-table td {
    border: none;
  }
  .confirm-table th {
    background: #f0f4f8;
    border-bottom: 1px solid #e0e0e0;
  }
  .confirm-table td {
    background: #fff;
  }
  /* ボタンの調整 */
  .btn-group {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .back-btn {
    width: 100%;
  }
}
