@charset 'utf-8';

/* 共通CSS */
body {
    background-color: #F6F8F2;
}

.qa_wrapper {
    max-width: 800px;
    margin-inline: auto;
}

/* メインビジュアル */
/* 背景 */
.mv_section {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    background-color: #def4f2;
    background-image: url(../image/mv_bg_image.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position-y: bottom;
}

/* ページタイトル 修正済 */
.qa_title {
    font-size: 35px;
    line-height: 1.5;
    font-weight: bold;
    text-align: center;
    letter-spacing: .2em;
    text-transform: uppercase;
    position: relative;
}

/* 文字の前後のイラスト 修正済 */
.qa_title::before,
.qa_title::after {
    top: 15%;
    width: 50px;
    height: 50px;
    position: absolute;
    content: '';
    vertical-align: middle;
    background-image: url(../image/cloud.png);
    background-size: contain;
    background-repeat: no-repeat;
}

/* 左の雲の位置、余白調整 修正済 */
.qa_title::before {
    right: 100%;
    margin-right: 50px;
}

/* 右の雲の位置、余白調整 修正済 */
.qa_title::after {
    left: 100%;
    /* 余白調整 */
    margin-left: 50px;
}


/* QAセクションのタイトル */
.qa_sec_title_area {
    width: 100%;
    height: max-content;
    margin: 1em 0 1em 0;
    font-weight: bold;
    border-bottom: 1px solid #718127;
    letter-spacing: .4em;
    justify-content: center;
    position: relative;
}

.qa_sec_title_area:first-of-type {
    margin-top: 4.375em;
}

.qa_sec_title_area:nth-of-type(2) {
    margin-top: 3.125em;
}

.qa_sec_title {
    font-size: 2em;
    text-align: center;
    padding-bottom: .5em;
    color: #718127;
}


/* タイトル横のイラスト改 */
.sec_title_image {
    position: absolute;
    bottom: 0%;
    right: 0%;
    width: fit-content;
}


/* アコーディオン */
.accordion {
    max-width: 800px;
    /* padding: 0 2em; */
    border: solid 4px #d9ddc5;
    border-radius: 10px;
    margin-inline: auto;
    background-color: #fff;
    padding-top: .5em;
}

/* Q&A同士の余白 */
.accordion+.accordion {
    margin-top: 1.5em;
}

/* 質問内容 */
.question {
    font-weight: bold;
    /* 上下の余白 */

    /* 修正中★★ */
    padding: 1em 4em 1em 2em;

    /* 左の余白 */
    padding-left: 3em;
    cursor: pointer;
    user-select: none;
    transition: .4s;
    /* 破線 */
}

.question {
    position: relative;
}



/* QとAを疑似要素でつくる */
.question::before,
.answer::before {
    font-family: 'Cabin', sans-serif;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    /* top: 20%; */
    left: .5em;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 2em;
    text-align: center;
    color: #abcb64;
}

.question::before {
    top: 11%;
    content: 'Q';
}

.answer::before {
    content: 'A';
}


/*開閉ボタン */
.question::after {
    /* ffはマテリアルアイコンにする */
    font-family: 'Material Icons';

    /* フォントサイズ、太さ、書式*/
    font-size: 30px;
    font-weight: 400;
    font-style: bold;

    position: absolute;
    top: 25%;
    right: 1em;

    /* block化する */

    display: block;

    /* 高さと横幅を100％に */

    width: auto;
    height: fit-content;
    /* アイコン読み込み */

    content: '\e145';
    transform: translateY(-20%);
    color: #abcb64;
}

/* 回答が表示されている際はボタンをマイナスに */
.question:active::after,
.question.is-active::after {
    content: '\e15b';
}

/* 回答内容非表示にしておく */
.answer {
    position: relative;
    overflow: hidden;
    height: 0;

    /* 左の余白 */
    padding-left: 3em;
    transition-duration: .5s;
    opacity: 0;
    border-top: dashed 4px #D9DDC5;
}

/* コンテンツ内容を表示させたときの挙動 */
.answer.is-open {
    line-height: normal;
    height: max-content;
    margin-top: 1em;
    opacity: 1;
    padding: 1em 3em;
}

/* アンサーの青いURL */
.answer_link {
    color: #1A0DAB;
}

.accordion {
    font-size: 18px;
    line-height: 1.67;
}

/* CTA */
/* お問い合わせ */
.cta {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    height: auto;
    padding: 2em;
    background-color: #fff;
    margin-inline: auto;
    margin-top: 100px;
}

.cta h2 {
    font-size: 1.25em;
    font-weight: bold;
    padding: .25em 2em;
    letter-spacing: .3em;
    border: 1px solid;
    border-radius: 50px;
}

.cta p {
    margin-top: 1em;
}

/* ボタンのデザイン*/
.cta_button_area {
    gap: 1em;
    margin-top: 1em;
}


.cta_contact_button,
.cta_yoyaku_button {
    font-weight: bold;

    position: relative;
    align-items: center;
    justify-content: center;
    width: 265px;
    height: 70px;
    color: #505050;
    border-radius: 0 0 10px 0;
}

/* ホバー時の変化 */
.cta_contact_button,
.cta_yoyaku_button {
    transition: .5s;
}

/* ボタンの前のアイコン */
.cta_contact_button::before,
.cta_yoyaku_button::before {
    position: absolute;
    top: 30%;
    left: 10%;
    display: inline-block;
    width: fit-content;
}

.cta_contact_button::before,
.cta_yoyaku_button::before {
    content: url(../image/icon_mail.png);
}

.cta_yoyaku_button::before {
    content: url(../image/icon_pc.png);
}

/* ボタンの疑似要素 ＞マーク */
.cta_contact_button::after,
.cta_yoyaku_button::after {
    position: absolute;
    right: 1.5em;
    display: block;
    width: .5em;
    height: .5em;
    margin-left: .5em;
    content: '';
    transform: rotate(-45deg) translateY(-20%);
    border: 1px solid #505050;
    border-top: 0;
    border-left: 0;
}

.cta_contact_button {
    background-color: #9ccfca;
}

.cta_yoyaku_button {
    text-transform: uppercase;
    background-color: #abcb64;
}


/* ホバー時の変化 */
.cta_contact_button:hover,
.cta_yoyaku_button:hover {
    opacity: .6;
}


/* ----------------レスポンシブ 768px以下のとき---------------- */
@media (max-width: 768px) {

    .qa_wrapper {
        max-width: 85%;
    }

    /* ヘッダー背景 小さく */
    .mv_section {
        height: 250px;
    }

    /* ページタイトル 小さく */
    .qa_title {
        letter-spacing: .1em;
        font-size: 1.4em;
    }

    /* 文字の前後のイラスト 消す ★要確認★ */
    .sec_title_image {
        display: none;
    }

    /* 雲の大きさと高さ調整 */
    .qa_title::before,
    .qa_title::after {
        top: 8%;
        width: 40px;
        height: 40px;
    }

    .qa_title::before {
        margin-right: 30px;
    }

    /* 右の雲の位置、余白調整 */
    .qa_title::after {
        margin-left: 30px;
    }

    /* フォント小さく */
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    /* タイトルフォント小さく */
    .qa_sec_title {
        font-size: 1.4em;
    }

    /* QとAのフォントサイズ */
    .question::before,
    .answer::before {
        font-size: 1.6em;
    }

    /*開閉ボタン小さく */
    .question::after {
        font-size: 1.6em;
    }

    /* アコーディオン */
    .accordion {
        border: solid 3px #d9ddc5;
        border-radius: 8px;
    }

    /* 回答内容非表示にしておく */
    .answer {
        /* 左の余白 */
        border-top: dashed 2px #D9DDC5;
    }

    /* お問い合わせのボタンを縦ならび */
    .cta_button_area {
        flex-direction: column;
    }

}