@charset "UTF-8";

/* =========================================================
   Global Navigation
   PC: 横並び固定ヘッダー / SP: ハンバーガー→ドロワー
   ========================================================= */

.gNav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 100;
  background: rgba(0, 60, 102, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.25s ease;
}

.gNav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* brand */
.gNav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  letter-spacing: 2px;
  flex-shrink: 0;
}
.gNav__brandName {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
}
.gNav__brandName em {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  background: var(--ac-yellow);
  color: var(--ac-blue-deep);
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 1px;
  vertical-align: middle;
}

/* menu list (desktop) */
.gNav__menuWrap {
  display: flex;
  align-items: center;
}
.gNav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gNav__item {
  list-style: none;
}
.gNav__link {
  display: inline-block;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.gNav__link:hover {
  color: var(--ac-yellow);
  background: rgba(255, 255, 255, 0.06);
}

/* CTA item */
.gNav__item--cta {
  margin-left: 8px;
}
.gNav__link--cta {
  background: var(--ac-yellow);
  color: var(--ac-blue-deep);
  font-weight: 800;
  padding: 9px 18px;
}
.gNav__link--cta:hover {
  background: #fff;
  color: var(--ac-blue-deep);
}

/* toggle button (hidden on desktop) */
.gNav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 2;
}
.gNav__toggleBar {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.gNav__toggleBar:nth-child(1) { top: 13px; }
.gNav__toggleBar:nth-child(2) { top: 19px; }
.gNav__toggleBar:nth-child(3) { top: 25px; }

/* open state */
.gNav.is-open .gNav__toggleBar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.gNav.is-open .gNav__toggleBar:nth-child(2) {
  opacity: 0;
}
.gNav.is-open .gNav__toggleBar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* backdrop (SP only) */
.gNav__backdrop {
  display: none;
}

/* Body offset for fixed nav (nav has fixed height: 60px) */
body {
  padding-top: 60px;
}
html {
  scroll-padding-top: 76px;
  scroll-behavior: smooth;
}

/* =========================================================
   Mobile / SP
   ========================================================= */
@media screen and (max-width: 900px) {
  .gNav {
    height: 56px;
  }
  .gNav__inner {
    padding: 0 14px;
  }
  .gNav__brandName {
    font-size: 1.6rem;
    letter-spacing: 1.5px;
  }
  .gNav__brandName em {
    font-size: 1rem;
    padding: 2px 5px;
  }

  .gNav__toggle {
    display: block;
  }

  /* drawer panel */
  .gNav__menuWrap {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: 80px 24px 32px;
    background: linear-gradient(180deg, var(--ac-blue-deep) 0%, #001f33 100%);
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .gNav.is-open .gNav__menuWrap {
    transform: translateX(0);
  }

  .gNav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .gNav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .gNav__item:last-child {
    border-bottom: 0;
  }
  .gNav__link {
    display: block;
    padding: 14px 8px;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    border-radius: 0;
  }
  .gNav__link:hover {
    background: transparent;
  }

  .gNav__item--cta {
    margin: 16px 0 0;
  }
  .gNav__link--cta {
    text-align: center;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 1.5rem;
  }

  /* backdrop */
  .gNav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
  }
  .gNav.is-open .gNav__backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
  }

  /* body offset adjustment for SP (matches .gNav height) */
  body {
    padding-top: 56px;
  }
  html {
    scroll-padding-top: 72px;
  }

  /* lock body scroll when menu open */
  body.is-navOpen {
    overflow: hidden;
  }
}

@media screen and (max-width: 480px) {
  .gNav {
    height: 52px;
  }
  .gNav__inner {
    padding: 0 12px 0 14px;
  }
  body {
    padding-top: 52px;
  }
  html {
    scroll-padding-top: 68px;
  }
}
