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

  html, body 
  {
    width: 100%;
    height: 100%;
    overflow-x: hidden; 
    background-color: black;
    scroll-behavior: smooth;
  }

.navbar
{
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-height: 100px;
    background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,     /* solid black from top */
    rgba(0, 0, 0, 0.9) 30%,  /* still almost black */
    rgba(0, 0, 0, 0.5) 60%,  /* fading */
    rgba(0, 0, 0, 0) 100%     /* fully transparent at bottom */
  );
}


.nav-left, .nav-right 
{
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-left
{
    justify-content: flex-start;
    padding-right: 2rem;
}

.nav-right
{
    justify-content: flex-end;
    padding-left: 2rem;
}

.hamburger
{
    display: flex;
    flex-direction: column;
    justify-content: center;        
    align-items: center;  
    gap: 8px;
    cursor: pointer;
    width: 55px;
    height: 50px;
    border-radius: 3px;
    pointer-events: none;
}

.hamburger span
{
    width: 40px;
    height: 4.5px;
    background-color: white;
    display: block;
    transition: all 0.3s ease;
}

.hamburger-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 10px;
  z-index: 10;
}

.dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: black;
  border-radius: 5px;
  border: 1px solid white;
  padding: 0.5rem 1rem;
  z-index: 10000;
  gap: 10px;
  min-width: 250px;
  margin-top: 0px;
}

.dropdown-menu a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.4rem 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
}

.dropdown-menu a:hover {
  text-decoration: underline;
}

.hamburger-container:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hamburger-container:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-logo
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.nav-center {
  justify-content: center; 
  flex: 0 0 auto;
}

.nav-logo img
{
    width: auto;
    display: block;
    object-fit: contain; 
    height: 125px;
}

.nav-btn
{
    font-size: 1.5em;
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
    color: white;
}

.nav-btn:hover
{
    color: white;
    transition: all 0.4s ease;
}

.hover-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5em;
  font-family: 'Noto Serif JP', serif;
  font-weight: bold;
  transition: color 0.4s ease;
}

