/* ===============================================
   FAQ Page Styles
   =============================================== */

/* -----------------------------------------------
   FAQ Section
   ----------------------------------------------- */
.faq_section {
    width: 100%;
    padding: calc(100vw * 120 / 1400) 0;
    background-color: #E6E1DA;
}

.faq_section_inner {
    width: calc(100vw * 1000 / 1400);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: calc(100vw * 120 / 1400);
}

/* -----------------------------------------------
   FAQ Category
   ----------------------------------------------- */
.faq_category {
    display: flex;
    flex-direction: column;
    gap: calc(100vw * 40 / 1400);
}

.faq_category_title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    font-size: calc(100vw * 22 / 1400);
    color: #bf9443;
    letter-spacing: 0.02em;
    line-height: 1.8;
    margin: 0;
    padding-bottom: calc(100vw * 8 / 1400);
    display: flex;
    align-items: center;
    gap: calc(100vw * 24 / 1400);
    width: calc(100vw * 440 / 1400);
}

.faq_category_title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #bf9443;
}

/* -----------------------------------------------
   FAQ Accordion
   ----------------------------------------------- */
.faq_accordion {
    display: flex;
    flex-direction: column;
    gap: calc(100vw * 24 / 1400);
}

.faq_item {
    background-color: transparent;
    border: 1px solid #bf9443;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq_question {
    width: 100%;
    padding: calc(100vw * 24 / 1400) calc(100vw * 40 / 1400);
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(100vw * 24 / 1400);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq_question:hover {
    background-color: rgba(191, 148, 67, 0.05);
}

.faq_question_text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: calc(100vw * 16 / 1400);
    color: #bf9443;
    letter-spacing: 0.02em;
    line-height: 2;
    flex: 1;
    max-width: calc(100vw * 800 / 1400);
}

.faq_icon {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: calc(100vw * 24 / 1400);
    color: #bf9443;
    line-height: 1;
    flex-shrink: 0;
    width: calc(100vw * 24 / 1400);
    height: calc(100vw * 24 / 1400);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq_answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 calc(100vw * 40 / 1400);
}

.faq_item.active .faq_answer {
    max-height: calc(100vw * 500 / 1400);
    padding: 0 calc(100vw * 40 / 1400) calc(100vw * 24 / 1400);
}

.faq_answer_text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: calc(100vw * 14 / 1400);
    color: #4c5559;
    letter-spacing: 0.02em;
    line-height: 2;
    margin: 0;
}

/* -----------------------------------------------
   Responsive - SP
   ----------------------------------------------- */
@media (max-width: 768px) {
    .faq_section {
        padding: calc(100vw * 80 / 375) 0;
    }

    .faq_section_inner {
        width: calc(100vw * 335 / 375);
        gap: calc(100vw * 80 / 375);
    }

    .faq_category {
        gap: calc(100vw * 32 / 375);
    }

    .faq_category_title {
        font-size: calc(100vw * 18 / 375);
        padding-bottom: calc(100vw * 8 / 375);
        width: 100%;
        gap: calc(100vw * 16 / 375);
    }

    .faq_accordion {
        gap: calc(100vw * 20 / 375);
    }

    .faq_question {
        padding: calc(100vw * 20 / 375) calc(100vw * 24 / 375);
        gap: calc(100vw * 16 / 375);
    }

    .faq_question_text {
        font-size: calc(100vw * 14 / 375);
        max-width: 100%;
    }

    .faq_icon {
        font-size: calc(100vw * 20 / 375);
        width: calc(100vw * 20 / 375);
        height: calc(100vw * 20 / 375);
    }

    .faq_answer {
        padding: 0 calc(100vw * 24 / 375);
    }

    .faq_item.active .faq_answer {
        max-height: calc(100vw * 800 / 375);
        padding: 0 calc(100vw * 24 / 375) calc(100vw * 20 / 375);
    }

    .faq_answer_text {
        font-size: calc(100vw * 12 / 375);
    }
}
