/* 左：縦型ヘッダー（固定）(PC版) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100svh;
  background-color: #898d8c;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

/* ヘッダー開状態(SP版) メニュー外 */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999; /* メニューの下、ボタンより下に */
}

/* ハンバーガーメニュー */
.hamburger-button {
  display: none;
}

/* ヘッダー内容 */
.header-logo {
  width: 100%;
  margin-bottom: 30px;
}

.header-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-menu a {
  font-size: 1.125rem;
  text-align: center;
  color: #333333;
}

.header-menu a.current {
  color: #ffffff;
  font-weight: bold;
}

/* スマホ版 */
@media screen and (max-width: 767px) {
  .header {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 0;
    background-color: transparent;
    position: fixed;
  }

  .header .animation-fade-in-up {
    width: 100%;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .header-logo {
    display: none;
  }

  .hamburger-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 0;
    right: 0;
    height: 60px;
    width: 60px;
    z-index: 1100;

    background-color: #898d8c;
  }

  .hamburger-button .bar {
    width: 30px;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
  }
	
	.hamburger-button p {
		color: #000000!important;
	}

  .header-menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: #898d8c;
    width: 240px;
    height: 100svh;
    padding: 40px 20px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 24px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .header-menu.open {
    right: 0;
  }

  .menu-overlay.show {
    display: block;
  }

  /* 開いたときにバツに変形 */
  .hamburger-button.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger-button.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-button.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
