/* 冒頭10秒の無料試作 申込ページ（色・書体はテーマの変数を使う） */
.vsr { background: var(--paper, #f7f7f2); color: var(--ink, #111); font-size: 16px; }
.vsr .vs-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.vsr-open { padding: calc(var(--header-h, 72px) + 40px) 0 40px; }
.vsr-open__title { font-family: var(--font-head); font-size: clamp(30px, 5vw, 52px); line-height: 1.3; margin: 12px 0 16px; }
.vsr-open__lead { max-width: 40em; font-size: 17px; line-height: 1.9; margin: 0 0 24px; }
.vsr-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--gray-line, #ccc); border-radius: 8px; background: #fff; }
.vsr-facts li { padding: 14px 16px; border-left: 1px solid var(--gray-line, #ccc); display: flex; flex-direction: column; gap: 2px; }
.vsr-facts li:first-child { border-left: 0; }
.vsr-facts__k { font-size: 13px; color: var(--gray-text, #555); }
.vsr-facts__v { font-weight: 700; line-height: 1.5; }

.vsr-sec { padding: 40px 0; }
.vsr-sec--form { padding-top: 8px; }
.vsr-h2 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 28px); margin: 0 0 20px; }

.vsr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vsr-steps li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--gray-line, #ccc); border-radius: 8px; padding: 18px; }
.vsr-steps__n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink, #111); color: #fff; display: grid; place-items: center; font-family: var(--font-mono, monospace); font-weight: 700; }
.vsr-steps p { margin: 6px 0 0; line-height: 1.8; }

/* フォーム */
.vsr-form { background: #fff; border: 1px solid var(--gray-line, #ccc); border-radius: 12px; padding: clamp(20px, 4vw, 40px); }
.vsr-step { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
.vsr-step__title { font-family: var(--font-head); font-size: 20px; line-height: 1.5; margin-bottom: 16px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vsr-step__no { font-family: var(--font-mono, monospace); font-size: 13px; letter-spacing: .08em; padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; }
.vsr-req { font-size: 12px; font-weight: 700; color: #fff; background: var(--blue, #1f5fd1); border-radius: 4px; padding: 1px 6px; margin-left: 8px; font-family: var(--font-body, sans-serif); }

.vsr-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.vsr-type { position: relative; display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--gray-line, #ccc); border-radius: 10px; padding: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.vsr-type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vsr-type:has(input:checked) { border-color: var(--blue, #1f5fd1); box-shadow: 0 0 0 3px rgba(31, 95, 209, .15); }
.vsr-type:has(input:focus-visible) { outline: 3px solid var(--blue, #1f5fd1); outline-offset: 2px; }
.vsr-type__img { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ink, #111); }
.vsr-type__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vsr-type__img--blank { display: grid; place-items: center; color: var(--lime, #c8f04a); font-family: var(--font-en, sans-serif); font-size: 56px; }
.vsr-type__name { font-weight: 700; font-size: 18px; }
.vsr-type__desc { line-height: 1.75; }
.vsr-type__need { font-size: 14px; color: var(--gray-text, #555); border-top: 1px dashed var(--gray-line, #ccc); padding-top: 6px; }

.vsr-group { display: grid; gap: 4px; }
.vsr [hidden] { display: none !important; }
.vsr-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.vsr-label { font-weight: 700; }
.vsr-form input[type="text"], .vsr-form input[type="email"], .vsr-form input[type="tel"], .vsr-form input[type="url"], .vsr-form select, .vsr-form textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; border: 1px solid var(--gray-line, #bbb); border-radius: 6px; background: #fff; color: inherit;
}
.vsr-form textarea { resize: vertical; line-height: 1.7; }
.vsr-form :is(input, select, textarea):focus-visible { outline: 3px solid rgba(31, 95, 209, .35); border-color: var(--blue, #1f5fd1); }
.vsr-form [aria-invalid="true"] { border-color: #b3261e !important; }
.vsr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.vsr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vsr-chips label { position: relative; }
.vsr-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vsr-chips span { display: inline-block; padding: 9px 16px; border: 1px solid var(--gray-line, #bbb); border-radius: 999px; cursor: pointer; }
.vsr-chips input:checked + span { background: var(--ink, #111); color: #fff; border-color: var(--ink, #111); }
.vsr-chips input:focus-visible + span { outline: 3px solid var(--blue, #1f5fd1); outline-offset: 2px; }

.vsr-drop { position: relative; display: grid; place-items: center; min-height: 96px; border: 2px dashed var(--gray-line, #bbb); border-radius: 8px; cursor: pointer; text-align: center; padding: 16px; }
.vsr-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vsr-drop:has(input:focus-visible) { outline: 3px solid var(--blue, #1f5fd1); outline-offset: 2px; }
.vsr-files { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.vsr-files li { display: flex; align-items: center; gap: 8px; font-size: 14px; border: 1px solid var(--gray-line, #ccc); border-radius: 6px; padding: 4px 8px 4px 4px; max-width: 100%; }
.vsr-files img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; }
.vsr-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14em; }

.vsr-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; line-height: 1.8; cursor: pointer; }
.vsr-check input { width: 20px; height: 20px; margin-top: 4px; flex: none; }
.vsr-note { font-size: 14px; color: var(--gray-text, #555); margin: 0 0 12px; line-height: 1.8; }
.vsr-err { color: #b3261e; font-weight: 700; font-size: 14px; margin: -8px 0 14px; }
.vsr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vsr-submit { text-align: center; }
.vsr-submit__btn[disabled] { opacity: .6; pointer-events: none; }
.vsr-submit__msg { margin: 14px 0 0; font-weight: 700; min-height: 1.7em; }
.vsr-submit__msg.is-error { color: #b3261e; }

.vsr-done { background: #fff; border: 2px solid var(--ink, #111); border-radius: 12px; padding: clamp(24px, 4vw, 40px); }
.vsr-done:focus { outline: none; }
.vsr-done__title { font-family: var(--font-head); font-size: 24px; margin: 0 0 12px; }
.vsr-done p { line-height: 1.9; }

.vsr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vsr-list { padding-left: 1.4em; line-height: 1.9; list-style: disc; }
.vsr-list li { list-style: disc; }
.vsr-faq dt { font-weight: 700; margin-top: 16px; }
.vsr-faq dt::before { content: "Q. "; color: var(--blue, #1f5fd1); }
.vsr-faq dd { margin: 4px 0 0; line-height: 1.85; }

@media (max-width: 860px) {
  .vsr-facts { grid-template-columns: 1fr 1fr; }
  .vsr-facts li:nth-child(3) { border-left: 0; }
  .vsr-facts li:nth-child(n+3) { border-top: 1px solid var(--gray-line, #ccc); }
  .vsr-steps, .vsr-two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vsr-facts { grid-template-columns: 1fr; }
  .vsr-facts li { border-left: 0; border-top: 1px solid var(--gray-line, #ccc); }
  .vsr-facts li:first-child { border-top: 0; }
  .vsr-types, .vsr-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vsr-type { transition: none; } }

/* 回遊（2026-11-04） */
.vsr-back { margin: 0 0 20px; }
.vsr-back a, .vsr-two a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.vsr-done__actions, .vsr-next__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.vsr-sec--next { border-top: 1px solid var(--gray-line, #ccc); }
.vsr-next { text-align: center; }
.vsr-next__lead { margin: 0; line-height: 1.9; }
.vsr-next__actions { justify-content: center; }

/* ===== 視認性の強化（2026-11-04 社長指示：ボタン・入力枠を見やすく） =====
   枠は濃いグレー2px、選んだものは青＋チェック、入力中は太い青の輪。レイアウトは変えない */
.vsr { --vsr-line: #6b7480; --vsr-line-strong: #1b1f24; --vsr-pick: #1f5fd1; --vsr-pick-bg: #eaf1fd; --vsr-field-bg: #fbfbf8; }

/* 入力欄 */
.vsr-form input[type="text"], .vsr-form input[type="email"], .vsr-form input[type="tel"], .vsr-form input[type="url"], .vsr-form select, .vsr-form textarea {
  border: 2px solid var(--vsr-line); background: var(--vsr-field-bg); min-height: 52px; padding: 12px 14px; border-radius: 8px;
}
.vsr-form :is(input, select, textarea)::placeholder { color: #8a9099; }
.vsr-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea):hover { border-color: var(--vsr-line-strong); }
.vsr-form :is(input, select, textarea):focus-visible { outline: 3px solid rgba(31, 95, 209, .35); outline-offset: 1px; border-color: var(--vsr-pick); background: #fff; }
.vsr-form [aria-invalid="true"] { border-color: #b3261e !important; background: #fff6f5 !important; }
.vsr-form select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #1b1f24 50%), linear-gradient(135deg, #1b1f24 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.vsr-label { font-size: 16px; }

/* 型のカード */
.vsr-type { border: 2px solid var(--vsr-line); background: #fff; padding-top: 14px; }
.vsr-type:hover { border-color: var(--vsr-line-strong); }
.vsr-type:has(input:checked) { border-color: var(--vsr-pick); border-width: 3px; background: var(--vsr-pick-bg); box-shadow: 0 0 0 3px rgba(31, 95, 209, .18); }
.vsr-type::after { content: ""; position: absolute; top: 22px; right: 22px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: rgba(27, 31, 36, .55); }
.vsr-type:has(input:checked)::after { content: "✓"; background: var(--vsr-pick); color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; }
.vsr-type__name { font-size: 19px; }
.vsr-type__need { color: #3d444d; }

/* 選択チップ（時期・使いみち・掲載） */
.vsr-chips span { border: 2px solid var(--vsr-line); background: #fff; padding: 10px 18px; font-weight: 500; min-height: 46px; display: inline-flex; align-items: center; gap: 6px; }
.vsr-chips label:hover span { border-color: var(--vsr-line-strong); }
.vsr-chips input:checked + span { background: var(--vsr-pick); border-color: var(--vsr-pick); color: #fff; font-weight: 700; }
.vsr-chips input:checked + span::before { content: "✓"; }

/* 画像を選ぶ枠 */
.vsr-drop { border: 2px dashed var(--vsr-line); background: var(--vsr-field-bg); min-height: 110px; }
.vsr-drop:hover { border-color: var(--vsr-pick); background: var(--vsr-pick-bg); }
.vsr-drop__text { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 20px; border: 2px solid var(--vsr-line-strong); border-radius: 999px; background: #fff; }
.vsr-drop__text::before { content: "+"; font-size: 20px; line-height: 1; }
.vsr-files li { border: 2px solid var(--vsr-line); background: #fff; }
.vsr-files button { font: inherit; font-size: 14px; font-weight: 700; padding: 4px 12px; border: 2px solid var(--vsr-line-strong); border-radius: 999px; background: #fff; cursor: pointer; }
.vsr-files button:hover { background: #1b1f24; color: #fff; }

/* 同意のチェック */
.vsr-check { padding: 12px 14px; border: 2px solid var(--vsr-line); border-radius: 8px; background: #fff; }
.vsr-check:has(input:checked) { border-color: var(--vsr-pick); background: var(--vsr-pick-bg); }
.vsr-check input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--vsr-pick); cursor: pointer; }

/* 送信ボタン */
.vsr-submit { padding-top: 8px; }
.vsr-submit__btn { min-width: min(100%, 360px); min-height: 64px; font-size: 18px; border: 3px solid #1b1f24 !important; box-shadow: 0 4px 0 #1b1f24; }
.vsr-submit__btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #1b1f24; }
.vsr-submit__btn:focus-visible { outline: 3px solid var(--vsr-pick); outline-offset: 4px; }

/* 戻る・相談ボタン（白抜き）も枠を太く */
.vsr .btn--outline { border-width: 2px; }
.vsr-back a { font-weight: 700; }

/* エラー文字を目立たせる */
.vsr-err { background: #fff0ee; border-left: 0; padding: 6px 10px; border-radius: 6px; margin-top: -6px; }
.vsr-err::before { content: "！ "; }

@media (prefers-reduced-motion: reduce) { .vsr-submit__btn:hover { transform: none; } }
.vsr-form textarea { min-height: 96px; }
@media (max-width: 600px) { .vsr-form textarea { min-height: 120px; } }

/* ペルソナ向けメッセージと見本（2026-11-05） */
.vsr-open__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; margin-bottom: 28px; }
.vsr-hero { margin: 0; }
.vsr-hero__video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--ink, #17201e); display: block; box-shadow: 0 18px 40px rgba(23, 32, 30, .18); }
.vsr-hero figcaption { margin-top: 10px; font-size: 15px; color: var(--gray-text, #555); }
.vsr-msg { background: var(--ink, #17201e); color: #fff; }
.vsr-msg .vs-wrap { padding-top: 24px; padding-bottom: 24px; }
.vsr-msg__eyebrow { margin: 0 0 10px; color: var(--lime, #c9e000); font-weight: 700; letter-spacing: .04em; }
.vsr-msg__title { font-family: var(--font-head); font-size: clamp(28px, 4.4vw, 46px); line-height: 1.35; margin: 0 0 22px; }
.vsr-msg__lead { font-size: 17px; line-height: 2; margin: 0 0 16px; max-width: 46em; }
.vsr-promise { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: pr; }
.vsr-promise li { border: 2px solid var(--lime, #c9e000); border-radius: 12px; padding: 20px; line-height: 1.8; counter-increment: pr; }
.vsr-promise li::before { content: counter(pr); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime, #c9e000); color: var(--ink, #17201e); font-weight: 900; margin-bottom: 10px; }
.vsr-promise b { display: block; font-size: 19px; margin-bottom: 4px; color: var(--lime, #c9e000); }
.vsr-samples__note { margin-bottom: 18px; }
@media (max-width: 860px) {
  .vsr-open__grid { grid-template-columns: 1fr; }
  .vsr-promise { grid-template-columns: 1fr; }
}
.vsr-hero__video, .vs-sample video { height: auto; }
.vsr-open__grid .vsr-open__title { font-size: clamp(30px, 3.6vw, 46px); }

/* ===== 選ぶのが楽しくなる動き（2026-11-05 社長「ふわっと浮いてコロコロっと」） ===== */
@keyframes vsrRoll {
  0%   { transform: translateY(0) rotate(0); }
  28%  { transform: translateY(-14px) rotate(-3deg); }
  46%  { transform: translateY(-11px) rotate(2.6deg); }
  63%  { transform: translateY(-12px) rotate(-1.6deg); }
  80%  { transform: translateY(-11px) rotate(.8deg); }
  100% { transform: translateY(-11px) rotate(0); }
}
@keyframes vsrPop {
  0% { transform: scale(1); } 35% { transform: scale(1.045); } 60% { transform: scale(.985); } 100% { transform: scale(1); }
}
@keyframes vsrHop {
  0% { transform: translateY(0); } 40% { transform: translateY(-6px); } 70% { transform: translateY(1px); } 100% { transform: translateY(-2px); }
}
@keyframes vsrTick { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
/* 選んだ瞬間：ポンッと弾む（タッチ端末でも出る） */
.vsr-type:has(input:checked) { animation: vsrPop .45s ease-out; }
.vsr-type:has(input:checked)::after { animation: vsrTick .4s ease-out; }
.vsr-chips input:checked + span { animation: vsrPop .4s ease-out; }
.vsr-check:has(input:checked) { animation: vsrPop .35s ease-out; }
/* マウスを乗せた時：ふわっと浮いて、コロコロッと揺れて止まる */
@media (hover: hover) and (pointer: fine) {
  .vsr-type { transition: box-shadow .25s; }
  .vsr-type:hover { animation: vsrRoll .75s cubic-bezier(.3, .7, .4, 1) forwards; box-shadow: 0 18px 30px rgba(23, 32, 30, .16); z-index: 2; }
  .vsr-type:hover .vsr-type__img img { transform: scale(1.06); }
  .vsr-type__img img { transition: transform .5s ease; }
  .vsr-chips label:hover span { animation: vsrHop .35s ease-out forwards; }
  .vsr-drop:hover .vsr-drop__text { animation: vsrHop .35s ease-out forwards; }
  .vsr-submit__btn:hover { animation: vsrRoll .6s cubic-bezier(.3, .7, .4, 1) forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .vsr-type, .vsr-type:hover, .vsr-type::after, .vsr-chips span, .vsr-check, .vsr-drop__text, .vsr-submit__btn { animation: none !important; }
  .vsr-type__img img { transition: none; }
}
