/* ================================
   Contact page
   ================================ */

.wpcf7 form {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wpcf7 label {
  font-size: 16px;
  margin-bottom: 4px;
  color: #333;
}

.form-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  margin-top: 24px;
  margin-bottom: 8px;
}

.form-name-required::after {
  content: "＊必須";
  color: #FF7500;
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
}

/* テキストフィールド、メール、電話、住所など */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
  width: 100%;
  background-color: #FEFCEC;
  border: 1px solid black;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #f97316; /* オレンジ */
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3);
}

.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}

/* チェックボックス・ラジオ */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  accent-color: white;
  margin-right: 8px;
}

.wpcf7-checkbox,
.wpcf7-radio {
  display: flex;
  flex-direction: column;
}

/* ボタン */
.wpcf7 input[type="submit"] {
  background-color: #f97316; /* オレンジ */
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 14px 32px;
  border-radius: 60px;
  border: 1px solid #000;
  box-shadow: -3px 3px 0px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.8;
}

/* プライバシーポリシー同意 */
.form-acceptance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 24px;
}

.form-acceptance input[type="checkbox"] {
  appearance: none; /* デフォルトの見た目をリセット */
  width: 18px;
  height: 18px;
  border: 2px solid #000;
  border-radius: 4px;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* チェックされた状態 */
.form-acceptance input[type="checkbox"]:checked {
  background-color: #FF7500;
  border-color: #FF7500;
}

/* チェックマーク（✓） */
.form-acceptance input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* 同意文とリンク */
.form-acceptance span {
  display: inline;
  color: #333;
}

.form-acceptance a {
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.form-acceptance a:hover {
  opacity: 0.7;
}

/* フォーム内の補足テキスト */
.form-data-note {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
}

/* 送信完了・エラーメッセージ */
.wpcf7-response-output {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #22c55e;
  background-color: #f0fdf4;
  color: #15803d;
}

.wpcf7 form.invalid .wpcf7-response-output {
  border: 1px solid #ef4444;
  background-color: #fef2f2;
  color: #b91c1c;
}

/* お問い合わせボタンを中央寄せにする */
.form-btn {
  display: block;
  text-align: center; /* 中央寄せ */
  margin-top: 32px;   /* お好みで余白 */
}

/* ボタン本体 */
.form-btn input[type="submit"],
.form-btn [type="submit"],
.form-btn span {
  display: inline-block; /* 中央寄せ対象として扱う */
}


/* 送信ボタンが押せない状態 */
.wpcf7 input[type="submit"]:disabled {
  background-color: #fbbf24;
  color: #fff;
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}