/* ============ 共通お問い合わせフォーム部品 (LP / ギャラリー 両用) ============ */
/* 自己完結スタイル: ページ側の CSS 変数に依存しない */
.cf {
  --cf-ink: #1a2433;
  --cf-soft: #1e293b;
  --cf-muted: #5b6678;
  --cf-line: #e3e8f0;
  --cf-blue: #1d4ed8;
  --cf-grad: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  background: radial-gradient(900px 500px at 80% -20%, #14306e 0%, #0b1220 60%), #0b1220;
  color: #fff;
  padding: 80px 20px;
}
.cf-inner { max-width: 760px; margin: 0 auto; }
.cf-eyebrow { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: #67e8f9; margin-bottom: 8px; }
.cf-title { text-align: center; font-size: clamp(23px, 3.4vw, 32px); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.4; }
.cf-lead { text-align: center; font-size: 14.5px; color: #c7d2e4; margin-bottom: 34px; line-height: 1.9; }

.cf-card {
  background: #fff; border-radius: 16px; padding: 36px 34px; color: var(--cf-ink);
  box-shadow: 0 20px 50px rgba(15,23,42,.28);
}
.cf-row { margin-bottom: 20px; }
.cf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-card label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.cf-req { display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff; background: #dc2626; border-radius: 4px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.cf-card input[type="text"], .cf-card input[type="email"], .cf-card input[type="tel"], .cf-card select, .cf-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cf-line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--cf-ink); background: #fff; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.cf-card input:focus, .cf-card select:focus, .cf-card textarea:focus { outline: none; border-color: var(--cf-blue); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.cf-card textarea { resize: vertical; }
.cf-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.cf-agree label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cf-agree input[type="checkbox"] { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--cf-blue); flex-shrink: 0; }
.cf-agree a { color: var(--cf-blue); }
.cf-turnstile { display: flex; justify-content: center; }
.cf-submit { text-align: center; margin-top: 28px; }
.cf-btn {
  display: inline-block; min-width: 280px; padding: 14px 32px; border: none; border-radius: 999px;
  background: var(--cf-grad); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 20px rgba(8,145,178,.35); transition: opacity .15s, transform .15s;
}
.cf-btn:hover { opacity: .92; transform: translateY(-1px); }
.cf-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.cf-status { text-align: center; margin-top: 16px; font-size: 14px; font-weight: 700; min-height: 1.4em; color: #fff; }
.cf-status.ok { color: #6ee7a8; }
.cf-status.ng { color: #fca5a5; }

/* 送信中スピナー */
.cf-btn.loading::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%;
  animation: cf-spin .7s linear infinite;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* 送信完了パネル (明確な成功表示) */
.cf-done {
  text-align: center; background: #fff; color: var(--cf-ink); border-radius: 16px;
  padding: 56px 34px; box-shadow: 0 20px 50px rgba(15,23,42,.28);
}
.cf-done-ico { width: 76px; height: 76px; margin: 0 auto 22px; }
.cf-done-ico svg { width: 76px; height: 76px; display: block; }
.cf-done-title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--cf-ink); margin-bottom: 14px; }
.cf-done-lead { font-size: 15.5px; color: var(--cf-soft); line-height: 1.95; margin-bottom: 20px; }
.cf-done-lead strong { color: var(--cf-blue); }
.cf-done-note {
  font-size: 13px; color: var(--cf-muted); line-height: 1.95;
  background: #f5f7fb; border-radius: 10px; padding: 14px 18px; max-width: 560px; margin: 0 auto;
}
.cf-done-note strong { color: var(--cf-ink); }

/* プライバシー */
.cf-privacy { max-width: 760px; margin: 26px auto 0; font-size: 12.5px; color: #93a3bd; line-height: 1.9; }
.cf-privacy summary { cursor: pointer; font-weight: 700; color: #c7d2e4; }
.cf-privacy[open] summary { margin-bottom: 10px; }
.cf-privacy ol { padding-left: 20px; margin-top: 8px; }
.cf-privacy li { margin-bottom: 6px; }
.cf-privacy strong { color: #e2e8f0; }

@media (max-width: 640px) {
  .cf { padding: 56px 16px; }
  .cf-card { padding: 26px 20px; }
  .cf-two { grid-template-columns: 1fr; }
  .cf-btn { min-width: 100%; }
}
