/* ====================
  共通スタイル
==================== */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  border-radius: 16px;
  z-index: 1000;
}

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

.site-logo {
  width: 150px;
  position: sticky;
  z-index: 10000;
}
.site-logo img {
  width: 100%;
  display: block;
}

/* PC用ナビ（ニューモーフィズム） */
.global-nav {
  display: flex;
  gap: 2rem;
  padding: 0.6rem 1.8rem;
  border-radius: 12px;
}
.global-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav li a {
  color: #333;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s;
}
.global-nav li a:hover {
  opacity: 0.7;
}

/* ハンバーガーアイコン */
.hamburger-wrapper {
  width: 56px;
  height: 56px;
  display: none; /* PC時非表示 */
  align-items: center;
  justify-content: center;
  z-index: 1001;
  border-radius: 12px;
}
.hamburger {
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 2px;
  background-color: #111;
  display: block;
  transition: all 0.3s ease;
  border-radius: 2px;

  /* ✅ 追加：縦並び */
  margin: 5px 0;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* オーバーレイ背景 */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ====================
  SP用スタイル
==================== */
@media (max-width: 768px) {
  .global-nav {
    display: none;
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }
  .header-inner {
    padding: 0 20px;
}
  .global-nav.open {
    display: flex;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .global-nav li {
    border-bottom: solid 1px #efefef;
    padding-bottom: 12px;
  }

  .global-nav li a {
    font-size: 22px;
    font-weight: 600;
  }

  .hamburger-wrapper {
    display: flex;
  }
}