nav input[type=checkbox] {
  display: none;
  cursor: pointer;
  -webkit-touch-callout: none;
}

nav .toggle {
  --width: 40px;
  --height: calc(var(--width) / 2);
  --border-radius: calc(var(--height) / 2);

  display: inline-block;
  cursor: pointer;
}

nav input:checked~.menu {
  display: none;
}

nav label {
  display: block;
  position: fixed;
  width: 48px;
  height: 48px;
  top: 0;
  right: 0;
  z-index: 101;
  margin: 8px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media screen and (max-width:767px) {
  nav label {
    margin: 0;
  }
}

nav label div {
  display: block;
  width: 16px;
  height: 16px;
  margin: 16px;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  background-color: rgba(76, 71, 178, 1);
  border-radius: 50%;
}

@media (hover: hover) {
  nav label:hover div {
    width: 20px;
    height: 20px;
    margin: 14px;
  }
}

@media (hover: none) {
  nav label div {
    width: 20px;
    height: 20px;
    margin: 14px;
  }

  nav input:checked~label div {
    width: 16px;
    height: 16px;
    margin: 16px;
  }
}

.menu {
  display: block;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  z-index: 100;
  margin: 0;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.menu-container {
  display: block;
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

@supports (-webkit-touch-callout: none) {
  /* iOS devices */

  .menu {
    height: 100dvh;
  }

  .menu-container {
    height: 100dvh;
  }
}

.menu-container>a:first-of-type {
  margin-top: 2em;
}

.menu-container>a:last-of-type {
  margin-bottom: 4em;
}

.menu-container>a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 420px;
  max-width: calc(100% - 2em);
  min-height: 4em;
  margin: 0.33em auto 0.33em auto;
  padding-top: 1em;
  padding-bottom: 1em;
  color: #444;
  font-size: 0.9rem;
  line-height: 1.4em;
  cursor: pointer;
  overflow: hidden;
  border-radius: 1em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.1em;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0);
  z-index: 100;
}

.menu-container>a:hover {
  color: rgba(76, 71, 178, 1);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 1);
}

.menu-container>a.current {
  color: #aaa;
}

.menu-container>a.home {
  font-size: 0.6rem;
  line-height: 1em;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.menu-container>a.home:hover {
  color: rgba(76, 71, 178, 1);
}

hr {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  width: 5%;
  height: 1px;
  margin-left: auto;
  margin-right: auto;
  background-image: linear-gradient(90deg,
      hsla(0, 0%, 0%, 0.05),
      hsla(0, 0%, 0%, 0.1) 50%,
      hsla(0, 0%, 0%, 0.05) 100%);
}

#topBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 64px;
  padding: 12px 76px 12px 20px;
  box-sizing: border-box;
  z-index: 101;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media screen and (max-width: 767px) {
  #topBar {
    height: 48px;
    padding: 12px 60px 12px 12px;
  }
}

#topBar a {
  text-decoration: none;
  color: #444;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  font-size: 0.9em;
}