/* ナビPC版 横並び */
.global_nav{
  margin-left: auto;
}
.global_nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.global_nav a,
.global_nav a:visited {
  position: relative;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 1.7rem;
  color: #996c33;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.global_nav a:hover{
  color: #eaa0a7;
}
.global_nav a::after{
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #eaa0a7;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.global_nav a:hover::after{
  width: 100%;
}
.global_nav li:last-child a:hover::after {
  display: none;
}

/* ハンバーガー非表示（PC） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: #eaa0a7;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 40px;
  height: 4px;
  background: #fff;
  border-radius: 2;
  margin: 4px 0;
  transition: 0.3s;
}
/* 開いた時の×アイコン */
.hamburger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9999;
  }
  .global_nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    padding: 60px 20px;
    transition: right 0.3s ease;
    z-index: 200;
    background: #f3e9e8;
  }
  .global_nav.open {
    right: 0;
  }

  .global_nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  .global_nav li {
    width: 100%;
    border-bottom: 1px solid var(--color-grn);
    padding: 15px 10px;
    /* margin-bottom: 20px; */
  }
  .global_nav li:last-child{
    padding: 10px;
  }
  .global_nav a {
    display: block;
    text-decoration: none!important;
    font-size: 1.8rem!important;
  }
  .global_nav a:hover::after{
    width: 0;
  }
    /* オーバーレイ（グレー背景） */
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 100;
  }
  #overlay.active {
    opacity: 1;
    visibility: visible;
  }

}