/* ============================================
   Section Slider - 1枚表示スライダー
   ============================================ */

/* コンテナ */
.section-slider {
  position: relative;
  width: 100%;  /* 横幅いっぱい */
  max-width: none;  /* max-width制限を外す */
  margin: 24px 0 0;
  overflow: hidden;  /* サイドバーの下に隠す */
}

/* ビューポート */
.section-slider-viewport {
  overflow: visible;  /* 左右のスライドを見せる */
  width: 100%;
}

/* トラック */
.section-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.4s ease;
  margin: 0;  /* margin なし */
  padding: 20px 0;  /* 上下にパディング（scale用） */
}

/* スライド */
.section-slider-slide {
  flex: 0 0 70%;  /* 中央のスライドは70%くらい */
  min-width: 70%;
  box-sizing: border-box;
  transition: all 0.4s ease;
}

/* 非アクティブスライド（左右） - 少し透明に */
.section-slider-slide:not(.active) {
  opacity: 0.6;
  transform: scale(0.9);
}

/* アクティブスライド（中央） - フルカラー、少し大きく */
.section-slider-slide.active {
  filter: none;
  opacity: 1;
  transform: scale(1.02);
  z-index: 2;
}

.section-slider-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ============================================
   ナビゲーション（rent-sliderと同じUI）
   ============================================ */

.section-slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px; /* 写真の下に配置 */
  padding: 10px 16px;
  position: relative;
  z-index: 10;
}

/* ドットインジケーター */
.section-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8ddf5;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 0;
  touch-action: manipulation;
}

.section-slider-dot:hover {
  opacity: 1;
  transform: scale(1.2);
}

.section-slider-dot.active {
  width: 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8fbaf3 0%, #5a9de6 100%);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(143, 186, 243, 0.4);
}

/* 矢印ボタン */
.section-slider-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #c8ddf5;
  background: rgba(255, 255, 255, 0.9);
  color: #5a9de6;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  padding: 0;
  touch-action: manipulation;
}

.section-slider-arrow:hover {
  background: #8fbaf3;
  border-color: #8fbaf3;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(143, 186, 243, 0.35);
}

.section-slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.section-slider-arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #c8ddf5;
  color: #5a9de6;
}

.section-slider-arrow.prev {
  margin-right: 8px;
}

.section-slider-arrow.next {
  margin-left: 8px;
}

/* ドットコンテナ */
.section-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   レスポンシブ対応
   ============================================ */

/* タブレット */
@media (max-width: 768px) {
  .section-slider-slide {
    flex: 0 0 80%;  /* タブレットでは少し大きめ */
    min-width: 80%;
  }

  .section-slider-track {
    gap: 12px;
  }

  .section-slider-nav {
    margin-top: 12px; /* 写真の下に配置 */
    gap: 6px;
  }

  /* ドット・矢印はデスクトップサイズを継承（rent-sliderと統一） */
}

/* スマートフォン */
@media (max-width: 480px) {
  .section-slider-slide {
    flex: 0 0 85%;  /* スマホでは更に大きめ */
    min-width: 85%;
  }

  .section-slider-track {
    gap: 8px;
    padding: 16px 0;
  }

  .section-slider-slide img {
    border-radius: 8px;
  }

  .section-slider-nav {
    margin-top: 10px; /* 写真の下に配置 */
    padding: 8px 12px;
    gap: 4px;
  }

  .section-slider-arrow {
    width: 30px;
    height: 30px;
    font-size: var(--font-size-xs);
  }

  .section-slider-dot {
    width: 6px;
    height: 6px;
  }

  .section-slider-dot.active {
    width: 18px;
    border-radius: 8px;
  }

  .section-slider-dots {
    gap: 6px;
  }
}
