

/* 新 */
.header__hamburger {
width: 35px;
height: 100%;
margin-left: auto;
margin-right: 0.5rem;
margin-top: auto;
margin-bottom: auto;
padding: 0;
position: relative;
}

.hamburger {
background-color: transparent; /*buttonタグデフォルトスタイルを打ち消し*/
border-color: transparent; /*buttonタグデフォルトスタイルを打ち消し*/
z-index: 100;
}

.hamburger span {
width: 100%;
height: 2px;
background: #1a1840;
position: absolute;
transition:  all .3s;
display: block;
}

.hamburger span:nth-child(1) {
  top: -10px;
}

.hamburger span:nth-child(2) {
  top: 0;
  bottom: 0;
  margin: auto 0;
}

.hamburger span:nth-child(3) {
  bottom: -10px;
}

/* ハンバーガーメニュークリック後のスタイル */
.header__nav.active {
  transform: translateX(0);
}

.header__nav {
    position: fixed;
    overflow-y: scroll;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 80;
    transform: translateX(100%);
    background-color: #fff; /*ハンバーガーメニュークリック時のナビゲーションメニュー背景色*/
    transition: ease .3s; /* ハンバーガーメニュークリック時のナビゲーションメニュー出現を遅延 */
}

.hamburger__main{
    width: 96%;
    margin-right: 2%;
    margin-left: 2%;
    margin-top: calc(((40vw * 35) / 269) + 1.9rem + 1rem);
}

.active span:nth-of-type(1){
  transform: rotate(45deg);
  position: absolute;
  top:0;
  bottom:0;
}
.active span:nth-of-type(2){
  background: transparent;
}
.active span:nth-of-type(3){
  transform: rotate(-45deg);
  position: absolute;
  top:0;
  bottom:0;
}
