html,body{
    height: 100%;
}

body {
    text-align: center;
    font-family: 'Kiwi Maru' , serif;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}
#stage {
    max-width: 600px;
    margin:0px auto;
    flex:1;
}
#hyakuPoems {
    font-size: 1.5rem;
    table-layout: fixed;
    width: 100%;
}
#hyakuPoems tr td:first{
    text-align: right;
}
td.nanban{
    width: 4em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
td.kami-1{
    width:6.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
td.author{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
h1 {
    margin: 30px 0;
    font-size: 40px;
}
h2 {
    margin-top: 6px;
}
.hidden {
    display: none;
}
/*ページネーション*/
#pagination{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        font-size: 1rem;
        margin-top: 6px;
}
#pagination .standby,
#pagination .current{
    display: grid;
    height:3em;
    place-items: center;
    text-align: center;
    margin: 6px;
    background: #ccc;
    color:#fff;
    text-decoration: none;
}
#pagination .current{
    background: #93d8d0;
    color:#fff;
}
/*フッター*/
footer {
    width: 100%;
    text-align: center;
    padding: 1rem;
}
footer small {
    color: #c7c3ba;
    font-size: .875rem;
}

/*モーダル*/
#prev,
#kanji,
#close{
    color:#000;
    font-size:1.2em;
    background: #ed8;
    border: 3px solid #eb8;
    border-radius: .5rem;
    padding: .5rem 2rem;
    margin-top: 2rem;
    cursor:pointer;
}
#mask {
    background: rgba(0, 0, 0, .6);
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
}
#modal {
    background: #fff;
    max-width: 36rem;
    padding: 2rem;
    border-radius: .5rem;
    position: absolute;
    inset: 10rem 0 auto;
    margin: auto;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
}
#modal p {
    font-size: 1.5rem;
}
p#nanban {
    margin-bottom: 2rem;
}
p#author {
    margin-top:2rem;
}
tr {
    cursor: pointer;
}