/*
 * Contact Form 7 スタイル上書き
 * NARUSEテーマのデザインに合わせる
 */

.wpcf7 { width: 100%; }

.wpcf7-form .contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

/* テキスト・メール・セレクト・テキストエリア共通 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(10, 22, 40, 0.2);
  color: #111111;
  padding: 16px 20px;
  font-size: 16px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  border-radius: 0;
  box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: #C9A84C;
  background: #FDFBF6;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: rgba(10, 22, 40, 0.35);
}

/* ラベル */
.wpcf7-form label,
.wpcf7-form .form-label {
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
  color: #0A1628;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  background: #C9A84C;
  color: #0A1628;
  border: none;
  padding: 20px 56px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  transition: background 0.3s;
  border-radius: 0;
  width: 100%;
}

.wpcf7-form input[type="submit"]:hover { background: #E8C97A; }
.wpcf7-form input[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #e05555;
  margin-top: 4px;
  display: block;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

.wpcf7-not-valid {
  border-color: #e05555 !important;
}

/* 送信結果メッセージ */
.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 16px 20px;
  font-size: 14px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  border-radius: 0;
}

.wpcf7-mail-sent-ok {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid #C9A84C;
  color: #0A1628;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
  background: rgba(224, 85, 85, 0.08);
  border: 1px solid #e05555;
  color: #c0392b;
}

/* 2カラムレイアウト用 */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cf7-group {
  display: flex;
  flex-direction: column;
}

.cf7-section-title {
  font-size: 14px;
  letter-spacing: 3px;
  color: #0A1628;
  padding-top: 8px;
  border-top: 1px solid rgba(10, 22, 40, 0.15);
  font-weight: 600;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  margin-bottom: 16px;
}

.cf7-note {
  font-size: 13px;
  color: #444444;
  font-weight: 400;
  line-height: 1.8;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

@media (max-width: 768px) {
  .cf7-row { grid-template-columns: 1fr; gap: 16px; }
  .wpcf7-form input[type="submit"] { padding: 18px 24px; }
}
