/* Employee interview page and six-item global navigation */
#gnavi,
#gnavi ul {
  width: 960px;
  height: auto;
}

#gnavi {
  margin-right: auto;
  margin-left: auto;
}

#gnavi ul.gnavi-text {
  display: flex;
  margin: 0;
  padding: 0;
  background: #620019;
  list-style: none;
}

#gnavi ul.gnavi-text li {
  float: none;
  flex: 1 1 0;
  border-left: 1px solid #8f4057;
}

#gnavi ul.gnavi-text li:last-child {
  border-right: 1px solid #8f4057;
}

#gnavi ul.gnavi-text a {
  display: flex;
  box-sizing: border-box;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 4px 6px 3px;
  color: #fff;
  font-family: Meiryo, "メイリオ", "Yu Gothic", sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0,0,0,.12);
}

#gnavi ul.gnavi-text a:hover,
#gnavi ul.gnavi-text a:focus,
#gnavi ul.gnavi-text a[aria-current="page"] {
  background: #8b1738;
}

@media screen and (min-width: 641px) {
  #gnavi ul.gnavi-text li:nth-child(3) a {
    font-size: 14px;
  }
}

@media screen and (max-width: 640px) {
  #gnavi {
    display: block;
    width: 100%;
    height: auto;
  }

  #gnavi ul.gnavi-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    height: auto;
  }

  #gnavi ul.gnavi-text li {
    border-bottom: 1px solid #8f4057;
  }

  #gnavi ul.gnavi-text a {
    height: 44px;
    font-size: 13px;
  }
}
