/* ===== 全体ラッパー ===== */
.t-service__swiper .swiper-container-wrapper {
  width: 100%;
  overflow-x: hidden; /* 横スクロールはSwiperで制御 */
  position: relative;
  margin: 0 auto;
}

/* ===== Swiper本体 ===== */
.t-service__swiper .swiper {
  display: flex;
  position: relative;
}

/* スライドラッパー */
.t-service__swiper .swiper-wrapper {
  transition-timing-function: linear; /* 一定速度でスライド */
}

/* スライド個別 */
.t-service__swiper .swiper-slide {
  flex: 0 0 auto;   /* 幅固定 */
  width: 50%;       /* 初期は2枚表示 */
  margin-right: 20px;
  position: relative;
  margin: 0 0 0 4%;
}

/* ===== 画像 ===== */
.t-service__swiper .swiper-slide img {
  object-fit: cover;
  display: block;
}

/* ===== 黒透明グラデーションオーバーレイ ===== */
.t-service__swiper #swiper1 .swiper-slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%; /* 下半分にグラデーション */
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none; /* テキストや矢印をクリック可能に */
}

/* ===== テキストと矢印 ===== */
.t-service__swiper .swiper__title {
  position: absolute;
  bottom: 0;
  left: 0;
  color: #fff;
  z-index: 110;
}

.t-service__swiper .arrow-box {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 110;
}

.t-service__swiper .arrow {
  display: block;
}

    @media(max-width:768px){
      .t-service__swiper .swiper__title {
      bottom: 0;
      left: 0;
      margin-left: 16px;
      margin-bottom: 16px;
      }
      .t-service__swiper span.swiper__subtitle {
      font-size: 9px;
      line-height: 1;
      }
    }


/* ===== スクロールバー ===== */
.t-service__swiper .swiper-scrollbar {
  bottom: 10px;
  left: 0;
  width: 100%; /* ← フル幅に変更 */
  height: 2px;
  z-index: 200;
  position: relative;
}

.t-service__swiper .swiper-scrollbar::before {
  position: absolute;
  content: "";
  border-bottom: solid 1px #A8A8A8;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.t-service__swiper .swiper-scrollbar-drag {
  background: #fff;
  /* height: 100%; test1029*/
  border-radius: 20px;
  /* min-width: 60px; test1029*/
  min-width: 40px;
  position: relative;
  cursor: pointer;
}




.t-service__swiper .swiper-scrollbar-drag:hover {
  cursor: pointer;
}



/* ドラッグ部分アイコン */
.t-service__swiper .swiper-scrollbar-drag::before {
    position: absolute;
    content: url(../images/common/swiper-prev.svg);
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 10px;
    line-height: 1;
}
.t-service__swiper .swiper-scrollbar-drag::after {
    position: absolute;
    content: url(../images/common/swiper-next.svg);
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 10px;
    line-height: 1;
}

.t-service__swiper .swiper-wrapper {
display: flex;
transition-timing-function: linear !important;

    margin-bottom: 50px;/*0911追加*/
}
.t-service__swiper .swiper-horizontal>.swiper-scrollbar,
.t-service__swiper .swiper-scrollbar.swiper-scrollbar-horizontal {
    position: absolute;
    left: var(--swiper-scrollbar-sides-offset, 1%);
    bottom: var(--swiper-scrollbar-bottom, 4px);
    top: var(--swiper-scrollbar-top, auto);
    z-index: 100;
    height: var(--swiper-scrollbar-size, 34px);
    width: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%));
    width: 30%;
    margin: 0 40%;
}

/* オーバーレイの親 */
.t-service__swiper .swiper-container-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 50px;
}


.t-service__swiper .swiper-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: calc( 100% / 3);
  height: 100%;
  background-color: #000;
  z-index: 100;
  pointer-events: none;
  transition: width 0.3s ease;
}

/* ===== レスポンシブ調整 ===== */
    @media(max-width:768px){
    .t-service__swiper .swiper-container-wrapper {
    height: 100%;
    }
    }

/* ==========
      hover画像拡大
==========  */
/* 画像ラッパー */
.t-service__swiper .swiper-img-wrap {
  overflow: hidden; /* 拡大時にはみ出さないように */
  position: relative;
  z-index: 0; /* テキストより下 */
}

/* 画像 */
.t-service__swiper .swiper-img {
  display: block;
  width: 100%;
  transition: transform 0.5s ease;
}

/* hover時に拡大 */
.t-service__swiper .btn-arrow-img:hover .swiper-img {
  transform: scale(1.2);
}

