.container {
  max-width: 100%;
}
.swiper-container {
  height: calc(100vh - 170px);
}
.swiper-wrapper .swiper-slide {
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  height: calc(100vh - 170px);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.swiper-button-prev,
.swiper-button-next {
  width: 20px;
}

.mainv_ttl {
  position: absolute;
  top: 50%;
  width: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  transform: translate(0, -50%);
}

.mainv_ttl h2 {
  font-size: 46px;
  line-height: 1.2em;
  width: 100%;
  text-shadow: 0px 6px 6px rgb(0 0 0 / 20%);
}
span.mainv_caption {
  display: block;
  text-align: right;
  font-size: 14px;
  color: #fff;
  font-weight: 400;
}

@media screen and (max-width: 1080px) {
  .swiper-container {
    height: 60vh;
  }
  .swiper-wrapper .swiper-slide {
    height: 60vh;
  }
}
@media (orientation: landscape) and (max-width: 767px) {
  /*デバイスが横向き、画面の横幅が 767px 以下の場合の記述*/
  .mainv_ttl h2 {
    font-size: 30px;
  }
}

@media screen and (max-width: 480px) {
  /* 480px以下に適用されるCSS（スマホ用） */
  .swiper-wrapper .swiper-slide {
    height: auto;
  }
  .mainv_ttl {
    min-height: 100px;
  }
  .mainv_ttl h2 {
    font-size: 1.2rem;
  }
  .mainv_ttl p {
    font-size: 12px;
  }
  span.mainv_caption {
    font-size: 12px;
  }
  .swiper-button-prev,
  .swiper-button-next {
    width: 14px;
  }
}
