@media screen and (max-width: 1023.5px) {
  html.is-clipped--navbar {
    overflow-y: hidden;
  }
}

body {
  padding-top: var(--navbar-height);
}

.navbar {
  background: var(--nav-background);
  color: var(--color-bwg-main);
  height: 4.5rem;
  font-size: calc(16 / var(--rem-base) * 1rem);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-index-navbar);
  max-height: 5rem;
  border-bottom: 1px solid var(--color-blue-30);
  transition: box-shadow 0.2s;
}

.navbar .active {
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.1), 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
}

.navbar.active {
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.1), 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
}

.navbar a {
  text-decoration: none;
}

.navbar-logo {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url('../img/logo_color.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 10px;
}

.navbar-title-contents {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navbar-title-contents .navbar-title {
  color: var(--color-bwg-main);
  font-size: 29px;
  font-weight: 600;
}

.navbar-title-contents .navbar-title.sub {
  font-size: 12px;
  font-weight: 300;
}

.navbar-brand {
  display: flex;
  flex: auto;
  padding: 0 1rem;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand .navbar-item {
  color: var(--navbar-font-color);
}

.navbar-brand .navbar-item:first-child {
  align-self: center;
  padding: 0;
  font-size: calc(22 / var(--rem-base) * 1.25rem);
  flex-wrap: wrap;
  line-height: 1;
  font-weight: 700;
}

.navbar-brand .navbar-item:first-child a {
  color: inherit;
  word-wrap: normal;
}

.navbar-brand .navbar-item:first-child :not(:last-child) {
  padding-right: 0.375rem;
}

.navbar-brand .navbar-item.search {
  flex: auto;
  justify-content: flex-end;
}

#search-field {
  position: relative;
}

#search-field > i {
  background: url(../img/ico-search.svg) no-repeat center;
  position: absolute;
  top: 14px;
  right: 20px;
  display: inline-block;
  width: 16px;
  height: 16px;
}

#search-input {
  box-sizing: border-box;
  color: #333;
  font-family: inherit;
  font-size: 0.95rem;
  width: 350px;
  height: 45px;
  border: 1px solid #dbdbdb;
  border-radius: 28px;
  line-height: 1.5;
  padding: 0 2.15rem 0 1rem !important;
}

#search-input:disabled {
  background-color: #dbdbdb;
  /* disable cursor */
  cursor: not-allowed;
  pointer-events: all !important;
}

#search-input:disabled::placeholder {
  color: #4c4c4c;
}

#search-input:focus {
  outline: none;
  border: 2px solid var(--color-bwg-main);
}

#search-input:focus + i {
  background: url(../img/ico-search-active.svg) no-repeat center;
}

.nav-mobile-menu-toggle {
  background: none;
  border: none;
  outline: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 30px;
}

.nav-mobile-menu-toggle:active {
  background-color: rgba(0, 0, 0, 0.1);
}

.navbar-item,
.navbar-link {
  color: var(--navbar-menu-font-color);
  display: block;
  line-height: var(--doc-line-height);
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
}

.navbar-item.has-dropdown {
  padding: 0;
}

.navbar-item .icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.navbar-item .icon img,
.navbar-item .icon svg {
  fill: currentColor;
  width: inherit;
  height: inherit;
}

.navbar-link {
  padding-right: 2.5em;
}

.navbar-dropdown .navbar-item {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.navbar-dropdown .navbar-item.has-label {
  display: flex;
  justify-content: space-between;
}

.navbar-dropdown .navbar-item small {
  color: var(--toolbar-muted-color);
  font-size: calc(12 / var(--rem-base) * 1rem);
}

.navbar-divider {
  background-color: var(--navbar-menu-border-color);
  border: none;
  height: 1px;
  margin: 0.25rem 0;
}

.navbar .button {
  display: inline-flex;
  align-items: center;
  background: var(--color-bwg-main);
  border-radius: 28px;
  height: 1.75rem;
  color: var(--color-white);
  padding: 1.25rem 1.75rem 1.25rem 1.5rem;
  white-space: nowrap;
}

.download_icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url('../img/ico-download.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 7px;
}

.navbar .button:hover {
  transition: 300ms ease;
  background-color: rgba(0, 114, 206, 0.8);
}

.navbar-mobile-menu {
  display: none;
  list-style: none;
  position: fixed;
  width: 100%;
  top: 75px;
  left: 0;
  right: 0;
  background-color: rgb(255, 255, 255);
  z-index: 100;
  flex-direction: column;
  padding: 1rem;
  color: rgb(0, 114, 206);
  box-shadow: rgba(0, 0, 0, 0.16) 0 6px 9px 0;
  border-top: 1px solid rgb(0, 114, 206);
  margin: 0;
}

.navbar-mobile-menu.show {
  display: flex;
}

.mobile-menu-item {
  cursor: pointer;
  font-size: 18px;
  padding: 1rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  width: 100%;
}

#document-icon {
  margin-left: 10px;
}

