/* Repro Booster メディア自動軽量化：容量チェッカー
   マウント要素 #vo-size-checker の中だけで使うクラス（接頭辞 vo-）*/

.vo-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0; }

.vo-input {
  width: min(460px, 100%);
  padding: 13px 14px;
  border: 1px solid #D9DBE0;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: #333744;
}

.vo-btn {
  padding: 13px 30px;
  border: 1px solid #FF3E6A;
  border-radius: 4px;
  background: #FF3E6A;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.vo-btn:disabled { opacity: .5; cursor: wait; }

.vo-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
}
.vo-loading.is-shown { display: flex; }

.vo-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #E3E4E8;
  border-top-color: #2378bd;
  border-radius: 50%;
  animation: vo-spin .8s linear infinite;
  flex: none;
}

@keyframes vo-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .vo-spinner { animation-duration: 2.4s; }
}

.vo-status {
  margin: 12px 0 0;
  min-height: 1.5em;
  text-align: center;
  font-size: 14px;
  color: #73767C;
}
.vo-status.is-error { color: #C0392B; }

.vo-result { display: none; margin: 28px auto 0; max-width: 1000px; }
.vo-result.is-shown { display: block; }

.vo-target {
  margin: 0 0 6px;
  text-align: center;
  font-size: 14px;
  color: #73767C;
  word-break: break-all;
}

.vo-total { margin: 0 0 18px; text-align: center; font-size: 20px; font-weight: 700; }
.vo-total-num { color: #2378bd; font-size: 30px; }

.vo-table { width: 100%; border-collapse: collapse; border: 1px solid #E3E4E8; }
.vo-cell { width: 50%; padding: 32px 8px; text-align: center; vertical-align: top; }
.vo-cell + .vo-cell { border-left: 1px solid #E3E4E8; }

.vo-cell-label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #73767C;
  letter-spacing: .08em;
}
.vo-cell-num { margin: 10px 0 0; line-height: 1.05; }
.vo-num { font-size: 64px; font-weight: 700; color: #2378bd; }
.vo-unit { font-size: 24px; font-weight: 700; color: #2378bd; }
.vo-cell-tail { margin: 12px 0 0; font-size: 18px; font-weight: 700; line-height: 1.5; }

.vo-note-strong { color: #333744; font-weight: 700; }

.vo-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: #73767C;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .vo-table, .vo-table tbody, .vo-table tr, .vo-cell { display: block; width: 100%; }
  .vo-cell + .vo-cell { border-left: 0; border-top: 1px solid #E3E4E8; }
  .vo-num { font-size: 52px; }
}

/* 結果の最後に出すCTA。見た目はテーマの section-entry-button に任せ、
   ここでは位置だけ決める（下部のCTAモジュールと同じ見た目になる） */
.vo-cta-wrap { margin: 30px 0 4px; }
.vo-cta-wrap .entry-button { margin: 0; text-align: center; }
.vo-cta-wrap[data-disabled="true"] a { pointer-events: none; }
/* ⚠️ 結果内CTAはリッチテキスト領域（.natural）の中に出るので、テーマの
   `.natural a:hover { color: #2378bd }` を拾ってホバー時だけ文字色が変わる。
   ページ下部のCTAモジュールは .natural の外にあり色が変わらないので、見た目がずれる。
   白で固定して揃える */
.vo-cta-wrap a,
.vo-cta-wrap a:link,
.vo-cta-wrap a:visited,
.vo-cta-wrap a:hover,
.vo-cta-wrap a:focus,
.vo-cta-wrap a:active { color: #fff; }

/* ───── before/after 比較スライダー（vo-cmp） ───── */
.vo-cmp-table { margin: 8px auto 0; }
.vo-cmp-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: #73767C; }
.vo-cmp-cap { margin: 10px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: #333744; }

.vo-cmp-stage {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: 4px; background: #11141a;
  cursor: ew-resize; touch-action: pan-y;   /* 縦スクロールは殺さない */
  /* 長押しで画像の保存メニュー・文字選択が出ると、操作を奪われる（スマホ） */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  --pos: 50%;
}
.vo-cmp-layer { position: absolute; inset: 0; }
.vo-cmp-layer img, .vo-cmp-layer video {
  width: 100%; height: 100%; object-fit: contain; display: block;
  /* ⚠️ 仕切りをドラッグしたときに画像そのものを掴ませない。
     pointer-events を切ると、ドラッグは常に stage 側が受ける */
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
/* 左＝元のまま / 右＝軽量化後。右側だけを仕切りより右に切り出す */
.vo-cmp-b { clip-path: inset(0 0 0 var(--pos)); }

/* ⚠️ つまみは「掴める・スクロールしない」領域にする（2026-10-13・スマホで動かない件）。
   以前は見た目だけ（pointer-events:none）で、指は下の画像に触れていた。画像は縦スクロールを
   許す（pan-y）ので、指が少しでも縦にぶれるとブラウザがスクロールと判断して pointercancel を
   送り、ドラッグが途中で切れる。つまみ（幅44px の透明な当たり判定）だけ touch-action:none にし、
   画像の他の部分は従来どおり縦スクロールを妨げない */
.vo-cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 1;
  width: 44px; margin-left: -22px;
  pointer-events: auto; touch-action: none; cursor: ew-resize;
  background: linear-gradient(to right, transparent 21px, #fff 21px, #fff 23px, transparent 23px);
}
.vo-cmp-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.35);
}
/* つまみの左右の矢印（掴めることが分かるように） */
.vo-cmp-handle::before {
  content: "\2039\00A0\00A0\203A"; position: absolute; top: 50%; left: 50%; z-index: 1;
  transform: translate(-50%, -52%);
  font-size: 18px; font-weight: 700; line-height: 1; color: #333744; white-space: nowrap;
  pointer-events: none;
}

.vo-cmp-tag {
  position: absolute; bottom: 10px; padding: 4px 10px; border-radius: 3px;
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6);
  pointer-events: none;
}
.vo-cmp-tag-l { left: 10px; }
.vo-cmp-tag-r { right: 10px; background: rgba(35,120,189,.85); }

/* 読み込み前のプレースホルダ */
.vo-cmp-stage.is-idle::before {
  content: "スクロールすると読み込みます";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #8a8f99; font-size: 13px;
}

@media (max-width: 767px) {
  .vo-cmp-table, .vo-cmp-table tbody, .vo-cmp-table tr, .vo-cmp-table td { display: block; width: 100% !important; }
  .vo-cmp-table td { padding: 0 0 28px !important; }
}

/* 拡大ボタンと拡大表示 */
.vo-cmp-zoom {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 5px 12px; border: 0; border-radius: 3px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer; line-height: 1.4;
}
.vo-cmp-zoom:hover { background: rgba(0,0,0,.8); }

.vo-cmp-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,20,26,.88); padding: 24px;
}
.vo-cmp-overlay-box { position: relative; width: min(1100px, 92vw); }
/* 拡大時は縦長に引き伸ばさず、画面の高さに収める */
.vo-cmp-stage-zoom { aspect-ratio: auto; height: min(78vh, 760px); cursor: ew-resize; }
.vo-cmp-overlay .vo-cmp-cap { color: #fff; }
.vo-cmp-close {
  position: absolute; top: -40px; right: 0; z-index: 2;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.vo-cmp-close:hover { background: rgba(255,255,255,.15); }

/* 自動再生が拒否されたときだけ出る再生ボタン */
.vo-cmp-play {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.9);
  cursor: pointer;
}
.vo-cmp-play::after {
  content: ""; position: absolute; top: 50%; left: 54%;
  margin: -11px 0 0 -7px;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #11141a;
}

/* スマホで動画の比較を静止画にしたときの案内 */
.vo-cmp-pcnote { margin: 4px 0 0; text-align: center; font-size: 12px; color: #73767C; }

/* SPだけ、本文（〜最大90％以上削減します。）と画像スライダーの間を空ける。
   PC で間を詰めるため行ごと上へ 65px 引き上げており、縦積みになる SP では本文に 5px 食い込んでいた
   （2026-10-13 実測）。テーマ側にも table の margin 指定があるので要素名を付けて詳細度を上げる */
@media (max-width: 768px) {
  table.vo-cmp-table { margin-top: 60px; }
}
