/* Base, header, utility search, and global navigation. */
:root {
  --yabane-sidebar-width: 200px;
}

body {
  background-image: url("../../../images/notepaper.gif");
  background-repeat: repeat-y;
  background-position: center top;
  background-color: #f4f1e7;
}

body.yabane-view-mobile {
  min-width: 320px;
}

#site-header,
#site-header-container,
.site-header,
.site-header-container,
.yabane-utility-wrap,
.yabane-search button::before {
  content: "🔍";
  font-size: 1.05rem;
  line-height: 1;
}

.yabane-search button > span,
.yabane-search button .screen-reader-text {
  display: none;
}

.global-nav {
  position: static !important;
  transform: none !important;
}

.site-header {
  background: transparent;
  position: static !important;
  top: auto !important;
}

.site-header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  row-gap: 10px;
  padding-top: 10px;
  padding-bottom: 0;
}

.site-header-logo {
  width: 322px;
  margin: 0;
  align-self: center;
  flex: 0 0 322px;
}

.site-header-logo a {
  display: block;
  width: 322px;
  line-height: 1;
  background: none;
}

.site-header-logo a span {
  display: block;
  width: 322px;
  height: 58px;
  line-height: 1;
  overflow: hidden;
  text-indent: -9999px;
  background: url("../../../images/common/site_id.png") no-repeat left center;
  background-size: contain;
}

.site-header-logo img {
  display: block;
  width: 322px;
  max-width: 100%;
  height: auto;
}

.page-header {
  width: min(930px, calc(100% - 36px));
  margin: 0 auto;
  background-color: var(--vk-color-primary);
}

.page-header .page-header-inner.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}


.yabane-utility-wrap {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: 0;
  position: static !important;
}

.yabane-utility {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 0 2px;
}

.yabane-utility-menu {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yabane-utility-menu li {
  margin: 0;
}

.yabane-utility-menu a {
  color: #606060;
  font-size: 0.88rem;
  text-decoration: none;
}

.yabane-utility-menu a::before {
  content: "●";
  display: inline-block;
  margin-right: 6px;
  color: #b6b6b6;
  font-size: 0.62rem;
  vertical-align: middle;
}

.yabane-search {
  display: flex;
  gap: 0;
  align-items: center;
}

.yabane-search input {
  width: 210px;
  min-width: 210px;
  min-height: 24px;
  height: 24px;
  border: 1px solid #d0d0d0;
  padding: 2px 8px;
  background: #fff;
  line-height: 1.2;
}

.yabane-search button {
  border: 0;
  padding: 0 0 0 10px;
  background: transparent;
  color: #1b95dc;
  min-height: 24px;
  height: 24px;
  white-space: nowrap;
}

.global-nav {
  width: 100%;
  margin-top: 6px;
  border-radius: 4px;
  overflow: visible;
  background: linear-gradient(180deg, #59b9f2 0%, #2fa4e7 48%, #1b95dc 100%);
  border: 1px solid rgba(15, 114, 177, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(0, 88, 141, 0.14), 0 1px 3px rgba(0, 0, 0, 0.14);
  position: static !important;
}

.global-nav.yabane-global-nav-fixed {
  position: fixed !important;
  transform: none !important;
  z-index: 1000;
  margin-top: 0;
}

body.yabane-global-nav-active #site-header {
  padding-bottom: var(--yabane-global-nav-height, 48px);
}

.global-nav nav,
.global-nav-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav .nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  margin: 0;
  padding: 0;
}

.global-nav .menu-item {
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
  position: relative;
}

.global-nav .menu-item + .menu-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(9, 101, 161, 0.26) 50%, rgba(255, 255, 255, 0.1) 100%);
}

.global-nav-list > li > a {
  display: flex;
  color: #fff;
  font-weight: 500;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  padding: 0;
  background: linear-gradient(180deg, #59b9f2 0%, #2fa4e7 48%, #1b95dc 100%);
  text-shadow: 0 -1px 0 rgba(0, 72, 121, 0.25);
}

.global-nav-name {
  display: block;
  line-height: 1;
  padding: 0;
}

.global-nav-list > li.current-menu-item > a,
.global-nav-list > li.current_page_item > a,
.global-nav-list > li.current-menu-ancestor > a,
.global-nav-list > li.current-page-ancestor > a,
.global-nav-list > li.current_page_ancestor > a,
.global-nav-list > li.current-menu-parent > a,
.global-nav-list > li.current-page-parent > a,
.global-nav-list > li.current_page_parent > a,
.global-nav-list > li > a:hover {
  background: linear-gradient(180deg, #2398e4 0%, #137fd0 48%, #0a6ab8 100%);
}

.global-nav .menu-item-has-children {
  position: relative;
}

.global-nav-list > li.menu-item-has-children > ul.sub-menu {
  width: 190px !important;
  min-width: 190px !important;
  margin-top: -1px !important;
  margin-left: 0 !important;
  padding: 0 !important;
  top: 100% !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  border: 1px solid #d7d7d7 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  text-align: left !important;
  z-index: 1001 !important;
}

.global-nav .menu-item-has-children > .sub-menu > li {
  margin: 0 !important;
  border-bottom: 1px dotted #cfcfcf !important;
}

.global-nav .menu-item-has-children > .sub-menu > li:last-child {
  border-bottom: 0 !important;
}

.global-nav .menu-item-has-children > .sub-menu > li > a {
  display: block !important;
  position: relative !important;
  padding: 12px 16px 12px 24px !important;
  color: #555 !important;
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  background: transparent !important;
}

.global-nav .menu-item-has-children > .sub-menu > li > a::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #5c8fcf;
  transform: translateY(-50%);
}

.global-nav .menu-item-has-children > .sub-menu > li > a:hover {
  background: rgba(240, 245, 251, 0.9) !important;
  color: #333 !important;
}
