@charset "utf-8";
/* チェックボックスを非表示 */
.menu-checkbox {
  display: none;
}

@media screen and (max-width: 960px) {/* メニューボタンの装飾 */
.menu-button {
  display: block;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  height: 50px;
  width: 50px;
  cursor: pointer;
    border: 5px solid #120f69;
    box-sizing: content-box;
    background: #120f69
}
.menu-button::before,
.menu-button::after {
  content: '';
  transition: .3s;
}
.menu-button::before,
.menu-button::after,
.menu-button span {
  display: block;
  position: absolute;
  left: 10%;
  height: 6px;
  width: 80%;
  background-color: #fff;
	border-radius: 4px
}
.menu-button::before {
  top: 16%;
}
.menu-button::after {
  bottom: 16%;
}
.menu-button span {
  top: calc(50% - 3px);
}

/* メニューボタンのアニメーション */
.menu-checkbox:checked ~ .menu-button::before {
  top: 45%;
  transform: rotate(45deg);
}
.menu-checkbox:checked ~ .menu-button::after {
  top: 45%;
  transform: rotate(-45deg);
}
.menu-checkbox:checked ~ .menu-button span {
  display: none;
}

/* ドロワーメニューの装飾 */
.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  height: 100%;
  width: 100%;
  transform: translateX(100%);
  transition: .5s;
  background-color: #333;
}
.drawer-menu ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.drawer-menu li {
  border-bottom: 1px dotted #ccc;
}
.drawer-menu a {
  display: block;
  padding: 15px;
  color: #fff;
  text-decoration: none;
}

/* ドロワーメニューの開閉 */
.menu-checkbox:checked ~ .drawer-menu {
  transform: translateX(0);
}

/* ドロワーメニューの背景 */
.menu-background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, .5);
  cursor: pointer;
}
.menu-checkbox:checked ~ .menu-background {
  display: block;
}
}