html,
body {
  font-size: clamp(12px, 2.5vw, 24px);
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Kosugi Maru', sans-serif;
  color: #fff;
  background: #000;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 1.2em;
}

footer div {
  /* Removed inline style for max-width, margin */
  text-align: center;
  padding: 1em 0;
  font-size: 0.8em;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding-top: 1em;
  padding-bottom: 1em;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.site-title {
  font-family: 'Nico Moji', sans-serif;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

.navbar {
  /* Added for nav styles */
  font-size: clamp(14px, 2vw, 24px);
  display: flex;
  align-items: center;
  gap: 1em;
}

/* Added for footer content max-width and margin */
.footer-content {
  max-width: 960px;
  margin: 0 auto;
}

/* Added for footer text margin */
.footer-text {
  margin-bottom: 0.5em;
}
nav a {
  margin: 0 1em;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  color: #f3fdff;
  text-shadow: 0 0 20px #00f0ff;
}

section {
  padding: 120px 0px 100px;
  min-height: 100vh;
  background-attachment: fixed;
  background-size: cover;
  box-sizing: border-box;
  position: relative;
  text-align: center;
}

.hero {
  background-image: url('images/hero-bg.jpg');
}

.hero_en {
  font-family: 'Nico Moji', sans-serif;
}

.hero_jp {
  font-family: 'Kosugi Maru', sans-serif;
  line-height: 1.5em;
}

#activity {
  background-image: url('images/activity-bg.jpg');
}

#awards {
  background-image: url('images/awards-bg.jpg');
}

#games {
  background-image: url('images/games-bg.jpg');
}

#awards div {
  margin: 1em;
}

section h1,
section h2,
section p,
section ul,
.hero div div,
.hero p {
  will-change: opacity, transform;
}

h2 {
  font-size: clamp(24px, 5vw, 48px);
  margin-bottom: 0.5em;
  text-shadow: 2px 2px 4px #000;
  display: inline-block;
  padding: 0.3em 1.2em;
  background: rgba(160, 170, 255, 0.3);
  border: 2px solid #00f0ff;
  border-radius: 999px;
  box-shadow: 0 4px #00f0ff;
  font-weight: bold;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3em;
  background-size: cover;
  min-height: 100vh;
  text-shadow: 0 0 20px #00f0ff;
}

/* Added for hero content alignment */
.hero-content {
  text-align: center;
}

/* Added for small hero JP text */
.hero-jp-small {
  font-size: clamp(14px, 2vw, 24px);
}

/* Added for large hero EN text */
.hero-en-large {
  font-size: clamp(64px, 12vw, 128px);
  font-weight: bold;
  margin: 0;
}

/* Added for medium hero EN text */
.hero-en-medium {
  font-size: clamp(14px, 1.5vw, 28px);
}

/* Added for hero description paragraph */
.hero-description {
  margin-top: 2em;
  font-size: clamp(12px, 1.8vw, 20px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  display: flex;
  overflow-x: hidden;
  gap: 1em;
  scroll-behavior: smooth;
  padding: 2em 0;
}

.game-entry {
  flex: 0 0 auto;
  width: 400px;
  background: rgba(0, 0, 0, 0.8);
  padding: 1.5em;
  border-radius: 12px;
  text-align: center;
  font-size: 1.0em;
}

.game-entry p {
  text-wrap: balance;
  font-size: 0.8em;
}

.game-entry img {
  width: 100%;
  border: 2px solid #2b2b2b;
  border-radius: 6px;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal img {
  max-width: 90vw;
  max-height: 90vh;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border: none;
  padding: 0.3em 0.3em;
  color: #00f0ff;
  transition: transform 0.2s;
  z-index: 100;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.0);
}
.scroll-button.float-left {
  animation: float-left 2s ease-in-out infinite;
}
.scroll-button.float-right {
  animation: float-right 2s ease-in-out infinite;
}

.scroll-button:hover {
  transform: translateY(-50%) scale(1.1);
  color: #ffffff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.scroll-button svg {
  transition: transform 0.3s ease;
}

.scroll-button:hover svg {
  transform: scale(1.25);
}

.scroll-button:first-of-type {
  left: 0px;
}

.scroll-button:last-of-type {
  right: 0px;
}

@keyframes float-left {
  0% {
    transform: translateY(-50%) translateX(0px);
  }
  25% {
    transform: translateY(-50%) translateX(-5px);
  }
  50% {
    transform: translateY(-50%) translateX(10px);
  }
  75% {
    transform: translateY(-50%) translateX(-5px);
  }
  100% {
    transform: translateY(-50%) translateX(0px);
  }
}

@keyframes float-right {
  0% {
    transform: translateY(-50%) translateX(0px);
  }
  25% {
    transform: translateY(-50%) translateX(5px);
  }
  50% {
    transform: translateY(-50%) translateX(-10px);
  }
  75% {
    transform: translateY(-50%) translateX(5px);
  }
  100% {
    transform: translateY(-50%) translateX(0px);
  }
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
}

.award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.award-year {
  background: linear-gradient(135deg, #00f0ff, #0077ff);
  color: #fff;
  border-radius: 999px;
  padding: 0.4em 1.6em;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-size: 1.2em;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.4);
}

.award-text {
  font-size: 1.1em;
  text-align: center;
}

.award-text span {
  opacity: 0.8;
  font-size: 0.7em;
}

.award-text+.award-text {
  margin-top: 1em;
}

/* Added for modal content size */
.modal-content {
  width: 90vw;
  height: 50vw;
  max-width: 1280px;
  max-height: 720px;
}

/* Added for modal video border radius */
.modal-video {
  border-radius: 12px;
}