@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: 70vh;
  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: 80vh;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  }
}
@media print, screen and (min-width: 992px) {
.swiper-wrap {
  margin: 0px auto 0; /* pxは上余白 */
  width: calc(100% - 200px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height: 80vh;
  }
}
@media print, screen and (min-width: 1200px) {
.swiper-wrap {
  margin: 0px auto 0; /* pxは上余白 */
  width: calc(100% - 420px); /* 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; 
}

.slide-text{
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 3vw;
  font-family: serif;
  font-weight: bold;
  text-shadow: 2px 2px 8px #000;
  color: #fff;
  transform: translate(-50%,-50%);
}

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

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

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

/* メイン h2
---------------------------------------------------- */
@media only screen and (max-width: 767px)  {
#mainimage h2{
  position: absolute;
	z-index: 5;
	left: 5%;
  right:5%;
	bottom:20px;
  max-width: 400px;  
  transition-duration: 300ms;
	}	
}
@media print, screen and (min-width: 768px){
#mainimage h2{
  position: absolute;
	z-index: 5;
	left: 5%;
	bottom: 55%; 
  max-width: 450px;
  transition-duration: 300ms;
	}	
}
@media print, screen and (min-width: 992px){
#mainimage h2{
  position: absolute;
	z-index: 5;
	left: 5%;
	bottom: 45%;  
  max-width: 450px;  
	}	
}
@media print, screen and (min-width: 1800px){
#mainimage h2{
	left: 2%;
	bottom: 2%;  
  max-width: 584px;
	}
}

/* 時間案内
---------------------------------------------------- */
@media only screen and (max-width: 767px)  {
.time_box{
  background: #fff;
  margin-top: 15px;
  padding: 20px;
  margin:15px 10px 0 10px;
  transition-duration: 300ms;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 20px;  
  max-width: 100%;
	}	
}
@media print, screen and (min-width: 768px){
.time_box{
  position: absolute;
	z-index: 5;
	right: 0;
	bottom: -40px;  
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);  
  padding: 20px;
  border-radius: 20px 0 0 20px;
  transition-duration: 300ms;
  max-width: 85%;  
	}	
}
@media print, screen and (min-width: 992px){
.time_box{
	bottom: -60px;  
  padding: 30px;
  max-width: 98%;
	}	
}
@media print, screen and (min-width: 1200px){
.time_box{
  max-width: 80%;
	}	
}
@media print, screen and (min-width: 1800px){
.time_box{
	bottom: -100px;
  padding: 30px 20px 20px 40px;  
  max-width: 1060px;
	}
}

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