/* アニメーション要素を表示させるCSS */
[data-zanim],
.overflow-hidden [data-zanim],
h5[data-zanim],
h6[data-zanim],
p[data-zanim],
.zopacity {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* アニメーション用のスタイル */
.scroll-animation-container {
  overflow: hidden;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 既存のzanim要素を非表示に */
[data-zanim] {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* スライドタイトルのアニメーション */
.slide-title {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 2.56rem; /* 1.6rem * 1.6 = 2.56rem (62.5%ベース) */
  font-weight: 700;
  position: relative;
  z-index: 2;
  line-height: 1.4;
  letter-spacing: 0.05em;
  font-family: "メイリオ", Meiryo, "游ゴシック", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ＭＳ ゴシック", sans-serif;
}

.slide-title.animate {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .slide-title {
    font-size: 1.92rem; /* 1.2rem * 1.6 = 1.92rem (62.5%ベース) */
  }
}

/* 背景画像のパス修正 */
.background-holder {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* flexsliderのフェード時の設定 */
.flexslider {
  margin: 0;
  border: none;
  background: transparent;
}

.flex-viewport,
.slides,
.slides>li {
  height: 100%;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader.loading {
  display: none;
}

.loader {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-scale {
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-scale>div {
  background-color: #C3373D;
  width: 4px;
  height: 35px;
  border-radius: 2px;
  margin: 0 2px;
  display: inline-block;
  animation: line-scale 1s infinite ease-in-out;
}

.line-scale>div:nth-child(1) {
  animation-delay: 0.1s;
}

.line-scale>div:nth-child(2) {
  animation-delay: 0.2s;
}

.line-scale>div:nth-child(3) {
  animation-delay: 0.3s;
}

.line-scale>div:nth-child(4) {
  animation-delay: 0.4s;
}

.line-scale>div:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes line-scale {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.4);
  }
}