.hover-icon-button .airplane-icon {
  width: 50px;
  height: auto;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-icon-button:hover {
  color: white;
}

.hover-icon-button:hover .airplane-icon {
  opacity: 1;
  transform: translateX(0);
}

.main-layout
{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}


.main-layout-field1 {
  position: relative;
  overflow: hidden;
  min-height: 210vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.main-layout-field2 {
  position: relative;
  overflow: hidden;
  min-height: 170vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.main-layout-field1::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 210vh; /* match video height */
  pointer-events: none; /* clicks pass through */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,       /* full black at bottom */
    rgba(0, 0, 0, 0.85) 40%,   /* still mostly black */
    rgba(0, 0, 0, 0.4) 70%,    /* fading more */
    rgba(0, 0, 0, 0) 100%      /* fully transparent at top */
);
  z-index: 0; /* under other content but above video (video z-index: 0) */
  mix-blend-mode: multiply; /* optional, blends nicely */
}

.main-layout-field2::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 210vh; /* match video height */
  pointer-events: none; /* clicks pass through */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,       /* full black at bottom */
    rgba(0, 0, 0, 0.85) 40%,   /* still mostly black */
    rgba(0, 0, 0, 0.4) 70%,    /* fading more */
    rgba(0, 0, 0, 0) 100%      /* fully transparent at top */
);
  z-index: 0; /* under other content but above video (video z-index: 0) */
  mix-blend-mode: multiply; /* optional, blends nicely */
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.main-layout-field1 > *:not(.background-video) {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.main-layout-field2 > *:not(.background-video) {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.main-layout-field1.first-field {
  height: 210vh;
  position: relative;
  overflow: hidden;
}

.main-layout-field1.first-field .container {
  position: relative;
  height: 210vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30vh; /* space from top */
  z-index: 1;
}


/*-------------------- FIRST FIELD ---------------------*/
.title {
  padding: 1.5rem 3rem;
  margin-bottom: 40vh;
  color: white;
  font-family: 'Noto Serif JP', serif;
  font-size: 6rem;
  text-align: center;
  min-width: 180px;
  margin-top: 5rem;
}

.text {
  padding: 1rem 2rem;
  color: white;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  text-align: center;
  min-width: 120px;
  margin-bottom: 2vh;
}

.text-top {
  margin-bottom: 15vh;
  width: 800px;
  font-weight: bold;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.text-middle {
  margin-bottom: 4vh;
  width: 500px;
}

/* Unified Text Section Styling */
.text-section {
  position: absolute;
  width: 400px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  color: white;
  font-family: 'Noto Serif JP', serif;
  align-items: center;
  text-align: center;
}

.text-section .text {
  font-size: 1.2rem;
  padding: 1rem 0;
  width: 100%;
}

.text-section .small-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}

/* Positioning for specific sections */
.text-section.left {
  top: 135vh;
  left: 7vw;
}

.text-section.right {
  top: 135vh;
  right: 7vw;
}

.text-section.bottom {
  top: 160vh;
  left: 50%;
  transform: translateX(-50%);
}

.text-section.middle {
  position: relative;
  margin-bottom: 4vh;
  width: 500px;
  align-items: center;
  text-align: center;
}


/*-------------------- SECOND FIELD ---------------------*/
.second-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10rem;
  height: 210vh;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 6rem;
  color: white;
  font-family: 'Noto Serif JP', serif;
  text-align: center;
  margin-bottom: 15rem;
  margin-top: 55rem;
}

.section-subtext {
  font-size: 2.5rem;
  color: white;
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Noto Serif JP', serif;
  text-transform: uppercase;
}

.split-layout {
  display: flex;
  width: 80%;
  max-width: 1200px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1rem;
  gap: 4rem;
}

.left-col, .right-col {
  color: white;
  font-family: 'Noto Serif JP', serif;
  flex: 1;
  margin-top: 2rem;
}

.left-col h2, .right-col h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.left-col h2
{
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.left-col p, .right-col p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.left-col p
{
    width: 450px;
    font-size: 1.3rem;
}

.right-col p
{
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.divider {
  width: 1px;
  background-color: white;
  height: 550px;
  opacity: 0.6;
}

.info-block {
  margin-bottom: 1.5rem;
}



/*-------------------- THIRD FIELD ---------------------*/
.main-layout-field1.third-field {
  height: 210vh;
  position: relative;
  overflow: hidden;
}

.main-layout-field1.third-field .container2 {
  position: relative;
  height: 210vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30vh; /* space from top */
  z-index: 1;
}

.subtitle
{
    text-transform: uppercase;
    font-size: 2rem;
  color: white;
  font-family: 'Noto Serif JP', serif;
  text-align: center;
  width: 900px;
}

.text-section2 {
  position: absolute;
  width: 400px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  color: white;
  font-family: 'Noto Serif JP', serif;
  align-items: center;
  text-align: center;
}

.text-section2.left1
{
    top: 130vh;
    left: 15vw;
    text-align: left;
    width: 500px;
}

.text-section2.right1
{
    top: 145vh;
    right: 15vw;
    width: 500px;
}

.text-section2.left2
{
    top: 160vh;
    left: 15vw;
    width: 500px;
}

.text-section2.right2
{
    top: 175vh;
    right: 15vw;
    width: 500px;
}

.paragraph
{
    padding: 1rem 2rem;
  color: white;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  text-align: center;
  min-width: 120px;
  margin-bottom: 2vh;
  text-align: justify;
}

.horizontal-divider {
  width: 450px;
  height: 1px;
  background-color: white;
  opacity: 0.5;
  border: none;
}


/*-------------------- FOURTH FIELD ---------------------*/
.container3
{
    position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30vh; /* space from top */
  z-index: 1;
}

.subtitle4
{
    font-size: 1.7rem;
  margin-bottom: 0.5rem;
  margin-top: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}



/*-------------------- FOOTER ------------------*/

.footer-reveal {
  position: relative;
  height: 40vh;
  overflow: hidden;
}

/* The video fills the section but stays contained */
.footer-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.footer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(5px);
}

/* Text on top */
.footer-text {
  position: absolute;
  bottom: 40%;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 2rem;
  z-index: 2;
  font-family: 'Noto Serif JP', serif;
  padding: 0 2rem;
}

.footer-button {
  position: absolute;
  bottom: 15%; /* adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-family: 'Noto Serif JP', serif;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none; /* removes underline */
  display: inline-block;
  transition: background-color 0.3s ease;
}

.footer-button:hover {
  background-color: black;
}


/*-------------------- INTRO ------------------*/
.intro-overlay {
  position: fixed;
  inset: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: overlayFadeOut 0.8s ease forwards;
  animation-delay: 1.2s;
}

.intro-logo {
  width: 250px;
  opacity: 0;
  animation: logoFade 0.9s ease forwards;
  animation-delay: 0.3s;
}

/* Logo fades in and stays */
@keyframes logoFade {
  0% { opacity: 0; }
  55% { opacity: 1; }
  100% { opacity: 1; }
}

/* Fade out everything */
@keyframes overlayFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}



/*------------------- MOBILE VIEW --------------------*/
@media (max-width: 768px) {
    html, body {
    font-size: 14px;
    overflow-x: hidden;
  }
  
    .navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 2rem; /* Adjust global horizontal padding */
    width: 100%;
    box-sizing: border-box;
  }

  .nav-left, .nav-right, .nav-center {
    flex: none;
    padding: 0;
  }

  .nav-center
  {
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-left, .nav-right {
    width: auto;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .nav-right
  {
    padding-left: 150px;
  }

  .nav-logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav-logo img {
    height: 80px;
    width: auto;
  }

  .hamburger {
    width: 40px;
    height: 40px;
    gap: 6px;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
  }

  .nav-btn, .hover-icon-button {
    font-size: 1rem;
  }

  .dropdown-menu a {
    font-size: 1.2rem;
  }

  .hover-icon-button .airplane-icon {
    width: 20px;
  }

  .footer-text {
    font-size: 1.2rem;
  }

  .footer-button {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .intro-logo {
    width: 180px;
  }

  .hover-icon-button {
    font-size: 1.2rem;
  }

  .hover-icon-button .airplane-icon {
    width: 30px;
  }

  .main-layout-field1.first-field .container,
  .main-layout-field1.third-field .container2,
  .second-layout {
    padding-top: 10vh;
    padding-bottom: 5vh;
    flex-direction: column;
    align-items: center;
  }

  /* Avoid altering section height here */
  .main-layout-field1::after,
  .main-layout-field2::after {
    /* Keep original 210vh if used for visual effect */
    height: 210vh;
  }

  /* Titles & Subtitles */
  .title {
    font-size: 3rem;
    padding: 1rem;
    margin-top: 2rem;
    margin-bottom: 4vh;
  }

  .subtitle,
  .section-title {
    font-size: 2rem;
    width: 90%;
    margin: 3rem auto 2rem;
  }

  .subtitle4 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

  .section-subtext {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .text, .text-top, .text-middle, .paragraph {
    font-size: 1rem;
    padding: 0 1rem;
    width: 90%;
    margin: 1rem auto;
    text-align: center;
  }

  .text-top {
    font-weight: bold;
    text-transform: uppercase;
  }

  .text-middle {
    width: 100%;
  }

  /* Text sections become normal blocks */
  .text-section,
  .text-section.left,
  .text-section.right,
  .text-section.bottom,
  .text-section.middle,
  .text-section2.left1,
  .text-section2.right1,
  .text-section2.left2,
  .text-section2.right2 {
    position: static;
    transform: none;
    width: 90%;
    margin: 2rem auto;
    text-align: center;
    align-items: center;
  }

  .text-section .small-title {
    font-size: 1.2rem;
    margin-top: 2rem;
  }

  .text-section2 {
    width: 90%;
    margin: 2rem auto;
  }

  /* Columns stack */
  .split-layout {
    flex-direction: column;
    width: 95%;
    margin-top: 2rem;
    gap: 2rem;
  }

  .left-col,
  .right-col {
    width: 100%;
    margin-top: 0;
    text-align: center;
  }

  .left-col h2,
  .right-col h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .left-col p,
  .right-col p {
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .divider {
    display: none;
  }

  .horizontal-divider {
    width: 90%;
    margin: 2rem auto;
  }

  .field1-content.second-layout {
    padding-top: 100vh;
    padding-bottom: 3rem;
    align-items: center;
  }

  .split-layout {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 95%;
  }

  .left-col,
  .right-col {
    width: 100%;
    padding: 0 1rem;
    text-align: center;
  }

  .left-col h2,
  .right-col h2 {
    font-size: 1.4rem;
  }

  .left-col p,
  .right-col p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
  }

  .divider {
    display: none;
  }

  .info-block {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 2.2rem;
    padding: 0 1rem;
  }

  .section-subtext {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
}


@media (max-width:1500px) and (min-width: 768px)
{
  .main-layout-field1.first-field,
  .main-layout-field1.first-field .container {
    height: 170vh;
    padding-top: 20vh;
  }

  .title {
    font-size: 4rem;
    padding: 1rem 2rem;
    margin-bottom: 20vh;
  }

  .section-title
  {
    font-size: 4rem;
  }

  .text {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .text-top {
    font-size: 1.1rem;
    width: 600px;
    margin-bottom: 10vh;
  }

  .text-middle {
    width: 400px;
    font-size: 1rem;
    margin-bottom: 3vh;
  }

  .text-section {
    width: 320px;
  }

  .text-section .text {
    font-size: 1rem;
    padding: 0.7rem 0;
  }

  .text-section .small-title {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
  }

  .text-section.left,
  .text-section.right {
    top: 120vh;
  }

  .text-section.bottom {
    top: 145vh;
  }

  .text-section.middle {
    width: 400px;
  }

  .footer-reveal {
    height: 50vh; /* slightly taller on medium screens */
  }

  .footer-text {
    font-size: 1.8rem;
    bottom: 45%; /* adjust position slightly higher */
    padding: 0 1.5rem;
  }

  .footer-button {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    bottom: 18%;
  }

  .footer-video {
    filter: blur(4px); /* slightly less blur for better readability */
  }

  .main-layout-field1.third-field,
  .main-layout-field1.third-field .container2 {
    height: 180vh;
    padding-top: 20vh;
  }


  .subtitle {
    font-size: 1.7rem;
    width: 700px;
    padding: 0 1rem;
  }

  .text-section2 {
    width: 320px;
  }

  .text-section2.left1,
  .text-section2.right1,
  .text-section2.left2,
  .text-section2.right2 {
    width: 400px;
  }

  .text-section2.left1 {
    top: 105vh;
    left: 15vw;
  }

  .text-section2.right1 {
    top: 125vh; /* increased gap from left1 */
    right: 15vw;
  }

  .text-section2.left2 {
    top: 145vh; /* increased gap from right1 */
    left: 15vw;
  }

  .text-section2.right2 {
    top: 165vh; /* increased gap from left2 */
    right: 15vw;
  }

  .paragraph {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5vh;
  }

  .horizontal-divider {
    width: 350px;
  }
  .second-layout {
    padding-top: 20rem;         /* reduced spacing */
    height: auto;              /* lets it shrink naturally */
  }

  .section-title {
    font-size: 4rem;
    margin-top: 8rem;          /* reduced from 55rem */
    margin-bottom: 6rem;
  }

  .section-subtext {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .split-layout {
    flex-direction: row;
    flex-wrap: wrap;           /* allows better responsiveness */
    gap: 3rem;
    justify-content: center;
    margin-top: 1rem;
  }

  .left-col, .right-col {
    flex: 1 1 400px;           /* responsive column width */
    margin-top: 1rem;
    text-align: left;
  }

  .left-col p {
    font-size: 1.15rem;
    width: 90%;
  }

  .right-col p {
    font-size: 1.1rem;
  }

  .divider {
    display: none;             /* hide on medium screens */
  }
}