﻿@charset "UTF-8";

/* --------------------
    mainvisual 
-------------------- */


.mainvisual {
    width: 100%;
    position: relative;
    margin-bottom: 60px;   
}

.mainvisual .mainimg {
    position: absolute;
    top: 0;
    left: 0;
    width: 77vw; /* 1025 / 1330 */
    height: calc(77vw * 0.58); /* w1025:h600 = 1:0.58 */
}

.mainvisual .mainimg img {
    max-width: 100%;
    object-fit: cover;
    object-position: 30% 0;
}

.mainvisual .main_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(77vw * 0.5); /* w1025:h520 = 1:0.5 */
    background-color: #dce9f1;
    z-index: -10;
}

.mainvisual h2 {
    font-size: 2.5rem; /* 40px */
    font-weight: bold;
    color: #0080c8;
    position: absolute;
    top: calc(77vw * 0.58 * 0.5); /* mainimgの高さの半分 */
    left: 68%; 
    z-index: 20;
}

@media screen and (max-width: 1330px) {
    .mainvisual h2 {
        right: 10%;
        left: inherit;
    }
}


@media screen and (max-width: 760px) {
    .mainvisual h2 {
        font-size: 2rem; /* 32px */
        top: 145px;
    }

    .mainvisual .mainimg {
        width: 82%; /* 320 / 390 */
        height: 378px;
    }

    .mainvisual .mainimg img {
        height: 378px;
        object-position: 30% 0;
    }

    .mainvisual .main_bg {
        height: 340px;
    }
}

@media screen and (max-width: 520px) {
    .mainvisual h2 {
        font-size: 1.625rem; /* 26px */
        top: 165px;
    }
}

/* --------------------
        guidance 
-------------------- */

#guidance {
    text-align: center;
    padding-top: calc(77vw * 0.58 + 60px); /* mainimgのheight + 60px */
    margin-bottom: 100px;
}

#guidance h3 {
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}
#guidance p {
    line-height: 36px;
}

@media screen and (max-width: 760px) {
    #guidance {
        padding: 428px 26px 0;
        margin-bottom: 80px;
    }

    #guidance p {
        line-height: 32px;
    }
}

@media screen and (max-width: 520px) {

    #guidance {
        padding: 428px 0 0;
    }
    #guidance p {
        text-align: left;
    }
}


/* --------------------
        qa_upper
-------------------- */

#qa_upper {
    width: 100%;
    background-color: #f5f7f8;
    padding: 65px 0 175px;
    text-align: center;
}

#qa_upper h3 {
    margin-bottom: 55px;
}

.qa01_container {
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
    margin: 0 auto;
}

.qa01 {
    width: 48%;
    height: inherit;
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 40px 40px 82px;
    text-align: left;
    margin-bottom: 55px;
}

.qa01 p.question {
    margin-bottom: 45px;
    position: relative;
}
.qa01:nth-child(2) p.question {
    margin-bottom: 23px;
}

.qa01 p.answer {
    line-height: 28px;
    position: relative;
}

.qa01 p.question::before {
    content: "Q";
    width: 30px;
    height: 30px;
    background-color: #c0541d;
    border-radius: 50%;
    color: #fff;
    font-size: 1.125rem; /* 18px */
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    position: absolute;
    top: -5px;
    left: -45px;
}
.qa01 p.answer::before {
    content: "A";
    width: 30px;
    height: 30px;
    background-color: #1878b7;
    border-radius: 50%;
    color: #fff;
    font-size: 1.125rem; /* 18px */
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    position: absolute;
    top: 0;
    left: -45px;
}

@media screen and (max-width: 1170px) {
    .qa01 {
        height: inherit;
    }
}
@media screen and (max-width: 760px) {
    .qa01_container {
        margin: 0 26px;
        flex-direction: column;
        background-color: #fff;
        border-radius: 10px;
        padding: 32px 0 0;
        width: calc(100% - 52px);
    }

    .qa01 {
        width: 100%;
        padding: 0 25px 30px 68px;
        margin-bottom: 0;
    }

    .qa01 p.question {
        margin-bottom: 20px;
    }
    .qa01:nth-child(2) p.question {
        margin-bottom: 20px;
    }

}

