@font-face {
    font-family: "Kaisotai";
    src: url("../../fonts/Kaisotai.ttf") format("truetype")
}
@font-face {
    font-family: "GenkaiMincho";
    src: url("../../fonts/genkai-mincho.ttf") format("truetype")
}
@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

body {
    color: #fff;
    background-color: #000;
    text-align: center;
    overflow-x: hidden;
}

#greeting {
    max-width: 800px;
    width: 100%;
    margin: 50px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}

#news {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 100px auto 0;
    padding: 20px;
    box-sizing: border-box;
}

#greeting h1 {
    font-family: "GenkaiMincho", serif;
}

#news-title {
    font-family: "Kaisotai", serif;
    margin: 0 auto 8px;
    max-width: 500px;
    width: 100%;
    font-size: 30px;
    color: #00ff00;
}

#news-log {
    font-family: "Kaisotai", serif;
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    font-size: 20px;
    text-align: left;
    box-sizing: border-box;
    padding: 8px;
}

#links {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 100px auto 0;
    padding: 20px;
    box-sizing: border-box;
}

#links-inner {
    display: flex;
    gap: 66px;
    justify-content: center;
}

#links-icons,
#links-titles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#links-icons a,
#links-titles a {
    display: flex;
    align-items: center;
    height: 50px;
}

.link-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: opacity 0.2s;
}

.link-title {
    font-family: "Kaisotai", serif;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.link-icon:hover,
.link-title:hover {
    opacity: 0.7;
}

#works {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 100px auto 0;
    padding: 20px;
    box-sizing: border-box;
}

#works-main {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

#works-placeholder {
    font-family: "Kaisotai", serif;
    color: #aaa;
    font-size: 20px;
    margin: 0;
}

#works-main-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

#works-caption {
    font-family: "Kaisotai", serif;
    font-size: 16px;
    margin: 20px 0 20px;
    min-height: 1.5em;
    text-align: center;
    white-space: pre-line;
}

#works-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.works-thumb-break {
    flex-basis: 100%;
    height: 8px;
}

.works-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    box-sizing: border-box;
}

.works-thumb.lewd {
    outline: 3px solid #ff1493;
}

.works-thumb:hover,
.works-thumb.active {
    opacity: 1;
    outline: 2px solid #00ff00;
}

#introduction {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 100px auto 0;
    padding: 20px;
    box-sizing: border-box;
}

#introduction-title {
    font-family: "Kaisotai", serif;
    font-size: 30px;
    color: #00ff00;
    margin: 0 0 16px;
}

#introduction-inner {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

#introduction-img-area {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#introduction-img {
    width: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#introduction-text {
    flex: 1 1 0;
    min-width: 0;
    font-family: "Kaisotai", serif;
    font-size: 20px;
    text-align: left;
    line-height: 1.8;
    box-sizing: border-box;
}

#return {
    max-width: 800px;
    width: 100%;
    margin: 100px auto 800px;
    padding: 0 16px;
    text-align: center;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

#return a:link    { color: #00ff00; }
#return a:visited { color: #00ff00; }
#return a:hover   { color: #7800FF; }
#return a:active  { color: #00ff00; }

#header {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1620 / 580;
    margin: 0 auto;
    background-image: url("../imgs/DKNM183_02.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}
