/* ========================================================================
   Slideshow Component (Zigzag Images)
   ======================================================================== */

/* スライドショーコンテナ */
.zigzag-image.slideshow {
  position: relative;
}

/* スライド画像 */
.zigzag-image.slideshow .slide {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

/* アクティブなスライド */
.zigzag-image.slideshow .slide.active {
  opacity: 1;
  z-index: 2;
}

/* スライドショーのホバー効果を無効化 */
.zigzag-block:hover .zigzag-image.slideshow .slide {
  transform: none;
}

/* ========================================
   Work Slider Component
   ======================================== */
.work-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slider-image.active {
  opacity: 1;
  position: relative;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
}

.work-slider:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow--prev {
  left: 10px;
}

.slider-arrow--next {
  right: 10px;
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .slider-arrow {
    width: 32px;
    height: 32px;
    opacity: 1;
  }

  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }

  .slider-indicators {
    bottom: 10px;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }

  .indicator.active {
    width: 18px;
  }
}
