/*----- drawer menu */
body.header-center #masthead .container {
  padding-bottom: 0;
}
body.header-center #masthead .container button {
  margin-bottom: 0;
}
body.header-center #masthead .container .site-info {
  width: auto;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  flex-basis: auto;
}
body.header-center #masthead .container.menu-collapse button {
  margin-left: 0.5rem;
}
body.header-center #masthead.sticky-mobile {
  position: sticky;
  z-index: 10002;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
body.header-center #masthead.sticky-mobile.header-overlay {
  position: fixed;
  z-index: 10002;
  width: 100%;
}
body.admin-bar.header-center.header-overlay #masthead.sticky-mobile {
  top: auto;
}
body.admin-bar.header-center #masthead.sticky-mobile {
  top: 46px;
}

.header-height {
  height: var(--nishiki-pro-header-mobile-height);
}

#masthead {
  display: flex;
  height: var(--nishiki-pro-header-mobile-height);
}
#masthead .container > *:not(.site-info):not(.global-nav) {
  margin-left: 0.5rem;
}
#masthead .site-info {
  font-size: 0.9rem;
}
#masthead .site-info a {
  height: auto;
}
#masthead .site-info a img {
  max-width: var(--nishiki-pro-site-logo-mobile-width, 120px);
  max-height: var(--nishiki-pro-site-logo-mobile-height, 40px);
  -o-object-fit: contain;
     object-fit: contain;
}
#masthead button i {
  font-size: 1rem;
}
#masthead button.icon {
  padding: 0.6rem;
}
#masthead > .center #menu-collapse-button {
  display: inline-block;
}
#masthead #menu-collapse-button {
  display: block;
}

.menu-collapse .mobile-nav-items-widget-area {
  display: block;
}

.menu-items a .menu-item-detail small {
  display: none;
}

