@charset "UTF-8";

/* --- 全体の枠 --- */
.slider_wrapper {
  width: 240px;
  position: relative;
  margin: 0 auto 40px;
}

/* --- 丸窓マスク --- */
.slider_mask {
  width: 240px;
  height: 240px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
}

/* --- 画像の設定 --- */
.slider_mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  
  /* 基本位置：右側（100%）に待機 */
  transform: translateX(100%);
  
  /* 待機中に変なアニメーションをさせないため transition は書かない */
}

/* --- 動きの制御 --- */

/* active: 真ん中へ入ってくる（主役） */
.slider_mask img.active {
  transform: translateX(0);
  z-index: 2;
  transition: transform 1.0s ease-in-out;
}

/* last-active: 左へ去っていく（脇役） */
.slider_mask img.last-active {
  /* ▼ 元に戻しました：左（-100%）へ移動 */
  transform: translateX(-100%);
  
  z-index: 1;
  
  /* ▼ 元に戻しました：動きが必要なので時間を指定 */
  transition: transform 1.0s ease-in-out;
}


/* --- ドットのエリア（変更なし） --- */
.slider_dots {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: -30px;
  left: 0;
  z-index: 10;
}

/* --- ドットのデザイン（変更なし） --- */
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #3d98bf;
}

.dot:hover {
  background-color: #999;
}