div.content {
    max-width: 810px;
    margin: 0 auto;
}

.error-box {
    border: solid 1px gainsboro;
    font-size: small;
    margin: 1em 0;
    padding: 0.5em;
    color: red;
    line-height: 1.4em;
    font-size: small;
}

table.k-box {
    border-collapse: collapse;
    text-align: left;
}

table.k-box,
table.k-box th,
table.k-box td
{
    border: solid 1px gainsboro;
    font-size: small;
}

table.k-box th,
table.k-box td
{
    padding: 0.5em;
}

.twitter-icon,
.pixiv-icon
{
    width: 1em;
    min-width: 24px;
}


.hot-articles {
    max-width: 810px;
    margin: 1em auto 0 auto;
}
.hot-articles * {
    font-size: small;
}
.hot-article {
    float:left;
    width: 160px;
    height: calc(160px + 3.5em);
    margin: 0 2px 0 0;
    position: relative;
}
.hot-article a.thumb {
    display: table-cell;
    text-align: center;
    width: 160px;
    height: 160px;
    vertical-align: middle;
}
.hot-article img {
    max-width: 100%;
    max-height: 100%;
}
.hot-article p {
    margin: 0.2em;
}
.hot-article p a {
    font-size: small;
}
.hot-article span.r18 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5em;
    color: red;
    font-weight: bold;
    background-color: white;
}
@media screen and (max-width: 650px) {
    .hot-articles {
        width: 500px;
    }
    .hot-article a.thumb {
        /*height: auto;*/
    }
}
@media screen and (max-width: 500px) {
    .hot-articles {
        width: calc(90vw + 6px);
    }
    .hot-article {
        width: calc(30vw);
        height: calc(45vw);
        margin: 0 2px 0 0;
    }
    .hot-article a.thumb {
        height: 30vw;
    }
    .hot-article img {
        max-height: calc(30vw);
    }
}


.fav {
    text-decoration: none;
}
.fav span {
    color:white;
    text-shadow: 0 0 2px black;
}
.favd span {
    color: gold;
    text-shadow: 0 0 1px darkgoldenrod;
}

.annotation {
    color: red;
    font-size: 13px;
    line-height: 1.4em;
}
td p {
    margin: 0.5em 0 0 0;
}