﻿@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Comfortaa&display=swap');
/*
'Comfortaa' is licensed under the Open Font License.
https://fonts.google.com/specimen/Comfortaa
*/


/* 基本設定 */
html {
    background: transparent;
    font-size: 62.5%;
}
body {
    min-height: 100vh;
    background: #f2fcfc;
    color: #5c5450;
    font-size: 1.3rem;
    font-family: 'メイリオ', 'ヒラギノ角ゴ', sans-serif;
    letter-spacing: 0.2em;
    line-height: 1.8;
}
a {
    text-decoration: none;
}
h2,h3,h4,.contentsNav {
    font-family: 'Comfortaa', cursive;
    font-weight: lighter;
}
h2 {
    display: flex;
     align-items: center;
    margin: 2em 0;
}
h2 > span {
    margin: 0 2em;
}
h2::before, h2::after {
    content: '';
    display: block;
    height: 2px;
    background: url('https://kzhnfes.ltt.jp/img/09.PNG') left top / 100% #93e0da;
}
h2::before {
    flex-basis: 3em;
}
h2::after {
    flex-grow: 1;
}
h3 {
    font-size: 2rem;
    display: flex;
     align-items: center;
    margin: 1em 0;
}
h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.5em;
    margin-right: 1.5em;
    background: #93e0da;
    border-radius: 3px;
}
h4 {
    display: inline-block;
    padding: 0 .5em;
    margin: 1em 0 .5em;
    background: #def4f4;
    font-weight: normal;
}

h4 > span::after {
    content: none;
    display: block;
    width: 100%;
    height: 3px;
    background: url('https://kzhnfes.ltt.jp/img/28.png') left top / 100% #93e0da;
}
ul,ol {
    list-style: none;
}
em {
    background: #f1f0ee;
}


/* 段落設定 */
p {
    padding: 0 1em;
}


/* 全体の余白、リンク色など */
.pageWrap {
    width: 60%;
    max-width: 1000px;
    min-width: 700px;
    min-height: 100vh;
    padding: 1em 0;
    margin: 0 auto;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 0 15px #e2ecec;
}
.pageWrap a {
    color: #65969e;
}
.contentsWrap {
    padding: 50px;
}
.mainContents a:visited {
    color: #a4b6b8;
}
.contentsWrap > section {
    min-height: 50vh;
}
.contentsWrap section[id] {
    padding: 10vh 0 0;
    margin: 5vh 0;
}
.contentsWrap section[id]:last-of-type {
    min-height: 90vh;
}


/* フォーム系基本設定 */
input[type],textarea,button,select {
    border: #bbbbbb solid 1px;
    font-family: inherit;
    font-size: 90%;
    line-height: inherit;
    letter-spacing: inherit;
}


/* 全体説明部分 */
.about {
    display: flex;
     justify-content: space-around;
    width: 90%;
    margin: 5vh auto;
}
/* 名前変換フォーム */
.nameChange {
    padding: 0 2em;
    margin: 2em auto;
}
.nameChange .enter {
    width: 8em;
}
.nameChange .button {
    background: #93e0da;
    font-family: 'Comfortaa', cursive;
    letter-spacing: 0;
}


/* 小説一覧部分 */
.list {
    margin: 1em 1.5em 2em;
}
.list .info {
    width: 100%;
    margin-bottom: 5px;
    color: #5a6463;
    font-size: 90%;
}
.list li a:hover {
    text-decoration: underline;
}

.listYoko {
    display: flex;
     flex-wrap: wrap;
}
.listYoko li {
    margin-right: 1.3em;
}

.listTate {
    columns: 2;
}
.listTate li > span {
    margin-left: 1em;
}

.new::after {
    content: 'new';
    display: inline-block;
    color: #816755;
    font-size: 1rem;
    letter-spacing: 0;
    transform: translateY(-3px) rotate(-10deg);
}


/* 小説本文 */
.textWrap {
    width: 90%;
    max-width: 800px;
    margin: 10vh auto;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2em;
    letter-spacing: .0em;
    line-height: 150%;
}
.textNav ul {
    display: flex;
     justify-content: center;
     align-items: center;
    margin: 10vh 0;
    font-family: 'Noto Serif JP', serif;
    font-size: .9em;
}
.textNav li {
    margin: 0 1em;
}
.textNav li a {
    display: inline-block;
    padding: 3px .5em;
    color: #5c5650;
}
.atogaki::before {
    content: '';
    display: block;
    height: 2px;
    margin: 3em 0 2em;
    background: url('https://kzhnfes.ltt.jp/img/28.png') left top / 100% #93e0da; 
}


