@charset "utf-8";

/* 基本
---------------------------------------------------- */
.swiper-wrapper img {margin: 0 auto;}
.swiper-wrap {
    position: relative;
    overflow: hidden;
    margin: 0 calc(50% - 50vw);
    max-width: 100vw;

}
.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: 0 !important;
}
@media print, screen and (min-width: 1200px) {
    .swiper-container-horizontal > .swiper-pagination-bullets,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: 10px !important;
    }
}
.swiper-button-next,
.swiper-button-prev {
    position: absolute !important;
    z-index: 200 !important;
}
@keyframes zoom-in {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* スライド画像のアニメーション
---------------------------------------------------- */
.swiper-slide-active .slide-img,
.swiper-slide-duplicate-active .slide-img,
.swiper-slide-prev .slide-img {
    animation: zoom-in 10s linear 0s 1 normal both;
}

/* モバイル
---------------------------------------------------- */
@media only screen and (max-width: 767px) {
.swiper-wrapper, .slide-img { height: 90vh;}
.slide-img > img {
    object-fit: cover;
    object-position:50% center; 
    width: 100%;
    height: 100%;
	}
}

/* タブレット～PC
---------------------------------------------------- */
@media print, screen and (min-width: 768px) {
  .swiper-wrapper,
  .slide-img {
    height: 80vh;
  }
  .slide-img img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position:0% center; /* 表示位置 */
  }
}

/* PC　小画面
---------------------------------------------------- */
@media print, screen and (min-width: 992px) {
    .swiper-wrapper,
    .slide-img {
    height: 100vh;
    }
    .slide-img img {
        height: 100vh;
        object-position:0% center; /* 表示位置 */      
    }  
}

/* PC　大画面
---------------------------------------------------- */
@media print, screen and (min-width: 1400px) {
    .swiper-wrapper,
    .slide-img {
        height: 100vh;
    }
    .slide-img img {
        height: 100vh;
        object-position:0% center; /* 表示位置 */
    }
}

/* mainimage
---------------------------------------------------- */
#mainimage {
  position: relative;
  line-height: 0; /* 文字高さをゼロにして隙間を消す */
}

/* mainimage h1
---------------------------------------------------- */
@media only screen and (max-width: 767px) {
  #mainimage .main-title {
    position: absolute;
    top: 50%;
    left: 50%; /* 左から50%の位置へ */
    transform: translate(-50%, -50%); /* 上下左右中央に調整 */
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: 5;
    width: 80%;
    margin: 0;
    text-align: center; /* 中の画像を中央に揃える */
    transition-duration: 300ms;
  }

  /* h1の中の画像自体も中央寄せを確実に適用 */
  #mainimage .main-title img {
    margin: 0 auto;
    display: block;
  }
}

@media print, screen and (min-width: 768px) {
#mainimage .main-title {
  position: absolute;
  top: 50%;
  left: 180px; /* スクロール線の右側に配置する想定。余白に合わせて調整してください */
  transform: translateY(-50%); /* 自身の高さの半分戻して綺麗な上下中央に */
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  z-index: 5;
  width: 70%;
  margin: 0;
  transition-duration: 300ms;
}  
  #mainimage .main-title img{
    max-width: 460px;
    transition-duration: 300ms;
  }
}
@media print, screen and (min-width: 1200px) {
  #mainimage .main-title img{
    max-width: 460px;
  }
}
@media print, screen and (min-width: 1600px) {
  #mainimage .main-title img{
    max-width: 570px;
  }
}

/* スクロール
---------------------------------------------------- */
.mainscroll {
  position: absolute;
  top: 50%; /* 上下中央 */
  left: 80px; /* 左端からの距離 */
  transform: translateY(-50%); /* Y軸方向のみ中央合わせ */
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  z-index: 10;
}

.mainscroll a {
  display: inline-block;
  position: relative; /* absoluteからrelativeに変更して崩れを防止 */
  padding: 0 0 215px 0; /* paddingを調整 */
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .2em;
  text-decoration: none;
  writing-mode: vertical-lr;
}

.mainscroll a::after {
  content: '';
  position: absolute;
  bottom: 0%;
  left: 50%;
  width: 1px;
  height: 200px;
  background: #fff;
  animation: sdl 1.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes sdl {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

.swiper-button-next,
.swiper-button-prev{z-index: 200!important; position: absolute!important;}