/*-------------------------------
---.l-header
-------------------------------*/

.l-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: var(--z-index--max);
  padding: 1rem;
}

.l-header__inner {
  display: grid;
  grid-template-columns: auto max-content;
  grid-template-rows: 4rem;
  justify-content: space-between;
  align-items: center;
}

.l-header__site-name,
.l-header__site-name a,
.l-header__site-name img {
  width: auto;
  height: 100%;
  outline: none;
}


/*-------------------------------
---#menu-toggle
-------------------------------*/

#menu-toggle {
  position: relative;
  z-index: var(--z-index--max);
  width: 3.8rem;
  height: 3.6rem;
  cursor: pointer;
}

#menu-toggle span{
  display: inline-block;
  transition: var(--transition);
  position: absolute;
  left: 1rem;
  height: 0.2rem;
  background: var(--black);
  width: 1.8rem;
}

#menu-toggle span:nth-of-type(1) {
  top: 1rem;
}

#menu-toggle span:nth-of-type(2) {
  top: 1.7rem;
}

#menu-toggle span:nth-of-type(3) {
  bottom: 1rem;
}

#menu-toggle.active span:nth-of-type(1) {
  top: 1.75rem;
  transform: rotate(-45deg);
}

#menu-toggle.active span:nth-of-type(2) {
  opacity: 0;
}

#menu-toggle.active span:nth-of-type(3){
  top: 1.75rem;
  transform: rotate(45deg);
}


/*-------------------------------
---.l-header__menu
-------------------------------*/

.l-header__menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-index--mid);
  display: none;
  width: 100%;
  height: 100%;
  background-color: #fff;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.l-header__menu-inner {
  padding-bottom: 6rem;
}

.l-header__menu-inner::before {
  content: '';
  position: sticky;
  top: 0;
  left: 0;
  z-index: var(--z-index--low);
  display: block;
  width: 100%;
  height: 5rem;
  background-color: #fff;
  background-image: url(../../image/common/signpost-logo_color.svg);
  background-size: 5.35rem;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--gray-lighter);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.l-header__menu-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  height: 100%;
}

.l-header__menu-list .menu-item.menu-item-has-children {
  border-bottom: 1px solid var(--gray-lighter);
}

.l-header__menu-list .menu-item a {
  display: grid;
  grid-template-columns: 1fr max-content;
  grid-auto-rows: max-content;
  grid-column-gap: 1.5em;
  align-items: center;
  font-size: 1.4rem;
}

.l-header__menu-list .menu-item.menu-item-has-children > a {
  background-color: var(--gray-lighter);
  pointer-events: none;
  cursor: pointer;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.l-header__menu-list > .menu-item:not(.menu-item-has-children) > a {
  border-bottom: 1px solid var(--gray-lighter);
  padding: 1em 1.5em;
}

.l-header__menu-list > .menu-item:not(.menu-item-has-children) > a:not(:has(i))::after {
  content: '\f054';
}

.l-header__menu-list .sub-menu {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.l-header__menu-list .sub-menu .menu-item a {
  padding: 0.5em 1.5em 0.5em 3em;
}

.l-header__menu-list .menu-item .sub-menu .menu-item a::after {
  content: '\f054';
}