/* --------------------------------------
 * 各フォーム項目（フィールド）のレイアウト
 * -------------------------------------- */
.form-field {
  margin-bottom: 28px; /* 各フィールド間の余白 */
}

.form-field__label,
.form-field legend { /* fieldsetのlegendもラベルとして扱う */
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

/* ラベル内の説明文 */
.form-field__description {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #666;
  margin-top: 4px;
}

/* --------------------------------------
 * 「必須」「任意」マークのスタイル
 * -------------------------------------- */
.form-field__required,
.form-field__optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  vertical-align: middle;
  line-height: 1.5;
}

.form-field__required {
  background-color: #dc3545; /* 赤色 */
  color: #fff;
}

.form-field__optional {
  background-color: #6c757d; /* グレー */
  color: #fff;
}


/* --------------------------------------
 * 入力欄 (input, textarea) のスタイル
 * -------------------------------------- */
.form-field__input,
.form-field__textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px; /* スマホでのズームを防ぐため16px以上を推奨 */
  border: 1px solid #ced4da;
  border-radius: 8px;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* 入力欄がフォーカスされた時のスタイル */
.form-field__input:focus,
.form-field__textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-field__textarea {
  min-height: 150px;
  resize: vertical;
}

/* --------------------------------------
 * ラジオボタン & チェックボックス
 * -------------------------------------- */
.form-field fieldset {
  border: none; /* デフォルトの枠線を消す */
  padding: 0;
  margin: 0;
}

.wpcf7-list-item {
  display: block; /* 各選択肢を縦に並べる */
  margin: 0 0 12px 0;
}

.wpcf7-list-item label {
  display: inline-flex; /* アイコンとテキストを綺麗に並べる */
  align-items: center;
  cursor: pointer;
}

/* --------------------------------------
 * 送信ボタン
 * -------------------------------------- */
.form-submit {
  margin-top: 40px;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #0ea082;
  border: none;
  border-radius: 50px; /* 角を丸く */
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}
.wpcf7-spinner {
    display: block;
}

/* --------------------------------------
 * バリデーション（エラー表示）
 * -------------------------------------- */
.wpcf7-not-valid {
  border-color: #dc3545 !important; /* エラーカラー */
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 14px;
  margin-top: 4px;
}

/* フォーム送信後のメッセージ */
.wpcf7-response-output {
  margin: 20px 0;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ced4da;
}
#autozip {
   display: none !important;
}