@charset "UTF-8";
/**
 * ミエルカくんLP: Contact Form 7 出力用スタイル
 *
 * CF7 は <dl class="box"><dt>ラベル</dt><dd>入力</dd></dl> という
 * サイト共通の構造で出力される。style-lp.css の .contact-form 系は
 * 旧フォーム（label 直書き）向けなので当たらないため、ここで
 * 同じデザイントークン（#e0721f / #d5dbe3 / radius 4px 等）を当て直す。
 */

/* 旧フォームではタブがカード上端に密着していたため padding-top: 0 だった。
   CF7 ではタブが無いので上下の余白を揃える。 */
.contact .contact-box {
  padding-top: 32px;
}

.contact .contact-box .wpcf7 {
  color: #1a1e24;
}

.contact .contact-box .wpcf7-form > p {
  margin: 0;
}

/* ---- 各項目 ---- */
.contact .contact-box dl.box {
  margin: 0 0 16px;
}

.contact .contact-box dl.box dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.contact .contact-box dl.box dt .required {
  padding: 2px 7px;
  border-radius: 3px;
  background: #e0721f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact .contact-box dl.box dd {
  margin: 0;
}

/* ---- 入力欄 ---- */
.contact .contact-box input[type="text"],
.contact .contact-box input[type="tel"],
.contact .contact-box input[type="email"],
.contact .contact-box textarea {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 12px;
  border: 1px solid #d5dbe3;
  border-radius: 4px;
}

.contact .contact-box textarea {
  min-height: 120px;
  resize: vertical;
}

.contact .contact-box input[type="text"]:focus,
.contact .contact-box input[type="tel"]:focus,
.contact .contact-box input[type="email"]:focus,
.contact .contact-box textarea:focus {
  outline: 2px solid rgba(224, 114, 31, 0.5);
  border-color: #e0721f;
}

/* ---- チェックボックス（お問合せ内容） ---- */
.contact .contact-box .checkbox_dd .wpcf7-list-item {
  display: block;
  margin: 0 0 8px;
}

.contact .contact-box .checkbox_dd .wpcf7-list-item:last-child {
  margin-bottom: 0;
}

.contact .contact-box .checkbox_dd label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d5dbe3;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.15s;
}

.contact .contact-box .checkbox_dd label:hover {
  border-color: #e0721f;
}

.contact .contact-box .checkbox_dd input[type="checkbox"] {
  flex: none;
  width: auto;
  margin-top: 3px;
  accent-color: #e0721f;
}

/* ---- 送信ボタン（.btn-primary に合わせる）---- */
.contact .contact-box .btn {
  margin-top: 28px;
  text-align: center;
}

.contact .contact-box .wpcf7-submit {
  display: inline-block;
  min-width: 260px;
  background: #e0721f;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(224, 114, 31, 0.4);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.contact .contact-box .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(224, 114, 31, 0.45);
}

.contact .contact-box .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* ---- バリデーション表示 ---- */
.contact .contact-box .wpcf7-not-valid {
  border-color: #c0392b;
}

.contact .contact-box .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
}

.contact .contact-box .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}

/* ---- Cloudflare Turnstile ---- */
.contact .contact-box .wpcf7-turnstile {
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}

@media (max-width: 480px) {
  .contact .contact-box .wpcf7-submit {
    min-width: 0;
    width: 100%;
  }
}
