
/*text-image-slider*/
/* 共通スタイル - すべての画面サイズに適用 */
.main-container {
  position: relative;
  width: 100%;
  aspect-ratio:3000/1300;
  overflow: hidden;
}

.content-wrapper {
  display: flex;
  width: 100%;
  aspect-ratio:3000/1300;
}

/* テキストスライダー関連 */
.text-slider-container {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: start;
  justify-content: start;
  /*background-color: #f5f5f5;*/
  z-index: 2;
}

.text-slider {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.text-slide {
  position: absolute;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  left: 0%; /* 初期位置を右側に設定 */
  transition: none; /* GSAPで制御するため */
}

.text-slide.active {
  opacity: 1;
  left: 0;
  position: relative;
}

/* イメージスライダー関連 */
.image-slider-container {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.background-slider {
  position: relative;
  /*width: 80%;*/text-align:right;
  aspect-ratio:960/640;
}

.image-slide {text-align:right;
  position: absolute;
  top: 0;
  left: 100%; /* 初期位置を右側に設定 */
  width: 100%;
  aspect-ratio:960/640;
  background-position: center center;
  background-size: 100%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: none; /* GSAPで制御するため */
}

.image-slide.active {
  opacity: 1;
  left: 0;
}

/* 各スライドごとの背景画像設定 */
.image-slide.slide-5 {
  background: url('../img/index24_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}

.image-slide.slide-6 {
  background: url('../img/index49_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}

.image-slide.slide-7 {
  background: url('../img/index02_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-8 {
  background: url('../img/index21_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-9 {
  background: url('../img/index28_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}

.image-slide.slide-10 {
  background: url('../img/index29_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-11 {
  background: url('../img/index30_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-12 {
  background: url('../img/index50_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-13 {
  background: url('../img/index40_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}

.image-slide.slide-14 {
  background: url('../img/index34_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-15 {
  background: url('../img/index75_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-1 {
  background: url('../img/index29_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-2 {
  background: url('../img/index50_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-3 {
  background: url('../img/index28_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
.image-slide.slide-4 {
  background: url('../img/index49_M.jpg');
  background-size: 100%;background-repeat: no-repeat;
  background-position: center right;
}
/**/

@media screen and (max-width:768px){
/*image-text*/
.main-container {
  position: relative;
  width: 100%;
  aspect-ratio:800/1800;
  overflow: hidden;
}

.content-wrapper {
    flex-direction: column;
  }
  
  .text-slider-container {
    width: 100%;
    aspect-ratio:800/1600;
    order: 2; /* モバイルでは下部に配置 */
  }
  
  .image-slider-container {
    width: 100%;
    aspect-ratio:960/640;
    order: 1; /* モバイルでは上部に配置 */
  }
  
  .text-slide {
    padding: 20px;
  }
  
  .text-slide h2 {
    /*font-size: 1.5rem;*/
    margin-bottom: 10px;
  }
  
  .text-slide p {
    /*font-size: 0.9rem;*/
    line-height: 1.4;
  }
/**/
}

@media screen and (min-width:769px){
/*image-text*/
.main-container {
  position: relative;
  width: 100%;
  aspect-ratio:3000/1300;
  overflow: hidden;
}

.text-slider-container {
    width: 60%;
    aspect-ratio:3000/1300;
  }
  
  .image-slider-container {
    width: 40%;
    aspect-ratio:960/640;
  }
  
  .text-slide {
    padding: 40px;
  }
  
  .text-slide h2 {
    /*font-size: 2.2rem;*/
    margin-bottom: 20px;
  }
  
  .text-slide p {
    /*font-size: 1.1rem;*/
    line-height: 1.6;
  }
/**/

}