/* ============================================
   GLOBAL HEADER
   concrete-jungle.jp
   ============================================ */

.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999; /* LoaderやScannerラインより上に配置する場合 */
  transition: transform 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.global-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Logo --- */
.global-header__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: var(--ls-wide);
  position: relative;
  z-index: 10001;
}

/* --- Desktop Nav --- */
.global-header__nav {
  display: flex;
  gap: var(--space-lg);
}

.global-header__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  transition: color var(--duration-fast);
  position: relative;
  padding: var(--space-xs) 0;
}

.global-header__link:hover {
  color: var(--color-neon-cyan);
}

.global-header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-neon-cyan);
  transition: width var(--duration-normal);
}

.global-header__link:hover::after {
  width: 100%;
}

/* --- Mobile Hamburger (Cyber Grid Style) --- */
.global-header__hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10001;
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-text-primary);
  transition: fill var(--duration-fast), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.global-header__hamburger:hover .hamburger-icon {
  fill: var(--color-neon-pink);
}

/* Open State (Mobile Only) */
body.is-menu-open .global-header__hamburger .hamburger-icon {
  fill: var(--color-neon-cyan);
  transform: rotate(90deg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .global-header__nav {
    display: none;
  }
  .global-header__hamburger {
    display: block;
  }

  /* Full Screen Menu State */
  body.is-menu-open .global-header {
    height: 100vh;
    height: 100dvh; /* For mobile browsers */
    background-color: rgba(10, 10, 10, 0.98);
  }

  body.is-menu-open .global-header__inner {
    display: block; /* override flex */
  }

  body.is-menu-open .global-header__logo {
    position: absolute;
    top: 22px; /* Center with 70px header */
    left: var(--space-xl);
  }

  body.is-menu-open .global-header__hamburger {
    position: absolute;
    top: 15px;
    right: var(--space-xl);
  }

  body.is-menu-open .global-header__nav {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    background: transparent;
  }

  body.is-menu-open .global-header__link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
  }
}
