/* ============================================================
   officeueda LP 2026-03-26 — contact.css
   旧LP（lp-260319）の contact.css を継承
   新LPのフォームCTA構造（LINEが上、フォームが下）に合わせて調整
   ============================================================ */

/* ---------- 個人情報同意チェックボックス ---------- */
.cf-tr.kakunin .cf-th {
  width: fit-content !important;
}
.cf-tr.kakunin .cf-td {
  width: fit-content !important;
}
span[data-name="kakunin"] .wpcf7-checkbox .wpcf7-list-item.first.last {
  display: flex !important;
  width: fit-content !important;
  margin-left: 0 !important;
  gap: 0.5em !important;
}
span[data-name="kakunin"]
  .wpcf7-checkbox
  .wpcf7-list-item.first.last
  input[type="checkbox"] {
  display: block !important;
  width: 1em !important;
}
span[data-name="kakunin"]
  .wpcf7-checkbox
  .wpcf7-list-item.first.last
  .wpcf7-list-item-label {
  display: block !important;
  width: 3em !important;
}

/* ---------- 戻るボタン ---------- */
.cf-btn-prev {
  width: 100% !important;
  margin: 1em auto !important;
}
.cf-btn-prev input[type="button"] {
  width: 100% !important;
  padding: 0.5em 0 !important;
  border-radius: 4px !important;
  letter-spacing: 1em !important;
  filter: drop-shadow(0 4px 4px #888) !important;
}
.cf-btn-prev input[type="button"]:hover {
  filter: drop-shadow(0 2px 2px #333) !important;
  color: black !important;
  font-weight: 600 !important;
  transform: translateY(2px) !important;
}

/* ---------- 確認画面 ---------- */
.confirm .cf-td {
  background-color: #f7f7f7 !important;
  border-radius: 4px !important;
  border: solid 1px hsla(0, 0%, 78%, .5) !important;
}

/* ---------- 必須マーク ---------- */
.cf-required::after {
  display: inline-block;
  content: "必須";
  height: auto;
  font-size: 0.8em;
  position: relative;
  right: -1em;
  vertical-align: middle;
  background-color: red;
  color: white;
  border-radius: 4px;
  line-height: 1;
  padding: 0.2em 0.5em;
}

/* ---------- スピナー非表示 ---------- */
.wpcf7-spinner {
  display: none !important;
}

/* ---------- バリデーションエラーメッセージ ---------- */
.wpcf7-not-valid-tip {
  color: #ffef1d;
}

/* ---------- フォームセクション内の調整（新LP固有） ---------- */

/* CF7 フォーム全体の余白調整 */
.lp-form-section .wpcf7 {
  margin-top: 0;
}

/* フォームラベルの色（暗背景対応） */
.lp-form-section .wpcf7 label,
.lp-form-section .wpcf7 .wpcf7-form-control-wrap {
  color: rgba(255, 255, 255, .88);
}

/* エラーボーダー */
.lp-form-section .wpcf7 input.wpcf7-not-valid,
.lp-form-section .wpcf7 textarea.wpcf7-not-valid {
  border: 2px solid #ff9999 !important;
  outline: none;
}

/* 送信完了メッセージ */
.lp-form-section .wpcf7 .wpcf7-response-output {
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 15px;
  text-align: center;
  margin-top: 20px;
  border: none !important;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.95);
}
