/* HAMBURGER MENU */
.menuicon {
    // position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 18px;
    width: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1005;
}

.menuicon span {
    // border: 1px solid red;
    width: 100%;
    height: 2px;
    background-color: white;
}

.menuicon span:first-child {
    transform: none;
}
.menuicon span:first-child {
    opacity: 1;
}
.menuicon span:first-child {
    transform: none;
}

.menuicon.open span:first-child {
    transform: rotate(45deg)  translate(7px, 4px);
}
.menuicon.open span:nth-child(2) {
    opacity: 0;
}
.menuicon.open span:last-child {
    transform: rotate(-45deg) translate(7px, -4px);
}

.closebox {
    position: relative;
    align-items: center;
    display: flex;
    width: 36px;
    height: 36px;
    // border: 1px solid orange;
    margin: 0;
    padding: 0;
    border-radius: 18px;
}

.closebox-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width:  30px;
    cursor: pointer;
    position: relative;
    z-index: 1005;
}

.closebox-icon span {
    width: 100%;
    height: 2px;
    background-color: white;
}

.closebox-icon span:first-child {
    transform: rotate(45deg)  translate(10px,  5px);
}
.closebox-icon span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}


/* 以下旧ハンバーガーメニュー */
.hamburger-menu {
    position: absolute;
    top: 0px;
    right: 0px;

    z-index: 1003; // ダイアログより手前に。
}

.hamburger-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    // background-color: black;
    background-color: white;
}

.menu-links {
    position: fixed;
    top: 2.5rem; /* = header height. */

    // 普段は右画面外に隠す
    right: -18rem;
    width: 18rem;
    height: 26rem;

    padding: 0;
    margin: 0;

    z-index: 1003; // ダイアログより手前に。
}

.menu-links ul {
    display: flex;
    flex-direction: column;
    // justify-content: center;
    // align-items: center;
    height: 40rem;
    list-style: none;
    // margin: 1rem;
}

.menu-links a {
    /* font-size: 1.2rem; */
    text-decoration: none;
}

.menu-links li {
    list-style: none;
    margin: 0;
}

.menu-links.open {
    max-height: 100vh;
    // right: 20px;
    right: 0px;
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

body.no-scroll {
  overflow: hidden;
}
