/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  /* 余白をなくす */
  display: flex;
  justify-content: center;
  /* 水平方向に中央寄せ */
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  /* 画面全体の高さ */
}

/* ローディング画面の基本スタイル */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  opacity: 1;
  /* 完全に表示 */
  visibility: visible;
  /* 初期は表示状態 */
  z-index: 9999;
  transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}

.loading-screen.hidden {
  opacity: 0;
  /* フェードアウト */
  visibility: hidden;
  /* 瞬時に非表示 */
  transition: opacity 0s ease-in-out, visibility 0s linear 0s;
}

/* ロゴのスタイル */
.loading-logo img {
  width: calc(600 / 1440 * 100vw);
  opacity: 1;
  /* animation: fadeInOut 1s ease-in-out forwards; */
}

/* テキストのスタイル */
.loading-text {
  margin-top: 20px;
  font-size: 24px;
  color: #36547B;
  opacity: 0;
  animation: fadeIn 3s ease-in-out 1s forwards;
}


/* 
.loading-x img {
  width: calc(480 / 1440 * 100vw);
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 65%;
  transform: translate(-50%, -50%);
} */

@media screen and (max-width: 960px) {
  .loading-x img {
    width: calc(720 / 1440 * 100vw);
    /* 幅をビューポート基準で調整 */
    opacity: 0;
    /* 初期は非表示 */
    position: absolute;
    top: 30%;
    /* 垂直中央 */
    left: 45%;
    /* 水平中央 */
    transform: translate(-50%, -50%);
    /* 正確な中央揃え */
  }
}

@media screen and (min-width: 961px) {
  .loading-x img {
    width: calc(720 / 1440 * 100vw);
    /* 幅をビューポート基準で調整 */
    opacity: 0;
    /* 初期は非表示 */
    position: absolute;
    top: 10%;
    /* 垂直中央 */
    left: 45%;
    /* 水平中央 */
    transform: translate(-50%, -50%);
    /* 正確な中央揃え */
  }
}


/* ロゴフェードイン・アウト */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* 「X」ロゴフェードインのアニメーション */
@keyframes xFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    /* 初期位置と縮小 */
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    /* 表示とスケール */
  }
}

/* ぼかしアニメーション */
@keyframes blurEffect {
  0% {
    filter: blur(0);
    opacity: 1;
  }

  100% {
    filter: blur(10px);
    opacity: 0.5;
  }
}

/* 「X」ロゴフェードイン */
@keyframes xFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    /* 初期位置と縮小 */
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    /* 表示とスケール */
  }
}

/* 「X」ロゴぼかしのアニメーション */
@keyframes xBlurEffect {
  0% {
    filter: blur(0);
    opacity: 1;
  }

  100% {
    filter: blur(10px);
    opacity: 0.5;
  }
}


@keyframes xFadeExpandBlur {
  0% {
    transform: scale(1);
    /* 初期サイズ */
    opacity: 1;
    /* 初期の不透明度 */
    filter: blur(0);
    /* ぼかしなし */
  }

  50% {
    transform: scale(1.5);
    /* 中間サイズ */
    opacity: 0.8;
    /* 少し透明になる */
    filter: blur(4px);
    /* ぼかしを適用 */
  }

  100% {
    transform: scale(2);
    /* 拡大 */
    opacity: 0;
    /* 完全に透明 */
    filter: blur(8px);
    /* さらにぼかす */
  }
}