/* ============================================================
   ob-contact.css — お問い合わせ・資料DLページ フォームスタイル
   ライトテーマ（contact / document / thanks / thanks-document / privacy-policy / terms）
   読み込み: functions.php > is_page([..., 'privacy-policy', 'terms'])
============================================================ */

/* ── ページ構造レイアウト ── */
.ob-contact-page {
  background: #020E1F;
  min-height: 100vh;
  padding: clamp(80px,10vw,120px) 0 clamp(64px,8vw,100px);
  color: #eef2f7;
}
.ob-contact-page-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px,4vw,52px);
  box-sizing: border-box;
}
.ob-contact-page-header {
  text-align: center;
  margin-bottom: clamp(40px,6vw,64px);
}
.ob-contact-page-eyebrow {
  display: block;
  font-family: 'Playfair Display',sans-serif !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .28em;
  color: rgba(43,212,192,.80);
  margin-bottom: 16px;
}
.ob-contact-page-title {
  font-size: clamp(28px,4vw,44px);
  font-weight: 800;
  color: #eef2f7;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ob-contact-page-sub {
  font-size: clamp(15px,1.6vw,17px);
  color: rgba(238,242,247,.62);
  line-height: 1.9;
}

/* ── ステップ表示 ── */
.ob-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: clamp(32px,5vw,48px);
}
.ob-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ob-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display',sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(238,242,247,.45);
  background: rgba(255,255,255,.05);
}
.ob-step-num.is-active {
  border-color: #2BD4C0;
  color: #2BD4C0;
  background: rgba(43,212,192,.10);
}
.ob-step-label {
  font-size: 11px;
  color: rgba(238,242,247,.40);
  text-align: center;
  letter-spacing: .04em;
}
.ob-step-label.is-active {
  color: #2BD4C0;
  font-weight: 600;
}
.ob-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.12);
  margin: 22px 8px 0;
  min-width: 24px;
}

/* ── フォームカード ── */
.ob-form-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: clamp(28px,4vw,48px);
  margin-bottom: clamp(28px,4vw,40px);
}

/* ── 補足情報グリッド ── */
.ob-contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin-bottom: clamp(32px,5vw,48px);
}
.ob-contact-info-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  padding: 24px 20px;
}
.ob-contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43,212,192,.10);
  border-radius: 8px;
  margin-bottom: 14px;
}
.ob-contact-info-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #eef2f7;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ob-contact-info-card p {
  font-size: 13px;
  color: rgba(238,242,247,.55);
  line-height: 1.75;
}
.ob-contact-info-card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: #2BD4C0;
  font-weight: 600;
}

/* ── 資料DL プレビューカード ── */
.ob-doc-preview {
  background: rgba(43,212,192,.06);
  border: 1px solid rgba(43,212,192,.22);
  border-radius: 10px;
  padding: clamp(24px,3vw,36px);
  margin-bottom: clamp(28px,4vw,40px);
}
.ob-doc-preview-eyebrow {
  font-family: 'Playfair Display',sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(43,212,192,.70);
  margin-bottom: 10px;
}
.ob-doc-preview-title {
  font-size: clamp(17px,2vw,22px);
  font-weight: 700;
  color: #eef2f7;
  margin-bottom: 16px;
  line-height: 1.35;
}
.ob-doc-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-doc-preview-list li {
  font-size: 13.5px;
  color: rgba(238,242,247,.65);
  padding-left: 18px;
  position: relative;
}
.ob-doc-preview-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2BD4C0;
  font-size: 11px;
}

/* ── 問い合わせへの導線 ── */
.ob-doc-contact-link {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 28px;
  margin-top: 8px;
  text-align: center;
}
.ob-doc-contact-link p {
  font-size: 14px;
  color: rgba(238,242,247,.55);
  margin-bottom: 16px;
}
.ob-doc-contact-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  background: rgba(43,212,192,.12);
  border: 1px solid rgba(43,212,192,.35);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2BD4C0;
  letter-spacing: .04em;
  transition: background .2s, transform .2s;
}
.ob-doc-contact-link a:hover {
  background: rgba(43,212,192,.20);
  transform: translateY(-1px);
}

/* ── プレースホルダーテキスト ── */
.ob-form-placeholder {
  font-size: 13px;
  color: rgba(238,242,247,.45);
  line-height: 1.9;
}

