/* お問い合わせ（templates/contact.html・2026-11-28 作り直し）。土台は solution_v2.css（.sv-*）。
   フォームの欄の見た目は contact.css（.ct-*）のまま。ここは上の部分（.cv-*）と、スマホでの欄の大きさだけ */

/* 最初の画面: 会話の吹き出しが順に出る（9秒でひと回り） */
.cv-chat { margin-top: 30px; display: grid; gap: 10px; background: #fff; border: 1px solid var(--sv-line); border-radius: 22px; padding: 18px 14px; box-shadow: 0 22px 44px -28px rgba(20, 35, 60, .55); }
.sv .cv-chat p { max-width: 84%; font-size: 16px; font-weight: 700; line-height: 1.6; padding: 10px 14px; border-radius: 18px; animation: cvIn 9s ease infinite; }
.sv .cv-chat-q { justify-self: end; background: var(--sv-tint); color: var(--sv-navy); border-bottom-right-radius: 4px; }
.sv .cv-chat-a { justify-self: start; background: var(--sv-teal-dark); color: #fff; border-bottom-left-radius: 4px; }
.sv .cv-chat-typing { justify-self: start; display: flex; gap: 5px; background: var(--sv-teal-soft); border-bottom-left-radius: 4px; padding: 14px 16px; }
.cv-chat-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--sv-teal-dark); animation: svDot 1.2s ease-in-out infinite; }
.cv-chat-typing i:nth-child(2) { animation-delay: .2s; }
.cv-chat-typing i:nth-child(3) { animation-delay: .4s; }
.sv .cv-chat-2 { animation-delay: 1.1s; }
.sv .cv-chat-3 { animation-delay: 2.4s; }
.sv .cv-chat-4 { animation-delay: 3.5s; }
.sv .cv-chat-5 { animation-delay: 4.6s; }
@keyframes cvIn { 0% { opacity: 0; transform: translateY(12px) scale(.94); } 6%, 100% { opacity: 1; transform: none; } }
.sv .cv-chat p { animation-fill-mode: both; }

/* 連絡の方法3つ */
.cv-ways { display: grid; gap: 12px; }
.cv-way { background: var(--sv-tint); border-radius: 20px; padding: 22px 18px; display: grid; justify-items: start; gap: 6px; }
.cv-way-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sv-navy); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.cv-way--line .cv-way-icon { background: var(--sv-green); font-size: 28px; }
.cv-way > b { margin-top: 6px; font-size: 22px; font-weight: 900; color: var(--sv-navy); line-height: 1.4; }
.sv .cv-way > p { font-size: 16px; line-height: 1.8; color: var(--sv-ink); }
.cv-way > small { font-size: 13px; color: var(--sv-sub); }
.cv-btn { justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin-top: 8px; border-radius: 999px; background: var(--sv-navy); color: #fff; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cv-btn--line { background: var(--sv-green); }
.cv-btn--line i { font-size: 24px; }
.cv-btn--ghost { background: #fff; color: var(--sv-navy); border: 2px solid var(--sv-navy); }

/* フォーム: 欄は contact.css のまま。スマホで読みやすい大きさにそろえる（16px 未満だと iPhone が入力時に拡大する） */
.cv-formsec { scroll-margin-top: 70px; }
.cv-formsec .ct-form { background: #fff; border-radius: 20px; padding: 22px 16px; box-shadow: 0 18px 40px -28px rgba(20, 35, 60, .5); max-width: none; margin: 0; scroll-margin-top: 80px; }
.cv-formsec .ct-label { font-size: 16px; }
.cv-formsec .ct-input, .cv-formsec .ct-textarea { font-size: 16px; }
.cv-formsec .ct-radio span { font-size: 16px; }
.sv .cv-formsec .ct-privacy-text { font-size: 14px; line-height: 1.8; }
.cv-formsec .ct-checkbox span { font-size: 16px; }
.cv-formsec .ct-recaptcha { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .sv .cv-chat p, .cv-chat-typing i { animation: none !important; }
}
@media (min-width: 900px) {
    .cv-chat { margin-top: 0; padding: 26px 22px; }
    .sv .cv-chat p { font-size: 18px; }
    .cv-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 -140px; }
    .cv-way { padding: 28px 24px; align-content: start; }
    .cv-formsec .ct-form { padding: 36px 40px; }
}
