nav li:nth-child(2) a{
    color: white;
}
.menu li:nth-child(2) a{
    color: white;
}
.mokuji{
    width: fit-content;
    padding: 10px;
    padding-right: 20px;
    margin: 10px auto 0 auto;
    border: solid 2px black;
    border-radius: 10px;
}
.mokuji h3{
    text-align: center;
    margin: 0;
}
.mokuji ul{
    font-size: 18px;
    line-height: 30px;
    margin: 10px 0;
    list-style: square;
}
#first, #second{
    padding-top: 45px;
    margin-top: -45px;
}
table{
    padding-top: 50px;
    background-color: white;
    margin: 15px auto 0 auto;
    border-collapse: collapse;
}
caption{
    font-size: 1.8em;
    font-weight: bold;
    background-color: white;
    border: solid 1px black;
    border-bottom: 0;
    position: relative;
}
th{
    font-weight: bold;
}
th,td{
    border: solid 1px black;
    padding: 5px;
}
.sub table:last-of-type td:nth-of-type(2){
    text-align: center;
}
.sort{
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    font-weight: normal;
    font-size: 17px;
    background-color: rgb(182, 182, 182);
    line-height: 40px;
    border-left: solid black 1px;
    transition: all .5s;
    cursor: pointer;
}
.sort div{
    transition: all .5s;
    height: 100%;
    width: 100%;
}
.sort div:hover, .sort li:hover{
    background-color: rgb(160, 160, 160);
}
.sort ul{
    max-height: 0;
    overflow: hidden;
    transition: all .5s;
    margin: 0;
    padding: 0%;
}
.sort li{
    list-style: none;
    background-color: rgba(182,182,182);
    border: solid black 1px;
    border-right: none;
    transition: all .5s;
}
.sort li:nth-of-type(2){
    border-bottom: none;
    border-top: none;
}
.sort.open ul{
    max-height: 300px;
}
.ruby{
    width: 14em;
}
.year{
    min-width: 50px;
}
.yspan{
    display: inline-block;
}
.yspan::after{
    content: "年）";
}
.yspan::before{
    content: "年（";
}
@media(max-width:930px){
    .yspan0::after{
        content: "）";
    }
    .yspan0::before{
        content: "（";
    }
}
@media(max-width:835px){
    .yspan0::after{
        content: "";
    }
    .yspan0::before{
        content: "";
    }
    .sub table:first-of-type td:nth-of-type(2){
        width: 51px;
        text-align: center;
    }
    th,td{
        padding: 5px 3px;
    }
    body{
        grid-template-columns: [left]5px[main]1fr[end]5px[right];
    }
}
@media(max-width:530px){
    .yspan1::after{
        content: "）";
    }
    .yspan1::before{
        content: "（";
    }
    .sub table:first-of-type td{
        height: 55px;
    }
}
@media(max-width:490px){
    .yspan::after{
        content: "";
    }
    .yspan::before{
        content: "";
    }
    .sub table:last-of-type td:first-of-type{
        width: 51px;
        text-align: center;
    }
}
.extra{
    background-color: white;
    width: 90%;
    margin: 10px auto;
    height: fit-content;
    padding: 20px 20px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 25px;
}
.chu{
    margin: 10px;
    font-size: smaller;
    color: gray;
}
textarea{
    width: 100%;
} 