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

/* 基本設定 */
img {
  max-width: 100%;
  height: auto;
}
html {
    background: transparent;
    font-size: 62.5%;
}
body {
    min-height: 100vh;
    padding-top: 1em;
    background: #ffffff;
    color: #41515f;
    font-size: 1.3rem;
    font-family: 'メイリオ', 'ヒラギノ角ゴ', sans-serif;
    letter-spacing: 0.2em;
    line-height: 1.8;
}
a {
    text-decoration: none;
}
h2,h3,h4,.mainNav {
    font-family: 'Carrois Gothic SC', sans-serif;
}
h2 {
    display: flex;
     flex-direction: column;
     align-items: center;
    margin: 2rem 0 3rem;
    font-size: 1.2em;
}
h2::after {
    content: '';
    flex-grow: 1;
    display: block;
    width: 10%;
    height: 3px;
    margin-top: 1rem;
    background: url('../img/ygm2.png') center / cover #fff;
    box-sizing: border-box;
}
h3 {
    display: inline-block;
    padding: 0 1.5rem;
    margin: 2rem 0 1rem;
    background: #f7f5f8;
    border-radius: 2px;
    color: #526480;
    font-size: 1.1em;
    font-weight: normal;
    line-height: 3rem;
}
.nihongo {
    font-size: .9em;
}
h4 {
    display: flex;
     align-items: center;
    margin: .5em 1em;
    color: #596477;
    font-size: 1.1em;
}
h4::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 3px;
    margin-left: 0;
    margin-right: 1rem;
    background: #ebed80;
    box-sizing: border-box;
}
ul,ol,dl {
    list-style: none;
}
em {
    background: #ebed80;
    font-style: normal;
}
strong {
    border-bottom: #ebed80 dashed 2px;

}
.update {
    font-size: 1rem;
    opacity: 0.4;
}
.h4 {
    font-size: 1em;
}
.x {
    max-width: 13px;
    height: auto;
}
/* 段落 */
p {
    padding: 0 1em 0 0;
}
section {
    margin: 5vh 0;
}
.a {
    text-indent: 1em;
}
/* 全体の余白、基本リンク色など */
.pageWrap {
    margin: 15vh auto 15vh 25%;
}
.contentsWrap {
    width: 75%;
    min-width: 600px;
    margin: auto;
}
.pageWrap a {
    color: #a8a9b7;
    transition: .3s;
}
.pageWrap a:hover {
    opacity: 0.6;
}
.box {
    padding: 5vh;
    margin: 10vh 0;
    background: #ffffff;
    border: #f7f5f8 solid 2px;
    border-radius: 3px;
    box-shadow: 5px 5px 1em #f7f5f8;
    box-sizing: border-box;
}
.space {
    margin: 5vh 1em;
}
a h1 {
    color: #41515f;
}
a h1:hover {
    opacity: 0.6;
}
ul {
  padding-left: 0;
}
li {
  list-style: none;
  text-indent: 0;
  padding-left: 1em;
}


/* フォーム系 */

input[type],textarea,button,select {
    border: none;
    color: #41515f;
    font-family: inherit;
    font-size: .9em;
    letter-spacing: .1em;
    line-height: inherit;
}
form .enter {
    padding: .2em;
    margin: .5em 0;
    border: #cccccc solid 1px;
}
form .button {
    padding: .2em 1em;
    margin-right: 1em;
    background: url('../img/ygm3.png') center / 300% #fff;
    color: #3b4853;
}



