/* ヘッダー全体 */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 999;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.header--unpinned {
  transform: translateY(-100%);
}

.g-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 6vw);
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
}

/* ロゴ */
.g-header-logo {
  display: flex;
  align-items: center;
  height: 60px;
}

.g-header-logoImg {
  width: 220px;
  height: 60px;
  background: url(/img/resident-logo.jpg) no-repeat left center / contain;
  margin: auto;
}

.g-header-logo-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* ナビゲーション */
.g-navi {
  display: flex;
  align-items: center;
  background: #fff;
}

.g-navi-ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 10px;
  padding: 0;
}

.g-navi-li {
  position: relative;
  margin: 0 10px;
  font-size: 1.4rem;
  font-weight: 500;
}

.g-navi-li-inner a {
  display: block;
  padding: 10px 6px;
  color: #333;
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

.g-navi-li-inner a:hover {
  color: #1a57b1;
}

/* ツールチップ */
.g-navi-li::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -2.8rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1E2635;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.g-navi-li:hover::after {
  opacity: 1;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  position: relative;
  width: 50px;
  height: 50px;
  z-index: 1000;
  background: transparent;
}

.hamburger span {
  display: inline-block;
  position: absolute;
  left: 14px;
  width: 45%;
  height: 1.6px;
  background: #333;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.hamburger span:nth-of-type(1) { top: 16px; }
.hamburger span:nth-of-type(2) { top: 24px; }
.hamburger span:nth-of-type(3) { top: 32px; }

.hamburger.active span:nth-of-type(1) {
  transform: translateY(8px) rotate(-45deg);
  width: 30%;
}
.hamburger.active span:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active span:nth-of-type(3) {
  transform: translateY(-8px) rotate(45deg);
  width: 30%;
}

/* メディアクエリ */
@media (max-width: 1020px) {
  .g-navi-ul {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 700px) {
  .g-header-logoImg {
    width: 200px;
    height: 60px;
  }
}