﻿.mainvisual {
  width: 100%;
  height: 60vh;
}

@media (max-width: 768px) {
  .mainvisual {
    height: 55vh;
    min-height: 400px;
  }
}

.swiper-slide {
  overflow: hidden;
  position: relative;
}

/* site.cssの定義に勝つためにここにネストします */
.swiper-slide .slide-caption {
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 0.5s;
  /* 遅延させてフェードイン */
  /* Glassmorphism card style (PC only) */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2rem 3rem;
  border-left: 4px solid #fa3;
  /* アクセントカラー */
  border-radius: 0 10px 10px 0;
}

@media (max-width: 768px) {
  .swiper-slide .slide-caption {
    background: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 1rem;
    border: none;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    left: 0 !important;
    right: 0 !important;
    bottom: 15% !important;
    /* site.cssのbottom: 10%を上書き */
  }
}

.swiper-slide .slide-caption .en {
  display: block;
  font-family: "Garamond", serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: #fa3;
  /* アクセントカラー */
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .swiper-slide .slide-caption .en {
    font-size: 1rem;
  }
}

.swiper-slide .slide-caption .jp {
  display: block;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .swiper-slide .slide-caption .jp {
    font-size: 1.5rem;
  }
}

.swiper-slide-active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}

.slide-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 8s linear;
}

@media (max-width: 768px) {
  .slide-image.slide-01 {
    background-position: 80% center;
  }
}

/* アクティブなスライドの画像をズームさせる (Ken Burns effect) */
.swiper-slide-active .slide-image {
  transform: scale(1.1);
  transition: transform 8s linear;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 左寄せ */
  padding-left: 10%;
  /* 暗くするオーバーレイ削除 */
  /* background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%); */
}

@media (max-width: 768px) {
  .slide-content {
    align-items: flex-end;
    /* モバイルは下寄せ */
    padding-left: 0;
    justify-content: center;
    padding-bottom: 80px;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%); */
  }
}

/* ページネーションの色変更 */
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: #fa3;
  opacity: 1;
}