.overlay [data-depth="0"] {
  text-align: left;
}
.overlay.menu-collapse a:hover {
  background-color: transparent;
  color: currentColor;
}
.overlay.menu-collapse a .arrow {
  display: block;
  line-height: 1;
}
.overlay.menu-collapse .close {
  display: block;
}
.overlay.menu-collapse.panel {
  position: fixed;
  z-index: 10003;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow: hidden;
  zoom: 1;
  width: 100%;
  height: 100vh;
  background-color: var(--nishiki-pro-menu-overlay-background-color-rgba);
  color: var(--nishiki-pro-menu-overlay-text-color);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.overlay.menu-collapse.panel.panel-open {
  visibility: visible;
}
.overlay.menu-collapse.panel .overlay-inner input:focus,
.overlay.menu-collapse.panel .overlay-inner select:focus,
.overlay.menu-collapse.panel .overlay-inner button:focus {
  outline-color: var(--nishiki-pro-menu-overlay-text-color);
}
.overlay.menu-collapse.panel .overlay-inner .wp-block-search .wp-block-search__input {
  border: 1px solid currentColor;
  color: currentColor;
}
.overlay.menu-collapse.panel .overlay-inner .wp-block-search .wp-block-search__input::-moz-placeholder {
  color: currentColor;
  opacity: 0.5;
}
.overlay.menu-collapse.panel .overlay-inner .wp-block-search .wp-block-search__input:-ms-input-placeholder {
  color: currentColor;
  opacity: 0.5;
}
.overlay.menu-collapse.panel .overlay-inner .wp-block-search .wp-block-search__input::placeholder {
  color: currentColor;
  opacity: 0.5;
}
.overlay.menu-collapse.panel .overlay-inner .wp-block-search .wp-block-search__button {
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
}
.overlay.menu-collapse.panel .overlay-inner .wp-block-search .wp-block-search__button:hover {
  border: 1px solid var(--nishiki-pro-menu-overlay-text-color);
  background: var(--nishiki-pro-menu-overlay-text-color);
  color: var(--nishiki-pro-menu-overlay-background-color);
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items {
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0;
  list-style-type: none;
  font-size: 1rem;
  line-height: normal;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items ul {
  position: relative;
  list-style-type: none;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li {
  position: relative;
  text-align: left;
  letter-spacing: normal;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li .menu-item-detail .title {
  line-height: normal;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li.animation-flash {
  -webkit-animation: fadeoutBg 550ms;
          animation: fadeoutBg 550ms;
  -webkit-animation-fill-mode: backwards;
          animation-fill-mode: backwards;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li.menu-item-selected > a .arrow i.icon-arrow-down {
  transform: rotateZ(180deg);
  transform-origin: center;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li a {
  display: block;
  height: auto;
  padding: 0.5rem 2.5rem 0.5rem 0.7rem;
  color: currentColor;
  cursor: pointer;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li a small {
  display: none;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li a i {
  display: inline-block;
  width: 0.8rem;
  height: 0.7rem;
  margin-right: 0.4rem;
  margin-left: 0;
  font-size: 0.8rem;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li a .arrow {
  position: absolute;
  z-index: 1;
  top: 0.4rem;
  right: 0.7rem;
  box-sizing: content-box;
  margin-left: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li a .arrow i {
  display: block;
  width: 1rem;
  height: auto;
  margin-right: 0;
  margin-left: 0.5rem;
  padding: 0.3rem;
  font-size: 1rem;
  transition: transform 300ms ease;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li .sub-menu {
  display: none;
  padding-left: 0;
  font-size: 0.8rem;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li .sub-menu.show {
  display: block;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li .sub-menu a {
  position: relative;
  height: auto;
  padding-left: 1.5rem;
  line-height: normal;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li .sub-menu .sub-menu a {
  padding-left: 2rem;
}
.overlay.menu-collapse.panel .overlay-inner ul.menu-items li .sub-menu .sub-menu .sub-menu a {
  padding-left: 2.5rem;
}
.overlay.menu-collapse.panel .overlay-inner .menu-items {
  display: block;
}
.overlay.menu-collapse.panel .overlay-inner .menu-items .menu-item-detail .title {
  line-height: normal;
}
.overlay.menu-collapse.panel .overlay-inner .menu-items .sub-menu {
  position: relative;
  background-color: transparent;
}
.overlay.menu-collapse.panel .overlay-inner .menu-items > li > .sub-menu li:hover .sub-menu {
  top: auto;
  right: auto;
}
.overlay.menu-collapse.panel-slide {
  transform: translateX(-100%);
}
.overlay.menu-collapse.panel-slide.panel-open {
  transition: transform 300ms;
  transform: translateX(0);
}
.overlay.menu-collapse.panel-slide.panel-close {
  transition: transform 300ms;
}
.overlay.menu-collapse.panel-fade {
  height: 0;
}
.overlay.menu-collapse.panel-fade.panel-open {
  height: 100%;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items .arrow {
  display: flex;
  padding: 0 0.7rem;
  cursor: pointer;
  align-items: center;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items .arrow i {
  font-size: 1rem;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items li.menu-item-has-children {
  display: grid;
  grid-template-columns: auto 40px;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items li.menu-item-has-children .sub-menu {
  grid-column: 1/3;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items li.menu-item-has-children > a {
  width: 100%;
  margin-right: auto;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items li.menu-item-has-children > a > .menu-item-detail:after {
  content: "";
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items li.menu-item-has-children .menu-item-detail::after {
  display: none;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items li:hover ul {
  left: 0;
  -webkit-animation: none;
          animation: none;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items > li > .sub-menu li:hover .sub-menu {
  left: 0;
  -webkit-animation: none;
          animation: none;
}
.overlay.menu-collapse[data-nav-open-type=hover] ul.menu-items .menu-item-selected > .arrow i.icon-arrow-down {
  transform: rotateZ(180deg);
  transform-origin: center;
}
.overlay#menu-overlay .title {
  text-align: left;
}

.nishiki-pro-global-nav-style[class*=nishiki-pro-global-nav-style] .menu-collapse .menu-items a::after {
  position: static;
}
.nishiki-pro-global-nav-style[class*=nishiki-pro-global-nav-style] .menu-collapse .menu-items a:hover {
  background-color: transparent;
  color: currentColor;
}
.nishiki-pro-global-nav-style[class*=nishiki-pro-global-nav-style] .menu-collapse .menu-items a:hover::after {
  width: 0;
}
.nishiki-pro-global-nav-style[class*=nishiki-pro-global-nav-style] .menu-collapse .menu-items .menu-item-selected {
  background-color: transparent;
}
.nishiki-pro-global-nav-style[class*=nishiki-pro-global-nav-style] .menu-collapse .menu-items > li > .sub-menu {
  margin-top: 0;
}

#nishiki-toc-fixed {
  height: var(--nishiki-pro-header-mobile-height);
}
#nishiki-toc-fixed.show.panel-open #toc-fixed-overlay {
  height: calc(100% - 50px - 0.4rem);
}
#nishiki-toc-fixed #toc-fixed-nav .container {
  line-height: var(--nishiki-pro-header-mobile-height);
}
#nishiki-toc-fixed #toc-fixed-nav button {
  display: block;
}
#nishiki-toc-fixed #toc-fixed-nav button.icon {
  margin: 0 0 0 0.5rem;
  padding: 0.6rem;
}
#nishiki-toc-fixed #toc-fixed-nav button i {
  font-size: 1rem;
}
