/* Overlay style */
.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .9);
  z-index: 1998;
}

/* Menu style */
.overlay nav {
  text-align: center;
  position: relative;
  width: 100%;
  top: 50%;
  height: 60%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  height: 100%;
  position: relative;
}

.overlay ul li {
  display: block;
  height: 20%;
  height: calc(100% / 3);
  min-height: 50px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.overlay ul li span {
  font-size: 30px;
  color: #fff;
  text-decoration: underline;
}
.overlay ul li a {
  font-size: 35px;
  font-weight: 300;
  display: block;
  color: #fff;
  opacity: 1;
  text-decoration: none;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.overlay ul li a:hover,
.overlay ul li a:focus {
  color: #ccc;
  opacity: 0.9;
}
.overlay nav .pc-navi-logo {
  margin: 5% 0 0 0;
}
.overlay nav .pc-navi-logo img {
  width: 9%;
}

/* Effects */
.overlay-slidedown {
  visibility: hidden;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  -webkit-transition: -webkit-transform 0.4s ease-in-out, visibility 0s 0.4s;
  transition: transform 0.4s ease-in-out, visibility 0s 0.4s;
}

.overlay-slidedown.open {
  visibility: visible;
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
  -webkit-transition: -webkit-transform 0.4s ease-in-out;
  transition: transform 0.4s ease-in-out;
}

@media screen and (max-height: 30.5em) {
  .overlay nav {
    height: 70%;
    font-size: 34px;
  }
  .overlay ul li {
    min-height: 34px;
  }
}
