/* frame */

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrap.middle {
    max-width: 916px;
}

header {
    background: var(--white);
}

header .headerBox {
    padding: 8px 0;
}

header img {
    display: block;
    width: 80px;
}

footer {
    background: var(--white);
}

footer .footerBox {
    display: grid;
    gap: 28px;
    padding: 20px 0 40px;
}

footer .logoBlock img {
    display: block;
    width: 112px;
}

footer .linkBlock {
    font: var(--content03);
    color: var(--secondaryBrown);
    display: grid;
    gap: 16px;
}

footer .linkBlock .linkList {
    display: grid;
    gap: 16px;
}

footer .linkBlock .linkList::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--secondaryBrown);
}

footer .linkBlock .linkList ul {
    display: flex;
    gap: 12px;
}

footer .snsBlock {
    display: flex;
    gap: 12px;
}

footer .snsBlock img {
    display: block;
    width: 40px;
}


/* container */

main {
    background: #FFE4C9;
    color: var(--primaryBrown);
}

main article {
    min-height: 90vh;
}

main article>.wrap {
    overflow: hidden;
}

article.introBlock {
    background: url(/assets/images/index/bg_cloud.svg), url(/assets/images/index/bg_people.svg);
    background-repeat: no-repeat;
    background-position: center 20%, center 90%;
    background-size: 150%, 80%;
}

article.introBlock .container {
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
    justify-items: center;
    padding-top: 35%;
}

article.introBlock .title {
    font: var(--title02);
}

article.introBlock .text {
    font: var(--content04);
}

article.answerBlock {
    background: url(/assets/images/index/bg_question.svg);
    background-repeat: no-repeat;
    background-position: center 90%;
    background-size: auto;
}

article.replyBlock,
article.evaluateBlock {
    position: relative;
}

article.replyBlock::before,
article.evaluateBlock::before,
article.replyBlock::after,
article.evaluateBlock::after {
    position: absolute;
}

article.replyBlock::before,
article.evaluateBlock::before {
    content: url(/assets/images/index/bg_people_man.svg);
    left: 0%;
    bottom: 5%;
}

article.replyBlock::after,
article.evaluateBlock::after {
    content: url(/assets/images/index/bg_people_woman.svg);
    right: 0%;
    bottom: 5%;
}

article.answerBlock .container,
article.replyBlock .container,
article.evaluateBlock .container {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 20px;
    margin: 28px auto 232px;
    display: grid;
    gap: 20px;
}

article.replyBlock .container,
article.evaluateBlock .container {
    justify-items: center;
}
article.answerBlock .title {
    font: var(--title02);
}

article.answerBlock .title::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--secondaryBrown);
    margin-top: 16px;
}

article.replyBlock .title {
    font: var(--title01);
}

article.replyBlock .text {
    font: var(--title02);
}

article.evaluateBlock .container {
    display: grid;
    gap: 24px;
    justify-items: center;
}

article.evaluateBlock .chatBox {
    display: grid;
    gap: 12px;
    justify-items: center;
}

article.evaluateBlock .chatBox .title {
    font: var(--title01);
}

article.evaluateBlock .chatBox canvas {
    width: 80vw;
    height: 80vw;
}

article.evaluateBlock .textBox {
    display: grid;
    gap: 12px;
    justify-items: center;
}

article.evaluateBlock .textBox .title {
    font: var(--title02);
}

article.evaluateBlock .textBox .text {
    font: var(--content04);
}

@media screen and (min-width: 1024px) {
    /* frame */
    header .headerBox {
        padding: 16px 0;
    }
    footer .footerBox {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 36px 0;
    }
    footer .logoBlock img {
        width: 168px;
    }
    /* container */
    main article {
        min-height: 80vh;
    }
    article.introBlock {
        background: url(/assets/images/index/bg_people.svg), url(/assets/images/index/bg_cloud.svg), url(/assets/images/index/bg_flower_intro.svg);
        background-repeat: no-repeat;
        background-position: center 90%, center 15%, center 20%;
        background-size: 30%, 70%, 90%;
    }
    article.introBlock .container {
        gap: 28px;
        padding-top: 20%;
    }
    article.answerBlock {
        background: url(/assets/images/index/bg_question.svg), url(/assets/images/index/bg_flower.svg);
        background-repeat: no-repeat;
        background-position: 90% 90%, center 20%;
        background-size: auto, 90%;
    }
    article.replyBlock,
    article.evaluateBlock {
        background: url(/assets/images/index/bg_flower.svg);
        background-repeat: no-repeat;
        background-position: center 20%;
        background-size: 90%;
    }
    article.replyBlock::before,
    article.evaluateBlock::before {
        left: 50%;
        transform: translateX(-528px);
    }
    article.replyBlock::after,
    article.evaluateBlock::after {
        right: 50%;
        transform: translateX(528px);
    }
    article.answerBlock .container,
    article.replyBlock .container,
    article.evaluateBlock .container {
        padding: 80px;
        gap: 40px;
    }
    article.evaluateBlock .chatBox canvas {
        width: 480px;
        height: 480px;
    }
    article.evaluateBlock .textBox {
        gap: 28px;
    }
}