/* =========================================================
   記事スライダー — OGP比率カード6枚並び・1枚ずつスナップ切り替え
   ========================================================= */
.aind-slider {
  display: none !important;
}

/* ── トラック ── */
.aind-slider__track {
  display: flex;
  transition: transform 0.4s ease;
}

/* ── カード（6枚並び・OGP比率 1.91:1） ── */
.aind-slider__item {
  position: relative;
  flex: 0 0 calc(100% / 6);
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: #fff;
}

.aind-slider__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%
  );
  transition: background 0.3s;
}

.aind-slider__item:hover::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

/* ── 画像 ── */
.aind-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.aind-slider__item:hover .aind-slider__img {
  transform: scale(1.05);
}

/* ── オーバーレイテキスト ── */
.aind-slider__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  z-index: 1;
}

.aind-slider__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--color_main, #1d3e91);
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 4px;
  line-height: 1.6;
}

.aind-slider__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ── SP対応 ── */
@media (max-width: 599px) {
  .aind-slider__item {
    flex: 0 0 calc(100% / 3);
  }

  .aind-slider__title {
    font-size: 11px;
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  .aind-slider__item {
    flex: 0 0 calc(100% / 4);
  }
}
