/* ============================================================
   One Voice 申し込みフォーム（front-page 用）
   Webフォントは functions.php 側で読み込みます（@import不使用）
   ============================================================ */

/* ---------- セクション全体（front-page への組み込み枠） ---------- */

.ov-apply {
  padding: clamp(48px, 8vw, 96px) 16px;
  background: #f6f4fa;
}

.ov-apply__inner {
  max-width: 800px;
  margin: 0 auto;
}

.ov-apply__title {
  margin: 0 0 8px;
  color: #514a7d;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ov-apply__title .ov-apply__logo {
  display: inline-block;
  margin-right: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.4em;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #8b7bb8, #c98cb6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ov-apply__lead {
  margin: 0 0 28px;
  color: #6a6390;
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- フォーム本体 ---------- */

.ov-form {
  --ov-ink: #3d3760;
  --ov-deep: #514a7d;
  --ov-purple: #8b7bb8;
  --ov-pink: #c98cb6;
  --ov-line: #cfc7e2;
  --ov-bg1: #ece7f5;
  --ov-bg2: #e6ebf6;
  --ov-white: #ffffff;

  max-width: 800px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  background: linear-gradient(160deg, var(--ov-bg1) 0%, var(--ov-bg2) 55%, #f0e7f0 100%);
  border-radius: 14px;
  color: var(--ov-ink);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

.ov-form .ov-block {
  border: 0;
  margin: 0 0 36px;
  padding: 0;
}

.ov-form .ov-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 9px 18px;
  background: linear-gradient(90deg, #cfc4e6 0%, #dccfe6 60%, #e9d8e4 100%);
  border-radius: 999px;
  color: var(--ov-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ov-form .ov-badge {
  margin-left: auto;
  padding: 2px 12px;
  background: var(--ov-deep);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.ov-form .ov-badge--sub { background: var(--ov-purple); }

.ov-form .ov-help {
  margin: 0 4px 16px;
  font-size: 1rem;
  color: #6a6390;
}

/* ---------- ラジオボタン（カード型） ---------- */

.ov-form .ov-choice .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ov-form .ov-choice .wpcf7-list-item { margin: 0; }

.ov-form .ov-choice .wpcf7-list-item label {
  display: block;
  cursor: pointer;
}

.ov-form .ov-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ov-form .ov-choice .wpcf7-list-item-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  background: var(--ov-white);
  border: 1.5px solid var(--ov-line);
  border-radius: 3px;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.ov-form .ov-choice .wpcf7-list-item-label::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ov-line);
  border-radius: 50%;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.ov-form .ov-choice input[type="radio"]:checked + .wpcf7-list-item-label {
  border-color: var(--ov-purple);
  background: linear-gradient(90deg, #f4effa, #faf0f7);
  box-shadow: 0 2px 10px rgba(139, 123, 184, 0.25);
}

.ov-form .ov-choice input[type="radio"]:checked + .wpcf7-list-item-label::before {
  border-color: var(--ov-purple);
  box-shadow: inset 0 0 0 4px #fff;
  background: linear-gradient(135deg, var(--ov-purple), var(--ov-pink));
}

.ov-form .ov-choice input[type="radio"]:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid var(--ov-purple);
  outline-offset: 2px;
}

.ov-form .ov-subchoice {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 3px solid var(--ov-purple);
  border-radius: 0 10px 10px 0;
}

.ov-form .ov-sublabel {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ov-form .ov-note {
  margin-left: 10px;
  font-size: 0.8em;
  font-weight: 500;
  color: #6a6390;
}

/* ---------- テキスト入力 ---------- */

.ov-form .ov-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ov-form .ov-label {
  flex: 0 0 130px;
  padding: 5px;
  background: var(--ov-deep);
  border-radius: 3px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: center;
}

.ov-form .ov-field .wpcf7-form-control-wrap { flex: 1; min-width: 0; }

.ov-form .ov-field--short .wpcf7-form-control-wrap { flex: 0 0 140px; }

.ov-form input[type="text"],
.ov-form input[type="tel"],
.ov-form input[type="email"],
.ov-form input[type="number"],
.ov-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--ov-white);
  border: 1.5px solid var(--ov-line);
  border-radius: 3px;
  color: var(--ov-ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.ov-form input::placeholder,
.ov-form textarea::placeholder { color: #b3accc; }

.ov-form input:focus,
.ov-form textarea:focus {
  outline: none;
  border-color: var(--ov-purple);
  box-shadow: 0 0 0 3px rgba(139, 123, 184, 0.2);
}

.ov-form textarea { min-height: 130px; resize: vertical; }

/* ---------- 同意チェック ---------- */

.ov-form .ov-privacy { margin: 28px 0 20px; text-align: center; }

.ov-form .ov-privacy .wpcf7-list-item { margin: 0; }

.ov-form .ov-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--ov-purple);
  vertical-align: -3px;
}

.ov-form .ov-privacy a {
  color: var(--ov-purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ov-form .ov-privacy a:hover { color: var(--ov-pink); }

/* ---------- 送信ボタン ---------- */

.ov-form .ov-submit { text-align: center; }

.ov-form input[type="submit"] {
  min-width: 280px;
  padding: 15px 40px;
  background: linear-gradient(90deg, #6e5da8, #a76aa8);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(110, 93, 168, 0.4);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}

.ov-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 93, 168, 0.5);
}

.ov-form input[type="submit"]:focus-visible {
  outline: 3px solid var(--ov-pink);
  outline-offset: 3px;
}

.ov-form input[type="submit"]:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- CF7 エラー・完了メッセージ ---------- */

.ov-form .wpcf7-not-valid { border-color: #c96a8a !important; }

.ov-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 12px;
  color: #b04a70;
}

.ov-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1.5px solid var(--ov-purple) !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: center;
}

.ov-form .wpcf7-spinner { display: block; margin: 10px auto 0; }
/* ---------- 個人情報保護方針（スクロール枠） ---------- */

.ov-form .ov-privacy-box {
  margin: 28px 0 16px;
  background: var(--ov-white);
  border: 1.5px solid var(--ov-line);
  border-radius: 3px;
  overflow: hidden;
}

.ov-form .ov-privacy-box__title {
  margin: 0;
  padding: 12px 18px;
  background: linear-gradient(90deg, #cfc4e6 0%, #dccfe6 60%, #e9d8e4 100%);
  color: var(--ov-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ov-form .ov-privacy-box__body {
  max-height: 240px;      /* この高さを超えるとスクロール */
  overflow-y: auto;
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ov-ink);
  -webkit-overflow-scrolling: touch;
}

.ov-form .ov-privacy-box__body h5 {
  margin: 18px 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ov-deep);
}

.ov-form .ov-privacy-box__body h5:first-of-type {
  margin-top: 0;
}

.ov-form .ov-privacy-box__body p {
  margin: 0 0 10px;
}

/* スクロールバーを紫系に（対応ブラウザのみ） */
.ov-form .ov-privacy-box__body {
  scrollbar-width: thin;
  scrollbar-color: var(--ov-purple) transparent;
}
.ov-form .ov-privacy-box__body::-webkit-scrollbar {
  width: 8px;
}
.ov-form .ov-privacy-box__body::-webkit-scrollbar-thumb {
  background: var(--ov-purple);
  border-radius: 4px;
}
/* ---------- スマホ対応 ---------- */

@media (max-width: 560px) {
  .ov-form { font-size: 14px; }
  .ov-form .ov-heading { font-size: 1rem; letter-spacing: 0.06em; }
  .ov-form .ov-field { flex-direction: column; align-items: stretch; gap: 6px; }
  .ov-form .ov-label { flex: none; width: 100%; text-align: left; padding: 5px 10px; }
  .ov-form .ov-field--short .wpcf7-form-control-wrap { flex: none; }
  .ov-form .ov-choice .wpcf7-radio { flex-direction: column; }
  .ov-form input[type="submit"] { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ov-form *, .ov-apply * { transition: none !important; }
}
/* ============================================================
   サンクスページ（お申し込み完了ページ）
   ============================================================ */

.ov-thanks {
  padding: clamp(48px, 8vw, 96px) 16px;
  background: linear-gradient(160deg, #ece7f5 0%, #e6ebf6 55%, #f0e7f0 100%);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #3d3760;
  line-height: 1.9;
}

.ov-thanks__inner {
  max-width:  800px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 48px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(81, 74, 125, 0.12);
  text-align: center;
}

.ov-thanks__icon {
  width: 72px;
  margin: 0 auto 20px;
}
.ov-thanks__icon svg { width: 100%; height: auto; display: block; }

.ov-thanks__logo {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #8b7bb8, #c98cb6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ov-thanks__title {
  margin: 0 0 22px;
  font-size: clamp(19px, 3.6vw, 25px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3d3760;
}

.ov-thanks__lead,.ov-thanks__text { text-align: center; }

.ov-thanks__lead {
  margin: 0 0 18px;
  font-size: 15px;
}

.ov-thanks__text {
  margin: 0 0 28px;
  font-size: 14px;
  color: #57517a;
}

.ov-thanks__card {
  margin: 0 0 16px;
  padding: 18px 22px;
  background: linear-gradient(160deg, #f4effa 0%, #faf0f7 100%);
  border-left: 3px solid #8b7bb8;
  border-radius: 0 12px 12px 0;
  text-align: left;
}

.ov-thanks__cardtitle {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #514a7d;
}

.ov-thanks__card p {
  margin: 0;
  font-size: 13.5px;
  color: #57517a;
}

.ov-thanks__contact {
  margin: 30px 0 28px;
  padding-top: 24px;
  border-top: 1px solid #cfc7e2;
}



.ov-thanks__company {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.ov-thanks__contactinfo {
  margin: 0;
  font-size: 13.5px;
  color: #57517a;
}

.ov-thanks__actions { margin-top: 8px; }

.ov-thanks__btn {
  display: inline-block;
  min-width: 260px;
  padding: 14px 40px;
  background: linear-gradient(90deg, #6e5da8, #a76aa8);
  border-radius: 999px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(110, 93, 168, 0.4);
  transition: transform .15s, box-shadow .15s;
}
.ov-thanks__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 93, 168, 0.5);
  color: #fff !important;
}

@media (max-width: 480px) {
  .ov-thanks__btn { min-width: 0; width: 100%; }
}
  .ov-thanks__lead,.ov-thanks__text { text-align: left; }
}