* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   CSS Variables
   ========================= */
:root {
  --root-font-size: 18px;
  --lvh: 100lvh;
}

@media (max-width: 768px) {
  :root {
    --root-font-size: 18px;
  }
}

/* =========================
   Base Styles & Fonts
   ========================= */
body {
  font-family: '源ノ角ゴシック', 'Source Han Sans', sans-serif;
  overflow-x: hidden;
  color: white;
  font-size: var(--root-font-size);
}

@font-face {
  font-family: 'ChiselNormal';
  src:
    url('../fonts/Chisel-Normal/chisel.wof2') format('woff2'),
    url('../fonts/Chisel-Normal/chisel.woff') format('woff'),
    url('../fonts/Chisel-Normal/chisel.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* =========================
   Layout Container
   ========================= */
.container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* =========================
   Progress Bar
   ========================= */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: #1f5a9f;
  z-index: 1000;
}

/* =========================
   Loading Screen
   ========================= */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
  background-color: #1f5a9f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  flex-direction: column;
  opacity: 1;
  transition: opacity 1s;
}

.loading-content {
  text-align: center;
}

.loading-percentage {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading-bar-wrapper {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%);
}

/* Loading animation keyframes */
@keyframes loadingOpacity {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

.loading-bar-wrapper p {
  animation: loadingOpacity 1.5s ease-in-out infinite;
}

.loading-bar {
  width: 80%;
  min-width: 250px;
  height: 1px;
  background-color: #aaaaaa;
  border-radius: 5px;
  margin-top: 20px;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background-color: white;
  border-radius: 5px;
}

/* =========================
   Utility Classes
   ========================= */
body.no-scroll {
  overflow: hidden;
}

/* =========================
   Section Layouts
   ========================= */
section {
  position: relative;
  width: 100vw;
  height: 100lvh;
  overflow: hidden;
}

/* =========================
   Logo Section
   ========================= */
.logo-section {
  position: absolute;
  top: 0;
  z-index: 4;
  color: black;
  background-color: white;
}

.logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.logo {
  width: 200px;
  height: 200px;
}

.logo-title {
  font-family: 'ChiselNormal', sans-serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 3rem;
  margin-top: 0.5rem;
}

.logo-title span {
  font-size: 3.5rem;
}

.logo-text {
  position: relative;
  width: max-content;
  white-space: nowrap;
  color: #575a5b;
}

.logo-text p {
  margin-top: 1.5rem;
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-25%);
  font-size: 1.25rem;
}

.slogan-br {
  display: none;
}

.scroll-arrows {
  position: absolute;
  font-size: 1rem;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
}

.scroll-arrows p,
.scroll-arrows-up p {
  margin-bottom: 8px;
  color: #005caf;
}

.arrow-up-animate {
  transform: rotate(180deg);
}

/* Logo Section - Responsive */
@media screen and (max-width: 480px) {
  .logo-text {
    width: 100vw;
    white-space: unset;
  }
  .logo-text p {
    transform: unset;
    width: 100%;
  }
  .slogan-br {
    display: block;
  }
}

/* =========================
   Earth Section & Clouds
   ========================= */
.cloud1,
.cloud2 {
  position: absolute;
  height: 125%;
  opacity: 1;
  z-index: 1;
}

.cloud1 {
  top: 0;
  right: 80%;
}

.cloud2 {
  bottom: 0;
  left: 80%;
}

@media screen and (max-width: 480px) {
  .cloud1 {
    top: 20%;
  }

  .cloud2 {
    bottom: 20%;
  }
}

/* =========================
   Earth Section
   ========================= */
.earth_scene {
  position: absolute;
  top: 0;
  z-index: 4;
}

.earth-text {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 5px;
  /* width: 60%; */
  margin-inline: auto;
  height: 100%;
  position: relative;
  z-index: 1;
  color: black;
  padding: 2rem;
  padding-block: 4rem;
}

.earth_scene canvas {
  position: absolute;
  top: 0;
  background-color: white;
}

@media screen and (max-width: 1280px) {
  .earth-text {
    /* width: 41%; */
  }
}

@media screen and (max-width: 1024px) {
  .earth-text {
    /* width: 80%; */
    /* width: 50%; */
  }
}

@media screen and (max-width: 480px) {
  .earth-text {
    /* width: 100%; */
  }
}

