/* ==================================================
   YouTube 動画スライダー
   w-youtubesliders.css
================================================== */

    .w-youtube-slider {
      position: relative;
      width: 100%;
      overflow: hidden;
    }

/* --------------------------------------------------
   ドラッグ時のテキスト選択防止
-------------------------------------------------- */

.w-youtube-slider,
.w-youtube-slider * {
  -webkit-user-select: none;
  user-select: none;
}

/* ドラッグ中はページ全体の文字選択を禁止 */
.w-youtube-no-select,
.w-youtube-no-select * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

    /* --------------------------------------------------
   スクロール領域
-------------------------------------------------- */

    .w-youtube-track {
      display: flex;
      gap: 20px;

      width: 100%;

      overflow-x: auto;
      overflow-y: hidden;

      padding: 10px 2px 0px;

      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;

      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;

      scrollbar-width: none;
    }

    .w-youtube-track::-webkit-scrollbar {
      display: none;
    }

    /* --------------------------------------------------
   PC マウスドラッグ
-------------------------------------------------- */

    .w-youtube-track {
      cursor: grab;
    }

    .w-youtube-track.w-youtube-dragging {
      cursor: grabbing;

      /*
   * ドラッグ中だけ
   * スクロール吸着を一時解除
   */
      scroll-snap-type: none;

      user-select: none;
    }

    .w-youtube-thumbnail {
      -webkit-user-drag: none;
      user-select: none;
    }



    /* --------------------------------------------------
   動画カード

   PC：
   3本＋次の動画を少し表示
-------------------------------------------------- */

    .w-youtube-item {
      flex: 0 0 29%;
      min-width: 0;

      scroll-snap-align: start;
    }


    /* --------------------------------------------------
   動画エリア
-------------------------------------------------- */

    .w-youtube-movie {
      position: relative;

      width: 100%;

      aspect-ratio: 16 / 9;

      overflow: hidden;

      background: #000;
    }


    /* --------------------------------------------------
   再生ボタン
-------------------------------------------------- */

    .w-youtube-play {
      position: relative;

      display: block;

      width: 100%;
      height: 100%;

      padding: 0;
      margin: 0;

      border: 0;

      background: #000;

      cursor: pointer;
    }


    /* --------------------------------------------------
   サムネイル
-------------------------------------------------- */

    .w-youtube-thumbnail {
      display: block;

      width: 100%;
      height: 100%;

      object-fit: cover;

      transition:
        transform 0.25s ease,
        opacity 0.25s ease;
    }

    .w-youtube-thumbnail {
  -webkit-user-drag: none;
  user-select: none;
}

    .w-youtube-play:hover .w-youtube-thumbnail {
      transform: scale(1.03);
      opacity: 0.85;
    }


    /* --------------------------------------------------
   再生アイコン
-------------------------------------------------- */

    .w-youtube-play-icon {
      position: absolute;

      top: 50%;
      left: 50%;

      display: flex;
      align-items: center;
      justify-content: center;

      width: 62px;
      height: 44px;

      transform: translate(-50%, -50%);

      border-radius: 10px;

      background: rgba(0, 0, 0, 0.75);

      color: #fff;

      font-size: 22px;
      line-height: 1;

      padding-left: 3px;

      pointer-events: none;

      transition:
        transform 0.2s ease,
        background 0.2s ease;
    }

    .w-youtube-play:hover .w-youtube-play-icon {
      transform: translate(-50%, -50%) scale(1.08);

      background: rgba(255, 0, 0, 0.9);
    }


    /* --------------------------------------------------
   動画タイトル
-------------------------------------------------- */

    .w-youtube-title {
      margin: 0rem 0 0;

      font-size: 0.8rem;
      line-height: 1.2;
      font-weight: normal;

      /*
   * 長いタイトルは2行まで
   */
      display: -webkit-box;
      overflow: hidden;

      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;

      min-height: 3em;
    }

    .w-youtube-no {
      font-size: 0.8rem;
      font-weight: 800;
      margin-top: 0.5rem;
      margin-bottom: 0rem;
      padding-bottom: 0;
    }

    /* --------------------------------------------------
   YouTube iframe
-------------------------------------------------- */

    .w-youtube-iframe {
      display: block;

      width: 100%;
      height: 100%;

      border: 0;
    }


    /* --------------------------------------------------
   左右ボタン
-------------------------------------------------- */

    .w-youtube-arrow {
      position: absolute;

      top: 50%;

      z-index: 10;

      display: flex;
      align-items: center;
      justify-content: center;

      width: 44px;
      height: 44px;

      padding: 0;

      border: 0;
      border-radius: 50%;

      background: rgba(0, 0, 0, 0.72);

      color: #fff;

      font-size: 36px;
      line-height: 1;

      cursor: pointer;

      transform: translateY(-50%);

      transition:
        opacity 0.2s ease,
        background 0.2s ease;
    }

    .w-youtube-arrow:hover {
      background: rgba(0, 0, 0, 0.9);
    }

    .w-youtube-arrow:disabled {
      opacity: 0;
      pointer-events: none;
    }

    .w-youtube-arrow-prev {
      left: 8px;
    }

    .w-youtube-arrow-next {
      right: 8px;
    }


    /* --------------------------------------------------
   タブレット
-------------------------------------------------- */

    @media (max-width: 991.98px) {

      .w-youtube-item {
        flex-basis: 44%;
      }

    }


    /* --------------------------------------------------
   スマートフォン
-------------------------------------------------- */

    @media (max-width: 575.98px) {

      .w-youtube-track {
        gap: 14px;
      }

      .w-youtube-item {
        /*
     * 次の動画を少し見せる
     */
        flex-basis: 82%;
      }

      .w-youtube-arrow {
        width: 38px;
        height: 38px;

        font-size: 30px;
      }

      .w-youtube-arrow-prev {
        left: 4px;
      }

      .w-youtube-arrow-next {
        right: 4px;
      }

    }
