@charset "UTF-8";

/*-------------------------------------------------------------
 ------------------- グローバルナビゲーション -------------------
-------------------------------------------------------------*/
/*--------------------- li要素のドットを無効 ---------------------*/


/*--------------------- PC版メニュー ---------------------*/
#gn_menu {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

#gn_menu>ul {
  height: 100%;
  margin: 0;
  padding: 0;
}

#gn_menu>ul>li {
  padding: 20px 0;
  text-align: center;
  margin: 0 10px;
  position: relative;
}

#gn_menu>ul>li.is-active:before {
  content: "";
  width: 100%;
  max-width: 35px;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--BaseColor);
}

#gn_menu ul li a {
  color: #212121;
  text-align: center;
  /* display: block; */
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

#gn_menu ul li a:hover {
  color: var(--BaseColor);
}

/*--------------------- ノートPC、スマホ版メニュー ---------------------*/
#gn_xs_menu {
  height:100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--BaseColor);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

#gn_xs_menu.is-active {
  pointer-events: auto;
  opacity: 1;
}

#gn_xs_menu .gn_xs_menu_inner {
  width: 100%;
  height: calc(100% - 60px);
  margin-top: 60px;
  border-top: 1px solid #fff;
  background: #fff;
  overflow-y: scroll;
}

#gn_xs_menu ul {
  width: auto;
  margin: 0;
  padding: 0;
  font-size: max(1.8rem, 18px);
  font-weight: 800;
}

#gn_xs_menu ul li {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid #CCD9D4;
  transition: background 0.3s;
}

#gn_xs_menu ul li a {
  height: 100%;
  text-align: left;
  display: block;
  font-weight: 500;
  /* white-space: nowrap; */
  padding: 0 1em;
  color: var(--BaseFontColor);
}

#gn_xs_menu .gn_xs_menu_inner>ul>li>a {
  font-weight: 600;
}

/*--- グループ分け ---*/
.sp-h-sub {
  position: relative;
}

.sp-h-sub:before,
.sp-h-sub:after {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--BaseColor);
  position: absolute;
  top: 50%;
  right: 1em;
  margin-top: -2px;
}

.sp-h-sub:after {
  transform: rotate(90deg);
  transform-origin: center;
  transition: transform 0.5s;
}

#gn_xs_menu ul li.active {
  background: #f9f6e8;
}

.sp-h-sub.active:after {
  transform: rotate(0deg);
}

#gn_xs_menu .sp-sub-h-menu {
  /* padding-left: 2em; */
  display: none;
}

#gn_xs_menu .sp-sub-h-menu li {
  /* border-bottom: none; */
  padding-left: 1em;
}
#gn_xs_menu .sp-sub-h-menu li:last-child{
  border-bottom: none;
  padding-bottom:0;
}

#gn_xs_menu .sp-sub-h-menu li a {
  display: block;
  padding: 0;
  width: 100%;
  transition: opacity 0.3s;
  padding-right: 7em;
  margin-left: 0;
  padding-left: 1em;
}

#gn_xs_menu .sp-sub-h-menu li a:hover{
  opacity:0.6;
}
#gn_xs_menu .sp-sub-h-menu li a.p-link.is-arrow:after {
  right: 2.5em;
  transition: right 0.3s;
  bottom: 50%;
  transform: translateY(50%) rotate(45deg);
}
#gn_xs_menu .sp-sub-h-menu li a.p-link.is-arrow:hover:after {
  right: 2em;
}


/*--------------------- スマホメニュー開閉アイコン(その他アイコンとして表示する場合はPCで表示) ---------------------*/
#gn_menu>ul>li#gn_icon {
  display: none;
}

#gn_icon {
  width: 60px;
  height: 60px;
  background: var(--BaseColor);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  cursor: pointer;
  z-index: 20000;
  border-bottom-left-radius: 10px;
}

#gn_icon img {
  margin-top: 5px;
}

#gn_icon .border {
  width: 34px;
  fill: #fff;
  transition: 200ms all ease;
  /* transform-origin: center; */
}

#gn_icon.on .border1 {
  transform: translate(7px, 3px) rotate(45deg);
  transform-origin: top left;
}

#gn_icon.on .border2 {
  opacity: 0;
}

#gn_icon.on .border3 {
  transform: translate(7px, 1px) rotate(-45deg);
  transform-origin: bottom left;
}

/*--------------------- メニュー切り替え ---------------------*/

/*--- PC ---*/
@media screen and (min-width: 1130px) {
  #gn_icon {
    display: none;
  }

  #gn_xs_menu {
    display: none !important;
  }
}

/*--- 画面幅が小さくなったらメニュー縮小 ---*/
@media screen and (max-width: 1129px) {
  #gn_menu {
    display: none;
  }
}