/* Template & Designed by Orihashi Ren */
/* http://kerry.php.xdomain.jp/ */

@charset "UTF-8";
@import url('https://fonts.googleapis.com/css?family=Merriweather|Noto+Sans+JP|Noto+Serif+JP|Roboto&display=swap');

/* -------------------------------------------------------------------------------- */
/* 基礎設定                                                                     */
/* -------------------------------------------------------------------------------- */


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    text-align: justify;
    word-break: break-word;
    line-height: 1.7;
    letter-spacing: 0.1em;
    background-color: #fff;
    font-size: 13px;
    color: #000;
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
}

body::before {
    position: fixed;
    display: block;
    content: '';
    top: 0;
    left: 0;
    z-index: -10000;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)),url('../img/bg.jpg') center/cover;
}

a {
    outline: none;
    color: #333333;
}

h3 {
    font-size: 1.5rem;
    margin: 2rem 0rem 1rem;
}

h4 {
    text-align: left;
    font-size: 1.2rem;
    margin: 2rem 0rem 1rem;
}

h5 {
    font-size: 1rem;
    margin: 2rem 0rem 1rem;
}

p {
    text-align: left;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

hr {
    border: 0;
    border-bottom: solid 2px;
    margin: 3rem 0rem;
    border-bottom-color: #000;
}

/* コード */
code {
    border: none;
    font-family: "Courier New", monospace !important;
    font-size: 0.9rem;
    margin: 0 0.25rem;
    padding: 0.25rem 0.65rem;
    background: rgba(220, 220, 220, 0.25);
    border-color: #eeeeee;
}
pre {
    width :100% !important;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    text-align: left;
    font-family: "Courier New", monospace !important;
    font-size: 0.9rem;
    margin: 1rem 0 1rem 0;
    -ms-overflow-style: none !important;    /* IE, Edge 対応 */
    scrollbar-width: none !important;       /* Firefox 対応 */
}
pre code {
    width: 100% !important;
    overflow-x: auto;
    display: block;
    line-height: 1.75;
    padding: 1rem 1.5rem;
    box-sizing: border-box !important;
}
pre::-webkit-scrollbar{  /* Chrome, Safari 対応 */
    display: none !important;
}

/* -------------------------------------------------------------------------------- */
/* 小説設定                                                                     */
/* -------------------------------------------------------------------------------- */


main {
    text-align: center;
    margin: 3rem auto;
    padding: 1.5rem;
    max-width: 750px;
}

@media (min-width: 768px) {
    main {
        padding: 3rem;
    }
}

.style {
    margin-top: 0rem;
    width: 100%;
    overflow: hidden;
}

/* pagination */
ul {
    list-style: none;
}

ul.pagination {
    display: inline-block;
    text-align: center !important;
    margin: 1rem auto;
    padding: .3rem .5rem;
    line-height: 1.9rem;
    transition: all .5s
}

ul.pagination > li {
    margin: 0 20px 0 0;
    float: left;
}

ul.pagination > li a {
    border-bottom: none;
    color: ;
}

ul.pagination > li:last-child {
    margin: 0 0;
}

.lnr-chevron-left,
.lnr-chevron-right {
    display: inline-block;
    fill: currentColor;
    vertical-align: -0.05em;
    fill: ;
    width: 14px;
    height: 30px;
}

.contents ul.pagination > li a,
.contents .lnr-chevron-left,
.contents .lnr-chevron-right {
    color:  !important;
    fill: ;
}

/* ruby */
[data-ruby] {
    display: inline-block;
    position: relative;
}

[data-ruby]::before {
    content: attr(data-ruby);
    display: inline-block;
    position: absolute;
    top: -.5rem;
    right: 0;
    left: -4px;
    margin-left: 0.25em;
    font-size: 0.5em;
    text-align: center;
    letter-spacing: 0.25em;
    white-space: nowrap;
    font-family: 'Roboto', 'Noto Sans JP', sans-serif !important;
}

[data-ruby] rt {
    display: none;
}

/* -------------------------------------------------------------------------------- */
/* 色変更                                                                     */
/* -------------------------------------------------------------------------------- */

.black main {
    background-color: rgba(0,0,0,.5);
    color: #c4c4c4;
}
.black h4 {
    border-bottom-color: #c4c4c4;
}
.black a {
    color: #c4c4c4;
}
.black #honbun_prev,
.black #honbun_next {
    color: #fff;
}

.white main {
    background-color: rgba(255,255,255,.6);
    color: #333333;
}


/* ******************************************************************************** */
/*  I'll be NET Novel CSS
/*  作成：I'll be NET（http://illbenet.jp/）
/* ******************************************************************************** */

/* -------------------------------------------------------------------------------- */
/* 各種切り替えボタン
/* -------------------------------------------------------------------------------- */
#White,
#Black,
#switchTateyoko,
    {
    margin-top: 0px;
    margin-bottom: 10px;
    float: left;
    font-size: 1em;
}

#switchFont,
#switchFontSize {
    margin-top: 0px;
    margin-bottom: 10px;
    float: left;
    font-size: 0.8em;
}

input#White,
input#Black,
#switchTateyoko li,
#switchFont li,
#switchFontSize li {
    list-style: none;
    float: left;
    text-align: center;
    text-decoration: none;
    padding: 0 10px;
    border: 1px solid #eeeeee;
    color: #999;
    display: block;
    height: 30px;
    line-height: 30px;
    cursor: pointer;
    background-color: #f5f5f5;
    -webkit-appearance: none;
}