/* ヘッダー */
.contentsHeader {
    padding: 10vh 5vh 3vh;

}
h1 {
    font-family: 'Comfortaa', cursive;
    font-size: 2em;
    font-weight: normal;
    text-align: right;
}
h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 300px;
    margin-top: 10px;
    background: url('https://kzhnfes.ltt.jp/img/28.png') center / 100% rgb(160, 214, 207);
}

/* ナビゲーション */
.contentsNav{
    position: sticky;
     top: 0;
    font-family: 'Comfortaa', cursive;
    z-index: 2;
}
.contentsNav ul {
    display: flex;
     flex-wrap: wrap;
    padding: 1em 5vh;
    transition: .3s;
}
.stop ul {
    background: rgba(177, 228, 228, 0.5);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.contentsNav li {
    margin-right: 2em;
}
.contentsNav li a {
    display: inline-block;
    padding: 3px 1em;
    color: #4b4136;
    transition: .3s;
}
.active {
    background-color:rgba(240, 255, 253, 0.8);
}
.active[id] {
    background-color: transparent;
}

/* トップに戻るリンク */
.back {
    align-self: flex-end;
    margin-left: auto;
    font-size: 1rem;
    opacity: 0;
    transition: .3s;
    visibility: hidden;
}
.stop .back {
    opacity: 1;
    visibility: visible;
}
#backTop::before {
    content: 'top';
}

/* フッター（削除OK）※デフォルト非表示 */
.mainFooter {
    display: none;
    margin: 5vh 0;
    color: #d1cac8;
    font-size: 1rem;
    text-align: center;
}
.mainFooter a {
    color: #acdadb;
}

/* 画面幅７５０ｐｘ以下用 */
@media (max-width:750px) {
    body {
        font-size: 1.2rem;
    }
    h2 > span {
        margin: 0 1em;
    }
    p {
        padding: 0 1em;
    }
    .contentsWrap section[id] {
        padding: 1em 0;
    }
    .pageWrap {
        width: 90%;
        max-width: 600px;
        min-width: 200px;
        margin: 0 0 0 auto;
    }
    .contentsWrap {
        padding: 1em 20px;
    }
    .contentsWrap,.contentsHeader {
        max-width: 500px;
        margin: auto;
    }
    .about {
        flex-direction: column;
        width: 100%;
        margin: 1em auto 2em;
    }
    .nameChange {
        padding: 0 1em;
        margin: 0;
        text-align: center;
    }
    .nameChange .enter {
        width: 8em;
    }
    .list {
        margin: 1em .5em 2em;
    }
    .listTate {
        columns: auto;
    }
    .textWrap {
        width: 90%;
        max-width: 500px;
        margin: 3em auto;
        font-size: 1.2em;
    }
    .textNav ul {
        margin: 40px 0;
    }
    .contentsHeader {
        padding: 3em 1em 0 1em;
    }
    h1 {
        font-size: 1em;
        font-weight: lighter;
    }
    h1::after {
        height: 60px;
    }
    .contentsNav {
        position: fixed;
         top: 0;
         left: 0;
        width: 10%;
    }
    .contentsNav ul {
        flex-direction: column;
         justify-content: flex-end;
        height: 100vh;
        padding: 10vh 0 0 0;
        background: transparent;
        box-sizing: border-box;

    }
    .contentsNav li {
        padding: 0;
        margin: 0 0 1em 0;
        text-align: center;
    }
    .contentsNav li a {
        padding: .5em 0;
        font-size: 1rem;
        text-orientation: sideways;
        writing-mode: vertical-rl;
    }
    .now {
        background-color:rgba(204, 238, 237, 0.8);
    }
    .back {
        position: fixed;
         bottom: 0;
         right: 1em;
        opacity: 1;
    }
    #backTop{
        display: inline-block;
        width: 3em;
        height: 3em;
        padding: 0;
        background: #def4f4;;
        border-radius: 2px;
        box-sizing: border-box;
        line-height: 3em;
        text-align: center;
        writing-mode: horizontal-tb;
    }
    #backTop::before {
        content: none;
    }
}
