@charset "UTF-8";

#contents {
    padding-bottom: 12.1rem;
    background-color: #F2F4EF;

    @media screen and (max-width: 767px) {
        padding-bottom: 6rem;
    }
}

#faq {
    padding-top: 0.9rem;

    @media screen and (max-width: 767px) {
        padding-top: 2rem;
    }

    .wrapper {
        display: flex;
        /* align-items: flex-start; */
        justify-content: space-between;

        @media screen and (max-width: 767px) {
            flex-direction: column;
            justify-content: flex-start;
            gap: 8rem;
        }
    }

    .sidebar-wrapper {
        flex-shrink: 0;
        width: 38rem;

        @media screen and (max-width: 767px) {
            width: 100%;
        }
    }

    .sidebar {
        position: sticky;
        top: 13rem;
        display: flex;
        flex-direction: column;
        gap: 3.4rem;
        padding: 5.2rem 3.2rem;
        width: 100%;
        border-radius: 1rem;
        background-color: #fff;

        @media screen and (max-width: 767px) {
            position: static;
            gap: 1.6rem;
            padding: 3.4rem;
        }

        .link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-style: normal;
            font-weight: 600;
            font-size: 1.8rem;
            line-height: 2.9rem;
            letter-spacing: 0.05em;
            color: #B9B9B9;
            transition: ease 0.3s color;

            @media screen and (max-width: 767px) {
                font-size: 1.6rem;
                line-height: 2.4rem;
            }

            &::after {
                content: "";
                display: inline-block;
                width: 3.2rem;
                height: 3.2rem;
                background-image: url("../../common/img/parts/circle-arrow.svg");
                background-size: 100% 100%;
                background-repeat: no-repeat;
                filter: invert(74%) sepia(20%) saturate(31%) hue-rotate(4deg) brightness(98%) contrast(88%);
                transition: ease 0.3s filter;
            }

            @media screen and (max-width: 767px) {
                &::after {
                    width: 2.2rem;
                    height: 2.2rem;
                }
            }

            &.active {
                color: #000;
                pointer-events: none;

                &::after {
                    filter: invert(0%) sepia(14%) saturate(7498%) hue-rotate(286deg) brightness(90%) contrast(101%);
                }
            }

            @media (hover: hover) and (pointer: fine) {
                &:hover {
                    color: #000;

                    &::after {
                        filter: invert(0%) sepia(14%) saturate(7498%) hue-rotate(286deg) brightness(90%) contrast(101%);
                    }
                }
            }
        }
    }

    .contents {
        padding-top: 1.2rem;
        width: 92rem;

        @media screen and (max-width: 767px) {
            padding-top: 0;
            width: 100%;
        }

        .title {
            position: relative;
            padding-left: 2.1rem;
            margin-bottom: 2.8rem;
            font-style: normal;
            font-weight: 600;
            font-size: 2.8rem;
            line-height: 100%;
            letter-spacing: 0.05em;
            color: #000000;

            @media screen and (max-width: 767px) {
                padding-left: 1.4rem;
                font-size: 1.8rem;
            }

            &::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                display: inline-block;
                width: 0.6rem;
                background-color: #000;
                border-radius: 10rem;
            }
        }

        .faq {
            margin-bottom: 8rem;

            @media screen and (max-width: 767px) {
                margin-bottom: 4rem;
            }

            .item {
                position: relative;
                border-radius: 1rem;
                background-color: #fff;
                overflow: hidden;
                cursor: pointer;

                &:not(:last-child) {
                    margin-bottom: 1.6rem;
                }

                &::before,
                &::after {
                    content: "";
                    position: absolute;
                    right: 3.6rem;
                    top: 4.3rem;
                    display: inline-block;
                    width: 3.2rem;
                    height: 0.3rem;
                    background-color: #000;
                    transition: all 0.3s ease;
                }

                @media screen and (max-width: 767px) {

                    &::before,
                    &::after {
                        right: 1.6rem;
                        top: 4.4rem;
                        width: 2.2rem;
                        height: 0.2rem;
                    }
                }

                &::after {
                    transform: rotate(90deg);
                }

                &.active {
                    &::after {
                        transform: rotate(0deg);
                    }
                }

                .q {
                    padding: 2.3rem 8rem 2.3rem 3.6rem;
                    font-style: normal;
                    font-weight: 600;
                    font-size: 2rem;
                    line-height: 4.4rem;
                    letter-spacing: 0.1em;
                    color: #000000;

                    @media screen and (max-width: 767px) {
                        padding: 3.4rem 4.8rem 3.4rem 3.4rem;
                        font-size: 1.6rem;
                        line-height: 2.4rem;
                    }
                }

                .a {
                    padding: 1rem 4.8rem 3.6rem 3.6rem;
                    font-style: normal;
                    font-weight: 400;
                    font-size: 1.6rem;
                    line-height: 180%;
                    letter-spacing: 0.1em;
                    color: #000000;

                    @media screen and (max-width: 767px) {
                        margin-top: -1.7rem;
                        padding: 0 3.4rem 3.4rem 3.4rem;
                        font-size: 1.4rem;
                        line-height: 2.2rem;
                    }
                }
            }
        }
    }
}