@charset "utf-8";

* {
  box-sizing: border-box;
}

/* スライドショー */
.top {
  margin-top: 100px;
}

.swiper-container {
  /* position: absolute; */
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  height: 100vh;
  max-height: 600px;
  min-height: 300px;
}

.swiper-slide .swiper-wrapper {
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

/* スライドショー画像 */
.slide1 {
  background-image: url(../img/slide1.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

}

.slide2 {
  background-image: url(../img/slide2.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

}

.slide3 {
  background-image: url(../img/slide3.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

}

/*スライドショーに載せるタイトル  */
.s-fade-text {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--font);
  font-size: 3vw;
}

.swiper-slide-active .s-fade-text {
  animation: slideTextFade 1.75s ease 0s 1 normal;
}


/*スライドショーに載せるタイトル 固定 */

.read {
  position: absolute;
  /* width: 60%; */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 900;
  /* background-color: rgb(255, 255, 255,0.2); */
}

.read h1 {
  color: wh;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 2;
  font-family: 'Montserrat', sans-serif;
  color: white;
  /* text-shadow: 0 0 2px white, 0 0 6px white; */
}

/* フローティングバナー */
.floating-banner {
  position: fixed;
  /* バナーを追従させる */
  z-index: 99999;
  /* 他の要素の下に隠れないように */
  bottom: 0;
  /* バナーの上下の位置 */
  left: 0;
  /* バナーの左右の位置 */
  max-width: 200px;
  /* バナーの横幅 */
  text-align: right;

}

.floating-banner img {
  max-width: 100%;
  /* 画像の最大幅 */
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.35);
}

@media screen and (max-width: 990px) {

  /* タブレット用のブレイクポイントを指定 */
  .floating-banner {
    display: none;
    /* タブレットサイズ以下でPC用のバナーを非表示に */
  }
}

@media screen and (max-width: 560px) {

  /* スマホ用のブレイクポイントを指定 */
  .floating-banner {
    display: block;
    /* 消していたバナーを表示させる */
    /* width: 100vw; */
    /* スマホの画面幅いっぱいにバナーを表示 */
    text-align: right;
    max-width: 180px;

  }
}

/* メインビジュアル */

.swiper-slide-active .s-fade-text {
  animation: slideTextFade 1.75s ease 0s 1 normal;
}

@keyframes slideTextFade {

  0%,
  25% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* タブレット */
@media screen and (max-width: 990px) {

  .read h1 {
    font-size: 2rem;
  }
}


@media screen and (max-width: 640px) {

  /* スライドテキスト */
  .s-fade-text {
    font-size: 3vw;
  }

  .swiper-container {
    max-height: 400px;
  }

  .slide1 {
    background-image: url(../img/slide-c1.jpg);
    background-position: center;
  }

  .slide2 {
    background-image: url(../img/slide-c2.jpg);
    background-position: center;
  }

  .slide3 {
    background-image: url(../img/slide-c3.jpg);
    background-position: center;
  }

}



/* サムネイル画像 */

.carousel {
  margin: 50px auto 0;
  max-width: 800px;
}

.main-img {
  /* height: 334px; */
  max-width: 100%;
}

.main-img img {
  height: auto;
  max-width: 100%;
}

.sub-img {
  display: flex;
  margin-top: 10px;
  margin-right: 2rem;
}

.sub-img li {
  margin-right: 2%;
  width: calc(96% / 3);
}

.sub-img li:nth-child(3n) {
  margin-right: 0;
}

.sub-img li img {
  border: 2px solid transparent;
  transition: border .5s;
}

.sub-img img {
  cursor: pointer;
  max-width: 100%;
}

/* アクティブな画像の枠線を変更 */
.sub-img li.current img {
  border: 2px solid red;
  transition: border .5s;
}