/* YON Theme Custom Styles
 * Tailwindで表現しづらい部分をここに追記
 */

/* ===== FAQ アコーディオン ===== */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { -webkit-tap-highlight-color: transparent; }
.faq-item[open] > summary { border-bottom: 1px solid #f3f4f6; }

/* ===== コンサルタントカード（写真なし時の高さ調整） ===== */
.consultant-card--no-photo .p-6 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.consultant-card--no-photo {
  border-top: 4px solid var(--color-accent, #fb5c00);
}

/* ===== Hero pre-line（H1の \n を改行に変換するラッパ） ===== */
.whitespace-pre-line { white-space: pre-line; }

/* ===== 記事本文（single.php prose 補助） ===== */
.prose img { border-radius: 0.5rem; }
.prose a { word-break: break-word; }

/* ===== eyebrow ラベル（A-1 統一eyebrow） ===== */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fb5c00;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: #fb5c00;
}

/* ===== band 交互背景（A-4） ===== */
.band-soft {
  background: #f8f8f7;
  border-top: 1px solid rgba(27,38,60,0.08);
  border-bottom: 1px solid rgba(27,38,60,0.08);
}

/* ===== モバイルスティッキーCTA（A-5、サイズ調整） ===== */
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid rgba(27,38,60,0.08);
  padding: 8px 14px;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(15,26,46,0.06);
}
.mobile-sticky-cta a {
  display: block;
  text-align: center;
  background: #fb5c00;
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 8px;
}
@media (min-width: 1024px) {
  .mobile-sticky-cta { display: none; }
}
body { padding-bottom: 56px; }
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

/* ===== スマホ専用改行ユーティリティ ===== */
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: initial; }
}

/* ===== Contact Form 7 / 3STEP Stepper ===== */
.cf7-stepper {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(15,26,46,0.04);
}
@media (min-width: 768px) {
  .cf7-stepper { padding: 40px 44px; }
}

.cf7-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.cf7-progress-track {
  flex: 1;
  height: 4px;
  background: #f2f2f2;
  border-radius: 999px;
  overflow: hidden;
}
.cf7-progress-fill {
  height: 100%;
  background: #fb5c00;
  border-radius: 999px;
  width: 33.333%;
  transition: width 0.35s ease;
}
.cf7-progress-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #1b263c;
  font-weight: 600;
  white-space: nowrap;
}
.cf7-progress-label .cf7-current-step {
  color: #fb5c00;
  font-size: 13px;
}

.cf7-step {
  display: none;
}
.cf7-step.is-active {
  display: block;
  animation: cf7StepFadeIn 0.3s ease;
}
@keyframes cf7StepFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cf7-step-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f2f2f2;
}
.cf7-step-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #fb5c00;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.cf7-step-title {
  font-family: 'Zen Old Mincho', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1b263c;
  line-height: 1.45;
  margin: 0 0 6px;
}
.cf7-step-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.7;
  margin: 0;
}

/* CF7のラベル/入力フォーマット */
.cf7-stepper p {
  margin: 0 0 18px;
}
.cf7-stepper label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1b263c;
  margin-bottom: 6px;
}
.cf7-stepper input[type="text"],
.cf7-stepper input[type="email"],
.cf7-stepper input[type="tel"],
.cf7-stepper select,
.cf7-stepper textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #1b263c;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.cf7-stepper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231b263c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.cf7-stepper textarea {
  min-height: 160px;
  resize: vertical;
}
@media (max-width: 640px) {
  .cf7-stepper textarea {
    min-height: 140px;
  }
}
.cf7-stepper input:focus,
.cf7-stepper select:focus,
.cf7-stepper textarea:focus {
  outline: none;
  border-color: #fb5c00;
  box-shadow: 0 0 0 3px rgba(251,92,0,0.15);
}

/* Acceptance */
.cf7-stepper .wpcf7-acceptance {
  display: block;
}
.cf7-stepper .wpcf7-list-item {
  margin: 0;
}
.cf7-stepper .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #1b263c;
  cursor: pointer;
}
.cf7-stepper .wpcf7-list-item input[type="checkbox"] {
  margin-top: 2px;
  width: 18px; height: 18px;
  accent-color: #fb5c00;
}

/* ステップアクション（次へ・戻る・送信） */
.cf7-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.cf7-step-actions > * {
  flex: 1 1 auto;
  min-width: 120px;
}
.cf7-stepper .cf7-next,
.cf7-stepper input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #fb5c00;
  border: 1px solid #fb5c00;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  letter-spacing: 0.02em;
}
.cf7-stepper .cf7-next:hover,
.cf7-stepper input[type="submit"]:hover {
  background: #e05200;
  border-color: #e05200;
}
.cf7-stepper .cf7-next:active,
.cf7-stepper input[type="submit"]:active {
  transform: translateY(1px);
}
.cf7-stepper .cf7-prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #1b263c;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.cf7-stepper .cf7-prev:hover {
  border-color: #1b263c;
  background: #f8f8f7;
}

/* バリデーションUI（独自） */
.cf7-step-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.5;
}
.cf7-step-error-summary {
  margin-bottom: 18px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

/* CF7のフィールドごとエラー（サーバー側バリデーション） */
.cf7-stepper .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.5;
}
.cf7-stepper .wpcf7-not-valid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12) !important;
}

/* STEP 3 内の相談内容→同意の余白を詰める */
.cf7-step[data-step="3"] .wpcf7-acceptance {
  margin-top: -2px;
}

/* CF7のフォーム全体メッセージ（フォーム外） */
.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* スマホ */
@media (max-width: 640px) {
  .cf7-step-head { margin-bottom: 18px; }
  .cf7-step-title { font-size: 18px; }
  .cf7-step-desc { font-size: 12.5px; }
  .cf7-step-actions { flex-direction: column; }
  .cf7-step-actions > * { min-width: 0; }
  .cf7-stepper .cf7-prev { order: 2; }
  .cf7-stepper .cf7-next,
  .cf7-stepper input[type="submit"] { order: 1; }
}

/* ===== 送信完了→Zoom遷移オーバーレイ ===== */
.cf7-redirect-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cf7OverlayFade 0.2s ease;
}
@keyframes cf7OverlayFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cf7-redirect-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(15, 26, 46, 0.25);
  animation: cf7CardPop 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes cf7CardPop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cf7-redirect-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fb5c00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cf7-redirect-icon svg {
  width: 30px;
  height: 30px;
}
.cf7-redirect-msg {
  margin: 0 0 6px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 17px;
  font-weight: 700;
  color: #1b263c;
  line-height: 1.6;
}
.cf7-redirect-sub {
  margin: 0;
  font-size: 13px;
  color: #6B7280;
  line-height: 1.7;
}

/* ===== Consultant メッセージブロック強化（A-7） ===== */
.consultant-msg {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f8f8f7;
  border-left: 3px solid #fb5c00;
}
.consultant-msg-label {
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.consultant-msg-text {
  font-size: 14px;
  color: #1b263c;
  line-height: 1.7;
  font-style: normal;
}