/* =========================
   Section Sizing and Positioning
   ========================= */
.deep-sea-section,
.lightning-section,
.fish-section,
.snake-section,
.submarine-to-space-section,
.gxpway-section {
  height: 100lvh;
  width: 100vw;
  position: absolute;
  top: 0;
}

.deep-sea-section {
  z-index: 4;
}

/* =========================
   Wave Section
   ========================= */
.wave-section {
  position: relative;
  height: fit-content;
  width: fit-content;
  z-index: 4;
  overflow: visible;
}

.pin-spacer:nth-of-type(1) {
  z-index: 2 !important;
}

.pin-spacer:nth-of-type(2) {
  z-index: 1 !important;
  background-color: #152544;
}

.wave-container {
  background: linear-gradient(to top, #228db1 10%, white 50%);
}

.wave-container,
.deep-sea {
  position: relative;
  width: 100vw;
  height: 100lvh;
}

.wave1,
.wave2,
.wave3,
.wave4 {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  animation: wave-animation 5s ease-in-out infinite;
  object-fit: cover;
  object-position: top;
}

.wave1 {
  top: 0;
  animation-delay: 0s;
  z-index: 4;
}

.wave2 {
  top: 10px;
  animation-delay: 1s;
  z-index: 3;
}

.wave3 {
  top: 20px;
  animation-delay: 2s;
  z-index: 2;
}

.wave4 {
  top: 30px;
  animation-delay: 3s;
  z-index: 1;
}

.wave-img-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  display: inline-block;
}

.wave-img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 80%, rgb(34, 141, 177));
  pointer-events: none;
  z-index: 3;
}

