/* 共通 */
html{
    font-size: 16px;
}
body {
    max-width: 95%;
    margin: 0 auto;
    background-color: #e2f0d9;
}
h1{
    font-size: 2rem;
    text-align: center;
    margin: 2rem auto 0.5rem;
    position: relative;
    background-color: #fff;
    border: 2px solid #498fcf;
    width: 80%;
}
h2{
    font-size: 1.5rem;
    text-align: center;
    margin: 1rem;
}
p{
    font-size: 1.5rem;
    margin: 0.5rem;
}
.ta-right{
    text-align: right;
}
.ta-center{
    text-align: center;
}

.main{
    position: relative;
    background-color: #fff;
    border: 2px solid #498fcf;
    width: 80%;
    margin: 1rem auto;
}
button{
    text-align: center;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    background-color: #498fcf;
    margin: 1rem;
    width: 10rem;
}
button:hover{
    cursor: pointer;
    background-color: #396b9b;
}
button.next-button , button.ox{
    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;
}

.flex{
    display: flex;
    flex-wrap: wrap;
}
.none{
    display: none;
}
.invisivle{
    visibility: hidden;
}
.prc,.prc2,.prc3,.prc4{
    justify-content: space-evenly;
    align-items: flex-end;
    width: 80%;
    margin: 0 auto;
}
.under_menu{
    justify-content: space-between;
    flex-direction:row-reverse;
}

/* トップページ */
.start{
    text-align: center;
}
.start-button,.end-button{
    text-align: center;
}
/* 問題 */
.prc img{    /* 問題１ */
    width: 18rem;
    height: 15rem;
}
.prc img:nth-of-type(2) {
    width: 14rem;
    height: 11rem;
}
.prc2 img{    /* 問題２，３ */
    width: 15rem;
    height: 18rem;
}
.prc3 img{    /* 問題４ */
    width: 15rem;
    height: 15rem;
}
.prc3 img:nth-of-type(2) {
    width: 8rem;
    height: 8rem;
}
.prc4 img{    /* 問題５ */
    width: 24rem;
    height: 12rem;
}
.prc4 img:nth-of-type(2) {
    width: 17rem;
    height: 7rem;
}

/* 選択肢 */
.display{
    width: 80%;
    margin: 1rem auto;
}
.select{
    width: 100%;
    margin: 0 auto;
}
.select>div>div{
    justify-content: space-between;
}
.select p{
    background-color: #fff;
    padding: 2px 0.3rem;
    border: 2px solid #498fcf;
}
.flex p{
    background-color: #fff;
    padding: 2px 0.3rem;
    border: 2px solid #498fcf;
    width: calc((80%-30px) / 3);
    height: 2rem;
    font-size: 1.3rem;
}
.select p:hover{
    background-color: #498fcf;
    color: #fff;
    cursor: pointer;
}
.active{
    margin: 0 1rem;
}

/*答え*/
.answer{
    text-decoration: underline;
    text-align: center;
}
.anstext{
    text-align: center;
}


.scoretitle{
    font-size: 2rem;
    text-align: center;
    margin: 2rem auto 0.5rem;
    position: relative;
    background-color: #e2f0d9; /* h1の上書き */
    border: none; /* h1の上書き */
}
.score{
    font-size: 4rem;
    color: #ff4500;
}
.scoretext{
    width: 60%;
    height: 9rem;
    position: relative;
    border: 2px solid #498fcf;
    border-radius: 1rem;
    background-color: #fff;
}
.scoretext p{
    border: none;
    margin: 0;
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: 95%;
    text-align: center;
    font-size: 1.5rem;
}
.comment{
    justify-content: center;
}
.comment img{
    width: 18rem;
    height: 20rem;
}
.good,.bad{
    display: none;
}
.good .result,.bad .result{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 20vw;
    margin: 0%;
}
.good .result{
    color: #ff4500;
}
.bad .result{
    color: #498fcf;
}

/*修正*/
.between {
    justify-content: space-between;
}