@charset "utf-8";

/* ----------------------------------------------------
  #mainimage 全体のレイアウト
---------------------------------------------------- */
#mainimage {
  position: relative;
  line-height: 0;
  width: 100%;
  background-color: #ec3c64;/* 背景色 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----------------------------------------------------
  swiper-wrap（中央配置の修正）
---------------------------------------------------- */
.swiper-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media only screen and (max-width: 767px) {
  .swiper-wrap {
    margin-top: 10px;
    width: calc(100% - 20px);
    margin-bottom: 10px;    
  }
}
@media print, screen and (min-width: 768px) {
  .swiper-wrap {
    margin-top: 10px;
    width: calc(100% - 10px);
    margin-bottom: 10px;
  }
}
@media print, screen and (min-width: 992px) {
  .swiper-wrap {
    margin-top: 30px;
    width: calc(100% - 60px);
    margin-bottom: 30px;
  }
}
@media print, screen and (min-width: 1600px) {
  .swiper-wrap {
    margin-top: 30px;
    width: calc(100% - 60px);
    margin-bottom: 30px;
  }
}

/* ----------------------------------------------------
  h2
---------------------------------------------------- */
#mainimage h2 {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  margin: 0;
  text-align: center;
  width: 85%;
  transition-duration: 300ms;
}

@media print, screen and (min-width: 768px) {
  #mainimage h2 img {
    max-width: 700px;
    transition-duration: 300ms;
    margin: 0 auto;
  }
}
@media print, screen and (min-width: 992px) {
  #mainimage h2 img {
    max-width: 606px;
    margin: 0 auto;
  }
}
@media print, screen and (min-width: 1200px) {
  #mainimage h2 img {
    max-width: 806px;
    margin: 0 auto;
  }
}

/* ----------------------------------------------------
  Swiper / 画像周り
---------------------------------------------------- */
.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-wrapper {
  width: 100%;
  display: flex;
}

.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;
  }
}

.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: 80vh;
  }
  .slide-img > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

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

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