@charset "UTF-8";

/* Template & Designed by Towako. */
/* https://ninawas.me */

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&family=Noto+Serif+JP&family=Water+Brush&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
    font-family: 'Hina Mincho', serif;
}

/* 基本設定 */
body {
    background-color: #fff;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 13px;
    color: #000;
}

/* リンク */
a {
    font-weight: bold;
    color: #c9171e;
}

/* コンテンツ */
#wrap {
    overflow-x: scroll;
    display: flex;
}

/* ヘッダー */
header {
    position: relative;
    background: url('image.png') center/cover;
}

header,
section {
    min-height: 85vh;
    flex: 0 0 95vw;
}

/* 大見出し */
header h1 {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 60%;
    max-width: 400px;
    background-color: #fff;
    border: 3px solid #000;
    border-radius: 8px;
    font-family: 'Water Brush', 'Hina Mincho', serif;
    font-weight: bold;
}

/* スクロールサイン */
header #scroll {
    position: absolute;
    bottom: 3%;
    right: 0;
    padding-left: 1em;
    padding-right: 0.5em;
    background-color: #fff;
    border-bottom: 3px solid #000;
    border-top-left-radius: 20px;
    text-align: right;
}

/* セクション */
section {
    text-align: justify;
    word-break: break-all;
}

/* アーティクル */
article {
    position: relative;
    margin: 0 auto;
    padding: 3em;
    height: 100%;
    width: 95%;
    border-left: thin solid #000;
}

/* 小見出し */
article h2 {
    position: relative;
}

article h2::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 1px;
    border-top: thin solid #000;
}

article h2 span {
    padding-right: 0.5em;
    background-color: #fff;
}

/* コンテンツ内部 */
article p,
article ul,
article ol {
    margin: 1em auto;
}

article ul,
article ol {
    list-style-position: inside;
}

.yoko li {
    display: inline;
}

.border {
    margin-right: 0.3em;
    padding-right: 0.3em;
    border-right: 3px solid #c9171e;
}

strong {
    font-weight: bold;
    color: red;
}

mark {
    background: linear-gradient(#fff 0, #fff 30%, #efefef 30%, #efefef 100%);
}

.number {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.page {
    margin: 3em auto;
    width: 80%;
    max-width: 600px;
}

.page h1 {
    margin-bottom: 0.5em;
}

.page p {
    text-align: justify;
    word-break: break-all;
    font-family: 'Noto Serif JP', serif;
}

/* メニュー */
.menu {
    text-align: center;
    margin: 1em auto 1.5em;
}

.menu li {
    display: inline-block;
    margin: 0 0.5em;
}

.menu li a {
    font-weight: bold;
}

/* フォーム系 */
textarea,
input[type] {
    -webkit-appearance: none;
    padding: 0.3em 0.5em;
    background: #fff;
    border: thin solid #000;
    border-radius: 0;
    color: #000;
}

textarea {
    width: 200px;
    height: 70px;
}

input[type=text] {
    width: 100px;
}

input[type=submit] {
    width: auto;
}

/* 横幅768px以上で読み込む */
@media screen and (min-width:768px) {

    /* フォントサイズ */
    body {
        font-size: 14px;
    }

    #scroll {
        width: 30%;
    }
}

/* 横幅1024px以上で読み込む */
@media screen and (min-width:1024px) {

    /* フォントサイズ */
    body {
        font-size: 15px;
    }

    header,
    section {
        min-height: 95vh;
    }

}

/* 横幅1440px以上で読み込む */
@media screen and (min-width:1440px) {

    /* フォントサイズ */
    body {
        font-size: 16px;
    }

}