@charset "UTF-8";

/* =========================
   Loading page only
========================= */
body.page-loading {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Agbalumo", sans-serif;
  overflow: hidden;
}

/* 背景（クリックを奪わない + 正しい重なり順） */
.page-loading .background {
  background-color: #000;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-loading .background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* レイアウト（背景より上に載せる） */
.page-loading .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 80px;
}

/* 時計 */
.page-loading .clock {
  position: relative;
  width: 246px;
  height: 246px;
  border: 5px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

.page-loading .hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: #fff;
}

.page-loading .hour {
  height: 64px;
  width: 5px;
}

.page-loading .minute {
  height: 88px;
  width: 5px;
}

.page-loading .second {
  height: 128px;
  width: 5px;
  background: #c70000;
  transform-origin: 50% 80%;
  bottom: 39%;
}

.page-loading .center-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #c70000;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ロゴ */
.page-loading .logo-section {
  position: relative;
  z-index: 2; /* 念のため Enter/ロゴを前面に */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-loading .logo {
  width: 148px;
  height: auto;
}

/* Enter（確実に押せる） */
.page-loading .enter {
  position: relative;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  width: 148px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  margin-top: 24px;
  color: #000;
  padding-bottom: 4px;
}

/* =========================
   Click-safety (最優先)
   ローディング中はEnter以外のクリックを全遮断
========================= */
body.page-loading * {
  pointer-events: none !important;
}

body.page-loading .enter,
body.page-loading .enter * {
  pointer-events: auto !important;
}

body.page-loading .enter {
  position: relative;
  z-index: 2147483647 !important; /* 最前面に固定 */
}

/* =========================
   SP
========================= */
@media screen and (max-width: 767px) {
  .page-loading .container {
    gap: 80px;
  }

  .page-loading .clock {
    width: calc(246px * 0.75);
    height: calc(246px * 0.75);
    border-width: 3.75px;
  }

  .page-loading .hour {
    height: 48.75px;
    width: 3.75px;
  }

  .page-loading .minute {
    height: 66px;
    width: 3.75px;
  }

  .page-loading .second {
    height: 87px;
    width: 3.75px;
    bottom: 40%;
  }

  .page-loading .center-point {
    width: 9px;
    height: 9px;
  }

  .page-loading .logo {
    width: 111px;
  }

  .page-loading .logo img {
    width: 111px;
  }

  .page-loading .enter {
    width: 111px;
    font-size: 28px;
    padding-bottom: 4px;
  }
}
