@charset "UTF-8";

header {
  background-color: #ffffff;
}

header.container {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background-color: #ffffff;
}

.header-logo-container {
  padding: 0;
  margin: 8px 12px;
  position: relative; /* z-indexを有効にする */
  z-index: 1050; /* 他の要素よりも高い値に設定 */
}

.header-logo-container img {
  max-height: 3rem;
}

.navbar-item .button:hover {
  text-decoration: none;
  background-color: transparent;
  color: hsl(148, 89%, 48%) !important;
  /* ホバー時の色が変わるアニメーションをゆっくりにする */
  transition: color 0.2s;
}

.navbar {
  background-color: #ffffff; /* headerの背景色 */
}

.navbar-menu {
  position: absolute;
  right: 50px;
}

.navbar-button {
  background-color: transparent;
  margin: .1rem 0 !important;
}

.navbar-burger span {
  display: block;
  height: 2px;
  width: 20px;
  background-color: #000;
  margin: 4px 0;
  transition: transform 0.5s ease, opacity 0.5s ease; /* アニメーションを統一 */
}

.navbar-burger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-menu.is-active {
  display: flex;
  flex-direction: column;
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.navbar-menu.is-active .buttons {
  flex-direction: column;
}

.navbar-menu.is-active .navbar-item {
  text-align: center;
  background-color: transparent;
  text-decoration: none;
  font-size: 1.5em;
  color: black;
}

.navbar-menu.is-active .header-logo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050; /* ロゴを前面に表示 */
}

.navbar-burger.is-active {
  z-index: 1001;
}

.navbar-burger:hover {
  background-color: transparent;
}

.navbar-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 20px);
  margin: 0 10px;
}

header {
  height: 80px;
}

.header-buttons {
  display: flex;
  gap: 10px; /* ボタン間の隙間を設定 */
}

.header-buttons .button {
  background-color: transparent;
  color: #000000;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.header-buttons .button:hover {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .navbar-brand {
    width: calc(100% - 20px);
    margin: 0 10px;
  }

  .navbar-menu {
    right: 10px;
  }

  .navbar-menu.is-active .button {
    background-color: transparent; /* 背景色を透明に */
  }

  .navbar-menu.is-active .button:hover {
    text-decoration: none; /* マウスオーバー時の文字の下線をなくす */
  }

  .navbar-button {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none; /* デフォルトで非表示 */
    opacity: 0; /* フェードイン用 */
    transition: opacity 0.1s ease-in-out; /* トランジションを追加 */
  }

  .navbar-menu.is-active {
    display: flex; /* アクティブ時に表示 */
    opacity: 1; /* フェードイン */
  }
}

.no-scroll {
  overflow: hidden !important;
  height: 100%;
}