
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #000;
  color: #ffffff;
}

.section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.section-1 {
  background-image: url("bg-page1.png");
}

.section-2 {
  background-image: url("bg-page2.png");
}

.section-3 {
  background-image: url("bg-page3.png");
}

.clickable {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}


.clickable:hover {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.1);
}

.btn-x {
  position: absolute;
  left: 2%;
  bottom: 4%;
  z-index: 10;
}

.btn-x img {
  width: 52px; 
  max-width: 100%;
}


.page1-logo {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%; 
  max-width: 700px;
}


.page1-character {
  position: absolute;
  left: 6%; 
  bottom: 3%; 
  width: 18%; 
  max-width: 260px;
}


.floating {
  animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}


.arrow-down {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  z-index: 5;
}

.arrow-down img {
  width: 70px; 
  max-width: 100%;
  animation: arrowBounce 1.7s ease-in-out infinite;
}


@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}




.about-title {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%; 
  max-width: 420px;
}


.about-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; 
  max-width: 900px;
  text-align: center;
  font-size: 1.35rem; 
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.65);
}



.chart-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.chart-frame {
  position: relative;
  width: 70%; 
  max-width: 1100px;
  aspect-ratio: 16 / 9; 
  background: #000;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
}


.chart-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.chart-title {
  position: absolute;
  top: 6%;
  left: 6%;
  width: 18%; 
  max-width: 340px;
  pointer-events: none;
}


.chart-character-left {
  position: absolute;
  left: 0%;
  bottom: 4%;
  width: 55%; 
  max-width: 600px;
}

.chart-character-right {
  position: absolute;
  right: 4%;
  bottom: 2%;
  width: 22%; 
  max-width: 400px;
}



@media (max-width: 768px) {
  .btn-x img {
    width: 40px;
  }

  .page1-logo {
    width: 70%;
    top: 42%;
  }

  .page1-character {
    width: 32%;
    left: 4%;
    bottom: 2%;
  }

  .arrow-down img {
    width: 56px;
  }

  .about-title {
    width: 50%;
    top: 6%;
  }

  .about-text {
    width: 86%;
    font-size: 1.05rem;
  }

  .chart-frame {
    width: 90%;
    aspect-ratio: 9 / 11;
  }

  .chart-title {
    width: 36%;
    left: 4%;
  }

  .chart-character-left,
  .chart-character-right {
    width: 30%;
  }
}
