/* Adapted from ROCK 'N' ROLL header.css: fixed header, active menu and hamburger. */
.header {
  height: var(--header);
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(#05070bef, #05070bb3);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-logo {
  flex-shrink: 0;
  width: 92px;
}
.header-logo img {
  height: 76px;
  width: 92px;
  object-fit: contain;
}
.header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}
.header nav a {
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0.1em;
  transition: color 0.5s;
}
.header nav a:hover {
  color: var(--silver);
}
.header nav .nav-x {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}
.nav-x img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.hamburger {
  display: none;
}
@media (max-width: 960px) {
  .header {
    padding: 0 20px;
  }
  .header-logo,
  .header-logo img {
    width: 72px;
    height: 62px;
  }
  .hamburger {
    display: block;
    width: 44px;
    height: 44px;
    position: relative;
    border: 0;
    background: none;
    color: var(--silver);
    z-index: 22;
  }
  .hamburger span {
    display: block;
    height: 1px;
    background: currentColor;
    margin: 7px 0;
    transition:
      transform 0.5s,
      opacity 0.5s;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .header nav {
    position: fixed;
    inset: var(--header) 0 auto;
    height: calc(100dvh - var(--header));
    background: #05070bf7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.5s,
      visibility 0.5s;
  }
  .header nav.active {
    visibility: visible;
    opacity: 1;
  }
  .header nav a {
    font-size: 20px;
  }
  .menu-open {
    overflow: hidden;
  }
}
/* ROCK header.css submenu: desktop dropdown / mobile nested links. */
.nav_sub {
  position: relative;
  display: flex;
  align-items: center;
}
.submenu-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.submenu-toggle {
  width: 32px;
  height: 44px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font:
    16px/1.4 Georgia,
    serif;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.submenu-toggle:after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--silver);
  border-bottom: 1.5px solid var(--silver);
  transform: translateY(-2px) rotate(45deg);
}
.sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  margin: 0;
  padding: 22px 0 0;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.sub-menu li {
  background: #0b1420f7;
  border-bottom: 1px solid var(--line);
}
.header .sub-menu a {
  display: block;
  text-align: center;
  padding: 14px 20px;
  font-family: 'Yu Mincho', serif;
  font-size: 16px;
}
.header .sub-menu a:hover {
  background: var(--blue);
}
.nav_sub.is-open .sub-menu {
  visibility: visible;
  opacity: 1;
}
@media (min-width: 961px) {
  .submenu-toggle {
    width: 18px;
    justify-content: flex-end;
  }
  .header .sub-menu a {
    font-size: 14px;
  }
  .header nav,
  .nav_sub {
    height: 100%;
  }
  .sub-menu {
    padding-top: 0;
  }
}
@media (max-width: 960px) {
  .nav_sub {
    display: block;
    text-align: center;
  }
  .submenu-toggle {
    font-size: 20px;
  }
  .sub-menu {
    position: static;
    transform: none;
    width: auto;
    padding: 10px 0 0;
    display: none;
  }
  .nav_sub.is-open .sub-menu {
    display: block;
  }
  .sub-menu li {
    background: none;
    border: 0;
  }
  .header .sub-menu a {
    font-size: 16px;
    padding: 5px 15px;
  }
  .header nav {
    overflow-y: auto;
    gap: 22px;
  }
}