/* ── SP対応 ── */
@media (max-width: 768px) {
  .ob-contact-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ob-form-card { padding: 24px 20px; }
}

/* ── フォームラッパー（ob-contact クラスと衝突しないよう obcf- プレフィックス） ── */
.obcf-wrap {
  width: 100%;
}
.obcf-card {
  width: 100%;
}

/* ── フォーム全体 ── */
.wpcf7 {
  max-width: 100%;
  font-family: 'Shippori Mincho', sans-serif;
  box-sizing: border-box;
}

/* ── フィールドグループ間余白 ── */
.wpcf7 p,
.wpcf7 .wpcf7-form-group,
.obcf-field {
  margin-bottom: 36px !important;
  padding: 0 !important;
}
.obcf-actions p { margin-bottom: 0 !important; }

/* ── ラベル ── */
.wpcf7 label,
.obcf-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: rgba(238,242,247,.88) !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
}

/* ── 必須バッジ ── */
.wpcf7 label abbr,
.wpcf7 label .required-label,
.wpcf7 label > span,
.obcf-req {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(43,212,192,.22) !important;
  color: #2BD4C0 !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  font-style: normal !important;
  text-decoration: none !important;
  border: 1px solid rgba(43,212,192,.35) !important;
}

/* ── 入力フィールド共通 ── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.obcf-input {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  font-family: 'Shippori Mincho', sans-serif !important;
  color: #eef2f7 !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  margin-top: 0 !important;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 select:focus,
.obcf-input:focus {
  border-color: #2BD4C0 !important;
  background: rgba(43,212,192,.06) !important;
  box-shadow: 0 0 0 3px rgba(43,212,192,.12) !important;
}

/* ── テキストエリア ── */
.wpcf7 textarea,
.obcf-textarea {
  display: block !important;
  width: 100% !important;
  min-height: 180px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-family: 'Shippori Mincho', sans-serif !important;
  color: #eef2f7 !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  resize: vertical !important;
  line-height: 1.75 !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
  -webkit-appearance: none !important;
  margin-top: 0 !important;
}

.wpcf7 textarea:focus,
.obcf-textarea:focus {
  border-color: #2BD4C0 !important;
  background: rgba(43,212,192,.06) !important;
  box-shadow: 0 0 0 3px rgba(43,212,192,.12) !important;
}

/* ── プレースホルダー ── */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder,
.obcf-input::placeholder,
.obcf-textarea::placeholder {
  color: rgba(238,242,247,.30) !important;
  font-size: 13px !important;
}

/* ── 送信ボタン ── */
.wpcf7 input[type="submit"],
.obcf-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 56px !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: 'Shippori Mincho', sans-serif !important;
  letter-spacing: 0.1em !important;
  color: #020E1F !important;
  background: linear-gradient(135deg, #2BD4C0 0%, #2BD4C0 100%) !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 6px 24px rgba(43,212,192,.28) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  -webkit-appearance: none !important;
}

.wpcf7 input[type="submit"]:hover,
.obcf-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 36px rgba(43,212,192,.40) !important;
}

.wpcf7 input[type="submit"]:active,
.obcf-submit:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 14px rgba(43,212,192,.22) !important;
}

/* ── 同意文 ── */
.obcf-consent {
  margin: 20px 0 4px;
  font-size: 14px;
  color: rgba(238,242,247,.45);
  line-height: 1.8;
}
.obcf-consent a,
.obcf-link {
  color: #2BD4C0 !important;
  text-decoration: underline !important;
}

