html{
    scroll-behavior: smooth;
}

._sp{
    display: none;
}

.header {
    background-color: #FCEBEF;
    box-shadow: 0 0.3rem 0.6rem #FCEBEF;
    display: flex;
    gap: 10rem;
    height: 6.1rem;
    align-items: center;
    padding-left: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    font-family: "Shippori Mincho" , serif;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo img{
    width: 10rem;
}

.header__logo span img{
    margin-top: 1rem;
    margin-left: -2rem;
}

.header__hnav {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
}

.header__hnav ul {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.header__hnav a{
    background-color: #FFFFFF;
    padding: 0.8rem 1rem 0.3rem;
    border-radius: 1rem;
    display: inline-block;
}

.header__link.active{
    background-color: #ECAE50;
    color: #FFFFFF;
}

.header__link.active:hover{
    color: #FFFFFF;
}

.header--recruit a{
    display: flex;
    background-color: #E95295;
    color: #FFFFFF;
    padding: 0.8rem 4rem;
    border-radius: 4.8rem;
    align-items: center;
    gap: 0.4rem;
}

.header--recruit.active a{
    background-color: #ECAE50;
    color: #FFFFFF;
}

.header--recruit img {
    width: 2.2rem;
    height: 2rem;
}

.header--facility{
    position: relative;
    display: inline-block;
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 0.8rem 3rem 0.3rem 1rem;
}

.header--facility.active{
    background-color: #ECAE50;
    color: #FFFFFF;
}

.header--facility::after,
.header--facility::before {
    content: "";
    position: absolute;
    top: 1.7rem;
    right: 1.6rem;
    width: 0.2rem;
    height: 1.2rem;
    border-radius: 999.9rem;
    background-color: #e95295;
    transform-origin: 50% calc(100% - 0.1rem);
}

.header--facility::before{
    transform: rotate(45deg);
}

.header--facility::after{
    transform: rotate(-45deg);
}

.header__hnav .header--facility .popover {
    flex-direction: column;
    align-items: start;
    gap: 1.5rem;
    width: 23.5rem;
    padding: 4rem 0 1rem 2rem;
    position: fixed;
    top: 4rem;
    left: 53rem;
    font-size: 2rem;
    font-weight: 700;
    font-family: "Shippori Mincho" , serif;
    z-index: 999;
    border: none;
    background-color: transparent;
}

.header__hnav .facility-box{
    display: block;
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 1rem;
}

/* .facility-box.--active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
} */

.facility-box a{
    position: relative;
    width: 20.1rem;
    display: inline-block;
    background-color: transparent;
}

.facility-box a.active{
    color: #ECAE50;
}

.facility-box a.active:hover{
    color: #ECAE50;
}

.header__hnav a:hover{
    color: #E95295;
}

.header--recruit a:hover{
    color: #FFFFFF;
}

@media screen and (max-width:699.98px) {
    ._pc{
        display: none;
    }

    ._sp{
        display: block;
    }

    body.--open{
        overflow: hidden;
    }

    .header{
        padding-inline: 0 1.5rem;
        gap: 15rem;
        height: 9rem;
    }

    .header__logo img{
        width: 8rem;
    }

    .header__logo span img{
        margin-top: 1.3rem;
        margin-left: -1rem;
    }

    .hamburger{
        position: relative;
        width: 4.5rem;
        height: 3.6rem;
        font-size: 1.4rem;
        font-weight: 400;
        font-family: "LINE Seed JP", sans-serif;
        color: #E95295;
        text-align: center;
        margin-top: 2rem;
    }

    .hamburger span{
        display: block;
        width: 100%;
        height: 0.2rem;
        background-color: #e95295;
        position: absolute;
    }

    .hamburger span:nth-of-type(1){
        top: 0;
    }

    .hamburger span:nth-of-type(2){
        top: 1.2rem;
    }

    .hamburger span:last-child{
        margin-top: 1rem;
        background-color: transparent;
        position: relative;
        height: fit-content;
    }

    .hamburger-nav{
        display: none;
        width: 100%;
        height: 100vh;
        background-image: url(../img/top,header,footer/top_bg.webp);
        background-size: cover;
        color: #333333;
        font-family: "Shippori Mincho" , serif;
        font-size: 2rem;
        font-weight: 700;
        position: fixed;
        top: 0;
        z-index: 99999;
    }

    .hamburger-nav.--open{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger-nav button{
        position: absolute;
        right: 1.5rem;
        top: 2.6rem;
        font-size: 1.4rem;
        font-weight: 400;
        font-family: "LINE Seed JP", sans-serif;
        color: #E95295;
        text-align: center;
        height: 4rem;
        width: 4.3rem;
    }

    .hamburger-nav button span:last-child{
        background-color: transparent;
        width: fit-content;
        height: fit-content;
        position: relative;
        margin: 0.5rem auto 0;
    }

    .hamburger-nav button span{
        width: 4.3rem;
        height: 0.2rem;
        position: absolute;
        display: block;
        background-color: #E95295;
    }
    
    .hamburger-nav button span:nth-of-type(1){
        transform: rotate(15deg);
    }

    .hamburger-nav button span:nth-of-type(2){
        transform: rotate(-15deg);
    }

    .hamburger-nav ul:first-child{
        display: flex;
        flex-direction: column;
        gap: 3rem;
        margin-inline: auto;
        border-radius: 1.6rem;
        overflow: hidden;
        width: 25rem;
        height: 44.8rem;
        position: relative;
    }

    .hamburger-nav ul:first-child li{
        position: relative;
        z-index: 2;
        padding-bottom: 0.2rem;
        padding-left: 0.2rem;
        width: 15.4rem;
        margin-inline: auto;
        border-bottom: 0.1rem solid #cccccc;
    }

    .hamburger-nav ul:first-child li:first-child{
        padding-top: 2.4rem;
    }

    .hamburger-nav__cover{
        width: 25rem;
        height: 44.8rem;
        opacity: 0.5;
        background-color: #FFFFFF;
        position: absolute;
        border-radius: 1.6rem;
    }

    .hamburger-nav .hamburger--facility ul li{
        padding-left: 1rem;
        font-size: 1.8rem;
        border-bottom: none;
        padding-block: 0;
    }

    .hamburger-nav ul{
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hamburger-nav .hamburger--facility ul li:first-child{
        padding-top: 0;
    }

    .sidebar{
        font-size: 1.6rem;
        writing-mode: vertical-rl;
        position: fixed;
        top: 10.5rem;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #E95295;
        border-radius: 0.6rem 0 0 0.6rem;
        width: 4rem;
        height: 11.7rem;
        gap: 0.78rem;
        color: #FFFFFF;
        z-index: 999;
    }

    .sidebar img{
        width: 1.461rem;
        height: 1.044rem;
    }


}