@charset "utf-8";

/* section__topic */
.article__header {
    width: 100%;
    height: 100%;
    background: url(../images/FAQ-sp.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 154px 0 10px 0;
}

.article__header .section__topic {
    padding-left: 33px;
}

.article__header .section__topic::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background-color: var(--primary-mauvepink, #A36D6A);
    top: 80px;
    left: 33px;
}

@media screen and (min-width: 769px) {
    .article__header {
        background: url(../images/FAQ-pc.jpg);
        padding: 362px 0 28px 0;
    }

    .article__header .section__topic {
        padding-left: 13.33%;
    }

    .article__header .section__topic::before {
        top: 84px;
        left: 13.33%;
    }
}

/* FAQ */
.section--faq {
    padding-bottom: 76px;
}

.faq {
    background-color: var(--primary-white, #FFF);
}

.faq__item {
    border-bottom: var(--primary-black25, #64646440) 1px solid;
    position: relative;
    cursor: pointer;
}

.faq__title {
    font-weight: 400;
    padding: 30px 40px 30px 60px;
    border-bottom: var(--primary-black25, #64646440) 1px solid;
    position: relative;
}

.faq__item:first-child .faq__title {
    border-top: var(--primary-black25, #64646440) 1px solid;
}

.faq__txt {
    display: none;
    padding: 30px 20px 30px 60px;
    background-color: var(--primary-lightgray, #F2F2F2);
    position: relative;
}

.faq__title::before {
    content: 'Q';
    color: var(--primary-mauvepink, #A36D6A);
    font-size: 2.4rem;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 18px;
    margin-top: -19px;
}

.faq__txt::before {
    content: 'A';
    color: var(--primary-mauvepink, #A36D6A);
    font-size: 2.4rem;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 18px;
    margin-top: -19px;
}

/* FAQ回答を開くボタン */
.faq__btn {
    display: block;
    cursor: pointer;
    width: 25px;
    height: 25px;
    position: absolute;
    top: 28px;
    right: 20px;
    z-index: 500;
}

.faq__btn-line {
    position: absolute;
    background-color: var(--primary-mauvepink, #A36D6A);
    display: block;
    width: 20px;
    height: 3px;
    top: 8;
    right: 0;
    border-radius: 6px;
    transition: all 0.4s;
}

.faq__btn-line:last-child {
    position: absolute;
    background-color: var(--primary-mauvepink, #A36D6A);
    display: block;
    width: 20px;
    height: 3px;
    border-radius: 6px;
    transform: rotate(90deg);
    transition: all 0.4s;
}

/* ボタンが×になるアニメーション */
.faq__btn.active .faq__btn-line {
    transform: rotate(45deg);
}

.faq__btn.active .faq__btn-line:last-child {
    transform: rotate(-45deg);
}

.faq__txt.active {
    display: block;
}

.section--faq .button__viewmore {
    margin-top: 24px;
}

.faq__subtxt {
    font-size: 1.6rem;
    line-height: 1.7;
    padding: 64px;
}

.faq__subtxt span {
    border-bottom: 1px solid var(--primary-mauvepink, #A36D6A);
}

@media screen and (min-width: 769px) {
    .section--faq {
        padding: 64px var(--contentsp2Padding) 128px;
        max-width: 1440px;
        margin: 0 auto;
    }

    .section--faq .section__topic::before {
        margin-top: -130px;
    }

    .faq__flex {
        display: flex;
        justify-content: space-between;
    }

    .faq {
        margin: 0 auto;
    }

    .faq__subtxt {
        font-size: 2rem;
        padding: 64px;
        text-align: center;
    }
}