body{
    margin:0;
    background-color:#fff;
    background-image:url("../img/top.png");
    background-repeat:no-repeat;
    background-position:left bottom;
    background-size:auto 50vh;
    background-attachment:fixed;
}
.main{
     max-width:500px;
    margin:0 auto;
    padding:20px 20px 300px;
    text-align:left;
}

a{
    color:black;
    text-decoration:none;
}

a:hover {
    color: #666;
}

.menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    font-weight: bold;
    font-size: 18px;
}

.update h4,
.info-section h4 {
    font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    letter-spacing: 2px;
}

.update h4,
.info-section h4 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.update h4,
.info-section h4 {
    letter-spacing: 3px;
}

.update h4::after,
.info-section h4::after {
    content: "";
    flex: 1;
    border-top: 1px dashed #ccc;
}

.site-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;

    margin-top: 15px;
    padding: 8px 15px;

    border: 1px solid #ccc;

    font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #666;
}

header {
    text-align: left;
}

header img {
    max-width: 100%;
    height: auto;
}

#counter {
    font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
}

.small-note {
    font-size: 12px;
    color: #888;
}

about {
    display: block;
    margin-top: 50px;
}

about h4 {
    margin-bottom: 15px;
}

.attention-en{
    font-size:0.8em;
}

.info-page h1 {
    font-size: 24px;
}


.info-section h2 {
    font-size: 18px;
    color: #000;
}

.info-section p {
    font-size: 14px;
    color: #666;
}

.info-section {
    margin-bottom: 40px;
}

footer {
    margin-top: 50px;
    text-align: right;
}


.update-log {
    color: #666;
}

.update-log summary {
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 10px;
}

.update-log p {
    margin-left: 0;
    font-size: 14px;
}

.update {
    margin-top: 60px;
    margin-bottom: 60px;
}

.update > p {
    font-size: 14px;
}

.clap-page{
    white-space: normal;
    line-height: 2;
}

.series {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.messelog-series {
    background-color: #f7fbf7;
    border: 1px solid #e4eee4;
    padding: 20px 30px;
    margin-top: 40px;
    align-items: flex-start;
}

.series img {
    width: 80px;
    height: auto;
}

.series-text h3 {
    font-size: 16px;
}

.series-text p {
    font-size: 14px;
}

.novel-page {
    background-image: none;
}

.novel-title {
    font-family: sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
}

.novel-text {
    white-space: pre-wrap;
}

.timeline {
    display: block;
}

.era {
    margin-bottom: 20px;
}

.era h3,
.era h4{
    margin-bottom:8px;
}
.era p {
    font-size: 14px;
}


.era h4{
    display:flex;
    align-items:baseline;
    gap:12px;
}

.era-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.era-title h4 {
    margin: 0;
}

hr {
    border: none;
    border-top: 1px dotted #ccc;
}

.new {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    background: #e8f5e9;
    color: #6a8f72;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1px;
}

.category-info{
    font-size:12px;
    color:#999;
    font-weight:normal;
}

.name-change {
    display: flex;
    align-items: center;
    gap: 5px;
}

.name-change input {
    width: 80px;
}

.story-item {
    margin-bottom: 24px;
}

.story-item a{
    color:#222;
}
.story-info {
    display: block;
    margin-top: 3px;
    padding-left: 1em;
    font-size: 12px;
    color: #888;
}

.story-parts {
    white-space: nowrap;
}

.short-list {
    margin-top: 30px;
}

.short-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.short-item img {
    width: 80px;
    height: auto;
}

.short-text h4 {
    margin: 0 0 8px;
}

.short-text p {
    margin: 5px 0;
    font-size: 14px;
}

.short-setting {
    color: #949494;
}

.short-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.short-title h4 {
    margin: 0;
}

@media (max-width: 500px) {
    body {
        background-image: url("../img/green1.png");
        background-position: right bottom;
        background-size: auto 35vh;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    .short-item {
        align-items: flex-start;
        gap: 15px;
    }

    .short-item img {
        width: 80px;
    }
}


.short-novel {
    background-image: none;
}

.clap-form {
    text-align: right;
    margin-top: 30px;
    
}

.memo{
    width:100%;
    max-width:500px;
    margin:40px auto;
}

.memo article{
    margin-bottom:70px;
    padding-bottom:50px;
    border-bottom:1px solid #ddd;
}

.memo h2{
    margin-bottom:50px;
}

.memo h3{
    margin:0;
    font-size:1.8rem;
    font-weight:600;
    line-height:1.3;
}

.memo .date{
    margin:8px 0 12px;
    color:#999;
    font-size:.9rem;
}

.memo-body{
    line-height:2;
}

.memo-body p{
    margin-bottom:1em;
}

/* Memo画像 */

.memo-image {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
    cursor: pointer;
}

.memo-images {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    align-items: flex-start;
}

.memo-images .memo-image {
    max-width: 45%;
    margin: 0;
}

@media (max-width: 500px) {
    .memo-images {
        gap: 10px;
    }

    .memo-images .memo-image {
        max-width: 48%;
    }
}

/* 拡大表示 */

#memo-lightbox{
    display:none;
    position:fixed;
    z-index:9999;
    inset:0;
    background:rgba(0,0,0,.75);
    align-items:center;
    justify-content:center;
    padding:20px;
    box-sizing:border-box;
    cursor:pointer;
}

#memo-lightbox.show{
    display:flex;
}

