@charset "utf-8";
#header .header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0px 8px 8px -6px rgba(0, 0, 0, 0.3);
}
.header .logo {
  max-width: 240px;
	padding: 10px 0;
}
/* ハンバーガーメニュー */
.drawer__button {
  position: absolute;
  right: 8px;
  width: 3rem;
  height: 54px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 999;
}
.drawer__button > span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2px;
  background-color: #1a5eac;
  transform: translateX(-50%);
}
.drawer__button > span:first-child {
  transform: translate(-50%, calc(-50% - 0.5rem));
  transition: transform 0.3s ease;
}
.drawer__button > span:nth-child(2) {
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}
.drawer__button > span:last-child {
  transform: translate(-50%, calc(-50% + 0.5rem));
  transition: transform 0.3s ease;
}
.drawer__button.active > span:first-child {
  transform: translate(-50%, -50%) rotate(-45deg);
  background-color: #1a5eac;
}
.drawer__button.active > span:nth-child(2) {
  opacity: 0;
}
.drawer__button.active > span:last-child {
  transform: translate(-50%, -50%) rotate(45deg);
  background-color: #1a5eac;
}
.drawer__nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}
.drawer__nav.active {
  opacity: 1;
  visibility: visible;
}
.drawer__nav__inner {
  position: relative;
  width: 40%;
  height: 100%;
  background-color: #fff;
  opacity: 0.9;
  padding: 5rem 1.5rem 1rem;
  margin: 0 0 0 auto;
  overflow: scroll;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.drawer__nav.active .drawer__nav__inner {
  transform: translateX(0);
}
.drawer__nav__menu {
  list-style: none;
  padding-left: 0;
}
.drawer__nav__link {
  display: block;
  margin-bottom: 10px;
  padding: 0.6rem;
  border-bottom: 1px solid #1a5eac;
  color: #1a5eac;
  text-align: left;
}
.active {
  height: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  .drawer__nav__inner {
    width: 80%;
  }

  .header .logo {
    max-width: 180px;
  }

  .drawer__button {
    height: 36px;
  }
}
