@charset "UTF-8";

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&family=Noto+Serif+JP:wght@200..900&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
}

/* root */
:root {
    --color: #84ccad;
    --white: #ffffff;
    --black: #333;
    --ja: "Hina Mincho", serif;
}

/* 基本設定 */
body {
    background-color: var(--white);
    text-align: left;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 13px;
    font-family: "Noto Serif JP", serif;
    color: var(--black);
}

/* 横幅768px以上で読み込む */
@media screen and (min-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* 横幅1024px以上で読み込む */
@media screen and (min-width: 1024px) {
    body {
        font-size: 15px;
    }
}

/* リンク */
a,
a:visited {
    text-decoration: none;
    color: var(--color);
    transition: all .5s;
}

a:hover,
a:visited:hover {
    color: var(--white);
}

header {
    margin: 3em auto;
    text-align: center;
}

header img {
    display: block;
    margin: 0 auto 1em;
    width: 60px;
}

header h1 {
    font-family: var(--ja);
    font-size: 1.2em;
    color: var(--color);
}

strong {
    font-weight: bold;
    color: red;
}

mark {
    background-color: #efefef;
}

main {
    margin: 3em auto;
    width: 80%;
    max-width: 500px;
}

section {
    margin-bottom: 3em;
}

section h2 {
    display: inline-block;
    padding: 0.3em 1em;
    background-color: var(--color);
    font-size: 1em;
}

section ul,
section ol {
    margin: 1em auto;
    list-style-type: none;
}

section ol {
    counter-reset: item;
}

section ol li {
    margin-bottom: 0.5em;
}

section ol li::before {
    content: '';
    display: inline-block;
    counter-increment: item;
    content: counter(item) '';
    margin-right: 0.5em;
    width: 20px;
    background-color: var(--color);
    text-align: center;
    color: var(--white);
}

section .yoko li {
    display: inline-block;
    margin-right: 1em;
}

/* アーティクル */
article {
    margin: 3em auto;
    padding: 1.5em;
    width: 80%;
    max-width: 600px;
}

article h1 {
    margin-bottom: 1em;
    text-align: center;
    font-family: var(--ja);
}

.menu {
    margin: 2em auto;
    text-align: center;
}

span {
    position: relative;
    padding-left: 40px;
}

span::before {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: 5px;
    width: 30px;
    height: 30px;
    border-top: thin solid #888;
}