﻿/*---------
よくある質問
----------*/

/*----共通ブロック ----*/

.section_content--faq {
    background: url("../images/common/content_bg_plaid-pattern.jpg") center / cover no-repeat;
    padding-top: calc(80px / 2);
    background-attachment: fixed;
}

.section_content--faq .head_content_strong_text {
    text-align: center;
    font-weight: 500;
    line-height: calc(35 / 20);
}

/*----コンテンツブロック ----*/

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.2);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 15px 20px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.question-content {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding-right: 10px;
    flex: 1;
}

.question-icon {
    width: calc(32px / 2);
    height: calc(32px / 2);
    background: var(--main-color);
    color: var(--sub-text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: calc(20px / 2);
    flex-shrink: 0;
    margin-top: 3px;
}

.question-text {
    color: var(--main-color);
    font-size: calc(32px / 2);
    font-weight: bold;
    line-height: calc(24 / 16);
}

.toggle-icon {
    width: calc(32px / 2);
    height: calc(32px / 2);
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-top: 3px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.toggle-icon::before {
    width: 8px;
    height: 1px;
}

.toggle-icon::after {
    width: 1px;
    height: 8px;
}

.faq-question.active .toggle-icon::after {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.active {
    max-height: 800px;
    padding: 0 15px 20px 40px;
}

.answer-content {
    background: rgba(0, 137, 212, 0.15);
    padding: 15px;
    border-radius: 5px;
    font-size: calc(28px / 2);
    line-height: calc(25 / 14);
    letter-spacing: 0.04em;
}

@media (min-width:768px) {

    /*----共通ブロック ----*/

    .section_content--faq {
        padding-top: 100px;
    }

    .section_content--faq .content_box {
        max-width: 865px;
        margin: 0 auto;
    }

    .section_content--faq .page_title_block {
        margin-bottom: 60px;
    }

    .section_content--faq .head_content_strong_text {
        line-height: calc(42 / 24);
    }

    /*----コンテンツブロック ----*/

    .faq-list {
        gap: 40px;
    }

    .faq-item {
        border-radius: 10px;
    }

    .faq-question {
        padding: 40px;
    }

    .question-content {
        gap: 16px;
        padding-right: 10px;
    }

    .question-icon {
        width: 26px;
        height: 26px;
        font-size: 16px;
        margin-top: 2px;
    }

    .question-text {
        font-size: 20px;
        line-height: calc(30 / 20);
    }

    .toggle-icon {
        width: 20px;
        height: 20px;
        background: none;
        margin-top: 2px;
    }

    .toggle-icon::before {
        width: 20px;
        height: 2px;
        background: var(--main-color);
    }

    .toggle-icon::after {
        width: 2px;
        height: 20px;
        background: var(--main-color);
    }

    .faq-answer.active {
        padding: 0 40px 40px 40px;
    }

    .answer-content {
        padding: 30px;
        border-radius: 10px;
        font-size: 16px;
        line-height: calc(28 / 16);
        letter-spacing: 0.05em;
    }

}

/* お問い合わせ */
.section_content--contact {
    padding-top: calc(100px / 2);
}

@media (min-width:768px) {

    .section_content--contact {
        padding-top: 100px;
    }
}