 @charset "utf-8";
/* CSS Document */

/* ----------------------------------------
   PC用グローバルメニュー
---------------------------------------- */

.global-nav-list {
  display: flex;
  align-items: center;
  justify-content:center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  
  width:100%;
  position:absolute;
  top:110px;
}

.global-nav-list a {
  position: relative;
  display: block;
  padding-block: 10px;
  color: #000;
  font-size: 17px;
  font-weight:500;
  text-decoration: none;
}

.global-nav-list a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  margin-inline: auto;
  background-color: #333333;
  content: "";
  transition: width 0.3s ease;
}

.global-nav-list a:hover::after {
  width: 100%;
}

/* PCのみ区切り線を表示 */
.global-nav-list li {
  position: relative;
}

.global-nav-list li:not(:last-child)::after {
  content: "|";
  position: absolute;
  top: 50%;
  right: -18px;   /* gap:36px の中央 */
  transform: translateY(-50%);
  color: #000;
  font-size: 16px;
  font-weight: 300;
}

/* ----------------------------------------
   ハンバーガーボタン
---------------------------------------- */

.menu-button {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background-color:#000;
  cursor: pointer;
  border-radius:5px;
}

.menu-button span {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background-color: #FFF;
  transition:
    top 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

.menu-button span:nth-child(1) {
  top: 11px;
}

.menu-button span:nth-child(2) {
  top: 19px;
}

.menu-button span:nth-child(3) {
  top: 27px;
}


/* 開いたときに三本線を×へ変更 */

.menu-button.is-open span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}


/* ----------------------------------------
   スマートフォン
---------------------------------------- */

@media screen and (max-width: 950px) {

  .menu-button {
    display: block;
    z-index: 10000;
	
	position:fixed;
	right:10px;
	top:15px;
  }

  .global-nav {
  position: fixed;
  inset: 0;                 /* 画面全体 */
  padding-top: 70px;        /* ヘッダー／ボタン分の余白 */
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  background-color: #ffffff;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease,
    visibility 0.5s;
	z-index: 9999;
  }

  .global-nav.is-open {
  max-height: 100dvh;       /* スマホの画面高さいっぱい */
  visibility: visible;
  opacity: 1;
  }

  .global-nav-list {
    display: block;
    padding: 0 18px 30px;
    border-top: 1px solid #dddddd;
	
    position: static;
    top: auto;
    width: auto;
    margin: 0;
  }

  .global-nav-list li {
    border-bottom: 1px solid #dddddd;
  }

  .global-nav-list a {
    padding: 15px 5px;
    font-size: 17px;
  }

  .global-nav-list a::after {
    display: none;
  }

  .global-nav-list li::after {
    display: none;
  }
}