/* 記事用 */

.article-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.article-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  /* スクロールバーを非表示 */
  scrollbar-width: none;
}

.article-slider-track::-webkit-scrollbar {
  display: none;
}

.article-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.article-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* 左右ボタン */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.5);
  color: #fff;

  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.slider-prev {
  left: 15px;
}

.slider-next {
  right: 15px;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* スマホ */
@media (max-width: 768px) {
  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }
}