#memo-lightbox-image{
    max-width:95vw;
    max-height:90vh;
    width:auto;
    height:auto;
    object-fit:contain;
    cursor:pointer;
}

body.memo-page {
    background: #f5f5f5;
}

.admin-box{
    max-width:700px;
    margin:0 auto;
}

.admin-box input,
.admin-box textarea{
    width:100%;
    box-sizing:border-box;
}

.admin-box button{
    margin-top:20px;
}

.admin-box select{
    width:100%;
    padding:8px;
    box-sizing:border-box;
    margin-bottom:15px;
}

.memo-tag{
    display:inline-block;
    color:#777;
    font-size:12px;
    border:1px solid #ccc;
    border-radius:3px;
    padding:2px 8px;
    margin-bottom:10px;
}

.tag-menu{
    margin:20px 0 40px;
}

.tag-menu select{
    padding:6px 10px;
    font-size:14px;
    color:#666;
    border:1px solid #ccc;
    background:#fff;
}

.tag-menu a{
    margin-right:18px;
    color:#888;
    text-decoration:none;
    font-size:14px;
}

.tag-menu a:hover{
    color:#333;
}

.back-top{
    margin-bottom: 15px;
}

.back-top a{
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.back-top a:hover{
    color: #333;
}

details{
    margin:0;
}

summary{
    cursor:pointer;
    padding:10px 12px;
    border:1px solid #e5e5e5;
    background:#fafafa;
    color:#666;
}

summary::-webkit-details-marker{
    display: none;
}

summary::before{
    content: "▶ ";
}

details[open] summary::before{
    content: "▼ ";
}
summary::-webkit-details-marker{
    display:none;
}

summary::marker{
    content:"";
}



/* メルフォ */

.contact-note {
    color: #888;
    font-size: 14px;
}

.contact-form {
    margin-top: 40px;
}

.contact-form label {
    display: block;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-form .required {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    padding: 8px;
    font-size: 16px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input::placeholder {
    color: #999;
}

.contact-form button {
    margin-top: 30px;
    padding: 8px 16px;
    font-size: 16px;
}

/* 3日間の空洞用ノート風 */

.notebook {
    background:
        repeating-linear-gradient(
            to bottom,
            #fffdf5 0,
            #fffdf5 31px,
            #e5ebe5 32px
        );
    padding: 20px 25px;
    margin: 25px 0;
    color: #555;
    line-height: 2;
    border-left: 3px solid #d8e5d8;
}

/* 拝啓、石神千空様
   長文LINE風 */

.line-letter-area {
    margin: 40px -10px;
    padding: 35px 10px;

    background: #dceaf2;
}

.line-letter {
    width: 80%;
    margin: 0;

    padding: 20px 18px;

    background: #fff;

    border-radius: 18px;

    color: #333;

    font-size: 15px;
    line-height: 1.8;

    white-space: pre-wrap;
    word-break: break-word;
}