/* =========================================================
   動画制作ページ（page-video） v2 — 「編集ソフト」のつくり
   ・色／書体／ボタン／ヘッダー／フッター／お問い合わせ帯はメインサイトと同じ
   ・並べ方だけ変える：再生画面・左のチャプター・トラック・タイムライン
   ・メインサイトの大きな英字（白抜き）・2×2カード・横送りの流れは使わない
   角丸：12px（パネル）/ 8px（小さな面）/ 999px（ボタン）
   等幅（--font-mono）は英数字のラベルだけ。日本語には使わない
   ========================================================= */

.vs { --panel: var(--black); --panel-2: #1c2624; --line-dark: rgba(255,255,255,.12); --rail-w: 220px; }
.vs-wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }

/* ---------- ページの頭 ---------- */
.vs-open {
  padding-top: calc(var(--header-h) + clamp(36px, 7vh, 80px));
  padding-bottom: clamp(48px, 8vh, 96px);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box;
  border-bottom: 1px solid var(--gray-line);
}
.vs-crumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(24px, 4vh, 40px);
  font-size: .85rem; color: var(--gray-text);
}
.vs-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.vs-crumb a:hover, .vs-crumb a:focus-visible { color: var(--blue-deep); }

.vs-open__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.vs-rec {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em;
  color: var(--gray-text);
}
.vs-rec__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-pale); }
.vs-open__title {
  margin-top: 18px;
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.35; letter-spacing: .02em;
}
.vs-open__title .paint-word { color: var(--blue); }
.vs-open .paint-word .pw-stroke path { stroke-dashoffset: 0; }
.vs-open__lead { margin-top: 22px; max-width: 32em; font-size: clamp(1rem, 1.25vw, 1.06rem); }
.vs-open__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* 再生画面（ビューア） */
.vs-viewer { margin: 0; background: var(--panel); border-radius: 12px; padding: 10px 10px 0; color: #fff; }
.vs-viewer__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px 10px; font-size: .82rem;
}
.vs-viewer__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.vs-viewer__name { font-weight: 700; }
.vs-viewer__tag { margin-left: auto; padding: 1px 8px; border: 1px solid var(--line-dark); border-radius: 8px; font-size: .74rem; color: rgba(255,255,255,.7); }
.vs-viewer__screen { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.vs-viewer__video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 撮影の安全枠（四隅のかぎ括弧） */
.vs-viewer__safe {
  position: absolute; inset: 6%; pointer-events: none;
  --c: rgba(255,255,255,.55);
  background:
    linear-gradient(var(--c),var(--c)) top left / 18px 2px no-repeat,
    linear-gradient(var(--c),var(--c)) top left / 2px 18px no-repeat,
    linear-gradient(var(--c),var(--c)) top right / 18px 2px no-repeat,
    linear-gradient(var(--c),var(--c)) top right / 2px 18px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / 18px 2px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right / 2px 18px no-repeat;
}
.vs-viewer__controls { display: flex; align-items: center; gap: 14px; padding: 12px 6px; }
.vs-viewer__play {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--ink);
  transition: transform .2s ease;
}
.vs-viewer__play:hover { transform: scale(1.08); }
.vs-viewer__play span { display: block; width: 12px; height: 12px; }
.vs-viewer__play[data-state="playing"] span { border-left: 4px solid currentColor; border-right: 4px solid currentColor; width: 12px; }
.vs-viewer__play[data-state="paused"] span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.vs-viewer__track { position: relative; flex: 1; height: 6px; border-radius: 999px; background: var(--line-dark); }
.vs-viewer__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.vs-viewer__mark { position: absolute; top: -4px; width: 2px; height: 14px; background: rgba(255,255,255,.5); }
.vs-viewer__tc { font-family: var(--font-mono); font-size: .82rem; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.vs-viewer__cap { padding: 0 6px 14px; font-size: .8rem; color: rgba(255,255,255,.66); line-height: 1.7; }

/* 仕様の帯 */
.vs-spec {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(32px, 5vh, 52px) 0 0;
  border: 1px solid var(--gray-line); border-radius: 12px; overflow: hidden;
}
.vs-spec__item { padding: 16px 20px; border-right: 1px solid var(--gray-line); }
.vs-spec__item:last-child { border-right: 0; }
.vs-spec dt { font-size: .8rem; color: var(--gray-text); letter-spacing: .08em; }
.vs-spec dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: .98rem; }
.vs-spec b { font-family: var(--font-en); font-weight: 400; font-size: 1.8em; line-height: 1; margin: 0 .06em; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.vs-spec small { font-size: .74em; font-weight: 500; }

/* ---------- 本編：チャプター＋中身 ---------- */
.vs-shell {
  width: min(100% - 48px, 1240px); margin-inline: auto;
  display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.vs-rail { position: relative; border-right: 1px solid var(--gray-line); }
.vs-rail__inner { position: sticky; top: calc(var(--header-h) + 28px); padding: 40px 20px 40px 0; }
.vs-rail__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; color: var(--gray-text);
  padding-bottom: 12px; border-bottom: 1px solid var(--gray-line);
}
.vs-rail__tc { font-size: .9rem; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vs-rail__list { margin: 10px 0 0; padding: 0; list-style: none; }
.vs-rail__item a {
  display: grid; grid-template-columns: 3.4em 1fr; gap: 8px; align-items: baseline;
  padding: 7px 8px; border-radius: 8px;
  font-size: .86rem; line-height: 1.5; color: var(--gray-text);
  transition: background-color .2s ease, color .2s ease;
}
.vs-rail__item a:hover, .vs-rail__item a:focus-visible { background: var(--blue-pale); color: var(--ink); }
.vs-rail__itc { font-family: var(--font-mono); font-size: .76rem; font-variant-numeric: tabular-nums; }
.vs-rail__item.is-current a { background: var(--ink); color: #fff; }
.vs-rail__item.is-current .vs-rail__itc { color: var(--lime); }
.vs-rail__meter { position: relative; height: 120px; width: 4px; margin: 18px 0 0 8px; border-radius: 999px; background: var(--gray-line); overflow: hidden; }
.vs-rail__meter span { position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: top; }
.vs-rail__note { margin-top: 12px; font-size: .76rem; color: var(--gray-text); line-height: 1.6; }

.vs-body { min-width: 0; padding-bottom: clamp(40px, 8vh, 96px); }

/* 章（セクション）共通 */
.vs-ch { padding-top: clamp(64px, 11vh, 120px); scroll-margin-top: calc(var(--header-h) + 16px); }
.vs-ch__head { margin-bottom: clamp(26px, 4vh, 40px); }
.vs-ch__no {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; color: var(--blue-deep);
}
.vs-ch__no::after { content: ""; width: 48px; height: 2px; background: var(--lime); }
.vs-ch__title {
  margin-top: 10px;
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.35; letter-spacing: .02em;
}
.vs-ch__desc { margin-top: 14px; max-width: 40em; color: var(--gray-text); }
.vs-ch__lead { margin-top: 24px; max-width: 40em; font-weight: 500; }
.vs-note { margin-top: 18px; font-size: .86rem; color: var(--gray-text); }

/* CH.01 字幕の帯 */
.vs-subs {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(17,24,26,0) 30%, rgba(17,24,26,.06)),
    repeating-linear-gradient(90deg, var(--paper-warm) 0 2px, transparent 2px 80px),
    var(--blue-pale);
}
.vs-sub span {
  display: inline-block;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(17,24,26,.88); color: #fff;
  font-weight: 500; font-size: clamp(.95rem, 1.3vw, 1.05rem); line-height: 1.7;
}

/* CH.02 トラック */
.vs-tracks { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel); }
.vs-track { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.vs-track__label {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 14px; border-radius: 8px; background: var(--panel-2); color: #fff;
}
.vs-track__id { font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: .08em; color: var(--lime); }
.vs-track__main { font-size: .82rem; color: rgba(255,255,255,.72); line-height: 1.5; }
.vs-track__clip {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border-radius: 8px; overflow: hidden; background: var(--paper);
  border-left: 0; outline: 2px solid transparent; outline-offset: -2px;
  transition: outline-color .2s ease;
}
.vs-track__clip:hover { outline-color: var(--lime); }
.vs-track--v1 .vs-track__clip { outline-color: var(--blue); }
.vs-track__thumb { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.vs-track__body { padding: clamp(16px, 2vw, 26px); }
.vs-track__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4; }
.vs-track__for { margin-top: 6px; font-size: .92rem; color: var(--gray-text); }
.vs-track__meta { margin-top: 12px; padding: 0; list-style: none; }
.vs-track__meta li { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--gray-line); font-size: .92rem; line-height: 1.7; }
.vs-track__meta span { font-weight: 700; color: var(--blue-deep); }
.vs-track__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--lime);
}
.vs-track__link::after { content: "→"; transition: transform .2s ease; }
.vs-track__link:hover::after, .vs-track__link:focus-visible::after { transform: translateX(4px); }

