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

/* 共通設定 */

html {
    background: transparent;
    font-size: 62.5%;
}
body {
    min-height: 100vh;
    background: #ffffff;
    color: #5a656d;
    font-size: 1.3rem;
    font-family: 'メイリオ', 'ヒラギノ角ゴ', sans-serif;
    letter-spacing: 0.2em;
    line-height: 1.8;
}
a {
    text-decoration: none;
}
h2,h3,h4,#back {
    font-family: 'Lato', sans-serif;
}
h2 {
    display: flex;
    align-items: center;
    margin: 1em 0;
    font-size: 1.3em;
}
h2::before {
    content: '';
    display: block;
    margin-right: 1em;
    width: 1rem;
    height: 3em;
    background: linear-gradient(#d6f5f7 30%, #f7f5f3 30%);
}
h3 {
    display: inline-block;
    padding: .5rem 1rem;
    margin: 1em .5em;
    background: #f7f5f3;
    color: #3c4a53;
}
h3::first-letter {
    color: #5f8fa5;
}
h4 {
    margin: .5em 1em;
}
h4::before {
    content: '>>';
    margin-right: 1rem;
    color: #d0d6d8;
    letter-spacing: 0;
}
em {
    background: #dfdbd7;
    color: #3c4a53;
    font-style: normal;
}
input[type],textarea,button,select {
    border: solid .2px #cccccc;
    font-family: inherit;
    font-size: 90%;
    letter-spacing: inherit;
    line-height: inherit;
}
ul,ol,dl {
    list-style: none;
}


/* 段落、余白設定 */
p {
    padding: 0 2em;
}
section {
    margin: 2em 0;
}
section[id] {
    scroll-margin-top: 2em;
    scroll-snap-margin-top: 15vh;/* safari用 */
}
.space {
    margin: 2em;
}


/* 全体レイアウト */
div[class^="box"] {
    margin: 10vh auto;
    width: 75%;
}
.mainFrame {
    position: relative;
    padding: 10vh 0;
    margin-left: 25%;
     width: 75%;
     min-width: 800px;
     max-width: 1500px;
    background: rgba(255,255,255,.8);
    box-sizing: border-box;
}
.mainFrame a {
    color: #7dc3cf;
    transition: .3s;
}
.mainFrame a:hover {
    color: #48909c;
}
.yokonarabi {
        width:25%;
        float:left;
    }

/* 長編一覧 */
.longList {
    display: flex;
     flex-wrap: wrap;
}
.longList li {
    display: flex;
     align-items: stretch;
    margin: 2em 5% 2em 0;
    width: 30%;
    height: 100%;
    overflow: hidden;
}
.longList li:nth-of-type(3n) {
    margin: 2em 0;
}
.longList li a {
    display: flex;
     align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 12em;
    background-color: #f0eeea;
    transition: .3s;
}
.longTitle,.longInfo {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
}
.longTitle {
    padding: 2em 1em;
    color: #5a656d;
}
.longTitle span {
    padding: .5rem;
    width: auto;
    background: rgba(255,255,255,.8);
}
.longInfo {
    display: flex;
     justify-content: center;
     align-items: center;
    position: absolute;
     top: 100%;
    padding: 1em 2em;
    background: rgba(255,255,255,.5);
    color: #3c4a53;
    font-size: .9em;
}
.longList a:hover .longTitle {
    opacity: .4;
}
.longList a:hover .longInfo {
    position: absolute;
     top: 0;
}
.test {
  width: 700px;
  height: 350px;
  overflow: auto;
}

/* 画像設定 */
.box1 {
    background: url('../img/bg/bg_27.jpg') center / cover no-repeat;
}

.box2 {
    background: url('../img/design58.jpg') center 40% / 150% no-repeat;
}
/* ↓あらすじ無し用 */
.box3 {
    background: url('../img/design58_2.jpg') center / cover no-repeat;
}
.longList a.box3:hover .longTitle {
    opacity: 1;
}

.box4 {
    background: url('../img/design58_4.jpg') center / cover no-repeat;
}

.box5 {
    background: url('../img/design58_3.jpg') center / cover no-repeat;
}

img {
  pointer-events: none; 
}

img {
-webkit-touch-callout:none;
  -webkit-user-select:none;
  -moz-touch-callout:none;
  -moz-user-select:none;
  touch-callout:none;
  user-select:none;
}


/* フォーム関連 */
input[type="text"],textarea,input[type="submit"] {
    margin: .5em 0;
}
input[type="text"],textarea {
    padding: .2em;
    width: 50%;
}
input[type="submit"] {
    padding: .2em 1em;
    background: center / cover #d5fafc;
    background-image: repeating-linear-gradient(-35deg, transparent, transparent 1em, #ffffff 1em, #ffffff 1.1em), url('../img/design58_5.jpg');
    border: none;
}


/* リスト */
ul[class^="list"] {
    display: flex;
     flex-wrap: wrap;
}
.list li {
    margin: 0 .5em;
}
.list-slash li::before {
    content: '/';
    display: inline-block;
    margin: 0 1em;
    color: #cad6d6;
}
.list-slash li:first-of-type::before {
    content: '';
    margin-left: 0;
}

/* ヘッダー、ナビゲーション */
.mainHeader {
    display: flex;
     flex-direction: column;
    position: fixed;
     left: 0;
    width: 25%;
    height: 100vh;
    background: #d5fafc;
    background-image: repeating-linear-gradient(-35deg, transparent, transparent 1em, #ffffff 1em, #ffffff 1.1em), url('../img/design58_5.jpg');
    font-family: 'Lato', sans-serif;
}
.mainNav {
    position: relative;
    padding: 1em;
    margin-top: 35vh;
    height: 65vh;
    background: #f7f5f3;
    font-size: 1.2em;
    text-align: right;
}
.mainNav h1 {
    display: inline-block;
    padding: .5em 0 .5em 1em;
    font-size: 1.5em;
    border-left: #e3ecec solid 1rem;
}
.mainNav ul {
    position: relative;
    margin-top: 1em;
    z-index: 2;
}
.mainNav li {
    margin: 1rem 0;
}
.mainNav li a {
    padding: .5em 0 .5em 1em;
    background: rgba(247,245,243,.7);
    color: #5a656d;
    text-shadow: 0 0 1rem #515d5e;
    transition: .3s;
}
.mainNav li a:hover {
    color: #a1b7c7;
}


/* トップに戻るボタン */
#back {
    position: absolute;
     right: 5em;
     bottom: 5vh;
    text-align: center;
    line-height: 4rem;
    z-index: 2;
}
#back a {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    background: center / cover;
    background-image: repeating-linear-gradient(-35deg, transparent, transparent 1em, #ffffff 1em, #ffffff 1.1em), url('../img/design58_5.jpg');
    box-shadow: 0 0 4px #dfdbd7;
    color: #798586;
    cursor: pointer;
    font-size: 1rem;
}


/* フッター（削除OK） */
footer {
    display: none;
    margin: 5vh 0 5vh 30%;
    max-width: 1500px;
    color: #dfdbd7;
    font-size: 1rem;
    text-align: center;
}
footer a {
    color: #cad6d6;
}


/* PCでの「あらすじ▼」ボタン非表示用 */
@media screen and (min-width:1101px) {
    .mobile {
        display: none;
    }
}


/* モバイル用CSS */
@media screen and (max-width:1101px) {
    body {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 1em;
    }
    h3 {
        padding: .2em .5em;
    }
    p {
        padding: 0 1em;
    }
    section {
        margin: 1em 0;
    }
    .mainFrame {
        padding: 2em 0;
        margin: 0 auto;
        width: 100%;
        min-width: 250px;
        max-width: 500px;
    }
    div[class^="box"] {
        margin: 3em auto;
        width: 90%;
    }
    .longList {
        flex-direction: column;
        align-items: stretch;
    }
    .longList li {
        flex-direction: column;
        margin: 1em auto;
        width: 90%;
    }
    .longList li:nth-of-type(3n) {
        margin: 1em auto;
    }
    .longList li a {
        min-height: 7em;
    }
    .longList a:hover .longTitle {
        opacity: 1;
    }
    .longList a:hover .longInfo {
        position: absolute;
         top: 100%;
    }
    .click {
        padding: 1rem 3em .5rem;
        margin: auto;
        font-size: .8em;
    }
    .click::after {
        content: '▼';
        display: inline-block;
        width: 1em;
    }
    .active {
        color: #7dc3cf;
    }
    .active::after {
        content: '×';
        display: inline-block;
        width: 1em;
    }
    .active + a .longInfo {
        top: 0;
        background: rgba(255,255,255,.6);
    }
    .active + a .longTitle {
        opacity: .5;
    }
    .mainHeader {
        flex-direction: row-reverse;
        position: static;
        margin: 5em auto 0;
        width: 80%;
        max-width: 450px;
        height: 100%;
    }
    .mainHeader h1 {
        padding: 0;
        border: none;
        font-size: 1.1em;
    }
    .mainNav {
        padding: 2em 1em;
        margin: 0 40% 0 0;
        width: 60%;
        height: 100%;
        flex-grow: 1;
        font-size: 1em;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .mainNav li {
        margin: 0;
    }
    .mainNav li a {
        padding: .5em 0;
    }
    #back {
        position: fixed;
         right: 2em;
    }
    footer {
        margin: 2em auto 3em;
         width: 100%;
        min-width: 200px;
        max-width: 500px;
    }

    .box-page a img { display:block;}
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    