input#White.current,
input#Black.current,
#switchTateyoko li.current,
#switchFont li.current,
#switchFontSize li.current,
#White:hover,
#Black:hover,
#switchTateyoko li:hover,
#switchFont li:hover,
#switchFontSize li:hover {
    background-color: #e2e2e2;
}

input#White.current,
input#Black.current,
#switchTateyoko li.current,
#switchFont li.current,
#switchFontSize li.current,
#White:hover,
#Black:hover,
#switchTateyoko li:hover,
#switchFont li:hover,
#switchFontSize li:hover {
    color: #222;
}

#White {
    margin-left: 10px;
    margin-right: 0rem;
}

#Black {
    margin-left: 0rem;
}

#White,
#switchTateyoko li:first-child,
#switchFont li:first-child,
#switchFontSize li:first-child {
    border-radius: 0px 0 0 0px;
}

#Black,
#switchTateyoko li:last-child,
#switchFont li:last-child,
#switchFontSize li:last-child {
    border-left: 0;
    border-radius: 0 0px 0px 0;
    margin-right: 10px;
}

/* -------------------------------------------------------------------------------- */
/* 小説ブロック                                                                     */
/* -------------------------------------------------------------------------------- */
.novel {
    clear: both;
}

#honbun {
    padding: 0px 0;
}

#honbun {
    /*小説部分のフォントサイズ*/
    font-size: 1.0em;
    /*小説部分の行間*/
    line-height: 2;
    /*小説部分の文字間隔*/
    letter-spacing: 0.025em;
}

#honbun > p {
    /*小説部分直下の階層の段落タグ タグ間の余白*/
    /*小説部分直下の階層のpタグ間に間隔を作りたくない場合はmargin-topに0を指定してください*/
    margin-top: 2em;
}

#honbun > p:first-child {
    /*小説部分直下の階層の段落タグ 先頭の要素*/
    margin-top: 0;
}

#honbun > a {
    color: #85B2F5;
}

@media (max-width: 980px) {
    #honbun {
        margin: 0;
        width: 100%;
        font-size: 14px;
    }
}

/* -------------------------------------------------------------------------------- */
/* 本文用クラス                                                                     */
/* -------------------------------------------------------------------------------- */
.small {
    font-size: .9em !important;
}

.middle {
    font-size: 1.0em !important;
}

.large {
    font-size: 1.1em !important;
}

/* フォントの種類 */
.serif {
    font-family: ‘ヒラギノ明朝 Pro W3’, ‘HiraMinPro-W3’, ‘游明朝’, ‘Yu Mincho’, ‘Noto Serif JP’, serif !important;
}

.gothic {
    font-family: ‘Noto Sans JP’, sans-serif !important;
}

.yokogaki {
    margin: 0 0;
    width: 100%;
    writing-mode: horizontal-tb;
    writing-mode: lrl-tb;
    /writing-mode: rl-tb;
    _writing-mode: rl-tb;
    -ms-writing-mode: rl-tb;
    /* IE用      */
    -moz-writing-mode: horizontal-tb;
    /* firefox用 */
    -webkit-writing-mode: horizontal-tb;
    /* chrome用  */
    -o-writing-mode: horizontal-tb;
    /* opera用   */
}
.yokogaki #honbun_prev,
.yokogaki #honbun_next {
    display: none;
}


.novel {
    overflow: hidden;
    position: relative;
}
.tategaki {
    height: 70vh;
    overflow: auto;
    margin: 0;
    margin-left: rem;
    margin-bottom: 40px 0px;
    width: 100%;
    writing-mode: tb-rl;
    writing-mode: vertical-rl;
    /writing-mode: tb-rl;
    _writing-mode: tb-rl;
    -ms-writing-mode: tb-rl;
    /* IE用      */
    -moz-writing-mode: vertical-rl;
    /* firefox用 */
    -webkit-writing-mode: vertical-rl;
    /* chrome用  */
    -o-writing-mode: vertical-rl;
    /* opera用   */
}

.tategaki > p {
    margin-top: 2em;
    padding-bottom: 10px;
}
.tategaki #honbun_prev,
.tategaki #honbun_next {
    position: absolute;
    top: calc(50% - 50px);
    width: 50px;
    height: 50px;
    text-align: center;
    border: 0;
    opacity: 0.5;
    color: #222;
    background: transparent;
    font-size: 30px;
    writing-mode: horizontal-tb;
    writing-mode: lrl-tb;
    /writing-mode: rl-tb;
    _writing-mode: rl-tb;
    -ms-writing-mode: rl-tb;
    /* IE用      */
    -moz-writing-mode: horizontal-tb;
    /* firefox用 */
    -webkit-writing-mode: horizontal-tb;
    /* chrome用  */
    -o-writing-mode: horizontal-tb;
    /* opera用   */
}
.tategaki #honbun_prev {
    right: 0;
    margin-right: -1.5rem;
}
.tategaki #honbun_next {
    left: 0;
    margin-left: -1.5rem;
}
.tategaki #honbun_prev:hover,
.tategaki #honbun_next:hover {
    opacity: 1;
    cursor: pointer;
}
.opacity03 {
    opacity: 0.2;
}
@media screen and (max-width: 980px) {
    #honbun_prev,
    #honbun_next {
        display: none;
    }
}

.tategaki [data-ruby]::before {
    top: 0rem;
    right: -.4rem;
}
