/* ==========================================================================
   OPCON LP - CV改善 v20260505 (firstview-engagement)
   作成日: 2026-05-05
   背景:
     - Microsoft Clarity 直近14日: /lp/webroot/ の **平均スクロール深度 15.97%**
       → ファーストビューしか見ていないユーザーが大半。
       → 価格優位・スクロール誘導をヒーロー上で完結させる必要あり。
     - tldv 3/26 合意 (Shohei氏 × 谷藤): "価格は比較で見せる" / "動画は muted 自動再生"
     - 既存 v3 (価格比較行 + Trust strip) は価格セクション以下に効く施策。
       v4 はそこへ到達する前段（hero）の改善に専念。
   このv4で追加:
     1. ヒーロー直下「ミニ比較バー」(.mv-mini-compare)
     2. スクロール誘導アローの強化 (.mv-scroll-hint--v4)
     3. ヒーロー動画 muted autoplay コンテナ (.hero-inline-video)
   ========================================================================== */

/* --- 1) ヒーロー直下 ミニ比較バー ---------------------------------------- */
.mv-mini-compare {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px auto 0;
  padding: 10px 12px;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d6e5d8;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 40, 20, 0.07);
  font-size: 12.5px;
  line-height: 1.35;
  color: #2c3e2f;
}
.mv-mini-compare__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 2px;
}
.mv-mini-compare__brand {
  font-size: 11px;
  color: #5a6b5d;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.mv-mini-compare__price {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e2f;
}
.mv-mini-compare__item--ours {
  background: linear-gradient(180deg, #e9faf0, #d4f5e0);
  border-radius: 6px;
  position: relative;
}
.mv-mini-compare__item--ours .mv-mini-compare__brand {
  color: #1abc54;
}
.mv-mini-compare__item--ours .mv-mini-compare__price {
  color: #1abc54;
  font-size: 16px;
}
.mv-mini-compare__item--ours::after {
  content: "最安";
  position: absolute;
  top: -7px;
  right: -4px;
  background: #ff6b35;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}
.mv-mini-compare__note {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 10.5px;
  color: #6b6b6b;
  text-align: center;
}

@media (max-width: 600px) {
  .mv-mini-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 9px 10px;
    font-size: 12px;
  }
  .mv-mini-compare__price { font-size: 13.5px; }
  .mv-mini-compare__item--ours .mv-mini-compare__price { font-size: 15px; }
}

/* --- 2) スクロール誘導アローの強化 -------------------------------------- */
.mv-scroll-hint--v4 {
  /* fix 2026-05-29: 親 .mv の text-align が start のため inline-flex だと
     左端に張り付いてしまっていた。display:flex + margin:auto + width:fit-content
     で確実に中央寄せ。 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 18px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px 6px;
  background: rgba(26, 188, 84, 0.12);
  border: 1px solid rgba(26, 188, 84, 0.35);
  border-radius: 24px;
  color: #1abc54;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mv-scroll-hint--v4:hover {
  background: rgba(26, 188, 84, 0.2);
  transform: translateY(2px);
}
.mv-scroll-hint--v4 .mv-scroll-hint__label {
  display: inline-block;
}
.mv-scroll-hint--v4 .mv-scroll-hint__sub {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: #2c8f43;
  margin-top: 2px;
}
.mv-scroll-hint--v4 .mv-scroll-arrow--v4 {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #1abc54;
  margin-top: 4px;
  animation: bounce-v4 1.6s ease-in-out infinite;
}
@keyframes bounce-v4 {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* --- 3) ヒーロー埋め込み動画 (muted autoplay) ---------------------------- */
.hero-inline-video {
  margin: 16px auto 0;
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 40, 20, 0.12);
  background: #000;
  position: relative;
}
.hero-inline-video__media {
  display: block;
  width: 100%;
  height: auto;
}
.hero-inline-video__caption {
  position: absolute;
  bottom: 6px;
  left: 8px;
  right: 8px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  text-align: center;
  pointer-events: none;
}
.hero-inline-video__unmute {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  z-index: 2;
}
.hero-inline-video__unmute:hover { background: rgba(0, 0, 0, 0.75); }

@media (max-width: 600px) {
  .hero-inline-video { max-width: 100%; margin-top: 12px; }
}
