/*----------
 common
 ----------*/

body {
  font-family: 'Noto Sans JP', sans-serif;
  /* background-image: url(../../assets/img/common/main-bg.jpg);
  background-position: center center;
  background-size: 100% 1200px;
  background-repeat: repeat-y; */
}

.main-bg {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
}

.main-bg:after {
  content: '';
  position: absolute;
  background-image: url(../../assets/img/common/main-bg.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: repeat-y;
  top: 0;
  left: 0;
  width: 100%;
  height: 1200px;
}

/*----------
 utility 
 ----------*/

.u-sp-only {
  display: none;
}
.u-pc-only {
  display: block;
}

@media screen and (max-width: 767px) {
  .u-sp-only {
    display: block;
  }
  .u-pc-only {
    display: none;
  }
}

a {
  transition: all 0.4s;
}

a:hover {
  opacity: 0.8;
}

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

.fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*----------
 mv
 ----------*/

.mv {
  position: relative;
}

/* MVの初期状態は非表示 */
/* .mv-001,
.mv-002 {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.mv-001.is-shown,
.mv-002.is-shown {
  opacity: 1;
} */

.mv-002 {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.mv-002.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.mv-logo {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 200px;
  z-index: 10;
}

@media screen and (max-width: 767px) {
  .mv-logo {
    width: 88px;
    top: 6;
    left: 10px;
  }
}

/*----------
 loading
 ----------*/

/* 全画面ローディング背景 */
.loading {
  position: fixed;
  inset: 0;
  background-color: #fff;
  z-index: 9999;
  transition: opacity 0.8s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading.loaded {
  opacity: 0;
  pointer-events: none;
}

/* 星アニメーション */
.loader-stars {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  max-width: 90vw;
  transition: opacity 0.8s ease;
}

.loader-stars.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-stars .star {
  width: 20px;
  height: 20px;
  animation: wave-star 1.4s linear infinite;
  animation-delay: calc(var(--i) * 0.11s);
  transform: translateY(0);
  opacity: 0.9;
}

@keyframes wave-star {
  0% {
    transform: translateY(0);
  }
  12.5% {
    transform: translateY(-10px);
  }
  25% {
    transform: translateY(10px);
  }
  37.5% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

.loading-text {
  /* 既存のスタイルそのまま＋非表示設定 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  margin: 0 auto;
  text-align: center;
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
  line-height: 150%;
  background: linear-gradient(90deg, #de980a 0%, #f1cb2c 50%, #de980a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.loading-text-br {
  display: none;
}
@media screen and (max-width: 1300px) {
  .loading-text-br {
    display: block;
  }
}

.loading-text.show {
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .loader-stars {
    gap: 6px;
    flex-wrap: wrap;
  }
  .loader-stars .star {
    width: 15px;
    height: 15px;
    animation-delay: calc(var(--i) * 0.08s);
  }

  .loading-text {
    font-size: 24px;
  }
}