@keyframes wave-animation {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.wave-text-container {
  position: relative;
  width: 80%;
  height: 100%;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}

.wave-text {
  padding-inline: 2rem;

  text-shadow: 1px 1px 5px black;
}

@media screen and (max-width: 768px) {
  .wave-text-container {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .wave1,
  .wave2,
  .wave3,
  .wave4 {
    height: 75%;
    top: unset;
  }

  .wave2 {
    bottom: 10px;
  }

  .wave3 {
    bottom: 20px;
  }

  .wave4 {
    bottom: 30px;
  }
}

/* =========================
   Wave Transition Section
   ========================= */
.wave-transition {
  background-color: #152544;
  background: linear-gradient(to top, #152544 10%, #228db1 50%);
  background-position: bottom;
  background-size: cover;
  z-index: 3;
  width: 100vw;
  height: 100lvh;
}

.wave-transition img {
  position: absolute;
  top: 10vh;
  left: 0;
  width: 100%;
  animation: wave-animation 5s ease-in-out infinite;
  object-fit: cover;
  overflow: visible;
  z-index: 3;
}

.wave-transition-text {
  position: relative;
  width: 80%;
  margin-inline: auto;
  height: 100%;
  margin-block: auto;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding-block: 14rem;
  padding-inline: 6rem;

  text-shadow: 1px 1px 5px black;
}

@media screen and (max-width: 1280px) {
  .wave-transition-text {
    padding-block: 8rem;
    padding-inline: 0rem;
  }
}

.wave-transition-text p:nth-of-type(2) {
  align-self: flex-end;
  margin-left: auto;
  width: fit-content;
}

@media screen and (max-width: 1024px) and (min-height: 1100px) {
  .wave-transition img {
    width: 220%;
  }
}

@media screen and (max-width: 768px) {
  .wave-transition-text {
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding-inline: 2rem;
    padding-block: 12rem;
  }

  .wave-transition img {
    width: 220%;
  }
}

@media screen and (max-width: 480px) {
  .wave-transition img {
    width: 300%;
    top: 30vh;
  }
}

/* =========================
   Deep Sea to GxP Way Wrapper
   ========================= */
.sections-wrapper2 {
  position: relative;
  width: 100vw;
  height: 100lvh;
  z-index: -1;
}

/* =========================
   Deep Sea Section
   ========================= */
.deep-sea img {
  width: 100%;
  height: 100%;
  left: 0;
}

.deep-sea-container {
  width: 80%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 2rem;
}

@media screen and (max-width: 768px) {
  .deep-sea-container {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
}

/* =========================
   Lightning Section
   ========================= */
/* Flash animation keyframes for realistic lightning effect */
@keyframes flash {
  0%,
  95%,
  98% {
    opacity: 0;
  }
  96%,
  99%,
  100% {
    opacity: 1;
  }
}

.lightning {
  opacity: 0;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightning-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  text-shadow: 1px 1px 5px black;
}

/* =========================
   Section Backgrounds
   ========================= */
.deep-sea-bg,
.lightning-bg,
.fish-background-test,
.snake-background-test,
.submarine-transition-bg-test,
.space-transition-bg-test {
  background-position: center;
  background-size: cover;
  position: absolute;
  width: 100vw;
  height: 100lvh;
  z-index: -3;
}

.deep-sea-bg {
  background-color: #152544;
}

.lightning-bg {
  background-image: url('../img/lightning/lightning-bg.png');
}

.fish-background-test {
  background-image: url('../img/fish/bg-fish.png');
}

.snake-background-test {
  background-image: url('../img/snake/bg-snake.png');
}

.submarine-transition-bg-test {
  background-image: url('../img/submarineToSpace/bg-submarine-transition.png');
}

.space-transition-bg-test {
  background-image: url('../img/submarineToSpace/bg-space-transition.png');
}

/* =========================
   Fish Section
   ========================= */
.fish-container {
  position: relative;
  width: 100%;
  height: 100lvh;
  overflow: hidden;
}

.fish1 {
  height: 70vh;
  position: absolute;
  bottom: 30%;
  right: 80%;
}

.fish2 {
  height: 70vh;
  position: absolute;
  top: 30%;
  left: 80%;
}

/* Fish Section - Responsive */
@media screen and (max-width: 480px) {
  .fish1,
  .fish2 {
    height: 40vh;
  }

  .fish1 {
    bottom: 40%;
  }

  .fish2 {
    top: 40%;
  }
}

/* =========================
   Snake Section
   ========================= */
.snake-wrapper {
  position: inherit;
  height: 100lvh;
  width: 100vw;
}

.snake-section p {
  position: absolute;
  transform: translateY(-50%);
  text-shadow: 1px 1px 5px black;
  padding-inline: 2rem;
  top: 60%;
  left: 20%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.snake-section p span:first-of-type,
.snake_all_text {
  font-size: 24px;
  font-weight: bold;
}

.snake_end_text {
  font-size: 24px;
  font-weight: 500;
}

.snake-section p .snake-sp-br {
  display: none;
}

.snake-section p .snake-tablet-br {
  display: none;
}

@media screen and (max-width: 768px) {
  .snake-section p {
    top: 70%;
    left: 0%;
    padding-inline: 4rem;
  }

  .snake-section p {
    margin-inline: auto;
  }

  .snake-section p:first-of-type {
    width: 100%;
    text-align: center;
  }

  .snake-section p .snake-tablet-br {
    display: inline;
  }
}

@media screen and (max-width: 480px) {
  .snake-section p {
    padding-inline: 2rem;
    padding-right: 4rem;
  }
}

@media screen and (max-width: 480px) {
  .snake-section p {
    top: 45%;
  }

  .snake-section p .snake-sp-br {
    display: inline;
  }

  .snake-section p:first-of-type {
    text-align: left;
  }

  .snake-section p .snake-tablet-br {
    display: none;
  }
}

.snake-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  object-position: bottom;
}

.snake-section img:first-of-type {
  opacity: 1;
}

.snake-section .snake_all {
  opacity: 1;
  z-index: -1;
}

@media screen and (max-width: 768px) {
  .snake-section img {
    width: 100vh;
    height: 100vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}
/* =========================
   Submarine to Space Section
   ========================= */
.submarine-to-space-transition {
  width: 100%;
  height: 100%;
  position: relative;
}

.submarine-to-space-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.submarine-transition-text,
.space-transition-text {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
  text-shadow: 1px 1px 5px black;
  padding-inline: 2rem;
}

/* =========================
   GxP Way Section
   ========================= */
.gxpway-section {
  overflow: hidden;
}

.gxpway-container {
  width: 500vw;
  height: 100lvh;
  display: flex;
  position: relative;
}

.gxpway-background {
  background-image: url('../img/gxpway/bg-space.PNG');
  background-position: center;
  background-size: cover;
  position: absolute;
  width: 100vw;
  height: 100lvh;
  z-index: -3;
}

.gxpway-background.space-bg-2 {
  transform: scaleX(-1);
  z-index: -2;
}

.gxpway-background.space-bg-3 {
  transform: scaleY(-1);
  z-index: -1;
}

.gxpway-background.space-bg-1,
.gxpway-background.space-bg-2,
.gxpway-background.space-bg-3 {
  opacity: 0;
}

.gxpway {
  width: 100vw;
  position: relative;
}

.gxpway img {
  max-width: 100vw;
  z-index: -1;
}

.gxpway .gxpway-text {
  text-shadow: 1px 1px 5px black;
  height: 100%;
  width: 80%;
  margin-inline: auto;
  padding-inline: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gxpway .title {
  margin-bottom: 0.5rem;
}

.gxpway .subtitle {
  margin-bottom: 0.25rem;
}

.gxpway:nth-of-type(1) img {
  height: 40%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gxpway:nth-of-type(2) img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: bottom;
  overflow: visible;
  height: 80%;
}

.gxpway:nth-of-type(2) .gxpway-text {
  justify-content: start;
  padding-top: 3rem;
  gap: 2rem;
}

.gxpway:nth-of-type(2) .gxpway-text div:nth-of-type(2) {
  text-align: right;
}

.gxpway:nth-of-type(3) img {
  height: 90%;
  object-fit: contain;
  object-position: top;
  position: absolute;
  top: 2%;
  right: 0;
}

.gxpway:nth-of-type(3) .post {
  position: absolute;
  bottom: 4rem;
  left: 0;
  width: 100%;
  text-align: center;
  text-shadow: 1px 1px 5px black;
  padding-inline: 2rem;
  font-size: 1rem;
}

.gxpway:nth-of-type(4) img {
  height: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
  object-fit: cover;
  overflow: visible;
}

.gxpway:nth-of-type(5) img {
  height: 80%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  object-fit: cover;
  object-position: bottom;
  overflow: visible;
  z-index: -2;
}

.gxpway:nth-of-type(5) .gxpway-text {
  text-align: right;
}

/* GxP Way Section - Responsive */
@media screen and (min-width: 768px) {
  .gxpway .gxpway-text {
    max-width: 1440px;
    margin-inline: auto;
  }

  .gxpway:nth-of-type(1) img {
    left: 35%;
    height: 60%;
  }

  .gxpway:nth-of-type(1) .gxpway-text div {
    margin-left: auto;
  }

  .gxpway:nth-of-type(2) .gxpway-text {
    padding-top: 10rem;
  }

  .gxpway:nth-of-type(4) img {
    height: 90%;
  }
}

@media screen and (max-width: 480px) {
  .gxpway:nth-of-type(5) img {
    height: 40%;
  }

  .gxpway:nth-of-type(2) img {
    height: 35%;
  }

  .gxpway:nth-of-type(4) img {
    height: 55%;
  }

  .gxpway:nth-of-type(1) img {
    top: 40%;
  }

  .gxpway .gxpway-text {
    width: 100%;
  }

  .gxpway:nth-of-type(1) .gxpway-text {
    padding-top: 20rem;
  }

  .gxpway:nth-of-type(2) .gxpway-text {
    padding-top: 10rem;
  }

  .gxpway:nth-of-type(3) .gxpway-text {
    padding-top: 20rem;
  }

  .gxpway:nth-of-type(4) .gxpway-text {
    padding-bottom: 15rem;
  }
}

/* =========================
   Video Section
   ========================= */
.video-section {
  height: 100lvh;
  position: absolute;
  top: 0;
  opacity: 0;
}

.video-section .scroll-arrows {
  opacity: 0;
}

.video-section .video-pc,
.bunka-video-pc {
  height: 100%;
  width: 125%;
  position: absolute;
  left: -13%;
  object-fit: cover;
}

.video-sp,
.bunka-video-sp {
  height: 100%;
  width: 100%;
  position: absolute;
  object-fit: cover;
  display: none;
}

/* Video Section - Responsive */
@media screen and (max-width: 480px) {
  .video-section .video-wrapper {
    position: absolute;
    width: 100vw;
    height: 100lvh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .video-pc,
  .bunka-video-pc {
    display: none;
  }

  .video-sp,
  .bunka-video-sp {
    display: block;
  }
}

/* =========================
   Navigation and Menu Content
   ========================= */
.contents-section {
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in;
  pointer-events: none;
}

.contents-section.visible {
  opacity: 1;
  pointer-events: auto;
}

.contents-section h2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
  top: 50px;
  right: 50px;
  letter-spacing: 0.5rem;
}

/* =========================
   Hamburger Menu Structure
   ========================= */
/* Navigation list wrapper - takes remaining space */
.lists-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 24px;
  margin-top: 24px;
}

/* Social media icons container */
.hamburger-menu-sns-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 24px;
  padding: 0 10px 0 0;
}

/* Logo container */
.hamburger-menu-logo {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 24px;
  padding: 0 10px 0 0;
}

/* Buttons container */
.hamburger-menu-buttons {
  display: flex;
  justify-content: center;
  transform: scale(0.92);
  gap: 20px;
  width: 100%;
  margin-bottom: 24px;
  flex-direction: row;
  flex-wrap: nowrap;
}

/* Footer container */
.hamburger-menu-footer {
  text-align: right;
  width: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 10px 0 0;
}

.hamburger-menu-footer p {
  margin: 0;
  padding: 5px 0;
  line-height: 1.5;
}

/* =========================
   Menu List Styles
   ========================= */
.lists-wrapper ul {
  list-style: none;
}

.lists-wrapper ul li {
  cursor: pointer;
}

.list-title {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: solid 2px white;
  font-size: 1.25rem;
  height: 38px;
}

a {
  color: white;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 4px 0;
}

.lists-wrapper a {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease-in-out;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 18px;
}

@media (hover: hover) {
  .lists-wrapper a:hover {
    transform: scale(1.1);
    color: #1f5a9f;
    background-color: rgba(255, 255, 255, 0.5);
  }
}

.section-list-wrapper a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  margin: 0;
  transition: all 0.3s ease;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  width: 100%;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .section-list-wrapper a:hover {
    background-color: rgba(169, 178, 255, 0.5);
    color: white;
    transform: translateX(5px);
  }
}

.section-list-wrapper a:active {
  background-color: rgba(169, 178, 255, 0.7);
}

.section-number {
  font-size: 18px;
  font-weight: bold;
  min-width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-number img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.section-title {
  display: flex;
  flex-direction: column;
}

.section-title div:first-of-type {
  margin-bottom: 3px;
  font-size: 18px;
  font-weight: 500;
}

@media screen and (max-width: 480px) {
  .contents-section h2 {
    top: 15px;
    right: 15px;
  }

  .lists-wrapper {
    flex-wrap: wrap;
    gap: 0;
    padding: 1rem;
  }

  .lists-wrapper > div {
    flex-grow: 1;
  }

  .section-list-wrapper {
    display: flex;
  }
}

.section-list-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
  height: 100%;
}

.section-list-wrapper ul {
  padding-left: 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 400px;
}

.section-list-wrapper ul li {
  /* margin-bottom: 30px; */
}

@media (max-width: 768px) {
  .section-list-wrapper {
    display: flex;
  }
}

/* =========================
   Hamburger Menu Button
   ========================= */
.hamburger-menu-btn {
  position: fixed;
  z-index: 99;
  right: 0;
  top: 0;
  width: 55px;
  height: 55px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.hamburger-menu-btn .hamburger-menu-btn-area {
  transition: all 0.4s;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hamburger-menu-btn span {
  position: absolute;
  background: #173d7c;
  display: inline-block;
  left: 14px;
  height: 3px;
  transition: all 0.3s ease;
  width: 50%;
  border-radius: 2px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hamburger-menu-btn span:nth-of-type(1) {
  top: 18px;
}

.hamburger-menu-btn span:nth-of-type(2) {
  top: 26px;
}

.hamburger-menu-btn span:nth-of-type(3) {
  top: 34px;
}

.hamburger-menu-btn.active {
  right: 0;
  top: 0;
  width: 55px;
  height: 55px;
}

.hamburger-menu-btn.active .hamburger-menu-btn-area {
  transform: rotate(360deg);
}

.hamburger-menu-btn.active span:nth-of-type(1) {
  width: 55%;
  top: 26px;
  left: 12px;
  transform: rotate(45deg);
  opacity: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hamburger-menu-btn.active span:nth-of-type(2) {
  display: none;
  opacity: 0;
}

.hamburger-menu-btn.active span:nth-of-type(3) {
  width: 55%;
  top: 26px;
  left: 12px;
  transform: rotate(-45deg);
  opacity: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hamburger Menu States */
.light-background .hamburger-menu-btn span {
  background: #173d7c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dark-background .hamburger-menu-btn span {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hamburger-menu-btn.blue-state span {
  background: #173d7c !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hamburger-menu-btn.white-state span {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .hamburger-menu-btn:not(.blue-state):hover span {
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  .hamburger-menu-btn.blue-state:hover span {
    background: #173d7c !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
}

.hamburger-menu-btn.active {
  border: none;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
}

.hamburger-menu-btn.active span {
  background: #fff !important;
  box-shadow: none;
  height: 3px !important;
  opacity: 1 !important;
  transition:
    transform 0.2s ease,
    background 0.1s linear;
}

/* =========================
   Hamburger Menu Tab (Sidebar)
   ========================= */
.hamburger-menu-tab {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: lightgray;
  width: 0;
  overflow: hidden;
  z-index: 98;
  transition: all 0.1s ease-in-out;
}

.hamburger-menu-tab.active {
  width: 35%;
  background-color: #173d7c;
  color: white;
}

.lists-container-div {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: 30px 25px 25px 25px;
  box-sizing: border-box;
  overflow: auto;
}

@media screen and (max-width: 768px) {
  .hamburger-menu-tab.active {
    width: 100%;
    background-color: #173d7c;
  }

  .hamburger-menu-btn {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =========================
   End Screen Section
   ========================= */
.end-screen-transition {
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 5;
  position: absolute;
  top: 0;
  opacity: 0;
}

.end-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
}

.end-screen-contents {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  padding: 0 35px;
  color: black;
  align-items: center;
  height: 100%;
}

.end-screen-top {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 50px;
  flex-grow: 1;
}

.end-screen-top .logo {
  width: 350px;
  height: 350px;
}

.end-screen-top h2 {
  text-align: center;
  color: #1e50a2;
  line-height: 52px;
}

.end-screen-bottom ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
}

.end-screen-bottom ul li {
  max-width: 520px;
}

.end-screen-bottom {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
}

.end-screen-bottom a {
  color: #1e50a2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 8px;
  font-weight: bold;
}

.end-screen-bottom a img {
  transition: transform 0.3s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
  .end-screen-bottom a:hover img {
    transform: translateX(5px);
  }
}

.end-screen-bottom p {
  font-size: 16px;
}

.scroll-arrows-up-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
}

.scroll-arrows-up {
  font-size: 1rem;
  bottom: 20px;
  text-align: center;
  z-index: 5;
  cursor: pointer;
}

.scroll-arrows-up img {
  transition: transform 0.3s ease-in-out;
}

@media screen and (max-width: 1280px) {
  .end-screen-top {
    /* margin-top: 30px; */
    gap: 0px;
  }

  .end-screen-top .logo {
    /* width: 270px; */
    width: 250px;
    /* height: 270px; */
    height: 250px;
  }

  .end-screen-top h2 {
    /* font-size: 24px; */
    font-size: 20px;
    line-height: 35px;
  }

  .end-screen-top h2 span {
    /* font-size: 26px; */
    font-size: 24px;
  }

  .end-screen-bottom ul {
    /* gap: 30px 60px; */
    gap: 15px 30px;
  }

  .end-screen-bottom p {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .end-screen-top .logo {
    width: 300px;
    height: 300px;
  }

  .end-screen-top {
    margin-top: 25px;
    gap: 24px;
  }

  .end-screen-top h2 {
    font-size: 16px;
    line-height: 42px;
    font-size: 24px;
  }
}

@media screen and (max-width: 480px) {
  .end-screen-contents {
    padding: 0px 30px;
  }

  .end-screen-top {
    margin-top: 35px;
    /* gap: 24px; */
  }

  .end-screen-top h2 {
    font-size: 16px;
    line-height: 32px;
  }

  .end-screen-top h2 span {
    font-size: 20px;
  }

  .end-screen-top .logo {
    width: 200px;
    height: 200px;
  }

  .end-screen-bottom ul {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .scroll-arrows-up:hover img {
    transform: rotate(180deg) translateY(5px);
  }
}

/* Button styles */
.hamburger-menu-btn1,
.hamburger-menu-btn2 {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  width: 100%;
  max-width: 280px;
  text-align: center;
  letter-spacing: 1px;
  text-decoration: none;
  box-sizing: border-box;
  flex: 1;
  white-space: nowrap;
}
.hamburger-menu-btn1 {
  background-color: #005caf;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
}

@media (hover: hover) and (pointer: fine) {
  .hamburger-menu-btn1:hover {
    background-color: #0073da;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  }
}

.hamburger-menu-btn1:active {
  background-color: #0086ff;
}

.hamburger-menu-btn2 {
  background-color: #ff9a60;
  color: white;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .hamburger-menu-btn2:hover {
    background-color: #ffa775;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
}

.hamburger-menu-btn2:active {
  background-color: #ffb489;
}

/* Medium screen adjustments for hamburger menu */
@media screen and (max-width: 1024px) {
  .hamburger-menu-buttons {
    transform: scale(0.9);
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }

  .hamburger-menu-btn1,
  .hamburger-menu-btn2 {
    padding: 10px 18px;
    font-size: 14px;
    min-width: 140px;
    max-width: 200px;
    letter-spacing: 0.5px;
  }
}

/* Mobile adjustments for hamburger menu */
@media screen and (max-width: 768px) {
  .lists-container-div {
    padding: 15px 25px 22px 25px;
  }

  .hamburger-menu-buttons {
    gap: 16px;
    transform: scale(1.2);
  }

  .hamburger-menu-btn1,
  .hamburger-menu-btn2 {
    padding: 10px 14px;
    font-size: 13px;
    min-width: 110px;
    max-width: 150px;
    letter-spacing: 0.3px;
  }

  .hamburger-menu-footer {
    font-size: 10px;
  }

  .hamburger-menu-logo > img {
    width: 220px;
  }

  .hamburger-menu-sns .sns-link img {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 600px) {
  .hamburger-menu-tab.active {
    width: 100%;
  }

  .lists-container-div {
    padding: 15px 20px 22px 20px;
  }

  .hamburger-menu-buttons {
    gap: 12px;
  }

  .hamburger-menu-btn1,
  .hamburger-menu-btn2 {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 90px;
    max-width: 130px;
    letter-spacing: 0.2px;
  }

  .hamburger-menu-logo > img {
    width: 200px;
  }

  .hamburger-menu-sns .sns-link img {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 480px) {
  .lists-container-div {
    padding: 15px 15px 22px 15px;
  }

  .hamburger-menu-buttons {
    gap: 8px;
    transform: scale(1.6);
  }

  .hamburger-menu-btn1,
  .hamburger-menu-btn2 {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 70px;
    max-width: 110px;
    letter-spacing: 0.1px;
  }

  .hamburger-menu-logo > img {
    width: 180px;
  }

  .hamburger-menu-sns .sns-link img {
    width: 16px;
    height: 16px;
  }
}

@media screen and (max-width: 360px) {
  .hamburger-menu-buttons {
    gap: 6px;
  }

  .hamburger-menu-btn1,
  .hamburger-menu-btn2 {
    padding: 5px 6px;
    font-size: 10px;
    min-width: 60px;
    max-width: 90px;
    letter-spacing: 0px;
  }
}

/* =========================
   Social Media and Logo Styling
   ========================= */
.hamburger-menu-tab .list-title {
  border-bottom: solid 2px white;
  color: white;
}

.hamburger-menu-sns {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hamburger-menu-logo > img {
  width: 300px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  max-width: 100%;
  object-fit: contain;
}

.hamburger-menu-sns .sns-link {
  display: block;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.hamburger-menu-sns .sns-link img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hamburger-menu-sns .sns-link:hover img {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hamburger-menu-logo > img:hover {
  opacity: 1;
}

.section-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* =========================
   Culture (Bunka) Video Section
   ========================= */
.scroll-arrows.scroll-arrows-video {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.bunka-no-koto-bg {
  background-color: rgba(255, 255, 255, 0.8);
  width: 100%;
  height: 100%;
  z-index: 4;
  position: relative;
  opacity: 0;
}

.bunka-no-koto-text.first,
.bunka-no-koto-text.second {
  position: absolute;
  left: 0%;
  top: 0%;
  z-index: 5;
  color: black;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-inline: 3rem;
}

.bunka-no-koto-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.bunka-no-koto-text-wrapper div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bunka-video-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
