.sp {
    display: none;
}

html {
    scroll-behavior: smooth;
}

header {
    width: 24rem;
    height: 100vh;
    position: sticky;
    left: 0;
    top: 0;
    box-shadow: 0 0.4rem 0.6rem #5C5A5A29;
    display: flex;
    flex-flow: column;
    background-color: #FFFFFF;
    z-index: 10001;
}

.header_logo {
    width: 22.4rem;
    margin: -2.5rem 1.1rem 0;
}

.header_nav {
    display: flex;
    flex-flow: column;
    font-size: 16px;
    font-weight: 700;
    margin-left: 2.1rem;
    color: #707070;
    gap: 1.6rem;
    margin-top: -3.1rem;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

.header_nav a {
    display: flex;
    width: fit-content;
}

.header_nav a::before {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 50%;
    filter: blur(0.1rem);
    opacity: 0.4;
    margin-right: 0.7rem;
    margin-top: 6px;
}

.header_nav a:nth-child(1)::before {
    background-color: #FC8D8EC7;
    opacity: 1;
}

.header_nav a:nth-child(2)::before {
    background-color: #F39303;
}

.header_nav a:nth-child(3)::before {
    background-color: #FCF600;
}

.header_nav a:nth-child(4)::before {
    background-color: #2BF700;
}

.header_nav a:nth-child(5)::before {
    background-color: #01D7EA;
}

.header_nav a:nth-child(6)::before {
    background-color: #2C02F9;
}

.header_nav a:nth-child(7)::before {
    background-color: #C502F4;
}

.header_contact {
    margin-top: 52px;
    display: flex;
    gap: 1.2rem;
    flex-flow: column;
    margin-left: 3.9rem;
    font-size: 1.4rem;
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: #FFFFFF;
}

.header_contact a {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 0;
    width: 16.3rem;
    border-radius: 1.8rem;
}

.header_contact a:nth-child(1) {
    background-color: #51D448;
    padding: 0.6rem 1rem 0.9rem 1.1rem;
}

.header_contact a:nth-child(2) {
    background-color: #F4736A;
    padding: 0.8rem 1.8rem 0.9rem 1.8rem;
}

.header_contact img {
    width: 1.6rem;
    height: auto;
}

.all_wrapper {
    display: flex;
}

.top_scroll {
    position: fixed;
    background-color: #FEDC5C;
    border-radius: 50%;
    width: 9.1rem;
    height: 9.1rem;
    bottom: 6rem;
    right: 1.9rem;
    z-index: 10000;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    justify-content: center;
}

.top_scroll span:nth-of-type(1) {
    border-top: 0.2rem solid #FFFFFF;
    width: 1.2rem;
    transform: rotate(45deg);
    position: absolute;
    top: 3rem;
    left: 4.4rem;
}

.top_scroll span:nth-of-type(2) {
    border-top: 0.2rem solid #FFFFFF;
    width: 1.2rem;
    transform: rotate(-45deg);
    position: absolute;
    top: 3rem;
    left: 3.6rem;
}

@media screen and (min-width: 1439px) {
    .header_nav {
        margin-top: -5rem;
    }
}

@media screen and (max-width: 699.98px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    .all_wrapper {
        flex-flow: column;
    }

    header {
        width: 100%;
    }

    .header_sp {
        display: flex;
        flex-flow: row;
        height: 6rem;
        position: sticky;
        top: 0;
        justify-content: space-between;
    }

    .header_logo_sp {
        width: 14.4rem;
    }

    .ham_nav {
        display: none;
    }

    .btn-trigger {
        position: relative;
        width: 1.36rem;
        height: 1rem;
        cursor: pointer;
        top: 2.5rem;
        border-radius: 1rem;
        right: 2rem;
    }

    .btn-trigger span {
        position: absolute;
        width: 1.36rem;
        height: 0.2rem;
        background-color: #000000;
        border-radius: 0.4rem;
    }

    .btn-trigger,
    .btn-trigger span {
        display: inline-block;
        box-sizing: border-box;
    }

    .btn-trigger span:nth-of-type(1) {
        top: 0rem;
    }

    .btn-trigger span:nth-of-type(2) {
        top: 0.5rem;
    }

    .btn-trigger span:nth-of-type(3) {
        top: 1rem;
    }

    .btn-trigger.active span:nth-of-type(1) {
        top: 0rem;
        transform: rotate(45deg);
        background-color: #707070;
    }

    .btn-trigger.active span:nth-of-type(2) {
        display: none;
    }

    .btn-trigger.active span:nth-of-type(3) {
        top: 0rem;
        transform: rotate(-45deg);
        background-color: #707070;
    }

    .ham_nav.open {
        display: block;
        background-color: #FFFFFF;
        z-index: 10000;
        position: fixed;
        padding-bottom: 10.4rem;
        width: 100%;
        padding-top: 4rem;
        height: 100%;
        overflow: scroll;
    }

    .ham_nav.open::-webkit-scrollbar {
        display: none;
    }

    .menu-open .header_sp {
        background-color: transparent;
        box-shadow: none;
        margin-top: 1rem;
    }

    .menu-open .header_logo_sp {
        opacity: 0;
        pointer-events: none;
    }

    .ham_logo {
        width: 28rem;
        display: block;
        margin: 0 auto;
        margin-top: -8.2rem;
    }

    .ham_link_wrapper {
        display: flex;
        flex-flow: column;
        gap: 1rem;
        margin-left: 7.8rem;
        margin-top: -6.2em;
    }

    .ham_link {
        display: flex;
    }

    .ham_link img {
        width: 4.2rem;
        height: 4.2rem;
    }

    .ham_link p {
        display: flex;
        align-items: center;
        margin-left: 1rem;
        font-size: 1.6rem;
        font-weight: 700;
        font-family: "M PLUS Rounded 1c", sans-serif;
        color: #707070;
    }

    .ham_contact {
        display: flex;
        flex-flow: column;
        gap: 1.9rem;
        margin-left: 5.9rem;
        margin-top: 4.5rem;
    }

    .ham_button {
        width: 25.7rem;
        border-radius: 2.9rem;
        font-size: 2.1rem;
        font-family: "M PLUS Rounded 1c", sans-serif;
        display: flex;
        color: #FFFFFF;
        padding: 1.3rem 0;
    }

    .ham_contact a:nth-of-type(1) {
        background-color: #51D448;
        padding: 1.3rem 2.6rem 1.4rem 1.7rem;
    }

    .ham_contact a:nth-of-type(2) {
        background-color: #F4736A;
        padding: 1.2rem 3.6rem 1.5rem 3.2rem;
    }

    .ham_button img {
        width: 2.3rem;
        height: 3rem;
        margin-right: 1rem;
    }

    .menu-open {
        overflow: hidden;
    }

    .top_scroll {
        bottom: 1rem;
        right: 1rem;
    }

    .menu-open .top_scroll {
        display: none;
    }
}