/* CH.03 撮ったまま → 完成 */
.vs-ba { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 8px; }
.vs-ba__item { margin: 0; }
.vs-ba__item img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.vs-ba__item:not(.vs-ba__item--after) img { filter: saturate(.85); }
.vs-ba__item--after img { outline: 3px solid var(--blue); outline-offset: -3px; }
.vs-ba__label { margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.vs-ba__item--after .vs-ba__label { color: var(--blue-deep); }
.vs-ba__arrow { justify-self: center; width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent var(--ink); margin-top: 28px; }
.vs-layers { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: ly; border-top: 1px solid var(--gray-line); }
.vs-layers li { display: grid; grid-template-columns: 7em 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-line); }
.vs-layers__k { font-family: var(--font-head); font-weight: 700; }

/* CH.04 選ばれる理由：重ねたレイヤー */
.vs-reasons { margin: 0; padding: 0; list-style: none; }
.vs-reason {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px;
  padding: 22px 24px; background: var(--paper);
  border: 1px solid var(--gray-line); border-radius: 12px;
}
.vs-reason + .vs-reason { margin-top: -1px; }
.vs-reason:nth-child(2) { margin-left: 3%; }
.vs-reason:nth-child(3) { margin-left: 6%; }
.vs-reason:nth-child(4) { margin-left: 9%; }
.vs-reason__no { font-family: var(--font-en); font-size: 2.2rem; line-height: 1; color: var(--blue); }
.vs-reason__title { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.5; }
.vs-reason__text { margin-top: 6px; font-size: .95rem; color: var(--gray-text); line-height: 1.85; }

