*{
    margin: 0;
    padding: 0;
}
a{
    text-decoration:none;
}
body{
    text-align:center;
}
.tab ul{
    list-style: none;
}
.wrapper{
    margin: auto;
    width:800px;
}
header{
    text-align: left;
    width: 100%;
}
.thumbnail{
    display: none;
}
.contents{
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-auto-rows:auto;
}
.tab{
    grid-column-start: 1;
    grid-column-end: 2;
    padding-top:2.5em;
    font-size:20px;
}
.tab li{
    cursor: pointer;
}

.epiPanel{
    grid-column-start: 2;
    grid-column-end: 3;
}
.epiPanel *{
    text-align: left;
}
.epiPanel .epiBody{
    min-height: 400px;
}
.epiBody > div{
    font-size:0;
}
.epiHeader{
    font-size:25px;
}
.epiHeader span{
    font-size: 15px;
    margin-left: 1em;
}
.chapter{
    font-size: 20px;
}
.epiBody a{
    display: inline-block;
    font-size: 15px;
    vertical-align: top;
    margin: 2px;
    padding: 0;
    width: 32.6%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.epiTitle div{
}
.epiTitle p{
    font-size:14px;
    margin-left: 0.5em;
}
.exstory{
    width: 100%;
    margin: 5px 0px;
}
.exstory *{
    text-align: left;
}
.exstory p{
    font-size: 20px !important;
}

.exstory .epiBody{
    font-size: 0;
    width: 95%;
}
.profile{
    font-size: 0;
    text-align: left;
    /* padding: 10px; */
}
.profile div{
    display: inline-block;
    vertical-align: top;
    text-align: left;
    margin: 0;
}
.profile .author{
    font-size: 20px;
    width: 20%;
    margin-left: 0;
}
.profile .comment{
    font-size: 20px;
}

.profile p:nth-child(2){
    margin-left: 0.5em;
    line-height: 1em;
}

.author p:nth-child(3){
    font-size: 13px;
    margin-left: 0.5em;
}
.profile a{
    color:  #2588ee;
    transition: 0.3s;
}

.profile a:hover{
    color:  #054399;
    transition: 0.3s;
}


.toplink{
    font-size:20px;
    text-align: center;
}
.toplink a{
    display:inline-block;
    border: 1px solid black;
    margin: 0.2em;
    border-radius: 5px;
    padding: 0.2em 1em;
}
footer{
    padding-top:1em;
    padding-bottom: 1em;
}
footer .sns i{
    font-size: 40px;
}

@media screen and (max-width: 480px){
    .wrapper{
        width: 100%;
    }
    .topimg img{
        width: 95%;
    }
    .tab{
        display: none;
    }
    .epiBody >div{
        text-align: center;
    }
    .epiBody a{
        width: 95%;
    }
    .epiPanel{
        grid-column-start: 1;
        grid-column-end: 3;
    }
    .epiPanel a>div{
        display:inline-block;
        vertical-align:middle;
    }

    .exstory a>div{
        display:inline-block;
        vertical-align:middle;
    }
    .thumbnail{
        display: inherit;
        width:130px;
        height: 50px;
        border: 1px solid black;
    }
    .thumbnail img{
        width:130px;
        height: 50px;
        object-fit: cover;
    }
    .profile .author{
        width: 30%;
    }
    .profile p:first-child{
        font-size: 5vw;
    }
    .profile p:nth-child(2){
        font-size: 4vw;
    }
    .profile a{
        font-size: 3vw;
    }
    .com_form *{
        vertical-align: bottom;
    }
    .com_form input{
        font-size: 5vw;
        width: 60%;
        height: 20px;
        margin: 0;
        padding: 0.2em;
    }
    .com_form .post{
        font-size: 7vw;
    }
    .toplink{
        font-size: 7vw;
    }
    .com_form button{
        font-size: 5vw;
        padding: 0;
        margin: 0;
        height: 43px;
        width: 20%;
        border: 1px solid black;
    }
    .wrapper {

        padding-bottom: 100px;
    }
}
