@charset "UTF-8";

/* ウェブフォントの読み込み */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Noto+Serif+JP&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
}

/* root */
:root {
    --color: #466992;
    --white: #ffffff;
    --gray: #efefef;
    --black: #222;
}

/* 基本設定 */
body {
    background-color: var(--white);
    text-align: left;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-family: "EB Garamond", "Noto Serif JP", serif;
    color: var(--black);
}

body::before {
    position: fixed;
    display: block;
    content: '';
    top: 0;
    left: 0;
    z-index: -99;
    width: 100%;
    height: 100vh;
    background: url('img/back.jpeg') center/cover;
}

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

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

/* リンク */
a {
    text-decoration: none;
    color: var(--black);
    transition: .5s color;
}

a:visited {
    color: var(--black);
}

a:hover,
a:visited:hover {
    color: var(--color);
}

header {
    position: relative;
    text-align: center;
}

header::before {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--black);
}

header h1 {
    position: relative;
    z-index: 999;
    display: inline-block;
    margin: 5vh auto;
    padding: 0.2em 1em;
    background-color: var(--black);
    font-size: 1.3em;
    color: var(--white);
}

nav {
    position: sticky;
    top: 2%;
    left: 0;
    padding: 1em 0;
}

nav,
aside {
    width: 100%;
    text-align: center;
}

aside {
    margin: 1em auto;
}

nav ul li {
    display: inline-block;
    margin: 0 1em;
}

nav ul li a {
    color: var(--black);
}

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

section {
    margin: 3em auto;
}

section h2 {
    display: inline-block;
    margin-bottom: 0.5em;
    border-bottom: thin solid var(--black);
}

section p {
    margin: 1em auto;
}

section span {
    font-weight: bold;
}

section mark {
    background-color: var(--gray);
}

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

section em {
    border-bottom: thin dashed red;
}

section a {
    font-weight: bold;
    color: var(--color);
}

.box {
  width: 95%;                /* 横幅を200pxに指定 */
  height: 100px;               /* 横幅を200pxに指定 */
  border: none;      /* わかりやすくボーダーを引く */
  overflow-y: scroll;          /* 縦方向にスクロール可能にする */
}

/* リスト系 */
section dd {
    margin-left: 1em;
    margin-bottom: 0.5em;
}

section ul {
    margin: 1em auto;
    list-style-type: none;
}

section ul.yoko li {
    display: inline-block;
    margin-right: 0.5em;
}

li.listTitle {
    background-color: var(--gray);
    padding-right: 0.5em;
    padding-left: 0.5em;
}