/* お問い合わせフォーム */
.post_content .jl-contact-form {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px;
  font-size: 16px;
  line-height: 1.8;
}

.post_content .jl-contact-form__item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e5;
}

.post_content .jl-contact-form__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  line-height: 1.5;
}

.post_content .jl-contact-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ea3636;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.post_content .jl-contact-form__label-text {
  color: #111;
}

.post_content .jl-contact-form__note {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.post_content .jl-contact-form__field {
  width: 100%;
}

.post_content .jl-contact-form input[type="text"],
.post_content .jl-contact-form input[type="tel"],
.post_content .jl-contact-form input[type="email"],
.post_content .jl-contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #111;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 16px;
  line-height: 1.6;
}

.post_content .jl-contact-form textarea {
  min-height: 220px;
  resize: vertical;
}

.post_content .jl-contact-form input::placeholder,
.post_content .jl-contact-form textarea::placeholder {
  color: #aaa;
}

.post_content .jl-contact-form input:focus,
.post_content .jl-contact-form textarea:focus {
  outline: 3px solid rgba(245, 213, 33, 0.7);
  outline-offset: 2px;
}

/* チェックボックス */
.post_content .jl-contact-form .wpcf7-checkbox {
  display: grid;
  gap: 10px;
}

.post_content .jl-contact-form .wpcf7-list-item {
  display: block;
  margin: 0;
}

.post_content .jl-contact-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.post_content .jl-contact-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #ea3636;
}

/* 送信ボタン */
.post_content .jl-contact-form__submit-wrap {
  margin-top: 40px;
  text-align: center;
}

.post_content .jl-contact-form__submit {
  min-width: 220px;
  padding: 16px 40px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #ea3636;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.post_content .jl-contact-form__submit:hover {
  background: #c90000;
  transform: translateY(-2px);
}

/* エラー・完了メッセージ */
.post_content .jl-contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #ea3636;
  font-size: 14px;
  font-weight: 700;
}

.post_content .jl-contact-form .wpcf7-response-output {
  margin: 32px 0 0;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 700;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .post_content .jl-contact-form {
    padding: 32px 16px;
  }

  .post_content .jl-contact-form__item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }

  .post_content .jl-contact-form__label {
    gap: 6px;
  }

  .post_content .jl-contact-form textarea {
    min-height: 180px;
  }

  .post_content .jl-contact-form__submit {
    width: 100%;
  }
}

/* =========================================
   Contact Form 7 送信後メッセージ
========================================= */
/* 送信後メッセージ 共通 */
.post_content .wpcf7 .wpcf7-response-output {
  max-width: 720px;
  margin: 32px auto 0 !important;
  padding: 18px 22px !important;
  border: 2px solid #111 !important;
  border-radius: 14px !important;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  box-sizing: border-box;
}

/* 送信成功 */
.post_content .wpcf7 form.sent .wpcf7-response-output {
  border-color: #111 !important;
  background: #fff280;
  color: #111;
  box-shadow: 4px 4px 0 #111;
}

/* 入力エラー */
.post_content .wpcf7 form.invalid .wpcf7-response-output,
.post_content .wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #ea3636 !important;
  background: #fff5f5;
  color: #ea3636;
  box-shadow: none;
}

/* 送信失敗・スパム判定など */
.post_content .wpcf7 form.failed .wpcf7-response-output,
.post_content .wpcf7 form.aborted .wpcf7-response-output,
.post_content .wpcf7 form.spam .wpcf7-response-output {
  border-color: #f87d1f !important;
  background: #fff8f1;
  color: #9a4d00;
  box-shadow: none;
}