@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Caveat&family=M+PLUS+Rounded+1c:wght@400;500;800&family=Noto+Sans+JP:wght@500&family=Pacifico&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  width:100%;
  padding: 0px;
  background: #222;
}

header {
  width: 100%;
  height: 70px;
  background: rgba(221,221,221,0.2);/*#333*/
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  position: relative;
  z-index: 5;/*3*/
}

.logo {
  font-weight: 800;
  color: #333;/*white*/
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.span-container,
.checkbox {
  width: 45px;
  height: 45px;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.checkbox {
  opacity: 0;
  z-index: 100;
}

.span-container {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  z-index: 90;/*90*/
}

.span-container span {
  width: 100%;
  height: 3px;
  background: #000080;/*rgba(0,179,121,1)*/
  transition: all 250ms ease-out;
  transform-origin: 0 0;
}

.checkbox:checked ~ .span-container span:nth-last-child(1) {
  transform: rotate(-45deg) translate(-1px, 0px);
}

.checkbox:checked ~ .span-container span:nth-last-child(2) {
  transform: rotate(0deg) scale(0.2, 0.2);
  opacity: 0;
}

.checkbox:checked ~ .span-container span:nth-last-child(3) {
  transform: rotate(45deg) translate(0px, -1px);
}

.nav-container {
  position: fixed;/*fixed*/
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  z-index: 50;
  background: rgba(255,255,255,0.92);/*#444*/
  transition: all 250ms ease-out;
  transform: translateX(-100%);
}
.nav-container a {
  text-decoration: none;
  color: #000080;/*rgba(0,179,121,1)*/
  font-size: 20px;/*clamp(1.4rem, 2.4vw, 2.2rem)*/
  margin: 1rem auto;
  font-family: 'Noto Sans JP', sans-serif;
}
.nav-container a:hover {
  color: salmon;
}

.checkbox:checked ~ .nav-container {
  transform: translateX(0%);
}

@media screen and (min-width: 1000px) {
  .checkbox,
  .span-container {
    display: none;
  }
  .nav-container {
    position: relative;
    left: none;
    top: none;
    width: auto;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    z-index: 50;
    background: transparent;
    transition: none;
    transform: none;
  }
  .nav-container a {
    margin-right: 1.5rem;
  }
}

