@charset "UTF-8";

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

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

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

:root {
    --main-color: #f73306;
    --sub-color: #d4aa00;
    --font: 'Kaisei Opti', serif;
    --light-color: #fff;
}

/* 基本設定 */
body {
    background-color: #fff;
    border-top: 10px solid var(--main-color);
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 12px;
    color: #000;
}

/* リンク */
a {
    font-weight: bold;
    color: var(--sub-color);
}

/* ヘッダー */
header {
    position: relative;
    margin: 20vh auto;
    padding: 1.5em 0;
    width: 120px;
    border: 3px solid var(--sub-color);
}

#headerbox {
    position: absolute;
    bottom: -50px;
    left: -80px;
    width: 200px;
}

/* ヘッダー画像 */
#headerbox img {
    width: 100%;
    height: auto;
    transform: rotate(-30deg);
}

/* 大見出し */
header h1 {
    position: relative;
    margin: 0 auto;
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    font-family: var(--font);
    color: var(--sub-color);
}

/* メインコンテンツ */
main {
    padding: 3em;
    background-color: var(--main-color);
    text-align: justify;
    word-break: break-all;
    color: var(--light-color);
}

/* セクション */
section {
    margin: 3em auto;
}

/* 小見出し */
section h2 {
    position: relative;
    padding-left: 20px;
    font-family: var(--font);
}

section h2::before {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: repeating-linear-gradient(90deg, var(--light-color) 0, var(--light-color) 3px, transparent 3px, transparent 6px);
}

/* セクション内リンク */
section a {
    color: var(--light-color);
}

/* リスト系 */
section ul,
section ol {
    margin-bottom: 1em;
}

section ul {
    margin-left: 0.5em;
    padding-left: 0.5em;
    list-style-type: none;
    border-left: thin solid var(--light-color);
}

section ol {
    list-style-position: inside;
    list-style-type: cjk-ideographic;
}

section ul.yoko li {
    display: inline-block;
}

/* アーティクル */
article {
    margin: 3em auto;
    width: 80%;
    max-width: 600px;
    text-align: justify;
    word-break: break-all;
}

article h1 {
    position: relative;
    padding-left: 25px;
}

article h1::before {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 15px;
    height: 20px;
    background: repeating-linear-gradient(90deg, var(--main-color) 0, var(--main-color) 3px, transparent 3px, transparent 6px);
}

/* メニュー */
.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.2em 0.5em;
    background-color: var(--sub-color);
    border: none;
    border-radius: 5px;
    color: var(--light-color);
}

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

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

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

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

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

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

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

    main {
        padding: 3em 30%;
    }
}