@charset "utf-8";


/*####################### Global Navigation #########################*/
/*      ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓     */

/* Gナビ背景 */
.header-inner {
  background: linear-gradient(#005bac, #0081ee);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* PC表示ではハンバーガーメニューのボタン非表示 */
.drawer__button {
  display: none;
}

.drawer__nav ul {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 0 150px;
  color: #fff;
  font-size: 0.98em;
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
}

.drawer__nav__link {
  display: inline-block;
  text-align: center;
  margin: 0 2px;
  padding: 7px 0.7em;
  border-radius: 5px;
  line-height: 1.5;
  transition: all 0.5s 0s ease;
  position: relative;
}

.drawer__nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 5px;
  width: 100%;
  height: 5px;

  /* グラデーションの色設定 */
  background: linear-gradient(to right, transparent 0%, #fabe00 20%, #fff100 50%, #fabe00 80%, transparent 100%);

  /* 通常時は非表示（透明） */
  opacity: 0;

  /* ホバー時のtransition (変化を滑らかにする) */
  transition: opacity 0.3s ease;
}

/* オンマウスでの変化 */
.drawer__nav__link:hover {
  color: #fdd000;
}

/* ホバー時に四角形を表示 */
.drawer__nav__link:hover::after {
  opacity: 1;
}

/* 選択中メニュー文字色 */
.current {
  color: #fdd000;
}

/* 「current」クラスに四角形を常時表示 */
.drawer__nav__link.current::after {
  opacity: 1;
}

/*      ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑     */
/*####################### ヘッダーナビここまで #########################*/



/*################## SP表示設定（768px以下）ここから ####################*/
/* ----- 769px以上はPC表示 ----- */
/*      ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓     */

@media (max-width: 768px) {

  /*####################### Global Navigation #########################*/
  /*      ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓     */

  /* Gナビ背景 */
  .header-inner {
    position: relative;
  }


  .header-site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    color: #ffffff;
    background-color: #736e62;
    padding-top: 30px;
    padding-bottom: 50px;
    display: none;
  }

  /* ハンバーガーボタンのデザイン */
  .drawer__button {
    display: block;
    position: absolute;
    top: -130px;
    right: 20px;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 999;
  }



  /* ハンバーガーボタン内の線 */
  .drawer__button>span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
  }

  .drawer__button>span:first-child {
    transform: translate(-50%, calc(-50% - 0.5rem));
    transition: transform 0.3s ease;
  }

  .drawer__button>span:nth-child(2) {
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
  }

  .drawer__button>span:last-child {
    transform: translate(-50%, calc(-50% + 0.5rem));
    transition: transform 0.3s ease;
  }

  /* 展開時のデザイン */
  .drawer__button.active>span:first-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .drawer__button.active>span:nth-child(2) {
    opacity: 0;
  }

  .drawer__button.active>span:last-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  /* メニューのデザイン */
  .drawer__nav {
    position: fixed;
    /* 追従ヘッダーなどでも表示できるよう設定しておく */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s 0s ease;
  }

  .drawer__nav ul {
    display: block;
    width: auto;
    margin: 0;
  }

  .drawer__nav__inner {
    position: relative;
    width: 80%;
    height: 100%;
    background-color: white;
    padding: 4rem 1.5rem 1rem;
    margin: 0 0 0 auto;
    overflow: scroll;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .drawer__nav__menu {
    list-style: none;
    padding-left: 0;
  }

  /* PC表示での指定キャンセル */
  .drawer__nav ul li {
    border-left: 0;
    border-right: 0;
  }

  .drawer__nav ul li+li {
    border-left: 0;
    border-right: 0;
  }

  /* ############メニュースタイル############ */
  .drawer__nav__link {
    display: block;
    color: black;
    /* width: 80%; */
    text-align: left;
    background-color: transparent;
    border-radius: 0;
    margin: 0;
    text-decoration: none;
    line-height: normal;
    padding: 1rem 1rem;
    border-bottom: solid 1px lightgray;
    transition: all 0.3s 0s ease;
  }

  .drawer__nav__link::after {
    bottom: 10%;
    background: none;
  }

  .drawer__nav__link:hover {
    background-color: #ecf3ff;
    color: #004ea2;
    opacity: 0.7;
  }

  /* 今ここ表示 */
  .current {
    color: #004ea2;
    background-color: #ecf3ff;
  }

  .current::after {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
  }

  /* 展開時のデザイン */
  .drawer__nav.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
  }

  .drawer__nav.active .drawer__nav__inner {
    transform: translateX(0);
  }
}