/* ── リード文 ── */
.obcf-lead {
  font-size: 16px;
  color: rgba(238,242,247,.62);
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ── バリデーションエラー ── */
.wpcf7 .wpcf7-not-valid-tip {
  display: block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  color: #ff6b6b !important;
  padding-left: 2px !important;
}

.wpcf7 .wpcf7-not-valid {
  border-color: rgba(255,107,107,.60) !important;
  background: rgba(255,107,107,.06) !important;
}

/* ── 送信ステータスメッセージ ── */
.wpcf7 .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 18px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  border: none !important;
  text-align: center !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background: rgba(43,212,192,.14) !important;
  color: #2BD4C0 !important;
  border: 1px solid rgba(43,212,192,.30) !important;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-spam-blocked,
.wpcf7 .wpcf7-validation-errors {
  background: rgba(255,107,107,.10) !important;
  color: #ff8a8a !important;
  border: 1px solid rgba(255,107,107,.25) !important;
}

/* ── Cocoon リセット ── */
.wpcf7 form.wpcf7-form {
  padding: 0 !important;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

/* ── 任意ラベル ── */
.wpcf7-optional-label::after {
  content: "任意";
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  color: rgba(238,242,247,.45);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 8px;
  letter-spacing: 0.03em;
}

/* ── スマホ対応 ── */
@media screen and (max-width: 480px) {
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="url"],
  .obcf-input {
    height: 48px !important;
  }
  .wpcf7 input[type="submit"],
  .obcf-submit {
    height: 52px !important;
    font-size: 13px !important;
  }
}

.ob-policy-body { font-size: var(--body-size); line-height: var(--body-line); color: var(--text-sub); }

/* ── お問い合わせページ ライトテーマ ── */
.ob-contact-page { background: #f0f4f9; color: #0d1e38; }
.ob-contact-page:not(.ob-contact-page--policy) .ob-contact-page-title { color: #0d1e38; }
.ob-contact-page-sub   { color: #0d1e38; }
.ob-contact-page-sub span[style] { color: #4a5568 !important; }
.ob-step-num   { background: #e2e8f0; color: #6b7a8d; border-color: #cdd5e0; }
.ob-step-label { color: #6b7a8d; }
.ob-step-line  { background: #cdd5e0; }
.ob-contact-info-card { background: #fff; border-color: #dce5ef; box-shadow: 0 2px 12px rgba(13,30,56,.06); }
.ob-contact-info-card h3 { color: #0d1e38; }
.ob-contact-info-card p  { color: #3a4a5c; }
.ob-doc-preview { background: #fff !important; border-color: #2BD4C0 !important; }
.ob-doc-preview-title { color: #0d1e38; }
.ob-doc-preview-list,
.ob-doc-preview-list li { color: #3a4a5c !important; }
.ob-doc-contact-link  { border-top-color: #dce5ef; }
.ob-doc-contact-link p { color: #3a4a5c; }
.ob-form-note p        { color: #3a4a5c; }
.ob-form-card .ob-form-note p { color: #3a4a5c; }
.ob-form-privacy       { color: #3a4a5c; }
.ob-form-placeholder   { color: #3a4a5c; }
.ob-contact-page .obcf-consent { color: #6a7a8c !important; }

.obcf-lead { line-break: strict; text-wrap: auto; }
.ob-contact-page .obcf-submit { display: none !important; }
.ob-form-card { background: #fff; border-color: #dce5ef; box-shadow: 0 2px 12px rgba(13,30,56,.06); }

/* CF7フィールド — ライトテーマ上書き */
.ob-contact-page .obcf-lead {
  color: #4a5a70 !important;
}
.ob-contact-page .wpcf7 label,
.ob-contact-page .obcf-label {
  color: #2a3a50 !important;
  margin-bottom: 4px !important;
}
.ob-contact-page .wpcf7 p,
.ob-contact-page .wpcf7 .wpcf7-form-group,
.ob-contact-page .obcf-field {
  margin-bottom: 36px !important;
}
.ob-contact-page .wpcf7 br,
.ob-form-card p br,
.obcf-lead br { display: none !important; }
.ob-contact-page .wpcf7 input[type="text"],
.ob-contact-page .wpcf7 input[type="email"],
.ob-contact-page .wpcf7 input[type="tel"],
.ob-contact-page .wpcf7 input[type="url"],
.ob-contact-page .wpcf7 select,
.ob-contact-page .obcf-input {
  color: #0d1e38 !important;
  background: #fff !important;
  border-color: #cdd5e0 !important;
}
.ob-contact-page .wpcf7 input[type="text"]:focus,
.ob-contact-page .wpcf7 input[type="email"]:focus,
.ob-contact-page .wpcf7 input[type="tel"]:focus,
.ob-contact-page .wpcf7 input[type="url"]:focus,
.ob-contact-page .wpcf7 select:focus {
  border-color: #2BD4C0 !important;
  background: #f5fdfc !important;
  box-shadow: 0 0 0 3px rgba(43,212,192,.12) !important;
}
.ob-contact-page .wpcf7 textarea,
.ob-contact-page .obcf-textarea {
  color: #0d1e38 !important;
  background: #fff !important;
  border-color: #cdd5e0 !important;
}
.ob-contact-page .wpcf7 textarea:focus {
  border-color: #2BD4C0 !important;
  background: #f5fdfc !important;
  box-shadow: 0 0 0 3px rgba(43,212,192,.12) !important;
}
.ob-contact-page .wpcf7 input::placeholder,
.ob-contact-page .wpcf7 textarea::placeholder {
  color: rgba(13,30,56,.32) !important;
}
.ob-contact-page .wpcf7 label abbr,
.ob-contact-page .wpcf7 label .required-label,
.ob-contact-page .wpcf7 label > span,
.ob-contact-page .obcf-req {
  background: rgba(43,212,192,.14) !important;
  border-color: rgba(43,212,192,.30) !important;
  color: #1a8a7c !important;
}

/* ── 確認トリガーボタン ── */
.ob-preview-btn { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 56px !important; margin-top: 32px !important; font-size: 16px !important; font-weight: 700 !important; font-family: 'Shippori Mincho',sans-serif !important; letter-spacing: .1em !important; color: #020E1F !important; background: linear-gradient(135deg, #2BD4C0 0%, #2BD4C0 100%) !important; border: none !important; border-radius: 6px !important; cursor: pointer !important; box-shadow: 0 6px 24px rgba(43,212,192,.28) !important; transition: transform .18s, box-shadow .18s !important; }
.ob-preview-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 12px 36px rgba(43,212,192,.40) !important; }

/* ── 確認パネル ── */
.ob-confirm-lead { font-size: 14px; color: #3a4a5c; line-height: 1.8; margin-bottom: 28px; text-align: center; }
.ob-confirm-list { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid #dce5ef; }
.ob-confirm-row  { display: grid; grid-template-columns: 160px 1fr; gap: 0; border-bottom: 1px solid #dce5ef; }
.ob-confirm-dt   { padding: 16px 16px 16px 0; font-size: 15px; font-weight: 700; color: #0d1e38; align-self: start; }
.ob-confirm-dd   { padding: 16px 0; font-size: 16px; color: #3a4a5c; line-height: 1.8; word-break: break-all; }
.ob-confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ob-confirm-back { padding: 0 28px; height: 48px; border-radius: 6px; border: 1.5px solid #cdd5e0; background: #fff; font-size: 13px; font-weight: 600; color: #6b7a8d; cursor: pointer; font-family: 'Shippori Mincho',sans-serif; transition: border-color .2s, color .2s; }
.ob-confirm-back:hover { border-color: #2BD4C0; color: #2BD4C0; }
.ob-confirm-submit { padding: 0 36px; height: 48px; border-radius: 6px; border: none; background: linear-gradient(135deg, #2BD4C0 0%, #2BD4C0 100%); font-size: 14px; font-weight: 700; color: #020E1F; cursor: pointer; font-family: 'Shippori Mincho',sans-serif; letter-spacing: .07em; box-shadow: 0 6px 20px rgba(43,212,192,.30); transition: transform .18s, box-shadow .18s; }
.ob-confirm-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(43,212,192,.42); }
@media (max-width: 480px) {
  .ob-confirm-row { grid-template-columns: 1fr; }
  .ob-confirm-dt  { padding-bottom: 4px; }
  .ob-confirm-dd  { padding-top: 0; }
  .ob-confirm-back, .ob-confirm-submit { width: 100%; justify-content: center; }
}

/* ── 利用規約・プライバシーポリシー本文 ── ダークネイビー */
.ob-contact-page:has(.ob-policy-body) { background: #0a1525 !important; min-height: 100vh; }
.ob-contact-page:has(.ob-policy-body) .ob-contact-page-inner { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: clamp(40px,5vw,72px); }
.ob-policy-body { font-size: var(--body-size); line-height: var(--body-line); }
.ob-policy-body p, .ob-policy-body li { color: rgba(238,242,247,.78) !important; }
.ob-policy-body h2 { color: rgba(238,242,247,.95) !important; border-bottom-color: rgba(255,255,255,.12) !important; }
