/* 全体の背景色（参考画像に合わせて設定） */
body {
  background-color: #FFF;
}

#content {
  background-color: #FBFAEF;

}

.contact-form-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
}

.contact-form-container h2 {
  font-size: 24px;
  /* 下線を削除 */
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.form-intro {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* フォームグループを縦並びに変更 */
.form-group {
  display: block;
  /* Flexを解除 */
  padding: 0;
  border-bottom: none;
  /* 区切り線を削除 */
  margin-bottom: 30px;
  /* 下に余白を追加 */
}

/* ラベルのスタイル調整 */
.form-group label {
  width: 100%;
  display: block;
  font-weight: normal;
  /* 太字を解除 */
  font-size: 16px;
  padding-right: 0;
  margin-bottom: 10px;
  display: flex;
  /* 必須マークとテキストを揃えるため */
  align-items: center;
}

/* 必須マークのスタイル変更 */
.required {
  background: #C30D25;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  margin-left: 0;
  margin-right: 10px;
  line-height: 1.3;
}

.form-input {
  width: 100%;
}

/* 入力フィールドのスタイル変更（フラットに） */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input select,
.form-input textarea {
  width: 100%;
  padding: 8px 12px;
  /* 高さを少し広げる */
  border: 1px solid transparent;
  /* 枠線を透明に（または非常に薄い色 #eee など） */
  background-color: #fff;
  /* 背景を白に */
  border-radius: 0;
  /* 直角に */
  box-sizing: border-box;
  font-size: 16px;
}

/* 入力フィールドにフォーカスした時の枠線（アクセシビリティ用） */
.form-input input:focus,
.form-input select:focus,
.form-input textarea:focus {
  border-color: #aaa;
  outline: none;
}


.note {
  font-size: 12px;
  margin-top: 8px;
  color: #666;
  line-height: 1.4;
}

.example {
  font-size: 12px;
  margin-top: 5px;
  color: #888;
}

/* 送信ボタンエリア */
.form-submit {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  /* border-top: 1px solid #eee; もし区切り線が欲しければコメント解除 */
}

/* 送信ボタンのスタイル変更 */
.form-submit button {
  width: 100%;
  /* 幅いっぱい */
  max-width: 400px;
  /* 広すぎないように制限 */
  padding: 15px 30px;
  background-color: #c51b29;
  /* 参考画像の濃い赤 */
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  /* 角丸 */
  transition: background-color 0.3s;
}

.form-submit button:hover {
  background-color: #a81623;
  /* ホバー時に少し暗く */
}

/* レスポンシブ対応（今回のデザインなら特別な記述はほぼ不要ですが念のため） */
@media (max-width: 600px) {
  .contact-form-container {
    padding: 20px 10px;
  }
}

/* ラジオボタンのグループ設定 */
.radio-group {
  display: flex;
  gap: 30px;
  /* 項目間の余白 */
  margin-bottom: 10px;
  padding: 5px 0;
}

/* ラジオボタン内のラベル設定（既存のlabel設定を上書き） */
.radio-group label {
  display: flex;
  align-items: center;
  width: auto;
  /* 幅を自動に */
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

/* ラジオボタン本体のサイズ調整 */
.radio-group input[type="radio"] {
  width: auto;
  /* 前回の100%指定を解除 */
  margin-right: 10px;
  transform: scale(1.2);
  /* 少し大きくして押しやすく */
  cursor: pointer;
}


/* CF7特有のラップ用spanの余白を消す */
.wpcf7-form-control-wrap {
  display: block;
  margin-top: 5px;
}

/* 入力フィールド全般（CF7のクラスを指定） */
.wpcf7-text,
.wpcf7-select,
.wpcf7-textarea {
  width: 100% !important;
  padding: 8px 12px !important;
  border: 1px solid transparent !important;
  background-color: #fff !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
}

/* ラジオボタンの並び（CF7の構造に合わせる） */
.radio-group .wpcf7-list-item {
  display: inline-block;
  margin: 0 20px 0 0;
}

.radio-group label {
  display: inline-flex !important;
  align-items: center;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* 送信ボタン（CF7のクラスを指定） */
.wpcf7-submit {
  width: 100% !important;
  max-width: 280px !important;
  padding: 15px 30px !important;
  background-color: #c51b29 !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 18px !important;
  font-weight: bold !important;
  border-radius: 5px !important;
  transition: background-color 0.3s !important;
  -webkit-appearance: none;
  /* iOS対策 */
}

.wpcf7-submit:hover {
  background-color: #a81623 !important;
}

/* エラーメッセージ（CF7用）のスタイル */
.wpcf7-not-valid-tip {
  color: #c51b29;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 15px !important;
  border: 2px solid #c51b29 !important;
  background: #fff;
}

/* 同意チェック部分の調整 */
.form-agreement {
  text-align: start;
  margin: 30px 0 20px;
  font-size: 14px;
}

.form-agreement a {
  color: #c51b29;
  /* 赤色にする場合 */
  text-decoration: underline;
}

.form-agreement label {
  display: inline-flex !important;
  align-items: center;
  cursor: pointer;
}

.form-agreement input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.3);
  /* 少し大きくして押しやすく */
}