@charset "utf-8";

/*  ハンバーガーメニュー */
.l-header__ham {
  background-color: #0d4e8f;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: fixed;
  z-index: 999999;
  transition: 0.2s;
  width: 34px;
  height: 34px;
  top: 13px;
  right: 10px;
}

.l-header__ham:hover {
  cursor: pointer;
  opacity: 0.8;
}

.l-header__ham.is-open .l-header__bar--01 {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.l-header__ham.is-open .l-header__bar--02 {
  opacity: 0;
}

.l-header__ham.is-open .l-header__bar--03 {
  bottom: 50%;
  transform: translateY(50%) rotate(45deg);
}

.l-header__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.l-header__bar {
  position: absolute;
  left: 0;
  background-color: #fff;
  transition: 0.3s;
  height: 2px;
  width: 18px;
}

.l-header__bar--01 {
  top: 0;
}

.l-header__bar--02 {
  top: 50%;
  transform: translateY(-50%);
}

.l-header__bar--03 {
  bottom: 0;
}

/*  ドロワーメニュー */
.p-header__menu {
  display: block;
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  padding-bottom: 50px;
  z-index: 99999;
  margin-top: 0;
  transition: 0.5s;
  opacity: 0;
  overflow-y: scroll;
  width: 100%;
  padding-top: 60px;
  padding-left: 15px;
  padding-right: 15px;
}

.p-header__menu.is-open {
  display: block;
  right: 0;
  opacity: 1;
}

.p-header__menu-list {
  border-top: 1px solid #999;
}

.p-header__menu-item {
}

.p-header__menu-link,
.p-header__menu-sub {
  color: #fff;
}

.p-header__menu-link {
  display: block;
  border-bottom: 1px solid #999;
  font-size: 1.6rem;
  line-height: 4.5rem;
}

/* PC */
@media screen and (min-width: 768px) {
  /*  ハンバーガーメニュー */
  .l-header__ham {
    width: 50px;
    height: 50px;
    top: 20px;
    right: 20px;
  }

  .l-header__bars {
    width: 30px;
    height: 18px;
  }

  .l-header__bar {
    height: 2px;
    width: 30px;
  }

  /*  ドロワーメニュー */
  .p-header__menu {
    width: 370px;
    padding-top: 90px;
    padding-left: 45px;
    padding-right: 20px;
  }

  .p-header__menu-link {
    font-size: 1.8rem;
    line-height: 6rem;
  }
}
@media screen and (min-width: 1140px) {
  /*  ハンバーガーメニュー */
  .l-header__ham {
    right: calc((100vw - 1100px) / 2);
  }
}
