.top-bar {
  margin: 0 calc(0px - var(--side-padding));
  background-color: var(--top-color-background);
  color: var(--top-color-text);
  transition: all 0.3s ease-in;
  min-height: var(--topbar-height);
  overflow: hidden;
  z-index: 60;
}
.top-bar p {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  line-height: var(--topbar-height);
}
.top-bar p a {
  color: var(--top-color-link);
}
.top-bar .social ul {
  padding: 10px 0;
  justify-content: center;
  align-items: center;
}
.top-bar.is-sticky-mobile {
  position: sticky;
  top: 0;
}
@media (min-width: 1140px) {
  .top-bar.is-sticky-mobile {
    position: static;
  }
  .top-bar.is-sticky-desktop {
    position: sticky;
  }
}

.header-shadow .top-bar {
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.05);
}

.top-header-content {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 0 10px;
  text-align: center;
}

.sticky .top-bar {
  background-color: var(--top-color-background-sticky);
}

/* top menu */
.topmenu {
  width: 100%;
}
.topmenu .menu {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  justify-content: center;
}
.topmenu .menu li {
  display: block;
  margin: 0;
}
.topmenu .menu li.m-icon:before {
  display: none;
}
.topmenu .menu li a {
  display: block;
  height: auto;
  padding: 0 10px;
  color: var(--top-color-link);
  line-height: var(--topbar-height);
  transition: color 0.3s, background-color 0.3s;
}
.topmenu .menu li a:hover, .topmenu .menu li a:focus {
  background: rgba(0, 0, 0, 0.2);
  color: var(--top-color-link-hover);
}
.topmenu .menu li.current-menu-item > a, .topmenu .menu li.current-menu-item:hover > a, .topmenu .menu li.current-menu-item:focus-within > a, .topmenu .menu li.current_page_item > a, .topmenu .menu li.current_page_item:hover > a, .topmenu .menu li.current_page_item:focus-within > a, .topmenu .menu li.current-menu-ancestor > a {
  color: var(--top-color-link);
  background-color: var(--main-color);
}
.topmenu a.m-icon:before {
  margin-right: 5px;
  font-family: "m";
  font-size: 1.5em;
  vertical-align: middle;
}
.topmenu .no-text > a {
  margin-right: 0;
  font-size: 0;
}
.topmenu .no-text > a.m-icon:before {
  font-size: 11px;
}

@media (min-width: 800px) {
  .top-header-content {
    padding: 0 var(--side-padding);
  }
}
@media (min-width: 1140px) {
  .top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
  }
  .top-header-content.full-width {
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
  }

  .top-header-left,
.top-header-center,
.top-header-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
  }
  .top-header-left:empty,
.top-header-center:empty,
.top-header-right:empty {
    width: 0;
  }

  .top-header-left {
    flex-shrink: 0;
    justify-content: flex-start;
  }
  .top-header-left > * {
    margin-right: 20px;
  }

  .top-header-center {
    flex: var(--top-bar-middle-ratio);
    justify-content: center;
  }
  .top-header-center > * {
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
  }

  .top-header-right {
    flex-shrink: 0;
    justify-content: flex-end;
  }
  .top-header-right > * {
    margin-left: 20px;
  }

  .top-bar {
    height: auto;
    text-align: right;
  }
  .top-bar p {
    text-align: center;
  }
  .top-bar .social ul {
    padding: 0;
  }
  .top-bar .social-link {
    line-height: var(--topbar-height);
  }

  .topmenu {
    position: relative;
    width: auto;
  }

  .boxed .top-header-content {
    padding: 0 20px;
  }
}
