@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: 70vh;}
.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 {position:relative;}

@media only screen and (max-width: 767px)  {
#mainimage h2{
  position: absolute;
	z-index: 2;
	bottom: 5%;
	left: 5%;
	right:5%;
  overflow-wrap: normal !important;
  word-break: normal !important;
  transition-duration: 300ms;
  font-size: 20px;
  line-height: 28px;  
	}
#mainimage h2 .sub-text{
  display: block;
  font-size: 14px;
  padding-top: 4px;
  line-height: 24px;  
	}
}

@media print, screen and (min-width: 768px){
#mainimage h2{
  position: absolute;
	z-index: 2;
	bottom: 10%;
	left: 5%;
  transition-duration: 300ms;
  font-size: 25px;
  line-height: 35px;
	}	
#mainimage h2 .sub-text{
  display: block;
  font-size: 16px;
  padding-top: 8px; 
	}  
}

@media print, screen and (min-width: 1200px){
#mainimage h2{
	bottom: 10%;
	left: 5%;
  font-size: 30px;
  line-height: 40px;
	}
#mainimage h2 .sub-text{
  font-size: 16px;
  padding-top: 8px;  
	}
}

@media print, screen and (min-width: 1600px){
#mainimage h2{
	bottom: 10%;
	left: 5%;
  font-size: 35px;
  line-height: 45px;
	}
#mainimage h2 .sub-text{
  font-size: 18px;
  padding-top: 10px;  
	}
}