/* ローディングのコンテナ */
.preloader-wrap {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #f2f2f2;
  z-index: 1800;
  display: flex;
  justify-content: center;
  /* 水平方向中央揃え */
  align-items: center;
  /* 垂直方向中央揃え */
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ローダーのスタイリング */
.loader {
  position: relative;
  width: 50px;
  height: 50px;
  background-color: #015db2;
  border-radius: 50%;
  /* 円形にする */
}

/* ローダーのアニメーション */
.loader:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border: 4px solid white;
  animation: loading 1.5s ease-out infinite;
}

/* アニメーションの設定 */
@keyframes loading {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  50% {
    width: 100%;
    height: 100%;
    opacity: 0.5;
  }

  100% {
    width: 0;
    height: 0;
    opacity: 0;
  }
}

/* 非表示時のスタイル */
.disable-ajaxload .preloader-wrap {
  display: none;
}