<!-- start Simple Custom CSS and JS -->
<style type="text/css">
#masthead * {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
body.scrolled #masthead {
  background: #ffffff;
}
#masthead {
  height: 3.5rem;
  z-index: 9999 !important;
}
#masthead .container {
  height: 3.5rem !important;
  position: relative;
  background: transparent !important;
}
.site-info,
.page-group-nav,
.page-group-nav .top-level,
.page-group-nav .menu-item {
  height: 100%;
}
#masthead .site-info a,
#masthead .site-info img {
  height: 100% !important;
}
#masthead .site-info img {
  object-fit: contain;
  padding: 0.4rem 0;
}
/* ハンバーガーボタン */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  position: relative;
  width: 4rem;
  min-width: 4rem;
  height: 100%;
  padding: 0 !important;
  background: none;
  border: none !important;
  outline: none !important;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  width: 30%;
  height: 1.5px;
  background: #000;
  transition: 0.3s ease-out;
}
.nav-toggle span:nth-child(1) {
  top: 40%;
  transform: translate(-50%, 0);
}
.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-toggle span:nth-child(3) {
  top: 60%;
  transform: translate(-50%, -100%);
}

#masthead.h-opened .nav-toggle span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
}
#masthead.h-opened .nav-toggle span:nth-child(2) {
  transform: translate(50%, -50%);
  opacity: 0;
}
#masthead.h-opened .nav-toggle span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-135deg);
}
@media screen and (max-width: 489px) {
  #masthead {
    height: 100vh !important;
    pointer-events: none;
    transition: 0.3s ease-out;
  }
  #masthead.fixed {
    background: transparent !important;
  }
  #masthead.h-opened {
    background: hsla(0, 0%, 100%, 0.7) !important;
    -webkit-backdrop-filter: blur(1rem);
    backdrop-filter: blur(1rem);
  }
  #masthead .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 2rem;
    pointer-events: auto;
  }
  body.scrolled #masthead > .container {
    background: #ffffff !important;
    transition: background 0.4s ease-in-out;
  }
  body.scrolled #masthead.h-opened > .container {
    background: transparent !important;
  }
  .nav-toggle {
    display: flex !important;
  }
  .page-group-nav {
    position: fixed;
    top: 4rem;
    right: -100%;
    /*
      right: -100%;
      */
    width: 100% !important;
    height: calc(100vh - 4rem) !important;
    z-index: 99999;
    transition: 0.3s ease-out;
  }
  #masthead.h-opened .page-group-nav {
    right: 0;
  }
  .page-group-nav,
  .page-group-nav .top-level,
  .page-group-nav .menu-item {
    width: 100%;
  }
  .page-group-nav .top-level {
    flex-direction: column;
    gap: 0 !important;
    overflow-y: auto;
  }
  .page-group-nav .menu-item {
    flex-direction: column;
    flex-shrink: 0;
    height: fit-content !important;
    padding: 0.5rem 0 !important;
    cursor: pointer !important;
  }
  .page-group-nav .menu-item::before {
    display: none !important;
  }
  .page-group-nav .sub-menu {
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: fit-content;
    height: fit-content;
    max-height: 0;
    padding-inline-start: 0;
    overflow: hidden;
    transition: padding 0.2s ease-out, opacity 0.2s ease-out;
  }
  .page-group-nav .menu-item.has-children.h-sub-opend > .sub-menu {
    visibility: visible;
    max-height: 300vh;
    padding: 1.3rem 0;
    opacity: 1;
  }
  .page-group-nav .menu-item.h-sub-opend > .top-label > svg {
    transform: scale(0.65) rotate(180deg) !important;
  }
}
@media (hover: hover) {
  .page-group-nav .menu-item:hover::before {
    left: 0;
    width: 100%;
  }
  #masthead:not(.h-opened) .page-group-nav .menu-item:hover > .sub-menu {
    visibility: visible;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.3rem 1.5rem;
    opacity: 1;
  }
  #masthead:not(.h-opened) .page-group-nav .menu-item:hover > .top-label > svg {
    transform: scale(0.65) rotate(180deg);
  }
  .page-group-nav a:hover {
    color: #0a88cc !important;
  }
}
</style>
<!-- end Simple Custom CSS and JS -->
