
/* header */

/* main part of header */

.header{
    height: 7vh;
    display: flex;
    flex-flow: column;
}
.header-bar{
    height: 1.7vh;
    background-color: #53AB49;
    flex-shrink: 0;
}
.header-menu{
    display: flex;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    /* align-items: ; */
    /* margin-bottom: 40px; */
    /* vertical-align: baseline; */
    height: 5.3vh;
}
.header-menu img{
    height: 100%;
    margin-left: 14vmin;
    /* align-items: baseline; */
}

.menu{
    display: flex;
    width: 70%;
    justify-content: flex-end;
    padding-right: 5%;
    align-items: center;
}
.menu-list{
    list-style: none;
    margin-left: 5%;
    /* font: 2vmin "Fira Sans", sans-serif; */
    font: 2vmin;
    font-family: "Times New Roman", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "MS PMincho", "MS Mincho", serif;
    white-space: nowrap;
    font-weight: bold;
}
.menu-button{
    cursor: pointer;
    transition: .3s cubic-bezier(0.45, 0, 0.55, 1);
}
.menu-button.line{
    color: black;
    position: relative;
}
.menu-button.line::before{
    background: #53AB49;
    content: '';
    width: 100%;
    height: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .3s;
    transform-origin: center top;
}
.menu-button.line:hover{
    color: #53AB49;
}
.menu-button.line:hover::before{
    transform: scale(1,1);
    transform-origin: center top;
}

/* part of sticky header */

.sticky-header-hidden{
    opacity: 0;
    visibility: hidden;
    height: 0;
    transform: translateY(-100%);
    transition: 0s;
}
.sticky-header{
    opacity: 1;
    visibility: visible;
    position: sticky;
    height: 5.3vh;
    top:0;
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.95);
    transition: 0.7s;
    z-index: 100;
}

/* part of hamburger menu */

.header-hamburger-menu{
    height: 0;
    width: 0;
    visibility: hidden;
    opacity: 0;
}
.header-nav{
    height: 0;
    width: 0;
    visibility: hidden;
    opacity: 0;
    color: transparent;
    position: absolute;
    font-size: 4vh;
    top: 0;
    left: 0;
    transition: width 0s, height 0s, color .4s;
}
.header-nav ul li{
    font-size: 4vh;
}
.mask{
    height: 0;
    width: 0;
    visibility: hidden;
    opacity: 0;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    transition: ease width 0s, height 0s, background-color .4s;
}


/* footer */

.footer{
    background-color: #333;
    text-align: center;
    color: white;
    /* padding-top: 20vh; */
}
.footer-sns{
    display: flex;
    margin: auto;
    justify-content: center;
}
.footer-sns-logo{
    height: 30px;
    padding: 15px;
}
.footer-copyright{
    border-top: solid #666 0.5px;
}


@media screen and (max-width:980px) {

    /* header */

    /* main part of header */

    .header-menu img{
        margin-left:5vw;
    }
    .menu{
        display: none;
    }
    .logo-link{
        max-width: 50vw;
    }

    /* part of hamburger menu */
    
    .header-hamburger-menu{
        visibility: visible;
        opacity: 1;
        display: flex;
        flex-flow: column;
        justify-content: center;
        height: auto;
        width:5.3vh;
        margin-right: 5vw;
        background-color: transparent;
        border: transparent;
        z-index: 300;
    }
    .header-hamburger-menu span{
        width: 100%;
        height: 1px;
        background-color: black;
        position: relative;
        transition: ease .4s;
        display: block;
        z-index: 300;
    }
    .header-hamburger-menu span:nth-child(odd) {
        top: 0;
    }
    .header-hamburger-menu span:nth-child(even) {
        margin: 20% 0;
    }

    .header-hamburger-menu.active span{
        background-color: white;
    }
    .header-hamburger-menu.active span:nth-child(1) {
        transform: translateY(1px) rotate(45deg);
    }
    .header-hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        margin: 0;
    }
    .header-hamburger-menu.active span:nth-child(3) {
        transform: translateY(-1px) rotate(-45deg);
    }

    .header-nav{
        transition: width 0s, height 0s, color .4s;
    }
    .mask{
        transition: width 0s, height 0s, background-color .4s;
    }
    .mask.active{
        opacity: 1;
        visibility: visible;
        display: block;
        position: absolute;
        width: 40vw;
        height: 40vh;
        padding: 30vh 30vw;
        background-color: rgba(15, 15, 15, 0.9);
        z-index: 200;
        transition: width 0s, height 0s, background-color .4s;
    }
    .header-nav.active{
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-flow: column;
        justify-content: center;
        height: 60vh;
        width: 80vw;
        top: 20vh;
        left: 10vw;
        z-index: 300;
    }
    .header-nav.active ul{
        display: flex;
        flex-flow: column;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    .header-nav.active ul li{
        font-size: 4vh;
        text-align: center;
        padding: 1vh 0;
        margin: 0;
    }
    .header-nav.active ul li a{
        color: white;
    }
    #body.active{
        overflow: hidden;
    }

    /* footer */

    .footer-sns-logo{
        width: 8vmin;
        max-width: 30px;
        height: auto;
        padding: min(4vmin, 15px);
    }
    .footer-copyright{
        font-size: 1.5vh;
    }
}