@charset "utf-8";

/* 基本設定 */
html {
    background: transparent;
    font-size: 62.5%;
}
body {
    background: #3d3d50;
    color: #e0e0db;
    font-size: 1.2rem;
    font-family: 'メイリオ', 'ヒラギノ角ゴ', sans-serif;
    letter-spacing: 0.2em;
    line-height: 180%;
}
ul,ol {
    list-style: none;
}

/* 水平線、見出し、強調 */
hr {
    position: relative;
    width: 70%;
    height: 2px;
    padding: 0 1em;
    margin: 50px auto;
    border: none;
    background: #1b1c34;
    background-clip: content-box;
}
hr::before,
hr::after {
    content: '';
    display: block;
    position: absolute;
     top: -1px;
    width: 5px;
    height: 5px;
    background: inherit;
    box-sizing: border-box;
}
hr::before {
    left: 0;
}
hr::after {
    right: 0;
}
h2 {
    padding-bottom: 0.5em;
    margin: 3em 0 2em;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: normal;
}
h2 > span {
    display: inline-block;
    position: relative;
    padding: calc(.5em + 5px) 2em .5em calc(2em + 5px);
    background: center / cover no-repeat #6e1111;
    background-image: linear-gradient(#00000091, #00000091), url('../img/design45_5.jpg');
    border: #6e1111 solid 3px;
    border: none;
}
h2 > span::before {
    content: '';
    display: block;
    position: absolute;
     top: 5px;
     left: 5px;
    width: 100%;
    height: 100%;
    border: #464d5c solid 1px;
    box-sizing: border-box;
}
h2::before,
h2::after {
    content: none;
    display: block;
    width: 30px;
    height: 30px;
    margin-bottom: 3px;
    background: url('../img/design45_5.jpg') center / cover no-repeat;
    box-sizing: border-box;
    transform: rotate(45deg);
}

h3 {
    margin: 2em 0.5em 1em;
}
em {
    background: #606875;
    font-style: normal;
}

/* フォーム関連 */
input[type],textarea,button,select {
    border: none;
    font-family: inherit;
    font-size: 100%;
}
.nameChange {
    padding: 0 2em;
    margin: 2em 0;
}
input[type="text"] {
    padding: 0.3em;
    margin-right: 1em;
    width: 10em;
    background: #a2a3ac;
    border: solid 1px #444444;
}
input[type="submit"] {
    padding: 0.3em 1em;
    background: #0c0d17;
    color: #d2d3df;
}
textarea {
    border: solid 1px #444444;
}

/* 段落 */
p {
    padding: 0 1em;
}
.contents {
    margin: 5vh 0;

}
[id] {
    scroll-margin-top: 2em;
    scroll-snap-margin-top: 15vh;/* safari用 */
}


/* メイン4 */
main {
    display: block;
    padding: 4em 5vw;
    margin-left: 40%;
    box-sizing: border-box;
}
main a {
    color: #9eabb8;
}

/* 小説リスト */
.list {
    display: flex;
     flex-direction: column;
     align-items: flex-start;
    padding: 0 1em;
    margin: 2em 0;
}
.list li {
    margin-bottom: 1em;
}
.list li a {
    display: inline-block;
    color: #dddddd;
    text-decoration: none;
}
.list li a:visited {
    color: #999999;
}
.list li a::after {
    content: '';
    display: block;
    width: 70%;
    height: 1px;
    border-bottom: #4f5062 solid 2px;
    box-sizing: border-box;
    opacity: 0;
    transition: .5s;
}
.list li a:hover::after {
    width: 100%;
    opacity: 1;
}
.count {
    counter-reset: count;
}
.count li a::before {
    display: inline-block;
    padding: 0 .2em;
    counter-increment: count;
    content: counter(count) "話";
    width: 3em;
    margin-right: .5em;
    text-align: center;
}
.new {
    display: inline-flex;
     align-items: center;
}
.new::after {
    content: 'up';
    display: inline-flex;
     justify-content: center;
     align-items: center;
    width: 2rem;
    height: 2rem;
    margin-left: 5px;
    border: solid 1px;
    box-sizing: border-box;
    font-size: .8rem;
    letter-spacing: 0;
}
.textWrap::before {
    content: '';
    display: block;
    position: fixed;
     top: 0;
     left: 0;
    width: 40%;
    height: 100vh;
    background: url('../img/design45_5.jpg') center / cover #6e1111;
    filter: blur(10px);
    opacity: .4;
}
.text {
    position: relative;
    padding: 2em 2em 5em;
    margin: 15vh auto;
    width: 50%;
    max-width: 1000px;
    min-width: 600px;
    background: #d1d4da;
    color: #3d3d33;
    font-size: 1.6rem;
    line-height: 1.7;
    letter-spacing: 0.1em;
}
.text h2 {
    margin-top: 2em;
    text-align: center;
}
.text p {
    text-indent: 1em;
}
.textFooter {
    position: relative;
    padding: 1em 0;
    background: #1b1c34;
    text-align: center;
    z-index: 2;
}
.textNav {
    padding: 0;
}
.textNav ul {
    display: flex;
     justify-content: center;
    width: 100%;
     max-width: 1500px;
    margin: auto;
    border-radius: 0.3em 0 0 0.3em;
}
.textNav li {
    margin: 0 1em;
}
.textNav ul::before {
    content: '';
    display: block;
    width: 300px;
    height: 100%;
    margin-left: auto;
}
.textNav li a {
    width: 70px;
    height: 70px;
    margin: 5px;
    font-size: 1.5rem;
    border: solid 1px;
    box-sizing: border-box;
    color: #888888;
    line-height: 50px;
    text-decoration: none;
    transition: .1s;
}
.textNav a:hover {
    color: #444444;
}
li.clapLink {
    margin-left: auto;
}
li.clapLink > a {
    display: inline-block;
}
.clap {
    display: inline-flex;
     align-items: center;
    width: 300px;
    height: 100%;
}
.clap input[type="text"] {
    width: 200px;
}


/* タイトル、あらすじ */
.index {
    position: fixed;
     top: 0;
     left: 0;
    width: 40vw;
    height: 100vh;
    background: #1b1c34;
    z-index: 2;
}
.index > * {
    padding: 0 50px;
    box-sizing: border-box;
}
.title {
    display: flex;
     justify-content: flex-end;
     align-items: flex-end;
    width: 100%;
    height: 50vh;
    background: url('../img/design45_5.jpg') center / cover #6e1111;
    color: #ffffff;
    text-align: right;
}
h1 {
    padding-bottom:1em;

    font-size: 3em;
    font-weight: normal;
    line-height: 1.5em;
    transform: rotate(5deg);
}
h1 span {
    opacity: .5;
}
.summary {
    margin: 3em 0;
    text-align: right;
}
.summary > section::after {
    content: none;
}


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


/* 画面幅999px以下用CSS */
@media (max-width:999px) {
    body {
        background: #00162d;
        font-size: 1.2rem;
    }
    hr {
        height: 1px;
        margin: 50px auto;
        background: #464d5c;
    }
    hr::before {
        top: -2px;
        left: -10px;
    }
    hr::after {
        top: -2px;
        right: -10px;
    }
    h2 > span {
        transform: scale(0.8);
        transform-origin: left top;
    }

    input[type="text"] {
        width: 6em;
    }

    .contents {
        margin: 2em 0;
    }
    .title,
    .summary > section,
    main {
        max-width: 500px;
        margin: auto;
    }
    main {
        width: 90%;
        padding: 0;
        margin: 3em auto 5em;
    }

    .list li a::after {
        content: none;
    }
    .count li::before {
        padding: .2em;
        margin-right: 1em;
    }
    .nameChange {
        text-align: center;
    }
    .text {
        width: 90%;
         max-width: 600px;
         min-width: 200px;
        padding: 3em 1em;
        margin: 5em auto 2em;
        box-sizing: border-box;
    }
    .text h2 {
        margin: 0.5em 0 1em;
    }
    .text h2 > span{
        transform-origin: center;
    }
    .textFooter {
        margin-bottom: 4em;
        background: transparent;
    }
    .textNav ul {
        flex-wrap: wrap;
    }
    .textNav ul::before {
        content: none;
    }
    .textNav li a {
        border: none;
        height: auto;
    }
    li.clapLink {
        width: 100%;
        padding: 2em 1em;
        margin: auto;
        text-align: center;
    }
    .clap {
        width: auto;
    }

    .index {
        position: static;
        width: 100%;
        height: auto;
        background: inherit;
    }
    h1 {
        padding-left: .5em;
        font-size: 2em;
        transform: rotate(0);
    }
    .title {
        justify-content: flex-start;
        height: auto;
         min-height: 30vh;
        padding: 3em 2em 0;
        background: #00162d;
        text-align: left;
    }
    .summary {
        padding: 0;
        margin: 0;
        background: center / cover fixed no-repeat #6e1111;
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/design45_5.jpg');
        font-size: 1rem;
        text-align: right;
    }
    .summary::before,.summary::after {
        content: '';
        display: block;
        height: 80px;
        background: center / cover transparent;
    }
    .summary::before {
        background-image: linear-gradient(175deg, #00162d 50%, #00162d00 50%);
    }
    .summary::after {
        background-image: linear-gradient(5deg, #00162d 50%, #00162d00 50%);
    }
    .summary > section {
        padding-right: 2em;
    }
}

@media (max-width:399px) {
    .text {
        font-size: 1.4rem;
    }
}

