@charset "utf-8";

/* メイン
---------------------------------------------------- */
.swiper-wrapper img{margin: 0 auto;}
.swiper-container-horizontal > .swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction{bottom: 0px!important;}
@media print, screen and (min-width: 1200px) {
.swiper-container-horizontal > .swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction{
		bottom: 10px!important;
	}
}

@media only screen and (max-width: 767px)  {
.swiper-wrap {
  margin: 75px auto 0; /* pxは上余白 */
  width: calc(100% - 0px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height: 60vh;
  position: relative;
  overflow: hidden;
	}
}

@media print, screen and (min-width: 768px) {
.swiper-wrap {
  margin: 0px auto 0; /* pxは上余白 */
  width: calc(100% - 30px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height: 60vh;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  }
}
@media print, screen and (min-width: 992px) {
.swiper-wrap {
  margin: 0px auto 0; /* pxは上余白 */
  width: calc(100% - 200px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height:70vh;
  }
}
@media print, screen and (min-width: 1400px) {
.swiper-wrap {
  margin: 0px auto 0; /* pxは上余白 */
  width: calc(100% - 300px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height:70vh;
  }
}

@keyframes pan-slow {
  0% {
    /* 開始位置：左に寄せておく */
    transform: scale(1.1) translateX(-3%); 
  }
  100% {
    /* 終了位置：右に寄せる */
    transform: scale(1.1) translateX(3%); 
  }
}

.slide-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  animation: pan-slow 20s linear infinite; 
}

@media only screen and (max-width: 767px) {
  .swiper-wrapper,
  .slide-img { height: 100vh;}
  .slide-img > img {
    object-fit: cover;
    margin: 0 !important;
    object-position: 60% center !important;    
    width: 100%;
    height: 100%;
  }
}

@media print, screen and (min-width: 768px) {
  .swiper-wrapper,
  .slide-img { height: 100vh; }
  .slide-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

@media print, screen and (min-width: 992px) {
  .swiper-wrapper,
  .slide-img { height: 100vh; }
  .slide-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

/* メイン h2
---------------------------------------------------- */
@media only screen and (max-width: 767px)  {
#mainimage h1{
  position: absolute;
	z-index: 5;
	left: 5%;
  right: 5%;
	bottom: 30%;
  /* width: 100% を削除 */
  transition-duration: 300ms;
	}	
}
@media print, screen and (min-width: 768px){
#mainimage h1{
  position: absolute;
	z-index: 5;
	left: 10%;
	bottom: 30%;
  max-width: 600px;
  transition-duration: 300ms;
	}	
}
@media print, screen and (min-width: 992px){
#mainimage h1{
  position: absolute;
	z-index: 5;
	left: 13%;
	bottom: 30%;  
  max-width:800px; 
	}	
}
@media print, screen and (min-width: 1800px){
#mainimage h1{
	left: 13%;
	bottom: 30%;  
  max-width:800px;
	}
}

/* メイン
---------------------------------------------------- */
#mainimage{
  display: block;
  position: relative;
  margin-bottom: 40px;  
}
@media print, screen and (min-width: 768px) {
#mainimage{
  margin-bottom: 40px;
  }
}
@media print, screen and (min-width: 1200px) {
#mainimage{
  margin-bottom: 60px;
  }
}

@media print, screen and (min-width: 768px) {
.bg-sp{
  background: url("../images/bgmain.jpg") no-repeat scroll 50% 0% / cover;
  padding-bottom: 20px;
  }
}

@media print, screen and (min-width: 992px) {
.bg-sp{
  padding-bottom: 60px;
  }
}