/* illust */
.wrap1 {
    padding: 10vh 2em;
    margin: auto;
     width: 60%;
     min-width: 650px;
     max-width: 1200px;
    background: #ffffff;
    box-sizing: border-box;
}
.album {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding-left: calc(10% / 6);/* 下記liの右マージンと同じ幅の余白 */
    margin: 5vh auto 10vh;
    background: #ffffff;
    border-radius: 1em;
}
.album li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2em calc(10% / 6) 2em 0;
    width: 15%;
    height: 15%;
    border-radius: 1rem;
    cursor: zoom-in;
    overflow: hidden;
}
.illustTitle {
    display: none;
}
.thumb {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    height: 20vh;
}
.thumb img {
    width: auto;
    height: 100%;
    background: #ccc;
    transform: scale(2);
}
.link {
    display: none;
}
/* 拡大表示時スタイル */
li.active {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: fixed;
     top: 0;
     left: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background: rgba(0,0,0,.8);
    border-radius: 0;
    box-sizing: border-box;
    cursor: auto;
    z-index: 3;
}
li.active .thumb::before {
    content: '閉じる×';
    display: block;
    position: absolute;
     top: 2em;
     right: 10%;
    padding: 1em 2em;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2em;
    z-index: 2;
}
.active .illustTitle {
    order: 1;
    display: block;
    position: absolute;
     bottom: 0;
    padding: 2em 1em;
    width: 100%;
    background: transparent;
    text-align: center;
    color: #dbdbdb;
}
.active .thumb {
    justify-content: center;
    align-items: center;
    flex-basis: 70%;
    height: 100%;
}
.active .thumb img {
    height: auto;
    max-height: 80vh;
    width: auto;
    max-width: 90vw;
    transform: scale(1);
    animation: fadeIn .8s;
}
@keyframes fadeIn {
    from {
        opacity: .5;
    }
    to {
        opacity: 1;
    }
}
/* 戻る/次へリンク */
.active .link {
    flex-grow: 1;
    visibility: visible;
    display: block;
    padding: 15% 5%;
    background: url('../img/album.svg') center / auto no-repeat;
    cursor: pointer;
}
.active .prev {
    transform: rotate(180deg);
}
.album li:first-of-type .prev {
    visibility: hidden;
}
.album li:last-of-type .next {
    visibility: hidden;
}





/* 長編リスト */
.longList {
    display: flex;
     flex-wrap: wrap;
}


/* ＊＊＊＊＊長編画像＊＊＊＊＊ */


.longList li {
    display: flex;
    position: relative;
    margin: 1em 0 1em 0;
    width: 50%;
}
.longList li::before {
    content: '';
    flex-shrink: 0;
    width: 20%;
    min-height: 10vh;
    background-color: #dbe0e9;
    border-radius: 3px;
}
.longInfo {
    flex-grow: 1;
    padding: 1em;
}
.title a {
    margin-top: 2em;
    color: #666666;
}
.title a::before {
    content: '「';
}
.title a::after {
    content: '」';
}
.longInfo > .summary {
    padding: .5em 1em;
    color: #999999;
    font-size: 1rem;
}


/* 短編リスト */
.shortList {
    columns: 2;
}
.shortList li {
    margin: .5em 0;
}
.caution {
    margin-left: 1em;
    color: #41515f;
}
.shortList li a {
    border-bottom: #f0dde9 solid 2px;
    color: #666666;
}
.shortList li a:visited {
    border-bottom: #f8f3f6 solid 2px;
}


/* 小説本文余白 */
.textWrap {
    width: 50%;
    max-width: 900px;
    min-width: 600px;
    margin: 10vh auto;
    letter-spacing: 3px;
    line-height: 220%;
}

/* ルビ */
.ruby {
    display: inline-block;
    position: relative;
}
.ruby > * {
    display: inline-block;
}
.yomigana {
    position: absolute;
     top: -3px;
     left: calc(50% - 1.5px);
    width: 100%;
    height: 1.5em;
    font-size: .8rem;
    letter-spacing: 0;
    line-height: 1em;
    overflow-wrap: normal;
    text-align: center;
    transform: translateX(-50%) scale(0.8);
    word-break: normal;
}
/* Firefox用 */
@-moz-document url-prefix() {
	.yomigana {
        transform: translateX(-50%);
    }
}

/* あとがき */
.atogaki {
    padding: 1em;
    background: #f7f5f8;
    font-size: .9em;
}

/* 小説ページのナビゲーション */
.novelNav {
    margin: 10vh 0;
    font-family: 'Carrois Gothic SC', sans-serif;
}
.novelNav ul {
    display: flex;
     justify-content: center;
}
.novelNav li {
    margin: 0 1em;
}
.novelNav a {
    color: #999999;
    transition: .3s;
}
.novelNav a:hover {
    color: #cccccc;
}



/* メールフォーム */
.mailForm .enter {
    width: 50%;
    min-width: 400px;
}
textarea.enter {
    height: 6em;
}


/* スラッシュ付きリスト */
.list-slash {
    display: flex;
     flex-wrap: wrap;
}
.list-slash li::before {
    content: '/';
    margin: 1em;
    color: #a2a7b1;
}
.list-slash li:first-of-type::before {
    content: none;
}



