@charset "utf-8";

.page-main{
    padding-top: 60px;
}

.title-area{
    width: 100%;
    height: 360px;
    background: transparent url(../img/faq.png) center / cover no-repeat;
}

.img-filter{
    width: 100%;
    height: 100%;
    background-color: #121418B3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-area h1{
    font-size: 24px;
    font-weight: 500;
}

.title-area h1 span{
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.faq-body{
    padding: 60px 18px;
    background-color: var(--darker);
}

.category{
    margin-bottom: 30px;
    padding: 9px 12px;
    border-radius: 9px;
    background-color: var(--dark);
}

.category h2{
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 6px 32px 6px 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    cursor: pointer;
}

.category h2 span{
    display: block;
}

.open h2{
    border-bottom: 1px solid var(--white);
}

.category h2::after{
    content: "";
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    background: transparent url(../img/arrow.png) no-repeat center / contain;
    top: calc(50% - 10px);
    right: 0;
    transition: transform 0.3s ease-out;
}

.category.open h2::after {
    transform: rotate(180deg);
}

.qa-list{
    height: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
}

.qa-list li{
    height: 0;
    overflow: hidden;
}

.open .qa-list{
    height: auto;
    overflow: visible;
    padding: 18px 0;
}

.open .qa-list li{
    height: auto;
    overflow: visible;
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 6px;
    background-color: var(--gray);
}

.qa-list summary {
    cursor: pointer;
    padding-right: 30px;
    font-weight: 500;
    list-style: none;
    position: relative;
}

.qa-list summary::-webkit-details-marker {
    display: none;
}

.qa-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: .3s;
}

.qa-list details[open] summary::after {
    content: "−";
}

.qa-list p{
    margin-top: 12px;
    padding: 12px 6px 12px 9px;
    border-radius: 3px;
    font-weight: 500;
    background-color: var(--offw);
    color: var(--darker);
}

@media screen and (min-width: 768px){
    .title-area{
        height: 50dvh;
        min-height: 480px;
        max-height: 720px;
    }
    .title-area h1{
        font-size: 30px;
    }
    .category{
        padding: 12px 18px;
    }
    .category h2{
        min-height: 84px;
        padding: 9px 32px 9px 9px;
        font-size: 22px;
    }
    .qa-list{
        font-size: 18px;   
    }
    .open .qa-list{
        padding: 30px 0;
    }
    .open .qa-list li{
        margin-bottom: 20px;
        padding: 18px;
    }
    .qa-list p{
        margin-top: 18px;
        padding: 18px;
    }
}

@media screen and (min-width: 1024px){
    .page-main{
        padding-top: 90px;
    }
    .title-area{
        min-height: 600px;
    }
    .faq-body{
        display: flex;
        flex-flow: row wrap;
        justify-content: space-around;
        align-items: flex-start;
        gap: 10px;
        padding: 90px 9px;
    }
    .category{
        flex: 1 0 480px;
        max-width: 540px;
        margin-bottom: 5px;
    }
}