@charset "utf-8";

/*-------------------------------------
    faq
-------------------------------------*/
/* #wrapper {
    overflow-x: clip;
} */


#faq .faq-area {
    padding: 120px 0 100px;
}

#faq .faq-layout {
    display: flex;
    --gap: clamp(50px, 5vw, 100px);
    gap: var(--gap);
    align-items: flex-start;
}

#faq .faq-main {
    min-width: 0;
    width: calc(80% - var(--gap));
}

#faq .faq-section+.faq-section {
    margin-top: 90px;
}

#faq .faq-section .cmn-h2-title {
    margin-bottom: 50px;
}

#faq .faq-section .cmn-h3-title {
    margin-bottom: 24px;
}

#faq .faq-accordion+.cmn-h3-title {
    margin-top: 80px;
}

#faq .faq-section[id],
#faq .faq-section .cmn-h3-title[id] {
    scroll-margin-top: 120px;
}

#faq .faq-accordion {
    display: grid;
    gap: 0;
}

#faq .faq-item {
    border-bottom: none;
}

#faq .faq-item .quest {
    padding: 20px 46px 20px 0;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: var(--txt-black);
    background: transparent;
    border-bottom: 1px solid var(--border2);
}

#faq .faq-item .quest::before,
#faq .faq-item .quest::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: var(--main);
    transition: all .3s;
    box-sizing: border-box;
}

#faq .faq-item .quest::before {
    transform: translateY(-50%) rotate(0deg);
}

#faq .faq-item .quest::after {
    transform: translateY(-50%) rotate(90deg);
}

#faq .faq-item .quest.faq-accordion-active::before {
    display: none;
}

#faq .faq-item .quest.faq-accordion-active::after {
    transform: translateY(-50%) rotate(180deg);
}

#faq .faq-item .quest p,
#faq .faq-item .answer p {
    margin: 0;
    position: relative;
    padding-left: 1.8em;
    padding-right: 0;
    line-height: 1.9;
    font-size: 1.8rem;
}

#faq .faq-item .answer {
    display: none;
    margin-bottom: 22px;
    padding: 18px 28px;
    background: #f8f8f8;
}

#faq .faq-label {
    position: absolute;
    left: 0;
    top: 0;
    margin-right: 0;
    font-weight: 700;
    color: var(--main);
}

#faq .faq-item .answer .faq-label {
    color: #FC9925;
}

#faq .faq-side-nav-wrap {
    position: sticky;
    top: 160px;
    width: 20%;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    /* container-type: inline-size; */
    padding-bottom: 50px;
}

#faq .faq-side-nav-toggle {
    display: none;
}

#faq .faq-side-nav-list,
#faq .faq-side-nav-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#faq .faq-side-nav-list>li+li {
    margin-top: 42px;
}

#faq .faq-side-parent {
    display: block;
    position: relative;
    padding-left: 20px;
    color: var(--navy);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

#faq .faq-side-parent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--main);
    border-radius: 3px;
    font-size: 0.7em;
}

#faq .faq-side-nav-list>li>ul {
    margin-top: 10px;
}

#faq .faq-side-nav-list>li>ul li a {
    display: block;
    position: relative;
    padding: 13px 0 13px 40px;
    border-bottom: 2px dotted var(--border2);
    color: var(--main);
    font-size: clamp(1.5rem, 6.2cqw, 1.8rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

#faq .faq-side-nav-list>li>ul li a::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--main);
}

/*下層ページのFAQコンテンツ*/
#faq.under-faq-area {
    padding: 100px 0;
}

#faq.under-faq-area .faq-layout {
    width: 100%;
}

#faq.under-faq-area .faq-main {
    width: 100%;
}

#faq.under-faq-area.pale-blue {
    background-color: var(--pale-blue);
}

#faq.under-faq-area.pale-blue .faq-item .answer {
    background-color: #fff;
}

#faq.under-faq-area.pale-blue #faq.under-faq-area .faq-main {
    width: 100%;
}

@media screen and (max-width: 768px) {
    #faq .faq-area {
        padding: 15vw 0;
    }

    #faq .faq-main {
        min-width: 0;
        width: 100%;
    }

    #faq .faq-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #faq .faq-section+.faq-section {
        margin-top: 40px;
    }

    #faq .faq-accordion+.cmn-h3-title {
        margin-top: 30px;
    }

    #faq .faq-item .quest {
        padding: 16px 34px 16px 0;
    }

    #faq .faq-item .quest::before,
    #faq .faq-item .quest::after {
        right: 0;
        width: 14px;
    }

    #faq .faq-item .answer {
        margin-bottom: 16px;
        padding: 14px 16px;
    }

    #faq .faq-item .quest p,
    #faq .faq-item .answer p {
        font-size: 1.7rem;
    }

    #faq .faq-side-nav-wrap {
        order: -1;
        margin-top: 0;
        margin-bottom: 44px;
        position: -webkit-sticky;
        position: sticky;
        top: 70px;
        width: 100%;
        max-height: initial;
        overflow-y: initial;
        padding-bottom: 0;
    }

    #faq .faq-side-nav-toggle {
        display: block;
        width: 100%;
        padding: 14px 40px 14px 16px;
        border-radius: 50px;
        background: var(--main);
        color: #fff;
        font-size: 1.5rem;
        font-weight: 700;
        text-align: left;
        position: relative;
        border: transparent;
    }

    #faq .faq-side-nav-toggle .accordion-icon,
    #faq .faq-side-nav-toggle .accordion-icon span {
        display: inline-block;
        transition: all .3s;
        box-sizing: border-box;
    }

    #faq .faq-side-nav-toggle .accordion-icon {
        position: absolute;
        width: 20px;
        height: 20px;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    #faq .faq-side-nav-toggle .accordion-icon span {
        position: absolute;
        width: 100%;
        height: 1px;
        background-color: #fff;
    }

    #faq .faq-side-nav-toggle .accordion-icon span:nth-of-type(1) {
        top: 10px;
        transform: rotate(0deg);
    }

    #faq .faq-side-nav-toggle.active .accordion-icon span:nth-of-type(1) {
        display: none;
    }

    #faq .faq-side-nav-toggle .accordion-icon span:nth-of-type(2) {
        top: 10px;
        transform: rotate(90deg);
    }

    #faq .faq-side-nav-toggle.active .accordion-icon span:nth-of-type(2) {
        transform: rotate(180deg);
    }

    #faq .faq-side-nav {
        display: none;
        position: static;
        padding: 5vw 5vw 30vw;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: none;
        background-color: #f5f5f5;
    }

    #faq .faq-side-parent {
        font-size: 1.8rem;
    }

    #faq .faq-side-nav-list>li>ul li a {
        font-size: 1.5rem;
        padding: 12px 0 12px 40px;
        border-bottom: 2px dotted var(--border2);
    }

    #faq .faq-section[id],
    #faq .faq-section .cmn-h3-title[id] {
        scroll-margin-top: 100vh;
    }

    /*下層ページのFAQコンテンツ*/
    #faq.under-faq-area {
        padding: 10vw 0;
    }

    #faq.under-faq-area .cmn-h3-title {
        margin-bottom: 0;
    }

}


/*-------------------------------------
    faq no-script
-------------------------------------*/
#faq.no-script .faq-item .quest {
    cursor: default;
}

#faq.no-script .faq-item .answer {
    display: block !important;
}

#faq.no-script .faq-item .quest::before,
#faq.no-script .faq-item .quest::after {
    display: none !important;
}

@media screen and (max-width: 768px) {
    #faq.no-script .faq-item .quest {
        padding: 5vw 0 !important;
    }
}