/* ===================================
   お問い合わせページ
   既存 style.css のデザインに準拠
=================================== */

/* セクション */
.taSec {
  padding: 80px 20px 0;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* フォームセクション全体 */
.contactFormSec {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 120px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

/* リード文 */
.contactFormLead {
  text-align: center;
  font-size: 1rem;
  line-height: 2.2;
  color: #384A75;
  margin-bottom: 56px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  opacity: .85;
}

/* フォーム外枠（背景色なし） */
.contactForm {
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
}

/* ===================================
   Contact Form 7 フォーム構造
=================================== */

/* 各行：ラベルと入力欄を横並び */
.wpcf7-form p {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(56, 74, 117, .1);
  margin: 0;
}

.wpcf7-form p:first-of-type {
  border-top: 1px solid rgba(56, 74, 117, .1);
}

/* ラベル */
.contact-form__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #384A75;
  letter-spacing: 0.05em;
  font-family: "zen-old-mincho";
}

/* 必須バッジ（赤） */
.contact-form__label::after {
  content: '必須';
  display: inline-block;
  background: #DB1D1D;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-family: "zen-old-mincho";
}

/* 入力欄ラッパー */
.wpcf7-form-control-wrap {
  flex: 1;
  border: solid 1px #333333;
  display: block;
}

/* テキスト入力・メール・電話 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  color: #384A75;
  background: #F9F9F9;
  border: none;
  outline: none;
  transition: background .3s;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  box-sizing: border-box;
  appearance: none;
  display: block;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus {
  background: #fff;
}

/* テキストエリア */
.wpcf7 textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  color: #384A75;
  background: #F9F9F9;
  border: none;
  outline: none;
  transition: background .3s;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  min-height: 200px;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.8;
  display: block;
}

.wpcf7 textarea:focus {
  background: #fff;
}

/* プレースホルダー */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #aab4c8;
  font-size: 0.9rem;
}

/* 送信ボタンエリア：中央寄せ */
.wpcf7-form .wpcf7-submit-wrap,
.wpcf7-form p:last-of-type {
  display: flex;
  justify-content: center;
  border: none;
  padding-top: 40px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  display: inline-block;
  background: #73AD56;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 18px 80px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .3s, transform .2s, box-shadow .3s;
  font-family: "zen-old-mincho";
  box-shadow: 0 4px 16px rgba(115, 173, 86, .3);
}

.wpcf7 input[type="submit"]:hover {
  background: #5d9443;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(115, 173, 86, .4);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

/* バリデーションエラー */
.wpcf7 .wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
  background: #fff8f8;
}

/* 送信結果メッセージ */
.wpcf7 .wpcf7-response-output {
  margin-top: 24px;
  padding: 16px 20px;
  font-size: 0.9rem;
  text-align: center;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background: #f0f7eb;
  border: 1.5px solid #6BB347;
  color: #4a8a2a;
}

.wpcf7 .wpcf7-mail-sent-ng {
  background: #fff8f8;
  border: 1.5px solid #c0392b;
  color: #c0392b;
}

/* ===================================
   レスポンシブ
=================================== */
@media (max-width: 768px) {
  .contactFormSec {
    padding: 40px 16px 80px;
  }

  .wpcf7-form p {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 0;
  }

  .contact-form__label {
    min-width: unset;
  }

  .wpcf7-form-control-wrap {
    width: 100%;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    font-size: 16px;
  }
}
