@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: 50px auto 0; /* pxは上余白 */
  width: calc(100% - 20px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
	}
}
@media print, screen and (min-width: 768px) {
.swiper-wrap {
  margin:80px auto 0; /* pxは上余白 */
  width: calc(100% - 35px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  }
}
@media print, screen and (min-width: 992px) {
.swiper-wrap {
  margin:100px auto 0; /* pxは上余白 */
  width: calc(100% - 35px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  }
}
@media print, screen and (min-width: 1600px) {
.swiper-wrap {
  margin: 120px auto 0; /* pxは上余白 */
  width: calc(100% - 60px); /* pxは左右同じ余白合計 */
  max-width: 100vw;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  }
}
@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;  
}
.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:60vh;}
.slide-img > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
	}
}

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

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

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

/* ----------------------------------------------------
  #mainimage
---------------------------------------------------- */
#mainimage{
  background: linear-gradient(to bottom, #eff8ff 0%, #b7dbff 40%, #b7dbff 60%, #eff8ff 100%);
  padding-top: 10px !important;
}
@media print, screen and (min-width: 768px) {
#mainimage{
  padding-top: 20px;
  padding-bottom: 20px;
  }
}
@media print, screen and (min-width: 1200px) {
#mainimage{
  padding-top: 30px;
  padding-bottom: 30px;
  }
}

/* h2
---------------------------------------------------- */
@media only screen and (max-width: 767px)  {
#mainimage h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  margin: 0;
  text-align: center;
  width: 90%;        /* 画面幅に合わせてはみ出しを防ぐ調整 */
  transition-duration: 300ms;
  }
#mainimage h2 img{border-radius: 10px;}  
}

@media print, screen and (min-width: 768px){
#mainimage h2{
  position: absolute;
	z-index: 5;
	bottom: 0;
	right: 0;
  max-width: 80%;
	}	
}
@media print, screen and (min-width: 992px){
#mainimage h2{
	bottom: 0%;
	right: 0;
	}
}

#mainimage h2 img{transition-duration: 300ms;} 

/* ----------------------------------------------------
  背景アニメーション　スクエア
---------------------------------------------------- */
/* 親要素 */
.bg_square {
    position: relative; 
    overflow: hidden;
}

/* 背景アニメーションのエリア */
.squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    overflow: hidden;
    z-index: 2;    
    margin: 0;
    padding: 0;
}

/* 前面に来るコンテンツ */
.bg_square .bg_square_hoka {
    position: relative;
    z-index: 1; 
}

/* --- 四角形の共通設定 --- */
.squares li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2); 
    animation: animate 25s linear infinite;
    bottom: -150px; 
    border-radius: 20%; /* 50%で円 */
}

.squares li:nth-child(1){ left: 5%;  width: 80px; height: 80px; animation-delay: 0s; }
.squares li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.squares li:nth-child(3){ left: 80%; width: 20px; height: 20px; animation-delay: 4s; }
.squares li:nth-child(4){ left: 10%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.squares li:nth-child(5){ left: 85%; width: 100px; height: 100px; animation-delay: 0s; }
.squares li:nth-child(6){ left: 95%; width: 110px; height: 110px; animation-delay: 3s; }
.squares li:nth-child(7){ left: 15%; width: 150px; height: 150px; animation-delay: 7s; }
.squares li:nth-child(8){ left: 95%; width: 50px; height: 50px; animation-delay: 15s; animation-duration: 45s; }
.squares li:nth-child(9){ left: 10%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.squares li:nth-child(10){ left: 95%;width: 50px; height: 50px; animation-delay: 0s; animation-duration: 11s; }
.squares li:nth-child(11){ left: 5%; width: 45px; height: 45px; animation-delay: 9s; animation-duration: 22s; }
.squares li:nth-child(12){ left: 75%;width: 90px; height: 90px; animation-delay: 12s; animation-duration: 16s; }
.squares li:nth-child(13){ left: 90%;width: 30px; height: 30px; animation-delay: 5s; animation-duration: 20s; }
.squares li:nth-child(14){ left: 5%; width: 70px; height: 70px; animation-delay: 17s; animation-duration: 28s; }
.squares li:nth-child(15){ left: 90%;width: 40px; height: 40px; animation-delay: 8s; animation-duration: 14s; }

/* --- アニメーションの動き --- */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 20%; 
    }
    100% {
        transform: translateY(-2500px) rotate(720deg);
        opacity: 0;
        border-radius: 20%; 
    }
}