@charset "UTF-8";

/*===============================

グローバルナビ

================================*/

#nav {
  position: fixed;
  width: 100%;
  height: 60px;
  background-color: #FFF;
  z-index: 100;
  overflow: hidden;
}

#nav .logo img {
  position: absolute;
  height: 28px;
  top: 17px;
  left: 40px;
  z-index: 3;
}

@media screen and (max-width:960px) {
  #nav .logo img {
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
  }
}

#overlay-button {
  position: absolute;
  right: 0;
  top: 0;
  padding: 29px 17px;
  z-index: 5;
  cursor: pointer;
  user-select: none;
}

@media screen and (max-width:560px) {
  #overlay-button {
    padding: 29px 12px;
  }
}

#overlay-button span {
  height: 2px;
  width: 26px;
  border-radius: 10px;
  background-color: #191c1f;
  position: relative;
  display: block;
  transition: all .2s ease-in-out;
}

#overlay-button span:before {
  top: -10px;
  visibility: visible;
}

#overlay-button span:after {
  top: 10px;
}

#overlay-button span:before, 
#overlay-button span:after {
  height: 2px;
  width: 26px;
  border-radius: 10px;
  background-color: #191c1f;
  position: absolute;
  content: "";
  transition: all .2s ease-in-out;
}
#overlay-button:hover span, #overlay-button:hover span:before, #overlay-button:hover span:after {
  background-color: #191c1f;
}

input[type=checkbox] {
  display: none; 
  
}

input[type=checkbox]:checked ~ #overlay {
  visibility: visible; 
}

input[type=checkbox]:checked ~ #overlay-button:hover span, input[type=checkbox]:checked ~ #overlay-button span {
  background: transparent;
  
  
}
input[type=checkbox]:checked ~ #overlay-button span:before {
  transform: rotate(45deg) translate(7px, 7px);

}
input[type=checkbox]:checked ~ #overlay-button span:after {
  transform: rotate(-45deg) translate(7px, -7px);


}

#overlay {
  height: 100vh;
  width: 100vw;
  background: #FFF;
  z-index: 2;
  visibility: hidden;
  position: fixed;
}

#overlay ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  height: 100vh;
  padding-left: 0;
  list-style-type: none;
}

#overlay ul li {
  padding: 12px;
}

#overlay ul li a {
  text-decoration: none;
}