/* 1025px以上（PC） */
@media (min-width: 1025px) {
  .nav-pc {
    display: flex;
  }
  .nav-sp,
  .hamburger,
  .global-nav-sp,
  .overlay {
    display: none;
  }
}

/* 1024px以下（SP） */
@media (max-width: 767px) {
  .nav-pc {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 10px;
    position: fixed;
    top: 14px;
    right: 10px;
    z-index: 3000;
    cursor: pointer;
  }

  .hamburger span {
    height: 3px;
    background: #FFF;
    border-radius: 2px;
    transition: all 0.3s;
    position: relative;
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 10px; }
  .hamburger span:nth-child(3) { top: 20px; }

  body.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 16px;
  }

  body.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
  }

  body.nav-open .overlay {
    display: block;
  }

  .global-nav-sp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.nav-open .global-nav-sp {
    opacity: 1;
    pointer-events: auto;
  }
}
.global-nav-sp ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.global-nav-sp li {
  margin: 20px 0;
}

.global-nav-sp a {
  display: inline-block;
  font-size: 18px;
  color: #FFF;
  text-decoration: none;
  padding: 10px 20px;
  transition: all 0.3s;
  font-weight: bold;
  border-bottom: 2px solid transparent;
}

.global-nav-sp a:hover {
  color: #0077cc;
  border-bottom: 2px solid #0077cc;
}
