/* よくあるご質問 */
.c-faq-lead {
    margin: 30px 0 40px 24px;
    list-style: disc;
}

.p-faq-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0 16px 0;
}

.c-faq-link {
    display: block;
    padding: 8px 0 10px 8px;
    width: 100%;
    border-radius: 20px;
    background-color: #e6e6e6;
}

.c-faq-text {
    position: relative;
    padding-left: 28px;
    font-size: 13px;
}

.c-faq-text::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 7px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid #e00315;
}

.c-faq-copyright {
    margin: 0 0 64px 8px;
}

.p-faq-section > .p-detail-section > section {
    margin: 32px 0;
    border: 1px solid #e6e6e6;
}

.p-faq-section > .p-detail-section h4 {
    position: relative;
    padding: 8px 48px 8px 16px;
    font-size: 14px;
    line-height: 2;
    word-break: break-all;
    background-color: #e6e6e6;
}

.c-answer-text {
    padding: 8px 16px;
}

.p-answer-awards {
    padding-left: 32px;
    list-style: disc;
}

/* 順番による色変え */
/* 赤(△)→青(〇)→黄(□)→赤(△)→… */
.p-faq-section > .p-detail-section > h3 {
    position: relative;
    margin-bottom: 16px;
    padding: 0 0 0 36px;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 4px;
}

.p-faq-section > .p-detail-section > h3::before {
    position: absolute;
    top: 4px;
    left: 0;
    width: 22px;
    height: 22px;
    content: '';
}

.p-faq-section > .p-detail-section:nth-of-type(3n + 1) > h3::before {
    border-right: 12.7px solid transparent;
    border-bottom: 22px solid #fbdce2;
    border-left: 12.7px solid transparent;
}

.p-faq-section > .p-detail-section:nth-of-type(3n + 2) > h3::before {
    border-radius: 50%;
    background-color: #d7eced;
}

.p-faq-section > .p-detail-section:nth-of-type(3n + 2) .c-accordion-btn::after {
    background-color: #3fb6b0;
}

.p-faq-section > .p-detail-section:nth-of-type(3n) > h3::before {
    background-color: #f6e89d;
}

.p-faq-section > .p-detail-section:nth-of-type(3n) .c-accordion-btn::after {
    background-color: #f8d509;
}

/* アコーディオン */
.c-accordion-btn::after {
    top: 50%;
    right: 10px;
    height: 24px;
    width: 24px;
    transform: translateY(-48%);
}

.c-accordion-btn span {
    top: 50%;
    right: 15px;
    width: 14px;
    transform: translateY(-48%);
}

.c-accordion-btn span:after {
    top: -6px;
    right: 6px;
    height: 14px;
}

/* 中見出しカテゴリ細分化 */
.u-segment-group span {
    border-bottom: 1px solid #385723;
    color: #385723;
}

.u-segment-group + section {
    margin-top: 16px;
}

/* SMALL PC */
@media screen and (max-width: 899px) {
    .c-faq-text {
        font-size: 12px;
    }
}

/* SP */
@media screen and (max-width: 767px) {
    .c-btn-link {
        width: 320px;
    }

    /* よくあるご質問 */
    .p-faq-list {
        margin: 24px 0 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .c-faq-link {
        display: flex;
        align-items: center;
        height: 56px;
        border-radius: 40px;
    }

    .c-faq-text {
        font-size: 13px;
    }

    .c-faq-text::before {
        top: 50%;
        left: 8px;
        transform: translateY(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid #e00315;
    }

    .p-publication-box {
        margin: 24px 0;
    }

}

/* SMALL SP */
@media screen and (max-width: 349px) {
    .c-btn-link {
        width: 300px;
        font-size: 12px;
    }

    .c-faq-text {
        font-size: 12px;
    }
}

/* WIDE PC */
@media screen and (min-width: 1600px) {
    .c-faq-text {
        font-size: 14px;
    }
}
