/* === Responsive Adjustments for Tablet === */
@media (max-width: 768px) {
  .logo-mask {
    width: 140px;
    height: 140px;
  }

  #loading-screen {
    padding: 1em;
  }
}

/* === Responsive Adjustments for Mobile === */
@media (max-width: 480px) {
  .logo-mask {
    width: 100px;
    height: 100px;
  }
}


/* ========== HEADER (Mobile) ========== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    margin: 1em 0;
  }

  .logo {
    flex-direction: column;
    align-items: center;
  }

  .logo-image {
    height: 80px;
    width: auto;
  }

  .nav-and-sns {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 1em;
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .nav-links a {
    font-size: 16px;
  }

  .sns-icons {
    justify-content: center;
  }

  .sns-icons a {
    font-size: 18px;
  }
}

/* ========== SECTION 1 (Mobile) ========== */
@media (max-width: 768px) {
  .hero-video-section {
    height: 85vh;
  }

  .video-overlay-text {
    padding-top: 50vh;
    padding-left: 8vw;
    padding-right: 8vw;
    text-align: center;
    font-size: small;
  }

  .video-overlay-text h1 {
    font-size: 1.3em;
    line-height: 1.4;
  }

  .video-overlay-text p {
    font-size: 0.95em;
    line-height: 1.5;
  }
}
/* ========== Advanced Mobile Nav Toggle ========== */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1.2em;
    right: 1.2em;
    z-index: 1001;
  }

.mobile-nav-toggle .bar {
  height: 3px;
  width: 28px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animated 'X' with extended lines */
.mobile-nav-toggle.open .bar:nth-child(1) {
  transform: rotate(55deg) translate(6px, 6px);
  width: 40px;
}

.mobile-nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .bar:nth-child(3) {
  transform: rotate(-55deg) translate(6px, -6px);
  width: 40px;
}


  /* Nav Links Slide In Animation */
.nav-links {
  position: fixed;
  top: 0;
  left: -100%;
  width: 60%;
  max-width: 320px;
  height: 70vh;
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 2.5em 2em;
  transition: left 0.4s ease-in-out, opacity 0.4s ease-in-out;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  z-index: 1000;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  backdrop-filter: blur(8px);
}

  .nav-links.active {
    left: 0;
    opacity: 1;
  }

  .nav-links a {
    font-size: 18px;
    color: #333;
    transition: color 0.3s;
  }

  .nav-links a:hover {
    color: #c00;
  }

  .sns-icons {
    flex-direction: row;
    justify-content: center;
   
  }
}