.mobile-menu-item:active {
  background-color: var(--color-blue-50);
}

.mobile-menu-item svg {
  font-size: 16px;
}

.mobile-product-link {
  display: none;
  list-style: none;
  flex-direction: column;
  padding-left: 0;
}

.mobile-product-link.show {
  display: flex;
}

.product-link {
  cursor: pointer;
  font-size: 16px;
  padding: 10px 1.5rem;
}

@media screen and (max-width: 768.5px) {
  .nav-menu {
    padding: 0.5rem 0.5rem 5.5rem 0.65rem;
  }

  .navbar-brand .navbar-item.search {
    width: 100%;
    padding: 0;
  }

  #search-field,
  #search-input {
    width: 100%;
  }

  .mobile-menu-item > a {
    width: 100%;
    justify-content: center;
  }

  .navbar-title-contents {
    display: none;
  }

  .navbar-logo {
    margin-right: 0;
  }
}

/* @media screen and (min-width: 769px) {
} */

@media screen and (max-width: 1023.5px) {
  .navbar-brand {
    height: inherit;
  }

  .navbar-brand .navbar-item {
    align-items: center;
    display: flex;
  }

  .navbar-menu {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .nav-mobile-menu-toggle {
    display: none;
  }

  .navbar,
  .navbar-menu,
  .navbar-end {
    display: flex;
  }

  .navbar-item,
  .navbar-link {
    display: flex;
    position: relative;
    flex: none;
  }

  .navbar-item:not(.has-dropdown),
  .navbar-link {
    align-items: center;
  }

  .navbar-item.is-hoverable:hover .navbar-dropdown {
    max-height: 310px;
    opacity: 1;
    visibility: visible;
  }

  .navbar-link::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navbar-font-color);
    transition: width 0.3s ease-in-out;
  }

  .navbar-link:hover::before {
    width: 100%;
  }

  .navbar-link::after {
    border-width: 0 0 1px 1px;
    border-style: solid;
    content: "";
    display: block;
    height: 0.5em;
    pointer-events: none;
    position: absolute;
    transform: rotate(-45deg);
    width: 0.5em;
    margin-top: -0.375em;
    right: 1.125em;
    top: 50%;
  }

  .navbar-end > .navbar-item,
  .navbar-end .navbar-link {
    color: var(--color-jet-80);
  }

  .navbar-end > a.navbar-item:hover,
  .navbar-end .navbar-link:hover,
  .navbar-end .navbar-item.has-dropdown:hover .navbar-link {
    color: var(--navbar-font-color);
    font-weight: 600;
  }

  .navbar-end > a.navbar-item::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navbar-font-color);
    transition: width 0.3s ease-in-out;
  }

  .navbar-end > a.navbar-item:hover::after {
    width: 100%;
  }

  .navbar-end .navbar-link::after {
    border-color: currentColor;
  }

  .navbar-dropdown {
    clear: both;
    background: var(--navbar-menu-background);
    box-shadow: 0 6px 9px 0 rgba(0, 0, 0, 0.16);
    border-radius: 0 0 0.25rem 0.25rem;
    top: 100%;
    left: 0;
    min-width: 100%;
    position: absolute;
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0.5s;
  }

  .navbar-dropdown .navbar-item {
    padding: 0.5rem 3rem 0.5rem 1rem;
    white-space: nowrap;
    margin: 0;
  }

  .navbar-dropdown .navbar-item small {
    position: relative;
    right: -2rem;
  }

  .navbar-dropdown .navbar-item:last-child {
    border-radius: inherit;
  }

  .navbar-dropdown.is-right {
    left: auto;
    right: 0;
  }

  .navbar-dropdown a.navbar-item:hover {
    background: var(--color-bwg-main);
    color: var(--color-white);
    font-weight: 600;
  }
}
