@charset "utf-8";

body {
    max-width: 95%;
    margin: 0 auto;
    background-color: #e2f0d9;
}

h1 {
    color: #ffffff;
    background-color: #498fcf;
    padding: 5px 10px 2px 13px;
    width: fit-content;
    font-size: 2.0rem;
    margin: 20px 0 20px 0;
}

main {
    /* max-width: fit-content; */
    height: auto;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #498fcf;
}

div {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

ul,li {
    list-style: none;
    margin: 0;
    padding: 0;
}

button{
    width: fit-content;
    height: auto;
    text-align: center;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    background-color: #498fcf;
    box-shadow: 3px 3px 2px 1px #396b9b;
    margin: 20px 0 20px 0;
    padding: 0 10px;
}
button:hover{
    cursor: pointer;
    background-color: #396b9b;
    box-shadow: none;
}

.header {
    display: flex;
    justify-content: space-between;
}

.btn-tsugi button {
    width: fit-content;
    font-size: 2.0rem;
    text-align: end;
}


/* ---------------------------------------------
    １　描くグラフィックの使用目的は？
--------------------------------------------- */
.top-img {
    width: 20%;
    text-align: center;
    margin: 0px auto;
}

.top-img img {
    width: 100%;
}

.top-question {
    width: fit-content;
    margin: 0 auto;
    margin-top: 20px;
    padding: 15px 20px 10px 25px;
    font-size: 2.0rem;
    text-align: center;
    background-color: #ffffff;
    border: 2px solid #498fcf;
}

/* ---------------------------------------------
    ２　イラスト作成ソフト
--------------------------------------------- */
#slide2, #slide3 {
    display: none;
}

#contents05-2 .paint, #contents05-2 .draw {
    min-height: 362px;
}

.paint ul, .draw ul {
    margin-top: 65px;
    width: 100%;
}

.paint li, .draw li {
    margin: 10px 40px;
    padding: 10px;
    font-size: 1.8rem;
    opacity: 0;
    display: flex;
    align-items: center;
}

.paint li {
    background: #498fcf;
    color: #ffffff;
}
.draw li {
    background: #ed7d31;
    color: #ffffff;
}

.paint li.example, .draw li.example {
    font-size: 1.3rem;
    text-align: center;
    justify-content: center;
}

.img-paint, .img-draw {
    position: relative;
    background-color: #ffffff;
    z-index: 2;
    text-align: center;
    opacity: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.img-paint {border: 5px solid #498fcf;}
.img-draw {border: 5px solid #ed7d31;}

.img-paint img, .img-draw img {
    width: 50%;
}

.img-paint::after {
    content: "";
    position: absolute;
    top: 135px;
    left: -51px;
    border-right: 50px solid #498fcf;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
}

.img-draw::after {
    content: "";
    position: absolute;
    top: 135px;
    right: -51px;
    border-left: 50px solid #ed7d31;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
}

.telop {
    justify-content: center;
}
/* ---------------------------------------------
    ３　ペイント系で描かれたものはどれでしょう？
--------------------------------------------- */
.contents05-3 {
    margin: 0 auto;
    text-align: center;
}

.contents05-3 div {
    width: calc((100% - 180px) / 4);
    text-align: center;
    display: inline-block;
    margin: 20px;
    position: relative;
    vertical-align: top;
}

.contents05-3 div>img {
    width: 100%;
    cursor: pointer;
}

.question {
    width: fit-content;
    margin: 0 auto;
    margin-top: 5%;
    padding: 2%;
    font-size: 1.5rem;
    text-align: start;
    background-color: #ffffff;
    border: 5px solid #498fcf;
}

.answer-correct, .answer-incorrect {
    width: 100%;
    position: absolute;
    top: 20px;
    left: 0;
    z-index: 2;
    display: none;
}

.contents05-3 div.is-active .answer-correct, .contents05-3 div.is-active .answer-incorrect {
    display: block;
}

.answer-correct img, .answer-incorrect img {
    width: 90%;
}

.answer-correct p, .answer-incorrect p {
    min-width: 180px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 5%;
    font-size: 1.2rem;
    text-align: start;
    background-color: #ffffff;
}

.answer-correct p {
    border: 5px solid #498fcf;
}

.answer-incorrect p {
    border: 5px solid #ed7d31;
}

.visible {
    display: block;
}

/* ---------------------------------------------
    ４　それぞれの特徴についての説明を並べてください。
--------------------------------------------- */
#contents05-2>p, .contents05-4>p {
    width: fit-content;
    font-weight: bold;
    font-size: 2.0rem;
    margin: 0;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
}

.paint, .img-paint, .draw, .img-draw {
    width: calc((100% - 100px) / 2);
    min-height: 280px;
    height: auto;
    margin: 10px;
    padding: 10px;
    position: relative;
}

.paint {border: 5px solid #498fcf;}
.draw {border: 5px solid #ed7d31;}

.paint p, .draw p {
    position: absolute;
    margin: 0;
    top: 10px;
    left: 20px;
    font-weight: bold;
    font-size: 2.0rem;
}


.card-shuffle-erea {
    position: relative;
}

.card-item {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-item div {
    width: 270px;
    margin: 15px;
    padding: 15px 10px;
    background-color: #8c51ba;
    color: #ffffff;
    text-align: center;
    cursor: grab;
    position: relative;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maru-red, .batsu-red {
    width: 30%;
    display: none;
    position: absolute;
    top: -14px;
    left: 100px;
}


@media screen and (max-width: 900px) {
    * {
        font-size: 70%;
    }
    .top-img {
        width: 40%;
    }    
    .contents05-3 div {
        width: calc((100% - 180px) / 2);
    }

    .paint, .draw {
        min-height: 500px;
    }

    .paint ul, .draw ul {
        margin-top: 40px;
    }

    .paint li, .draw li {
        margin: 10px 5px;
        min-height: 50px;
    }

    .card-item div {
        width: 170px;
        min-height: 50px;
        padding: 5px;
    }

    .paint, .draw {
        min-height: 420px;
    }

    .paint li, .draw li {
        min-height: 61px;
    }

    .img-paint img, .img-draw img {
        width: 100%;
    }
}

