@charset "UTF-8";

/* 全体の構成 */
main{
    position: relative;
}
main:after{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/quiz_bg.png) top center repeat;
    background-size: cover;
    z-index: 0;
}
main .content{
    position: relative;
    z-index: 1;
    padding-bottom: 12vw;
}

/* トップエリア*/
.top_area {
    position: relative;
    width: 100%;
    height: 105.3333vw;
}
.top_area a {
    display: block;
    width: 65.3333vw;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.top_area .top_img01 {
    width: 100%;
}
.top_area h1 {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.top_area h1 img {
    width: 100%;
}

/* クイズエリア*/
.quiz_area {
    width: 100%;
    margin: 0 auto;
}
.quiz_item {
    width: 89.3333vw;
    margin: 0 auto;
}
.quiz_item + .quiz_item {
    margin-top: 10.6666vw;
}
.quiz_item .quiz_item_name img{
    display: block;
    width: 63.8666vw;
    margin: 0 auto;
}
.quiz_item .quiz_item_question{
    display: block;
    width: 100%;
    margin: 3.6vw auto 0;
    box-shadow: 0.5333vw 0.5333vw 0px 0px rgba(63, 32, 33, 0.2);
}

/* 戻るボタン*/
.return_btn {
    display: block;
    width: 89.3333vw;
    margin: 12vw auto 0;
}
.return_btn img {
    width: 100%;
}

/* モーダル */
.quiz_answer {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.quiz_answer.is-active {
    opacity: 1;
    visibility: visible;
}
.quiz_answer_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.54);
    cursor: pointer;
}
.quiz_answer_inner {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quiz_answer_inner img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

@media print, screen and (min-width: 768px) {
    /* 全体の構成 */
    main {
        width: 540px;
        margin: 0 auto;
    }
    main:before {
        content: "";
        display: block;
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        height: 100vh;
        background: url(../../common/img/forfamily_bg.jpg) top center no-repeat;
        background-size: cover;
        z-index: 0;
        pointer-events: none;
    }
    main .content {
        padding-bottom: 65px;
        box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.5);
    }
    footer {
        position: relative;
        z-index: 1;
    }

    /* トップエリア */
    .top_area {
        height: 569px;
    }
    .top_area a {
        width: 353px;
    }

    /* クイズエリア */
    .quiz_item {
        width: 482px;
    }
    .quiz_item + .quiz_item {
        margin-top: 58px;
    }
    .quiz_item .quiz_item_name img {
        width: 345px;
    }
    .quiz_item .quiz_item_question {
        margin-top: 19px;
        box-shadow: 2.8px 2.8px 0px 0px rgba(63, 32, 33, 0.2);
    }

    /* 戻るボタン */
    .return_btn {
        width: 482px;
        margin-top: 65px;
    }

    /* モーダル */
    .quiz_answer_inner {
        max-width: 482px;
    }
}
