/* カルーセルのステージ */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 950px;
  height: 480px;
  margin: 0 auto;
}

/* 画像を配置するエリア */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 各画像アイテムのベーススタイル */
.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 360px;
  background: #fff;
  padding: 10px 10px 30px 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  /* スムーズなアニメーション遷移 */
  transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 配置の調整：左右と中央の高低差を半分程度に変更 --- */
        
/* 1枚目（左側）：Y軸 -32% */
.carousel-item.pos-0 {
  opacity: 1;
  transform: translate(-135%, -32%) rotate(var(--rot-0, -12deg)) scale(var(--scale-0, 0.9));
  z-index: 3;
}

/* 2枚目（中央）：Y軸 -55% */
.carousel-item.pos-1 {
  opacity: 1;
  transform: translate(-50%, -55%) rotate(var(--rot-1, 3deg)) scale(var(--scale-1, 1.12));
  z-index: 2;
}

/* 3枚目（右側）：Y軸 -28% */
.carousel-item.pos-2 {
  opacity: 1;
  transform: translate(35%, -28%) rotate(var(--rot-2, 10deg)) scale(var(--scale-2, 0.88));
  z-index: 1;
}

/* 現在の回転数（ステップ）インジケーター */
.carousel-indicator {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #666;
}
