  /* コンテナ */
  .ah-single-slider-container {
    width: 100%;
    /* max-width を 1180px に変更 */
    max-width: 1180px;
    margin: 10px auto 0; /* 上マージンを 50px、左右中央寄せ */
    overflow: hidden;
    /* 背景色を透過 0.5 に変更 */
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index:2!important;
    position:relative;
  }

  /* 各行のラッパー */
  .ah-slider-row {
    display: flex;
    width: 100%;
    margin-bottom: 1px; /* 上段と下段の間隔 */
    padding: 20px 0; /* ★重要：拡大時に画像が切れないよう上下に余白を確保 */
    position: relative;
    overflow: hidden;
  }

  /* トラック（画像が並ぶ帯） */
  .ah-slider-track {
    display: flex;
    width: max-content;
    gap: 20px; /* 画像間の隙間 */
  }

  /* アニメーション設定 */
  .ah-scroll-left {
    animation: scrollLeft 40s linear infinite; /* 左へ流れる */
  }

  .ah-scroll-right {
    animation: scrollRight 40s linear infinite; /* 右へ流れる */
  }


  /* ホバー時に一時停止 */
  .ah-slider-row:hover .ah-slider-track {
    animation-play-state: paused;
  }

  /* 画像の枠（小さめ設定） */
  .ah-slider-item {
    width: 200px;  /* PCでの幅を200pxに変更 */
    height: 140px; /* PCでの高さを125pxに変更 */
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff; /* 背景色を白に変更 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* クリックできることを示すカーソル */
    transition: transform 0.3s ease, z-index 0s 0.3s, box-shadow 0.3s ease; /* z-indexの切り替えを遅らせる */
    z-index: 3;
    position: relative; /* z-indexを効かせるため */
  }

  .ah-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング */
    transition: transform 0.3s ease;
    filter: brightness(1.05); /* ★画像を少し明るく補正 */
  }

  /* ホバー時の挙動 */
  .ah-slider-item:hover {
    transform: scale(1.15); /* ★拡大率を少しアップ */
    z-index: 10; /* 手前に表示 */
    transition: transform 0.3s ease, z-index 0s, box-shadow 0.3s ease; /* 即座にz-indexを切り替え */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* 影を強調 */
  }

  /* クリック時（active）の挙動 - さらに大きく */
  .ah-slider-item:active {
    transform: scale(1.4); 
    z-index: 20;
    transition: transform 0.1s ease;
  }


  /* アニメーション定義 */
  @keyframes scrollLeft {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
  }

  @keyframes scrollRight {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
  }


  /* スマホ対応 */
  @media screen and (max-width: 768px) {
    .ah-single-slider-container {
      padding: 0px 0;
    }
    .ah-slider-track {
      gap: 15px;
    }
    .ah-slider-item {
      width: 150px; /* スマホでの幅を150pxに変更 */
      height: 104px; /* スマホでの高さを94pxに変更 */
    }
  }

/* 背景動画のコンテナ */
.video-background {
  position: fixed; /* これが重要：画面に固定する */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* コンテンツより後ろに配置 */
  overflow: hidden;
}

/* 動画自体を画面いっぱいに引き伸ばす */
.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 比率を保ちつつエリアを埋める */
}

/* コンテンツエリア（背景が透けるように調整） */
.content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: 40vh;
  /* 背景色を少し暗くして文字を見やすくする場合 */
  background: rgba(0, 0, 0, 0.3); 
}