/* =====================================================
   contact.css — お問い合わせページ専用
   ===================================================== */

/* ── lower-hero ── */
.lower-title-en::after { background: var(--clr-brand); }
.lower-title-en .h1st  { color: var(--clr-brand); }
.cd-title-icon         { color: var(--clr-brand-dark); }
.cd-body h2            { border-left-color: var(--clr-brand-dark); }
.cd-back:hover         { border-color: var(--clr-brand); color: var(--clr-brand); background: var(--clr-brand-light); }

/* ── お問い合わせ種別ガイド ── */
.contact-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
@media (max-width: 767px) {
  .contact-guide { grid-template-columns: 1fr; }
}

.contact-guide-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-md);
  border-left: 4px solid transparent;
}
.contact-guide-item--ad      { background: var(--clr-bg-warm);   border-left-color: var(--clr-fortune); }
.contact-guide-item--general { background: var(--clr-brand-light); border-left-color: var(--clr-brand); }
.contact-guide-item--trouble  { background: var(--clr-pink-light); border-left-color: var(--clr-pink); }

.contact-guide-icon {
  font-size: var(--fs-xl);
  flex-shrink: 0;
  line-height: 1.4;
}
.contact-guide-item--ad      .contact-guide-icon { color: var(--clr-fortune); }
.contact-guide-item--general .contact-guide-icon { color: var(--clr-brand-dark); }
.contact-guide-item--trouble  .contact-guide-icon { color: var(--clr-pink); }

.contact-guide-item h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 4px;
}
.contact-guide-item p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── フォーム導入文 ── */
.contact-intro {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--clr-brand-light);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--clr-brand);
}

/* ── フォーム共通 ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* [hidden] 属性が CSS の display: flex/block 等に負けないよう強制
 * 確認画面・サンクス画面に切り替わる時、入力フォームを確実に隠すための保険 */
.contact-form[hidden],
#cf-confirm[hidden],
#cf-thanks[hidden] {
  display: none !important;
}

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text);
}

.cf-required {
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--clr-white);
  background: var(--clr-pink);
  padding: 2px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}

/* セレクト */
.cf-select-wrap {
  position: relative;
}
.cf-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 12px 44px 12px 16px;
  font-size: var(--fs-base);
  font-family: var(--font-jp);
  color: var(--clr-text);
  cursor: pointer;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.cf-select:focus-visible {
  outline: 2px solid var(--clr-brand);
  outline-offset: 2px;
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 3px rgba(179, 157, 219, 0.25);
}
.cf-select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* テキストインプット */
.cf-input {
  width: 100%;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: var(--fs-base);
  font-family: var(--font-jp);
  color: var(--clr-text);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.cf-input::placeholder { color: var(--clr-text-muted); opacity: 0.6; }
.cf-input:focus-visible {
  outline: 2px solid var(--clr-brand);
  outline-offset: 2px;
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 3px rgba(179, 157, 219, 0.25);
}

/* テキストエリア */
.cf-textarea {
  width: 100%;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: var(--fs-base);
  font-family: var(--font-jp);
  color: var(--clr-text);
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.cf-textarea::placeholder { color: var(--clr-text-muted); opacity: 0.6; }
.cf-textarea:focus-visible {
  outline: 2px solid var(--clr-brand);
  outline-offset: 2px;
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 3px rgba(179, 157, 219, 0.25);
}

.cf-hint {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-top: 4px;
}

/* プライバシー同意 */
.cf-privacy {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--clr-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
}
.cf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-base);
  color: var(--clr-text);
  user-select: none;
}
.cf-checkbox { display: none; }
.cf-checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--clr-border);
  border-radius: var(--r-xs);
  flex-shrink: 0;
  background: var(--clr-white);
  position: relative;
  transition: border-color var(--tr), background var(--tr);
}
.cf-checkbox:checked + .cf-checkbox-custom {
  background: var(--clr-brand);
  border-color: var(--clr-brand);
}
.cf-checkbox:checked + .cf-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.cf-checkbox-label a {
  color: var(--clr-brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 送信ボタン — BUTTON SYSTEM (style.css) が適用される。送信ボタンは横幅広めの padding のみ追加。 */
.cf-submit-wrap { text-align: center; }
.cf-submit {
  padding: 17px 72px;
}
.cf-submit:active { transform: scale(0.97); }

/* ── 確認画面 ── */
.cf-confirm-lead {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-brand-dark);
  text-align: center;
  margin-bottom: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--clr-brand-light);
  border-radius: var(--r-md);
  border-left: 3px solid var(--clr-brand);
}

.cf-confirm-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--sp-lg);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.cf-confirm-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--clr-border);
}
.cf-confirm-row:last-child { border-bottom: none; }

.cf-confirm-dt {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-text-muted);
  background: var(--clr-bg);
  padding: 14px 16px;
  border-right: 1px solid var(--clr-border);
  display: flex;
  align-items: flex-start;
}

.cf-confirm-dd {
  font-size: var(--fs-base);
  color: var(--clr-text);
  padding: 14px 16px;
  margin: 0;
  line-height: 1.75;
  word-break: break-all;
}

.cf-confirm-btns {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.cf-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--clr-white);
  color: var(--clr-text-muted);
  font-size: var(--fs-base);
  font-weight: 700;
  font-family: var(--font-jp);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color var(--tr), color var(--tr), background var(--tr);
}
.cf-back-btn:hover {
  border-color: var(--clr-brand);
  color: var(--clr-brand);
  background: var(--clr-brand-light);
}
.cf-back-btn i { line-height: 1; display: flex; align-items: center; }

.cf-confirm-send { padding: 14px 40px; }

@media (max-width: 767px) {
  .cf-confirm-row { grid-template-columns: 1fr; }
  .cf-confirm-dt  { border-right: none; border-bottom: 1px solid var(--clr-border); padding: 10px 14px; }
  .cf-confirm-dd  { padding: 10px 14px; }
  .cf-back-btn, .cf-confirm-send { width: 100%; justify-content: center; }
}

/* ── 送信完了 ── */
.cf-thanks {
  text-align: center;
  padding: var(--sp-xl) var(--sp-md);
}
.cf-thanks-icon {
  font-size: 3.5rem;
  color: var(--clr-column);
  display: block;
  margin-bottom: var(--sp-sm);
}
.cf-thanks h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}
.cf-thanks p {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: 1.9;
  margin-bottom: var(--sp-lg);
}
.cf-thanks-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 40px;
  background: var(--clr-brand);
  color: var(--clr-white);
  font-weight: 700;
  font-size: var(--fs-base);
  border-radius: var(--r-full);
  transition: background var(--tr);
}
.cf-thanks-btn:hover { background: var(--clr-brand-dark); opacity: 1; }

/* 任意バッジ */
.cf-optional {
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--clr-text-muted);
  background: var(--clr-border);
  padding: 2px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}

/* ハニーポット：完全非表示（スクリーンリーダーにも） */
.cf-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

/* reCAPTCHA v3 バッジを右下に表示（デフォルト位置） */
.grecaptcha-badge {
  z-index: 10;
}

/* ── SP ── */
@media (max-width: 767px) {
  .contact-guide-item { padding: var(--sp-sm); }
  .cf-submit { width: 100%; justify-content: center; padding: 15px 24px; }
}
