@charset "UTF-8";

/* ウェブフォントの読み込み */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
}

/* root */
:root {
    --color: #9ebfa8;
    --white: #fff;
    --black: #111;
}

/* 基本設定 */
body {
    background-color: var(--black);
    text-align: left;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    color: var(--white);
}

/* 横幅768px以上で読み込む */
@media screen and (min-width: 768px) {
    body {
        font-size: 13px;
    }
}

/* 横幅1024px以上で読み込む */
@media screen and (min-width: 1024px) {
    body {
        font-size: 14px;
    }
}

/* リンク */
a,
a:visited {
    color: var(--color);
    transition: .5s all;
}

a:hover,
a:visited:hover {
    color: var(--white);
}

header {
    margin: 3em auto 1.5em;
    min-height: 100vh;
    text-align: center;
}

.headerImage {
    display: block;
    margin: 0 auto 1.5em;
    width: 200px;
    height: auto;
}

/* 横幅1024px以上で読み込む */
@media screen and (min-width: 1024px) {
    .headerImage {
        width: 300px;
    }
}

header h1 {
    margin: 0.5em auto;
    font-size: 1.5em;
    animation: fadeIn 3s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

nav {
    margin: 0 auto;
    width: 200px;
}

/* 横幅1024px以上で読み込む */
@media screen and (min-width: 1024px) {
    nav {
        width: 300px;
    }
}
nav ul {
    list-style-type: none;
}

nav ul li {
    margin-bottom: 0.5em;
}

nav ul li a {
    display: block;
    width: 100%;
    background-color: var(--white);
    text-decoration: none;
    color: var(--black);
}

aside {
    margin: 1.5em auto;
}

main {
    margin: 3em auto;
    width: 80%;
    max-width: 600px;
}

section {
    margin-bottom: 5em;
}

.fadeIn {
    opacity: 0;
    transition: 2s;
}

.fadeIn.isShow {
    opacity: 1;
}

section h2 {
    position: relative;
    margin-bottom: 1.5em;
    font-size: 1.2em;
}

section h2::after {
    position: absolute;
    display: block;
    content: '';
    bottom: -0.5em;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--white);
}

section h3 {
    display: inline-block;
    min-width: 80px;
    padding: 0 1em;
    background-color: var(--white);
    text-align: center;
    font-size: 1em;
    color: var(--black);
}

section h4 {
    margin: 1em auto;
    padding-left: 0.5em;
    border-left: 5px solid var(--white);
    font-size: 1.2em;
}

section p {
    margin: 1em auto;
}

section span {
    border-bottom: 3px double var(--white);
}

section mark {
    padding: 0 0.5em;
    background-color: var(--color);
}

section strong {
    font-weight: bold;
    color: red;
}

section em {
    border-bottom: thin dashed red;
}

section .link {
    display: inline-block;
    margin-bottom: 0.5em;
    padding: 0 0.5em;
    border: thin solid var(--color);
    text-decoration: none;
}

section .link:hover{
    border: thin solid var(--white);
}

.right {
    text-align: right;
}

/* リスト */
section dl,
section ul {
    margin: 1em auto 1.5em;
}

section dl dd {
    position: relative;
    margin-bottom: 0.5em;
    padding-left: 25px;
}

section dl dd::before {
    position: absolute;
    display: block;
    content: '';
    top: 50%;
    left: 0;
    width: 20px;
    height: 1px;
    border-top: thin solid var(--white);
}

section ul {
    list-style-type: none;
}

section ul.yoko li {
    display: inline-block;
    margin-right: 1em;
}