@charset "utf-8";

/*========= ナビゲーションのためのCSS ===============*/

#hamburger {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: -500%;
    left: 0;
    width: 100%;
    height: 100dvh;
    /*ナビの高さ*/
    background: #999;
    /*動き*/
    transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#hamburger.panelactive {
    top: 0;
}

/*ナビゲーションの縦スクロール*/
#hamburger.panelactive #hamburger-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100dvh;
    /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#hamburger ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*リストのレイアウト設定*/

#hamburger li {
    list-style: none;
    text-align: center;
}

#hamburger li a {
    color: #333;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/*========= ボタンのためのCSS ===============*/
.openbtn {
    position: fixed;
    z-index: 9999;
    /*ボタンを最前面に*/
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
}

/*×に変化*/
.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
    width: 45%;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}

.openbtn span:nth-of-type(2) {
    top: 23px;
}

.openbtn span:nth-of-type(3) {
    top: 31px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/* 追記 */
#hamburger {
    background-color: #fefcfa;
}

#hamburger ul {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
}

#hamburger li {
    text-align: justify;
}

#hamburger li a {
    font-size: 5rem;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: -0.01em;
    /* color: #282b2b; */
    color: #fefcfa;
    -webkit-text-stroke: 0.15rem #ff6c3d;
    font-feature-settings: "palt";
    text-transform: capitalize;
    padding: 1.2rem 0;
}

/*==1279px以下の形状*/

@media screen and (max-width:1279px) {
    #hamburger{
        top: -500%;
    }

    #hamburger.panelactive #hamburger-list {
        display: grid;
        position: static;
        height: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .hamburger-logo {
        position: static;
        align-self: flex-start;
        justify-self: flex-start;
        padding: 3rem 0 0 3rem;
        grid-column: 1 / 1;
        grid-row: 1 / 1;
    }

    .hamburger-btn {
        position: static;
        align-self: flex-end;
        justify-self: center;
        padding-bottom: 3rem;
        width: calc(100% - 6rem);
        grid-column: 1 / 1;
        grid-row: 1 / 1;
    }

    nav#hamburger ul.big-ul {
        align-self: flex-start;
        justify-self: center;
        padding: 12.3rem 0;
        width: calc(100% - 6rem);
        position: static;
        grid-column: 1 / 1;
        grid-row: 1 / 1;
    }
}