/* =============================================
   カルーセルスライダー 組み込み用CSS
   読み込み: <link rel="stylesheet" href="carousel-embed.css">
   ============================================= */

.cs-container{
  padding-bottom: 2.4em;
  background-color: #fff;
}

.cs-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 40px 0 20px;
}

/* 両端フェード */
.cs-wrapper::before,
.cs-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 10%;
  z-index: 10;
  pointer-events: none;
}
.cs-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 20%, transparent);
}
.cs-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 20%, transparent);
}

.cs-track {
  display: flex;
  gap: 16px;
  will-change: transform;
  cursor: grab;
  user-select: none;
  position: relative;
}

.cs-track.cs-animating {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-slide {
  flex: 0 0 40% !important;
  max-width: none !important;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.cs-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block !important;
  pointer-events: none;
}

/* 矢印ボタン */
.cs-btn {
  position: absolute;
  top: calc(50% + 12px);
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #555;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.cs-btn:hover {
  background: #fff;
  border-color: #999;
  transform: translateY(-50%) scale(1.08);
}
.cs-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.cs-btn-prev { left: 12px; }
.cs-btn-next { right: 12px; }

/* ドットナビ */
.cs-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.cs-dot.cs-active {
  background: #888;
  transform: scale(1.4);
}

/* SP対応 */
@media (max-width: 768px) {
  .cs-slide {
    flex: 0 0 40% !important;
  }
}
