header {
  display: flex;
  width: 100%;
}

header .logo {
  display: flex;
  align-items: center;
}

header .mobile-menu {
  display: none;
}

header section {
  display: flex;
}

#navi-top ul {
  list-style: none;
  display: flex;
  -webkit-box-flex: 1;
  flex-grow: 1;
}

#navi-top ul li {
  -webkit-box-align: center;
  align-items: center;
  display: flex;
  list-style: none;
  margin: 0px 13px;
}

#navi-top ul li a {
  color: inherit;
  text-decoration: none;
  transition: color 1s;
}

#navi-top ul li a img {
  vertical-align: middle;
}

#navi-top ul.first a {
  color: var(--primary-font-color);
}

#navi-top ul li a:hover {
  color: black;
}

#navi-top ul:first-child li:first-child {
  margin-left: 0;
}

#navi-top ul.lang li {
  margin-right: 0;
  margin-left: 12px;
}

#navi-top ul.account a {
  color: var(--primary-font-color);
  border: 1px solid var(--primary-font-color);
  padding: 14px 31px;
  border-radius: 40px;
  white-space: nowrap;
}

.logo img {
  width: 170px;
}

@media only screen and (max-width: 1340px) {

  #navi-top,
  #navi-top ul {
    flex-direction: column;
    flex-grow: 0;
  }

  #navi-top ul li {
    margin: 0;
  }

  #navi-top ul li a {
    padding: 15px 24px;
    border-bottom: 1px solid #e2e4e9;
    display: block;
    width: 100%;
  }

  #navi-top ul:first-child li:first-child {
    border-top: 1px solid #e2e4e9;
  }

  #navi-top ul.first a {
    color: var(--secondary-font-color);
  }

  #navi-top ul.lang li {
    margin-left: 0;
  }

  header section#navi-top.open {
    position: fixed;
    height: 100vh;
    z-index: 1000;
  }

  header .mobile-menu {
    display: block;
    padding: 24px;
    font-size: 28px;
  }

  header #navi-top {
    transform: scaleY(0);
    position: absolute;
    top: 80px;
    width: 100%;
    background-color: #fff;
    z-index: 10;
    border-bottom: 1px solid #e2e4e9;
    -webkit-box-shadow: -1px 3px 5px -1px rgba(0, 0, 0, 0.17);
    -moz-box-shadow: -1px 3px 5px -1px rgba(0, 0, 0, 0.17);
    box-shadow: -1px 3px 5px -1px rgba(0, 0, 0, 0.17);
    transform-origin: top;
    transition: transform 0.26s ease;
  }

  header #navi-top.close {
    transform: scaleY(0);
  }

  header #navi-top.open {
    transform: scaleY(1);
  }

  header .logo {
    position: absolute;
    left: calc(50% - 75px);
  }

  header .logo img {
    width: 150px;
    padding-top: 26px;
  }

  #navi-top ul.account li {
    margin-left: 0;
  }

  #navi-top ul.account a {
    margin: 20px 24px;
    text-align: center;
  }
}

@media only screen and (min-width: 1340px) {
  header {
    justify-content: space-between;
  }

  header section#navi-top {
    display: flex !important;
    justify-content: flex-end;
  }

  header .logo {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  #navi-top ul.lang {
    margin-right: 10px;
  }
}

@supports (-webkit-overflow-scrolling: touch) {

  #navi-top ul.account a {
    margin-bottom: 100px;
  }
}