/* Local header-only adaptation of the DDBJ common framework header. */
#DDBJ_CommonHeader,
#DDBJ_CommonHeader * {
  box-sizing: border-box;
}

#DDBJ_CommonHeader {
  position: relative;
  z-index: 10000000;
  width: 100%;
  height: 40px;
  background: linear-gradient(0deg, #000 0%, #333 100%);
  color: #fff;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  font-size: 14px;
  line-height: normal;
}

#DDBJ_CommonHeader a,
#DDBJ_CommonHeader button {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

#DDBJ_CommonHeader > .DDBJ_inner {
  display: flex;
  width: 100%;
  height: 40px;
  margin: 0 auto;
  padding: 0 10px;
}

#DDBJ_CommonHeader .DDBJ_logocontainer {
  flex: 0 0 auto;
}

#DDBJ_CommonHeader .DDBJ_logotype {
  display: block;
  width: 67px;
  height: 40px;
  margin-right: 10px;
  margin-left: 16px;
  overflow: hidden;
  background: url("./ddbj-logo.svg") no-repeat 0 center;
  text-indent: -9999px;
}

#DDBJ_CommonHeader .DDBJ_navigation__ {
  flex: 1 1 auto;
  min-width: 0;
}

#DDBJ_CommonHeader .DDBJ_spcollapsemenubutton {
  display: none;
}

#DDBJ_CommonHeader .DDBJ_menucontainer {
  display: flex;
  height: 40px;
}

#DDBJ_CommonHeader .DDBJ_menu {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#DDBJ_CommonHeader .DDBJ_menu.-DDBJ_right {
  justify-content: flex-end;
}

#DDBJ_CommonHeader .DDBJ_menu > li {
  flex: 0 0 auto;
  height: 40px;
  padding: 10px 5px;
  font-weight: normal;
  line-height: 20px;
  white-space: nowrap;
}

#DDBJ_CommonHeader .DDBJ_menu > li a {
  text-decoration: none;
}

#DDBJ_CommonHeader #DDBJ_searchform {
  margin: -3px 0 0;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
}

#DDBJ_CommonHeader #DDBJ_searchformselect {
  height: 25px;
  padding: 0 2px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 25px;
  vertical-align: top;
}

#DDBJ_CommonHeader #DDBJ_searchformselect option {
  color: #000;
}

#DDBJ_CommonHeader #DDBJ_searchformfield {
  width: 220px;
  height: 25px;
  padding: 0 30px 0 4px;
  border: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  background-color: #fff;
  color: #000;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 25px;
  vertical-align: top;
}

#DDBJ_CommonHeader #DDBJ_searchformbutton {
  display: none;
}

@media (max-width: 1100px) {
  #DDBJ_CommonHeader > .DDBJ_inner > .DDBJ_navigation__ {
    flex: 0 0 auto;
    margin-left: auto;
  }

  #DDBJ_CommonHeader .DDBJ_spcollapsemenubutton {
    display: block;
    height: 40px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
  }

  #DDBJ_CommonHeader .DDBJ_spcollapsemenubutton[aria-expanded="true"] {
    background-color: #ff7300;
  }

  #DDBJ_CommonHeader .DDBJ_menucontainer {
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 10000000;
    display: block;
    width: 100vw;
    height: auto;
    padding: 8px 0;
    background-color: #ff7300;
    opacity: 0;
    text-align: left;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
    visibility: hidden;
    pointer-events: none;
  }

  #DDBJ_CommonHeader .DDBJ_menucontainer.is-open {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
    pointer-events: auto;
  }

  #DDBJ_CommonHeader .DDBJ_menu {
    display: block;
    height: auto;
  }

  #DDBJ_CommonHeader .DDBJ_menu > li {
    height: auto;
    padding: 0 18px;
    color: #000;
    line-height: 40px;
  }

  #DDBJ_CommonHeader .DDBJ_menu > li a {
    color: #000;
  }

  #DDBJ_CommonHeader #DDBJ_searchform {
    display: inline-flex;
    margin: 0;
    line-height: normal;
    vertical-align: middle;
  }
}

@media (max-width: 520px) {
  #DDBJ_CommonHeader #DDBJ_searchformfield {
    width: min(220px, calc(100vw - 170px));
  }
}
