

.ham-container{
  float: right;
  position: absolute;
  width: 100%;
  top: 0;
  display: block;
}

.ham-menu {
  background-color: var(--color-main);
  width: 100%;
  height: 100vh;
  display: none;
  z-index: 10;
  position: relative;
}

.ham-menu ul {
  overflow: hidden;
  list-style-type: none;
  margin: 0;
  padding: 4rem 0;
  width: 100%;
}
.ham-menu ul.ham-last {
  position: absolute;
  bottom: 0;

}
.ham-menu li {
  display: block;
  margin: 0;
  padding: 0 10%;
  width: 100%;
  transition: background-color .5s;
}



.ham-menu li a {
  font-family: var(--font-family-sans);
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.8rem;
  transition: all .5s;
  font-weight: 700;
  margin-right: 0.6em;
}

.ham-menu ul.ham-last li a {
  color: var(--color-text);
}

.serif .ham-menu li a {
  font-family: var(--font-family-sans);
}

.hamburger {
  margin-top: 0.9rem;
  margin-right: 1rem;
  float: right;
  transition: opacity .3s;
  position: relative;
  z-index: 11;
  transition: 0.8s;
  cursor: pointer;
}

@media screen and (min-width: 568px){
  .hamburger {
    margin-top: 0.9rem;
    margin-right: 2rem;
  }
}
@media screen and (min-width: 768px){
  .hamburger {
    margin-top: 1.4rem;
    margin-right: 3rem;
  }
}

/*.scrolling .hamburger {
  margin-top: 1.9rem;
  transition: 0.8s;
}
*/
.hamburger:hover {
  cursor: pointer;
  opacity: .5;
}

.hamburger .line{
  width: 32px;
  height: 3px;
  margin: 8px auto;
  transition: all 0.3s ease-in-out;
}

.hamburger .line:nth-child(1) {
  background-color: var(--color-text);
}

.hamburger .line:nth-child(2) {
  background-color: var(--color-text);
}

.hamburger .line:nth-child(3) {
  background-color: var(--color-text);
}

.hamburger.isactive .line:nth-child(2) {
  opacity: 0;
}

.hamburger.isactive .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.isactive .line:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

.ham-menu {
  transition: all 2s ease-in-out;
}

.ham-menu.active {
  display: block;
  animation: fade .5s;
}

@keyframes fade {
  from{transform: translateX(-200px); opacity: 0;}
  to {transform: translateX(0px); opacity: 1;}
}


/* --- ≥ 1024px .pure-u-lg-* --- */
@media screen and (min-width: 1280px){
  .ham-container{
    display: none;
  }
}