@media screen and (max-width: 520px) {
    #qa_upper {
        padding: 45px 0 55px;
    }

    #qa_upper h3 {
        margin-bottom: 23px;
    }
    .qa01 {
        padding-left: 58px;
    }

    .qa01 p.question::before {
        width: 24px;
        height: 24px;
        font-size: 0.9375rem; /* 15px */
        line-height: 24px;
        top: -2px;
        left: -35px;
    }
    .qa01 p.answer::before {
        width: 24px;
        height: 24px;
        font-size: 0.9375rem; /* 15px */
        line-height: 24px;
        top: 2px;
        left: -35px;
    }

}

/* -----------------
    fixed_image
------------------- */

.fixed_image {
    width: 100%;
    height: 430px;
    background-attachment: fixed;
    background-size: contain;
    background-position: center;
}

.img_qa01 {
    background-image: url(../img/qa/qa_image01_pc.jpg);
}

@media screen and (max-width: 520px) {
    .fixed_image {
        width: 100%;
        height: 126px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }

    .img_qa01 {
        background-image: url(../img/qa/qa_image01_sp.jpg);
    }
}

/* --------------------
        qa_under
-------------------- */

#qa_under {
    width: 100%;
    background-color: #f5f7f8;
    padding: 65px 0 110px;
    text-align: center;
}

.qa02_container {
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
    margin: 0 auto;
    text-align: center;
}

.qa02 {
    height: inherit;
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 40px 40px 82px;
    text-align: left;
    margin-bottom: 55px;
}
.qa02.half {
    width: 48%;
}

.qa02.full {
    width: 100%;
}

.qa02 p.question {
    margin-bottom: 45px;
    position: relative;
}
.qa02:nth-child(2) p.question,
.qa02:nth-child(4) p.question,
.qa02:nth-child(5) p.question,
.qa02:nth-child(7) p.question {
    margin-bottom: 23px;
}

.qa02 p.answer {
    line-height: 28px;
    position: relative;
}

.qa02 p.question::before {
    content: "Q";
    width: 30px;
    height: 30px;
    background-color: #c0541d;
    border-radius: 50%;
    color: #fff;
    font-size: 1.125rem; /* 18px */
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    position: absolute;
    top: -5px;
    left: -45px;
}
.qa02 p.answer::before {
    content: "A";
    width: 30px;
    height: 30px;
    background-color: #1878b7;
    border-radius: 50%;
    color: #fff;
    font-size: 1.125rem; /* 18px */
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    position: absolute;
    top: 0;
    left: -45px;
}

#qa_under .bold_letter_underline {
    font-weight: bold;
    border-bottom: 1px solid #241d1b;
}

@media screen and (max-width: 1170px) {
    .qa02 {
        height: inherit;
    }

    .qa02:nth-child(1),
    .qa02:nth-child(2),
    .qa02:nth-child(3),
    .qa02:nth-child(4),
    .qa02:nth-child(5),
    .qa02:nth-child(6),
    .qa02:nth-child(7) {
        height: inherit;
    }
}

@media screen and (max-width: 760px) {
    .qa02_container {
        margin: 0 26px;
        flex-direction: column;
        background-color: #fff;
        border-radius: 10px;
        padding: 32px 0 0;
        width: calc(100% - 52px);
    }

    .qa02 {
        padding: 0 25px 30px 68px;
        margin-bottom: 0;
    }

    .qa02.half {
        width: 100%;
    }
    
    .qa02.full {
        width: 100%;
    }

    .qa02 p.question {
        margin-bottom: 20px;
    }
    .qa02:nth-child(2) p.question {
        margin-bottom: 20px;
    }

}

@media screen and (max-width: 520px) {
    #qa_under {
       padding: 50px 0 55px;
    }
    .qa02 {
        padding-left: 58px;
    }

    .qa02 p.question::before {
        width: 24px;
        height: 24px;
        font-size: 0.9375rem; /* 15px */
        line-height: 24px;
        top: -2px;
        left: -35px;
    }
    .qa02 p.answer::before {
        width: 24px;
        height: 24px;
        font-size: 0.9375rem; /* 15px */
        line-height: 24px;
        top: 2px;
        left: -35px;
    }

}