/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 40px 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo a {
  display: block;
  line-height: 1;
}

.site-logo img {
  height: 100px;
  width: auto;
  display: block;
}

/* Nav */
.global-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.global-nav .nav-list a {
  font-family: var(--font-bunkyu-go);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.global-nav .nav-list a:hover {
  opacity: 0.6;
}

/* ========== Dropdown ========== */
.nav-list > li {
  position: relative;
}

.nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-dark);
  padding: 12px 0;
  min-width: 160px;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}

.nav-list > li:hover .sub-menu {
  display: flex;
}

.nav-list .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
}

/* ========== Hamburger ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* open state */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Mobile Menu ========== */
@media (max-width: 1024px) {
  .site-header {
    padding: 16px 24px;
  }

  .site-logo img {
    height: 60px;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 201;
  }

  .global-nav .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 150;
    overflow-y: auto;
  }

  .global-nav .nav-list.is-open {
    transform: translateX(0);
  }

  .global-nav .nav-list > li {
    text-align: center;
  }

  .global-nav .nav-list a {
    font-size: 18px;
    letter-spacing: 0.2em;
    text-align: center;
  }

  /* モバイルではドロップダウンをインライン展開 */
  .nav-list .sub-menu {
    display: flex;
    position: static;
    transform: none;
    background-color: transparent;
    padding: 8px 0 0;
    flex-direction: row;
    gap: 24px;
    min-width: auto;
  }

  .nav-list .sub-menu a {
    font-size: 13px;
    padding: 0;
    opacity: 0.7;
  }
}