/* テキストやボタンを画像の上に配置 */
.t-service__swiper .swiper__title,
.t-service__swiper .arrow-box {
  position: absolute;
  z-index: 1; /* 画像より上 */
  color: #fff;
}


    /* 768px以下のスマホ用 */
    @media screen and (max-width: 768px) {
    .t-service__swiper .swiper-slide {
    display: flex;           /* フレックスで中央揃え */
    justify-content: center; /* 水平方向中央 */
    align-items: center;     /* 垂直方向中央（必要なら） */
    margin: 0;/* 0920追加 */
    }
    .t-service__swiper .swiper {
    height: auto;
    aspect-ratio: 310 / 205;
    }
    .t-service__swiper #swiper1 .swiper-wrapper,
    .t-service__swiper #swiper1 .swiper-slide {
    height: 100%;
    }
    .t-service__swiper #swiper1 .swiper-slide img {
    max-height: 100%;
    width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    aspect-ratio: 310 / 205;
    }
    .t-service__swiper #swiper1 .swiper-slide img.arrow.arrow-thin,
    .t-service__swiper #swiper1 .swiper-slide img.arrow.arrow-thick {
    width: 13px;
    }
    .t-service__swiper .swiper-container-wrapper {
    height: auto;
    }
    .t-service__swiper .swiper-horizontal>.swiper-scrollbar,
    .t-service__swiper .swiper-scrollbar.swiper-scrollbar-horizontal {
    left: 10%;
    bottom: var(--swiper-scrollbar-bottom, 4px);
    top: var(--swiper-scrollbar-top, auto);
    z-index: 0;
    height: var(--swiper-scrollbar-size, 28px);
    width: calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%));
    width: 80%;
    margin: auto;
    }
    .t-service__swiper .swiper-scrollbar-drag::before {
    left: 10px;
    width: 6px;
    }
    .t-service__swiper .swiper-scrollbar-drag::after {
    right: 10px;
    width: 6px;
    }
    .t-service__swiper .swiper-overlay {
    display: none;
    }

    /* swiper 全体 */
    .swiper1 {
    width: 90%;
    margin: 0 auto;
    }

    /* 各スライド */
    #swiper1 .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* ズーム時にはみ出さないように */
    }

    /* 画像の比率を崩さない */
    #swiper1 .swiper-slide img {
    width: 100%;   /* 横幅いっぱい */
    height: auto;  /* 高さは自動で比率維持 */
    object-fit: contain; /* containなら全体表示、coverならトリミングあり */
    }
    }



    /* SP は1枚表示 & 空スライド非表示 */
    @media(max-width:768px){
    .swiper-container-wrapper {
    width: 100%;
    margin: 0;
    }
    .swiper-slide.empty-forPc.swiper-slide-active {
    display: none;
    }
    }



/* 1009test  スライドイン
===============*/
/* 初期状態: 右に60%ずらす */
.fade-left {
  transform: translateX(40%);
  transition: opacity .3s ease-out, transform 1s ease-out;
  will-change: transform, opacity;
}

/* 表示時: 左端（元の位置）に戻す */
.fade-left.is-visible {
  transform: translateX(0);
}







/* Swiper 2：お問い合わせ用
=========================== */
#swiper2 .swiper {
  overflow-x: hidden;
  position: relative;
}
#swiper2 .swiper-wrapper {
  transition-timing-function: linear !important;
}
.contact__swiper {
    margin: 170px auto 40px;
    padding-top: 60px;
}

/* Swiperがはみ出しても表示されるようにする */
.contact__swiper,
#swiper2,
#swiper2 .swiper-wrapper,
#swiper2 .swiper-slide {
  overflow: visible;
}
#swiper2 .swiper-slide {
  opacity: 1;
  transform: scale(0.85) translateY(0);
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

#swiper2 .swiper-slide-active {
  transform: scale(1) translateY(-60px);
  transition: transform .8s ease-in-out, opacity .8s ease-in-out;
}

#swiper2 .swiper-slide-active img {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
#swiper2 .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 741 / 326;
  display: block;
}

    @media(max-width:768px){
    .contact__swiper {
    margin: 130px auto 30px;
    padding-top: 60px;
    }
    #swiper2 .swiper-slide {
      opacity: 1;
      transform: scale(1) translateY(0);
      transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    }
    #swiper2 .swiper-slide-active {
      transform: scale(1) translateY(-20px);
      transition: transform .8s ease-in-out, opacity .8s ease-in-out;
    }
    }