/* ヘッダー */
.mainHeader {
    display: flex;
     flex-direction: column;
     justify-content: space-evenly;
     align-items: center;
    position: fixed;
     top: 10vh;
     left: 0;
    width: 20%;
    min-width: 250px;
    height: 80vh;
    margin: 0 5%;
    text-align: center;
    background: center / cover #fff;
    background-image: linear-gradient(rgba(247,245,248,.5), rgba(247,245,248,.5)), url('../img/ygm.png');
    border-radius: 3px;
}


h1 {
    margin: 0 .5em;
    font-size: 1.5em;
    text-align: center;
    text-shadow: 0 0 1rem #fff;
}
.hitokoto {
    margin-bottom: 3em;
    font-size: 1rem;
}

/* ナビゲーション */
.mainNav {
    border-radius: 3px;
}
.mainNav ul {
    display: flex;
     flex-direction: column;
     justify-content: center;
    margin: 2em 0;
}
.mainNav li {
    padding: 0 1em;
    margin: .2em 0;
}
.mainNav li a {
    display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
    padding: .2em .5em;
    color: #596477;
    font-size: 1em;
    transition: .3s;
}
.mainNav li a:hover {
    color: #a2a7b1;
}


/* トップに戻るリンク */
.backTop {
    position: fixed;
     bottom: 2em;
     right: 5%;
}
#back {
    display: inline-block;
    width: 3em;
    height: 3em;
    background: url('../img/ygm3.png') center / 400% #fff;
    border-radius: 2px;
    color: #a2a7b1;
    cursor: pointer;
    line-height: 3em;
    text-align: center;
    transition: .3s;
}



/* フッター */
.mainFooter {
    margin: 15vh 0 0;
    font-size: 1rem;
    text-align: center;
}
.mainFooter a {
    color: #ebed80;
}


/* その他 */
.center {
    text-align: center;
}
.right {
    text-align: right;
}


/* 画面幅1001px以下用CSS */

@media (max-width:1001px) {
    body {
        font-size: 1.1rem;
    }
    h3, h4 {
        font-size: 1em;
    }
    section {
        margin: 2em 0;
    }
    .space {
        margin: 1em;
    }
    .contents {
        margin: 2em 1em;
        min-width: 200px;
    }
    .box {
        min-width: 200px;
        padding: 2em;
        box-shadow: 1px 1px 1rem #f7f5f8;
    }
    .pageWrap {
        margin: 0 0 5vh;
    }
    .contentsWrap {
        width: 90%;
        min-width: 200px;
        max-width: 500px;
        padding: 0;
        margin: 3em auto;
        
    }
    .nameChange .enter {
        width: 8em;
        min-width: 8em;
    }
    .longList {
        flex-direction: column;
        align-items: center;
        padding: 1em 0;
    }
    .longList li {
        width: 100%;
        margin: .5em 0;
    }
    .shortList {
        columns: 1;
    }
    .textWrap {
        width: 90%;
        max-width: 500px;
        min-width: 200px;
    }
    .mailForm .enter {
        width: 90%;
        min-width: 200px;
    }
    textarea.enter {
        height: 6em;
    }
    .mainHeader {
        position: static;
        width: 80%;
        max-width: 400px;
        height: auto;
        margin: 5em auto 5em;
        background: #fff;
    }
    /* ↓トップの四角 */
    .headerContents::before {
        content: '';
        display: block;
        width: 300px;
        height: 300px;
        margin: auto;
        background: center / contain no-repeat #fff;
        background-image: url('../img/top.png');
        border-radius: 4px;
    }
    .topimage {
        display: none;
    }
    .headerContents {
        display: flex;
         flex-direction: column;
        min-width: 180px;
        padding: 1em;
        background: rgba(255,255,255,.9);
        z-index: 2;
    }
    .hitokoto {
        margin-bottom: 2em;
        color: #999999;
    }
    .mainNav {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: auto;
        padding: 2em 0 0;
    }
    .mainNav ul {
        display: flex;
         flex-direction: row;
         flex-wrap: wrap;
        margin: 1em 0;
    }
    .mainNav li {
        padding: 0;
        margin: .2em;
    }
    .mainHeader h1 {
        margin-top: 0;
        font-size: 1.2em;
    }
    .mainNav li a {
        font-size: 1em;
        line-height: 1.5;
        padding-right: 1.5em;
    }
    .mainNav li:last-child a{
        padding-right: 0;
    }
    .mainNav li a::after {
        content: none;
    }
    .siteInfo {
        width: 100%;
        margin-top: 2em;
    }
    .backTop {
        bottom: 2em;
        right: 1em;
    }
    .hidden_mobile {
        display: none;
    }
}
