@charset "utf-8";
/* CSS Document */

/* ヘッダー */
/* ヘッダー */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  height: 50px;
}

.nav {
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 15px;
  position: relative;
	z-index: 3000;   /* ← ここも高めに！ */
}

/* メニュー（PC） */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.menu li a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* ハンバーガー開閉アニメ */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* モバイル（全幅ドロップダウン） */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;             /* 横幅いっぱい */
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    padding: 0;
    gap: 0;
    text-align: center;
	 z-index: 2000;   

    /* ドロップダウンアニメ */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  .menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .menu li a {
    display: block;
    padding: 15px;
  }

  .menu.active {
    max-height: 600px; /* 十分に大きい値 */
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }
}
