/* ベース wrapper */
.videoWrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

/* 四辺にうっすらグラデーション縁取り（必要なければ削除可） */
.videoWrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #fbfbfb 0%, rgba(251, 251, 251, 0) 100%) top / 100% 188px no-repeat,
    linear-gradient(to top,   #fbfbfb 0%, rgba(251, 251, 251, 0) 100%) bottom / 100% 0px no-repeat,
    linear-gradient(to right, #fbfbfb 0%, rgba(251, 251, 251, 0) 100%) left / 18px 100% no-repeat,
    linear-gradient(to left,  #fbfbfb 0%, rgba(251, 251, 251, 0) 100%) right / 18px 100% no-repeat;
  pointer-events: none;
  z-index: 10;
}

/* PC 用 scrollVideo: スクロールに合わせて pin される */
.scrollVideo {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
  background: #fff;
}

/* オーバーレイ帯（色はユーザー CSS で上書き推奨） */
.overlayBar {
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 100%;
  height: 188px;
  pointer-events: none;
  z-index: 1000;
  margin-bottom: -24px;
  background: transparent;
}

/* セクション（高さは JS で設定） */
.videoSection {
  background: #fff;
  position: relative;
}

.mobileSection {
  height: 100vh;
  background: #fff;
}

.mobileVideo {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  background: #fff;
}

/* 初期状態は非表示（JS で切り替え） */
.desktopVersion,
.mobileVersion {
  display: none;
}

/* PC 幅では overlayBar を隠す（スマホ専用演出想定） */
@media (min-width: 768px) {
  .overlayBar {
    display: none;
  }
}

/* スマホ縦だけ少し右にずらす調整（必要なければ削除可） */
@media (max-width: 500px) and (orientation: portrait) and (hover: none) and (pointer: coarse) {
  .videoWrapper {
    margin-left: -30px;
  }
}

/* 768px 以下の PC 風画面でフルワイド化 */
@media (max-width: 768px) {
  .scroll-video-container:not(.alignfull) {
    transform: translate(-30px, -10px) !important;
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 0px));
    margin-right: calc(-1 * var(--wp--style--root--padding-right, 0px));
    width: calc(
      100% + var(--wp--style--root--padding-left, 0px) + var(--wp--style--root--padding-right, 0px)
    );
    max-width: none;
  }
}

/* ガター除去（必要に応じて調整） */
.desktopVersion:where(.alignfull, .has-global-padding, .is-layout-constrained),
.mobileVersion:where(.alignfull, .has-global-padding, .is-layout-constrained) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* alignfull 調整用 */
.scroll-video-container.alignfull {
  margin-top: 0;
}
