/* Activated by JS only; theme defaults survive when JS is unavailable. */
#navi .navi-in > ul.menu-top > li.mgh-ready {
  height: auto;
  min-height: 44px;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  border: 1px solid #ffffff70;
  border-radius: 4px;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > a {
  height: auto;
  min-height: 60px;
  padding: 4px 48px 4px 8px;
  box-sizing: border-box;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > a .item-label {
  white-space: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > a > .has-sub {
  display: none;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > .mgh-toggle {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  width: 44px;
  height: 100%;
  min-height: 44px;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-left: 1px solid #ffffff70;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > .mgh-toggle:focus-visible {
  outline: 3px solid #4299e1;
  outline-offset: 2px;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > .sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  width: min(360px, calc(100vw - 16px));
  max-height: min(480px, 65vh);
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 1000;
  border: 1px solid #fff;
  box-shadow: 0 5px 14px #0004;
  background: #000;
  color: #fff;
}
#navi .navi-in > ul.menu-top > li.mgh-open > .sub-menu {
  display: block !important;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > .sub-menu > li {
  width: 100%;
  height: auto;
  min-height: 44px;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > .sub-menu > li > a {
  min-height: 44px;
  height: auto;
  padding: 10px 16px;
  box-sizing: border-box;
  color: #fff;
  background: #000;
  line-height: 1.5;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > .sub-menu > li > a:hover,
#navi .navi-in > ul.menu-top > li.mgh-ready > .sub-menu > li > a:focus-visible {
  color: #fff;
  background: #333;
}
#navi .navi-in > ul.menu-top > li.mgh-ready > .sub-menu .item-label {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media screen and (max-width: 1023px) {
  #navi .navi-in > ul.menu-top > li.mgh-ready > a {
    min-height: 44px;
  }
}