/* CH.05 素材置き場 */
.vs-bin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.vs-bin__item { border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px solid var(--gray-line); }
.vs-bin__item--wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.vs-bin__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vs-bin__item--wide img { flex: 1; aspect-ratio: auto; min-height: 0; }
.vs-bin__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; font-family: var(--font-head); font-weight: 700; font-size: .98rem; border-top: 1px solid var(--gray-line); }
.vs-bin__name span { font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--gray-text); }
.vs-bin__item--wide .vs-bin__name { background: var(--ink); color: #fff; border-top: 0; }
.vs-bin__item--wide .vs-bin__name span { color: rgba(255,255,255,.72); }

/* CH.06 料金 */
.vs-price { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.vs-price__hero { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: clamp(20px, 3vw, 32px); background: var(--lime-pale); border-bottom: 2px solid var(--ink); }
.vs-price__unit { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.vs-price__num { display: flex; align-items: baseline; gap: 6px; }
.vs-price__yen { font-family: var(--font-en); font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.vs-price__suffix { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.vs-price__suffix small { font-size: .7em; font-weight: 500; }
.vs-price__table-wrap { overflow-x: auto; }
.vs-ptable { width: 100%; min-width: 600px; border-collapse: collapse; background: var(--paper); }
.vs-ptable th, .vs-ptable td { padding: 12px 16px; border-bottom: 1px solid var(--gray-line); text-align: center; vertical-align: middle; }
.vs-ptable thead th { font-family: var(--font-head); font-weight: 700; font-size: .92rem; background: var(--paper-warm); }
.vs-ptable thead th:first-child, .vs-ptable tbody th { text-align: left; font-weight: 400; }
.vs-ptable tbody tr:last-child th, .vs-ptable tbody tr:last-child td { border-bottom: 0; }
.vs-ptable td { font-weight: 500; white-space: nowrap; }
.vs-ptable td:nth-child(2) { background: rgba(18,160,133,.06); }
/* 11/06 先行キャンペーン・2本目から・縦型ショート */
.vs-spec__camp { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .74em; font-weight: 700; vertical-align: middle; }
.vs-price__deals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 2px solid var(--ink); }
.vs-deal { padding: clamp(18px, 2.4vw, 26px); background: var(--paper, #fff); }
.vs-deal + .vs-deal { border-left: 1px solid var(--gray-line); }
.vs-deal--camp { background: var(--ink); color: #fff; }
.vs-deal__tag { display: inline-block; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px; border: 2px solid currentColor; font-family: var(--font-head); font-weight: 700; font-size: .86rem; }
.vs-deal--camp .vs-deal__tag { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.vs-deal__num { margin: 4px 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.vs-deal__num span { font-family: var(--font-en); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3rem); line-height: 1; margin-right: 4px; font-variant-numeric: tabular-nums; color: var(--blue-deep); }
.vs-deal--camp .vs-deal__num span { color: var(--lime); }
.vs-deal__num small { font-size: .72em; font-weight: 500; }
.vs-deal__text { margin: 0; font-size: 1rem; line-height: 1.8; }
.vs-short { margin-top: 18px; padding: clamp(20px, 3vw, 32px); border: 2px solid var(--ink); border-radius: 12px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 32px; }
.vs-short__head { grid-column: 1 / -1; }
.vs-short__kicker { margin: 0 0 4px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--blue-deep); }
.vs-short__title { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.vs-short__lead { margin: 0; line-height: 1.85; }
.vs-short__table th small { display: block; font-size: .82rem; color: var(--gray-text); }
.vs-short__camp th, .vs-short__camp td { font-weight: 700; }
.vs-short__camp td span { padding: 0 4px; background: linear-gradient(transparent 55%, var(--lime) 55%); }
.vs-short__spec { margin: 0; }
@media (max-width: 760px) {
  .vs-price__deals { grid-template-columns: 1fr; }
  .vs-deal + .vs-deal { border-left: 0; border-top: 1px solid var(--gray-line); }
  .vs-short { grid-template-columns: 1fr; }
}
.vs-price__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.vs-box { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--gray-line); border-radius: 12px; background: var(--paper); }
.vs-box__title { margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.vs-otable { width: 100%; border-collapse: collapse; }
.vs-otable th, .vs-otable td { padding: 10px 0; border-bottom: 1px solid var(--gray-line); text-align: left; font-weight: 400; vertical-align: top; }
.vs-otable td { text-align: right; padding-left: 12px; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.vs-dots { margin: 0; padding: 0; list-style: none; }
.vs-dots li { position: relative; padding: 9px 0 9px 1.2em; border-bottom: 1px solid var(--gray-line); }
.vs-dots li::before { content: ""; position: absolute; left: .15em; top: 1.3em; width: .5em; height: .5em; border-radius: 50%; background: var(--blue); }

/* CH.07 タイムライン */
.vs-tl { padding: 14px 14px 18px; border-radius: 12px; background: var(--panel); color: #fff; overflow-x: auto; }
.vs-tl__ruler {
  height: 22px; min-width: 760px; margin-bottom: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, transparent 1px 100px) bottom / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 20px) bottom / 100% 6px no-repeat;
  border-bottom: 1px solid var(--line-dark);
}
.vs-tl__track { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr 1fr; gap: 6px; min-width: 760px; margin: 0; padding: 0; list-style: none; }
.vs-tl__clip { padding: 14px; border-radius: 8px; background: var(--panel-2); border-top: 4px solid var(--blue); }
.vs-tl__clip--long { border-top-color: var(--lime); }
.vs-tl__step { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; color: var(--lime); }
.vs-tl__title { margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.vs-tl__text { margin-top: 6px; font-size: .86rem; line-height: 1.75; color: rgba(255,255,255,.78); }

/* CH.08 よくある質問 */
.vs-faq { border-top: 2px solid var(--ink); }
.vs-faq__item { border-bottom: 1px solid var(--gray-line); }
.vs-faq__q {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 18px 48px 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.04rem;
}
.vs-faq__q::-webkit-details-marker { display: none; }
.vs-faq__q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink),var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink),var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.vs-faq__item[open] .vs-faq__q::after { transform: rotate(45deg); }
.vs-faq__q:hover, .vs-faq__q:focus-visible { color: var(--blue-deep); }
.vs-faq__a { padding: 0 0 20px; color: var(--gray-text); }

/* スマホ用の再生バー（PCでは出さない） */
.vs-mbar { display: none; }

.vs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 下書きの印（公開前に削除） */
.vs-draft {
  position: fixed; right: 16px; bottom: 16px; z-index: 5000;
  padding: 8px 14px; font-size: .82rem; font-weight: 700;
  color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 8px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .vs-shell { grid-template-columns: 1fr; }
  .vs-rail { display: none; }
  .vs-mbar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--panel); color: #fff; font-size: .82rem;
    transform: translateY(110%); transition: transform .3s ease;
  }
  .vs-past-open .vs-mbar { transform: translateY(0); }
  .vs-mbar__fill { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
  .vs-mbar__tc { font-family: var(--font-mono); color: var(--lime); font-variant-numeric: tabular-nums; }
  .vs-mbar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vs-draft { bottom: 60px; }
}
@media (max-width: 900px) {
  .vs-open__grid { grid-template-columns: 1fr; }
  .vs-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-spec__item:nth-child(2) { border-right: 0; }
  .vs-spec__item:nth-child(-n+2) { border-bottom: 1px solid var(--gray-line); }
  .vs-track { grid-template-columns: 1fr; }
  .vs-track__label { flex-direction: row; align-items: baseline; padding: 10px 14px; }
  .vs-track__clip { grid-template-columns: 1fr; }
  .vs-ba { grid-template-columns: 1fr; }
  .vs-ba__arrow { transform: rotate(90deg); margin: 0; }
  .vs-bin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-price__more { grid-template-columns: 1fr; }
  .vs-reason:nth-child(n) { margin-left: 0; }
}
@media (max-width: 640px) {
  .vs-wrap, .vs-shell { width: min(100% - 32px, 1240px); }
  .vs-open__actions .btn { width: 100%; }
  .vs-bin { grid-template-columns: 1fr; }
  .vs-bin__item--wide { grid-column: auto; grid-row: auto; }
  .vs-bin__item--wide img { aspect-ratio: 16 / 9; }
  .vs-layers li { grid-template-columns: 1fr; gap: 2px; }
  .vs-reason { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .vs-tl { overflow: visible; }
  .vs-tl__ruler { display: none; }
  .vs-tl__track { grid-template-columns: 1fr; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-mbar, .vs-track__link::after, .vs-faq__q::after, .vs-viewer__play { transition: none; }
}

/* ---- v2 調整 ---- */
/* メインサイトの背景の網目はこのページでは出さない（見た目の差をはっきりさせる） */
.page-video .page-net { display: none; }
/* トラックのサムネイルは16:9のまま、上下中央に置く（切れないように） */
.vs-track__clip { align-items: center; background: var(--paper); }
.vs-track__thumb { height: auto; align-self: center; margin: 12px 0 12px 12px; border-radius: 6px; width: calc(100% - 12px); }
@media (max-width: 900px) { .vs-track__thumb { margin: 0; width: 100%; border-radius: 0; } }
/* スマホの再生バーは main の外にあるので、テーマの色を直接指定 */
.vs-mbar { background: var(--black); }
@media (max-width: 640px) {
  .vs-ptable { min-width: 0; font-size: .86rem; }
  .vs-ptable th, .vs-ptable td { padding: 10px 6px; }
  .vs-ptable thead th { font-size: .78rem; line-height: 1.4; }
  .vs-ptable tbody th { width: 44%; }
  .vs-ptable td { white-space: normal; }
}

/* 無料試作への入口（2026-11-04） */
.vs-open__sample { margin: 14px 0 0; font-size: 16px; }
.vs-open__sample a { color: inherit; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.vs-track__link--sample { margin-top: 6px; }

/* 冒頭10秒の見本（2026-11-04：自社・架空の題材の見本） */
.vs-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vs-sample { margin: 0; }
.vs-sample video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--ink); display: block; }
.vs-sample figcaption { margin-top: 10px; line-height: 1.7; }
.vs-sample figcaption b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.vs-samples__cta { margin: 28px 0 0; text-align: center; }
@media (max-width: 860px) { .vs-samples { grid-template-columns: 1fr; } }

/* 左のチャプター（時間配分）とスマホ下の再生バーを廃止（2026-11-05 営業チームの指摘・社長判断）→ 本文を1段に */
.vs-shell { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
.vs-rail, .vs-mbar { display: none !important; }

/* 2026-11-05 営業チームの指摘を反映 */
/* ページの頭：ボタンを「予約」と「試作」の2つに、デザイン一覧は下に控えめに */
.vs-open__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.vs-open__sub { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.vs-open__note { font-size: 14px; color: var(--gray-text); }
.vs-open__sample { display: none; }

/* 見本動画：動画の部分（黒）と、名前・説明の部分（明るい色）を分ける */
.vs-viewer { background: var(--paper-warm, #f8fbfa); color: var(--ink); border: 1px solid var(--gray-line); padding: 12px 12px 0; }
.vs-viewer__bar { color: var(--ink); }
.vs-viewer__name { font-size: .92rem; }
.vs-viewer__tag { color: var(--gray-text); border-color: var(--gray-line); }
.vs-viewer__screen { border-radius: 10px 10px 0 0; }
.vs-viewer__controls { background: var(--panel); color: #fff; border-radius: 0 0 10px 10px; padding: 12px 12px; }
.vs-viewer__cap { color: var(--gray-text); padding: 12px 4px 14px; font-size: .84rem; }
.vs-viewer__safe { display: none; }

/* 無料試作への丸いフローティングCTA */
.vs-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 132px; height: 132px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--lime); color: var(--ink); text-decoration: none; text-align: center;
  border: 3px solid var(--ink); box-shadow: 0 10px 24px rgba(23, 32, 30, .28);
  opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.vs-past-open .vs-fab { opacity: 1; transform: none; pointer-events: auto; }
.vs-fab:hover, .vs-fab:focus-visible { transform: scale(1.06); }
.vs-fab:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.vs-fab__small { font-size: 11px; font-weight: 700; }
.vs-fab__big { font-family: var(--font-head); font-size: 16px; font-weight: 900; line-height: 1.3; }
.vs-fab__arrow { font-weight: 900; font-size: 15px; }
.vs-fab__ring { position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--lime); animation: vsFabPulse 2.4s ease-out infinite; }
@keyframes vsFabPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 860px) {
  .vs-fab { width: 104px; height: 104px; right: 14px; bottom: 14px; }
  .vs-fab__big { font-size: 13px; }
  .vs-fab__small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .vs-fab, .vs-fab__ring { transition: none; animation: none; } }

/* ページの頭の背景：ごく薄い編集タイムライン（2026-11-05 社長「映像を作っている感じの遊び心」） */
.vs-open { position: relative; overflow: hidden; }
.vs-open > .vs-wrap { position: relative; z-index: 1; }
.vs-bgtl { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; pointer-events: none; z-index: 0;
  opacity: .16; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 85%, transparent); }
.vs-bgtl__ruler { height: 18px; margin-bottom: 10px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 40px), repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px);
  background-size: 100% 18px, 100% 8px; background-repeat: repeat-x; background-position: 0 0, 0 10px; }
.vs-bgtl__row { height: 46px; margin-bottom: 10px; overflow: hidden; }
.vs-bgtl__lane { display: flex; width: max-content; height: 100%; animation: vsBgtl var(--d, 60s) linear infinite; }
.vs-bgtl__clip { position: relative; flex: none; height: 100%; border-radius: 8px; }
.vs-bgtl__clip--v { background: var(--blue); }
.vs-bgtl__clip--t { background: var(--lime); height: 70%; align-self: center; }
.vs-bgtl__clip--a { background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 7px); height: 60%; align-self: center; border-radius: 4px; }
.vs-bgtl__key { position: absolute; top: 50%; left: 30%; width: 12px; height: 12px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); animation: vsBgtlKey 3.2s ease-in-out infinite; }
.vs-bgtl__head { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--ink); animation: vsBgtlHead 14s linear infinite; }
.vs-bgtl__head::before { content: ""; position: absolute; top: 0; left: -7px; border: 8px solid transparent; border-top: 12px solid var(--ink); }
@keyframes vsBgtl { to { transform: translateX(-50%); } }
@keyframes vsBgtlHead { from { left: -2%; } to { left: 102%; } }
@keyframes vsBgtlKey { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 860px) { .vs-bgtl { height: 40%; opacity: .12; } .vs-bgtl__row { height: 30px; margin-bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .vs-bgtl__lane, .vs-bgtl__head, .vs-bgtl__key { animation: none; } }

/* 背景のタイムラインは下の方に寄せ、本文の後ろを避ける／注記は意味の切れ目で改行 */
.vs-bgtl { height: 34%; opacity: .11; }
.vs-open__note span { display: inline-block; }
.vs-open__note span + span::before { content: "・"; }
@media (max-width: 860px) { .vs-open__note span { display: block; } .vs-open__note span + span::before { content: none; } }
.vs-spec { position: relative; z-index: 1; background: var(--paper, #fff); }
.vs-spec__item { background: var(--paper, #fff); }

/* ===== 遊び心のある動き（2026-11-05 社長「ふわっと浮いてコロコロっと」をサービスページにも） ===== */
@keyframes vsRoll {
  0%   { transform: translateY(0) rotate(0); }
  28%  { transform: translateY(-10px) rotate(-1.6deg); }
  46%  { transform: translateY(-8px) rotate(1.3deg); }
  63%  { transform: translateY(-9px) rotate(-.8deg); }
  80%  { transform: translateY(-8px) rotate(.4deg); }
  100% { transform: translateY(-8px) rotate(0); }
}
@media (hover: hover) and (pointer: fine) {
  .vs-track__clip, .vs-sample, .vs-bin__item, .vs-reason { transition: box-shadow .25s; }
  .vs-track__clip:hover, .vs-sample:hover, .vs-bin__item:hover { animation: vsRoll .75s cubic-bezier(.3, .7, .4, 1) forwards; box-shadow: 0 18px 32px rgba(23, 32, 30, .18); position: relative; z-index: 2; }
  .vs-sample { border-radius: 12px; }
  .vs-bin__item img, .vs-track__thumb { transition: transform .5s ease; }
  .vs-bin__item:hover img, .vs-track__clip:hover .vs-track__thumb { transform: scale(1.05); }
  /* 見本動画は、乗せると再生ボタンが「どうぞ」と弾む */
  .vs-sample:hover figcaption b { animation: vsHop .4s ease-out; }
  .vs-open__actions .btn:hover, .vs-samples__cta .btn:hover { animation: vsRoll .6s cubic-bezier(.3, .7, .4, 1) forwards; }
}
@keyframes vsHop { 0% { transform: translateY(0); } 40% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
.vs-sample figcaption b { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .vs-track__clip, .vs-sample, .vs-bin__item, .vs-sample figcaption b, .vs-open__actions .btn, .vs-samples__cta .btn { animation: none !important; }
  .vs-bin__item img, .vs-track__thumb { transition: none; }
}
