header {
  z-index: 2;
  height: 68px;
  color: #24292F;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
	top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  line-height: 20px;
  padding-top: 17px;
  padding-bottom: 15px;
  padding-left: 46px;
  padding-right: 46px;
  /* padding-left: calc((100vw - 800px) / 2);
  padding-right: calc((100vw - 800px) / 2); */
  box-sizing: border-box;
  transition: 0.2s;
}

header.shift {
  transform: translateY(-100%);
  transition: 0.4s;
}

header .logo {
  display: flex;
  align-items: center;
  padding-right: 40px;
  color: #24292F;
  background: #FFFFFF;
  text-decoration: none;
  font-style: normal;
  transition: 0.2s;
}

header .logo img{
  padding-right: 6px;
  height: 42px;
  width: auto;
  visibility: visible;
  transition: 0.2s;
}

header .logo div {
  height: 42px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
}

header .logo h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  display: block;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
  font-size: 22px;
  line-height: 30px;
  width: 225px;
  font-weight: bold;
  opacity: 1.0;
}

header .logo p {
  line-height: 12px;
  display: block;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
  font-size: 10px;
  width: 225px;
  font-weight: normal;
  opacity: 1.0;
}

header .menu,
header .menu svg {
  width: 28px;
  height: 28px;
  transition: 0.2s;
  z-index: 9999;
}

#navlist,
#navlist.navhidden {
	width: auto;
	display: flex;
	justify-content: flex-end;
	/* align-items: center; */
  flex-wrap: wrap;
	list-style: none;
  z-index: 9998;
}

#navlist li {
  height: 21px;
  line-height: 21px;
  padding: 0px 7px;
  font-size: 11.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 1.0;
  transition: 0.2s;
}

#navback {
	width: 100vw;	
	height: 100vh;
	background: #000000AA;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9997;
}

#navopenbutton,
#navclosebutton,
#navback {
  display: none;
}

@media screen and (max-width:840px) {
  header {
    height: 60px;
    padding-top: 16px;
    padding-left: 20px;
    padding-right: 20px;
  }
  #navlist {
		width: 45%;
		height: 100vh;
		display: flex;
		justify-content: space-around;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		z-index: 9999;
		background-color: #FFFFFF;
	}
  #navlist li {
    color: #24292F;
	}
	#navlist,
  #navback,
  #navopenbutton,
  #navclosebutton {
    display: flex;
    transition: 0.3s;
  }
  #navopenbutton svg,
  #navclosebutton svg {
    fill: #FFFFFF;
    transition: 0.3s;
  }
  header #navopenbutton svg,
  header #navclosebutton svg {
    fill: #24292F;
    transition: 0.3s;
  }
  #navlist.navhidden,
  #navback.navhidden,
  #navopenbutton.navhidden,
  #navclosebutton.navhidden {
    display: none;
    transition: 0.3s;
  }
  #navlist.navhidden {
    display: flex;
    transform: translateX(100%);
    transition: 0.3s;
  }
}
