/* 首頁 FAQ 區塊 */
.template-faq {
    position: relative;
    display: block;
    padding: 80px 0;
}

.template-faq .this_box {
    width: 85%;
    max-width: 960px;
    position: relative;
    margin: 0 auto;
}

.template-faq .title {
    text-align: center;
    font-size: 50px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 40px;
    letter-spacing: 0.02em;
}

.template-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.template-faq .faq-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.template-faq .faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: #222;
}

.template-faq .faq-q-mark {
    flex: 0 0 auto;
    color: #e31c23;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.template-faq .faq-q-text {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.template-faq .faq-toggle {
    flex: 0 0 auto;
    position: relative;
    width: 16px;
    height: 16px;
}

.template-faq .faq-toggle:before,
.template-faq .faq-toggle:after {
    content: "";
    position: absolute;
    background: #e31c23;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.template-faq .faq-toggle:before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.template-faq .faq-toggle:after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.template-faq .faq-item.is-open .faq-toggle:after {
    opacity: 0;
    transform: scaleY(0);
}

.template-faq .faq-a {
    display: none;
    padding: 0 22px 20px 54px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.template-faq .faq-item.is-open .faq-a {
    display: block;
}

.template-faq .faq-a-inner > *:first-child {
    margin-top: 0;
}

.template-faq .faq-a-inner > *:last-child {
    margin-bottom: 0;
}

.template-faq .faq-a-inner img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .template-faq {
        padding: 56px 0;
    }

    .template-faq .this_box {
        width: 90%;
    }

    .template-faq .title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .template-faq .faq-q {
        padding: 16px 16px;
        gap: 10px;
    }

    .template-faq .faq-q-mark {
        font-size: 20px;
    }

    .template-faq .faq-q-text {
        font-size: 15px;
    }

    .template-faq .faq-a {
        padding: 0 16px 16px 46px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .template-faq .faq-toggle:before,
    .template-faq .faq-toggle:after {
        transition: none;
    }
}
