.sousenkyo_slider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
}

.sousenkyo_slider::-webkit-scrollbar {
  display: none;
}


.sousenkyo_slider .movie-grid {
  --movie-card-width: clamp(160px, 21.8vw, 218px);
  --movie-cycle-shift: -25%;
  display: flex;
  width: max-content;
  animation: sousenkyoMovieSlider 60s linear infinite;
}

.sousenkyo_slider .movie-card {
  display: flex;
  flex: 0 0 var(--movie-card-width);
  width: var(--movie-card-width);
  margin-right: 14px;
  overflow: hidden;
  border-radius: 0;
  background: #0c318b;
  box-shadow: none;
}

@keyframes sousenkyoMovieSlider {
  to {
    transform: translateX(var(--movie-cycle-shift));
  }
}

.sousenkyo_slider .movie-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.sousenkyo_slider .movie-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

.sousenkyo_slider .thumbnail-wrap {
  position: relative;
}

.sousenkyo_slider .situation {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 52px;
}

.sousenkyo_slider .situation > div {
  flex: 0 0 auto;
}

.sousenkyo_slider .situation span {
  display: flex;
  width: 46px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  border-radius: 4px;
  color: #ffffff;
  font-size: 8px;
  font-weight: 400;
  line-height: 10px;
  white-space: nowrap;
}

.sousenkyo_slider .viewed {
  background: #015fa8;
}

.sousenkyo_slider .voted {
  background: #e2003e;
}

.sousenkyo_slider .favorite_voted {
  background: #783c8c;
}

.sousenkyo_slider .thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0c318b;
  transition: opacity 0.2s ease;
}

.sousenkyo_slider .movie-link:hover .thumb-image,
.sousenkyo_slider .movie-link:focus-visible .thumb-image {
  opacity: 0.72;
}

.sousenkyo_slider .movie-grid:focus-within,
.sousenkyo_slider.is-dragging .movie-grid {
  animation-play-state: paused;
}

.sousenkyo_slider.is-dragging {
  cursor: grabbing;
  user-select: none;
}


.sousenkyo_slider .movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px;
  background: #15235c;
  color: #ffffff;
}

.sousenkyo_slider .movie-body h2 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 12px;
}

.sousenkyo_slider .movie-body .company-name {
  min-height: 0;
  margin: -3px 0 9px;
  color: #ffffff;
  font-size: 10.8px;
  line-height: 1.4;
}
.sousenkyo_slider .movie-body .comment_votes_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dotted rgba(255, 255, 255, 0.7);
  img {
    padding-top: 8px;
    max-width: 10px;
  }
}
.sousenkyo_slider .movie-body .comment_votes {
  margin: auto 0 0;
  padding-top: 8px;
  color: #ffffff;
  font-size: 9.6px;
  font-weight: 400;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .sousenkyo_slider .movie-grid {
    animation: none;
  }
}

/* スマホはscrollLeftベースの自動循環＋スワイプへ切り替える */
@media (max-width: 767px) {
  .sousenkyo_slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    scroll-snap-type: none;
    touch-action: pan-x;
  }

  .sousenkyo_slider::-webkit-scrollbar {
    display: none;
  }

  .sousenkyo_slider .movie-grid {
    animation: none;
  }

  .sousenkyo_slider .movie-card {
    scroll-snap-align: none;
  }
}
