@charset "UTF-8";

/* =========================
   全体中央寄せ
========================= */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  /* min-height: 100vh; */
  /* display: grid; */
  /* place-items: center; */
}

/* =========================
   星の背景
========================= */

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  opacity: 0.75;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0% {
    opacity: 0.25;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.9;
    transform: scale(1);
  }

  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
}

/* =========================
   カルーセル本体
========================= */

.carousel-wrap {
  position: relative;
  width: min(800px, 100vw);
  height: min(760px, 100vw);
  overflow: hidden;
  margin: 0 auto;
}

/* 惑星の上の文字 */
.planet-title-img {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  z-index: 30;
  width: 300px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.planet-orbit {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 920px;
  max-width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* =========================
   惑星画像
========================= */

.circle {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
  transition:
    left 0.45s ease,
    top 0.45s ease,
    width 0.45s ease,
    height 0.45s ease,
    opacity 0.45s ease,
    filter 0.45s ease;
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;

  --float-duration: 3s;
  --float-delay: 0s;
  --float-y: -18px;

  animation: floatPlanet var(--float-duration) ease-in-out infinite;
  animation-delay: var(--float-delay);
}

@keyframes floatPlanet {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(var(--float-y));
  }

  100% {
    transform: translateY(0);
  }
}



/* 中央の惑星 */
.circle.is-center {
  opacity: 1;
  filter: none;
  z-index: 10;
}



/* 左右の惑星 */
.circle.is-side {
  opacity: 1;
  filter: none;
  z-index: 2;
}

.circle.is-side img {
  filter: brightness(0.55);
}
/* =========================
   配置：中央
========================= */

.slot-0 {
  left: 50%;
  top: 45%;
  width: 370px;
  height: 370px;
}

/* =========================
   配置：左側4つ
========================= */

.slot--1 {
  left: 32%;
  top: 40%;
  width: 72px;
  height: 72px;
}

.slot--2 {
  left: 16%;
  top: 47%;
  width: 92px;
  height: 92px;
}

.slot--3 {
  left: 18%;
  top: 62%;
  width: 116px;
  height: 116px;
}

.slot--4 {
  left: 36%;
  top: 69%;
  width: 138px;
  height: 138px;
}

/* =========================
   配置：右側4つ
========================= */

.slot-1 {
  left: 68%;
  top: 40%;
  width: 72px;
  height: 72px;
}

.slot-2 {
  left: 84%;
  top: 47%;
  width: 92px;
  height: 92px;
}

.slot-3 {
  left: 82%;
  top: 62%;
  width: 116px;
  height: 116px;
}

.slot-4 {
  left: 64%;
  top: 69%;
  width: 138px;
  height: 138px;
}

/* =========================
   左右ボタン
========================= */
.controls {
  position: absolute;
  left: 50%;
  bottom: 140px;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 20;
}

.controls button {
  width: 50px;
  height: 50px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.controls button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.triangle-button-shape {
  fill: #fff000;
}

.controls button:hover {
  transform: scale(1.08);
}
/* =========================
   スマホ対応
========================= */

@media (max-width: 640px) {
  .carousel-wrap {
    width: 100vw;
    height: 100vw;
  }

  .planet-title-img {
    top: 12%;
    width: 320px;
  }

  .slot-0 {
    width: 34vw;
    height: 34vw;
  }

  .slot--1,
  .slot-1 {
    width: 9vw;
    height: 9vw;
  }

  .slot--2,
  .slot-2 {
    width: 12vw;
    height: 12vw;
  }

  .slot--3,
  .slot-3 {
    width: 15vw;
    height: 15vw;
  }

  .slot--4,
  .slot-4 {
    width: 18vw;
    height: 18vw;
  }

  .controls {
    bottom: 20px;
  }

  .controls button {
    width: 48px;
    height: 48px;
  }
}