/* =====================================================================
   資料DLフォーム（Contact Form 7）用スタイル
   ・LP内の .dlf__cf7 の中だけに効きます（他ページへの影響なし）
   ・style.css と CF7標準CSS の後に読み込んでください
   ===================================================================== */
.dlf__cf7 .wpcf7 { margin: 0; }
.dlf__cf7 .wpcf7-form > p, .dlf__cf7 .wpcf7-form p:empty { margin: 0; }
.dlf__cf7 .wpcf7-form br { display: none; }
.dlf__cf7 .wpcf7-form-control-wrap { display: block; position: relative; }

/* 入力欄 */
.dlf__cf7 .dlf__field input.wpcf7-form-control,
.dlf__cf7 .dlf__field textarea.wpcf7-form-control {
  display: block; width: 100%; max-width: none; box-sizing: border-box; margin-top: 1rem; padding: 1.4rem 1.6rem;
  font: inherit; font-size: 1.6rem; line-height: 1.6; color: var(--ink);
  background: #fff; border: 1px solid #c8d2dc; border-radius: .4rem; box-shadow: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.dlf__cf7 .dlf__field textarea.wpcf7-form-control { height: 11rem; min-height: 11rem; resize: vertical; line-height: 1.7; }
.dlf__cf7 .dlf__field .wpcf7-form-control::placeholder { color: #a3adb7; }
.dlf__cf7 .dlf__field .wpcf7-form-control:focus { outline: none; border-color: var(--cyan-2); box-shadow: 0 0 0 3px rgba(34,214,236,.25); }

/* エラー表示 */
.dlf__cf7 .dlf__field input.wpcf7-form-control.wpcf7-not-valid,
.dlf__cf7 .dlf__field textarea.wpcf7-form-control.wpcf7-not-valid { border-color: #e2475b; background: #fff6f7; }
.dlf__cf7 .wpcf7-not-valid-tip { display: block; margin-top: .6rem; font-size: 1.3rem; font-weight: 500; color: #d63a4e; }
.dlf__cf7 .dlf__agree .wpcf7-not-valid-tip { text-align: center; }

/* 同意チェック */
.dlf__cf7 .dlf__agree { display: block; margin-top: 3.4rem; text-align: center; font-size: 1.6rem; }
.dlf__cf7 .dlf__agree .wpcf7-list-item { margin: 0; }
.dlf__cf7 .dlf__agree label { display: inline-flex; align-items: center; gap: 1rem; cursor: pointer; }
.dlf__cf7 .dlf__agree input[type="checkbox"] { width: 2rem; height: 2rem; margin: 0; accent-color: var(--cyan-2); }
.dlf__cf7 .dlf__agree a { color: #0f86a0; text-decoration: underline; }

/* 送信ボタン */
.dlf__cf7 .dlf__btn { position: relative; margin-top: 2.6rem; }
.dlf__cf7 input.dlf__submit {
  display: block; width: 100%; height: 7.6rem; margin: 0; padding: 0 2rem; border: 0; border-radius: 0; cursor: pointer;
  font: inherit; font-size: 2rem; font-weight: 700; letter-spacing: .04em; color: #0b1a26;
  background: var(--cyan) url(../img/icons/download_navy.png) no-repeat calc(50% + 11rem) 50% / 2.2rem auto;
  clip-path: polygon(2.4rem 0, 100% 0, calc(100% - 2.4rem) 100%, 0 100%); transition: filter .2s, opacity .2s;
  -webkit-appearance: none; appearance: none;
}
.dlf__cf7 input.dlf__submit:hover { filter: brightness(1.08); }
.dlf__cf7 input.dlf__submit:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.dlf__cf7 .wpcf7-spinner { position: absolute; left: 50%; top: 100%; margin: 1.2rem 0 0 -1.2rem; }

/* 送信結果メッセージ */
.dlf__cf7 .wpcf7 form .wpcf7-response-output {
  margin: 4.4rem 0 0; padding: 1.2rem 1.6rem; border: 1px solid #c8d2dc; border-radius: .4rem;
  font-size: 1.4rem; line-height: 1.7; text-align: center; color: var(--ink);
}
.dlf__cf7 .wpcf7 form.invalid .wpcf7-response-output,
.dlf__cf7 .wpcf7 form.unaccepted .wpcf7-response-output,
.dlf__cf7 .wpcf7 form.failed .wpcf7-response-output,
.dlf__cf7 .wpcf7 form.aborted .wpcf7-response-output,
.dlf__cf7 .wpcf7 form.spam .wpcf7-response-output { border-color: #e2475b; color: #d63a4e; background: #fff6f7; }
.dlf__cf7 .wpcf7 form.sent .wpcf7-response-output { border-color: var(--cyan-2); }

@media (max-width: 767px) {
  .dlf__cf7 .dlf__field input.wpcf7-form-control,
  .dlf__cf7 .dlf__field textarea.wpcf7-form-control { font-size: 16px; padding: 1.2rem 1.4rem; }
  .dlf__cf7 .dlf__agree { font-size: 1.45rem; }
  .dlf__cf7 input.dlf__submit { height: 6.4rem; font-size: 1.7rem; background-position: calc(50% + 9.4rem) 50%; }
}
