.sectionTitle{
    font-size: 24px;
    padding: 1rem 0 1rem 1.5rem;
    border-left: 1.5rem solid aquamarine;
}


.content{
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: auto 320px;
}


.main{
    grid-row: 1;
    grid-column: 1;
}

/* 1個の問題の枠 */

.questionWrapper{
    margin: 1rem 0 4rem;
    border: solid 1px #000;
    /* border-radius: 8px; */
}

/* 問題文 */

.question{
    background-color: #f5f5f5;
    border-bottom: 1px #999 solid;
    padding: 8px 1em 0.5em 1em;
}

p.questionNumber{
    font-size: 16px;
    margin: 0;
    letter-spacing: 1px;
}

.formula{
    padding: 0.5em 0 0.5em 1em;
}

.qlist{
    display: flex;
    flex-wrap: wrap;
    line-height: 3;
}

.qitem{
    padding-right: 2em;
    padding-bottom: 0.5em;
}

/* .qNumber{
    vertical-align: top;
} */


/* 解説 */

.modelanswer{
    margin-top: 4px;
}

.ac-title{
    font-size: 16px;
}

.ac-box{
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.answers::before{
    content: "【解答】";
    color: rgb(255, 0, 0);
}

.alist{
    display: flex;
    flex-wrap: wrap;   
    line-height: 3;
}

.aitem{
    padding-right: 2em;
    padding-bottom: 0.5em;
    font-size: 16px;
}


.comment::before{
    content: "【解説】";
    color: blue;
}

.comment > div{
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 0.5em;
    margin: 0;
    font-size: 16px;
}

table.formula, table.formula td {
    border: solid 1px #000;
    border-collapse: collapse;
    text-align: center;
}



/* サイドバー */

.sidebar{
    grid-row: 1;
    grid-column: 2;
    margin-left: 20px;
}

.sidebar-content > *{
    padding-left: 16px;
    line-height: 2rem;
}

.sidebar-content h2{
    font-size: 14px;
    font-weight: 700;
    margin: 12px 0;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}


.sidebar-content .views-row{
    font-size: 12px;
}

.sectionList{
    font-size: 14px;
}

.sectionList a{
    text-decoration: none;
}

.sectionList a:hover{
    text-decoration: underline;
}

.roman{
    display: inline-block;
    width: 25px;
    text-align: right;
}

.sectionList img{
    vertical-align: text-bottom;
}

.keywords{
    padding-left: 0px;
}


@media screen and (max-width: 768px){

    .content{
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: auto;
    }
    
    
    .main{
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        overflow-x: hidden;
    }
    
    .sidebar{
        grid-row: 2;
        grid-column: 1;
        margin-left: 0;
    }

    .sectionTitle{
        font-size: 18px;
        font-weight: bold;
    }

    p.questionNumber {
        font-size: 14px;
    }

    .formula{
        font-size: small;
        overflow-x: scroll;
    }

    .alist .aitem{
        font-size: 14px;
    }

    .formula::-webkit-scrollbar{
        width: 1px;
        height: 2px;
    }
    .formula::-webkit-scrollbar-thumb{
        background: #666;
        border-radius: 1px;
        width: 1px;
        height: 2px;
    }

    .comment{
        width: 100%;
    }

    .comment > div{
        font-size: 14px;
    }

}