* {
    margin: 0;
    padding: 0;
}

ol, ul {
    padding-left: 2em;
}

p {
    margin: 1em 0;
}

html, body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url(./img/forest-438432_1920.jpg);
    background-size: cover;
    background-attachment: fixed;
    color: #222;
    font-family: "Noto Sans JP";
}

body:before {
    content: "";
    position: fixed;
    display: block;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1000;
}

body.home::before {
    background-color: rgba(255, 255, 255, 0.5);
}

body.home::before {
    animation: 2s ease slidein;
}

@keyframes slidein {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

body>header {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 1);
    z-index: 1;
}

body>header>h1 {
    /* padding: 8px 16px; */
    margin: 8px;
}

body>header>h1 img {
    vertical-align: bottom;
}


body>header>nav {
    flex-grow: 1;
    margin: 0;
    padding: 0;
}

ul.global-nav {
    font-size: smaller;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style-type: none;
    height: 100%;
}

ul.global-nav li {
    padding: 0.5em 0.75em;
}

.hero {
    display: flex;
    font-weight: bold;
    padding: 200px 1em;
    font-size: 1.5rem;
    justify-content: center;
    line-height: 1.5;
}

.message {
    text-align: center;
    margin: 0em auto;
    max-width: 48em;
    padding: 1em;
}

.message h2 {
    text-align: center;
    border-bottom: none;
}
.message h2::before,
.message h2::after
{
    content: " ― ";
}


/* .message h2::before, .message h2::after {
    content: "";
    display: inline-block;
    height: 1px;
    background-color: black;
    width: 3em;
    vertical-align: middle;
    margin: 0 1em;
} */

main {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 0.5em;
}

span {
    display: inline-block;
}

.message p {
    margin: 1em 0;
}

section {
    margin: 1em 0;
}

nav a {
    color: black;
    text-decoration: none;
    position: relative;
}

nav a:before {
    content: "";
    display: block;
    position: absolute;
    background-color: #393;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s;
}

nav a:hover::before, nav a:active::before {
    transform: scaleX(1);
}

main a {
    color: black;
    text-decoration: underline;
}

main h1::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f06c';
    margin-right: 0.5em;
    color: #171;
}

img.insert {
    margin: 1em;
    border-radius: 8px;
    box-shadow: 0 0 4px white;
    width: 40%;
}

main h2 {
    margin-top: 1em;
    margin-bottom: 1em;
}

ul, ol {
    display: block;
    margin: 0 auto;
}

main li {
    line-height: 2;
}

dl {
    display: table;
}

dl>div {
    display: table-row;
    line-height: 2;
}

dt {
    font-weight: bold;
    padding-right: 1em;
    min-width: 6em;
    text-align: right;
}

dt, dd {
    display: table-cell;
}

main h2 {
    text-align: center;
    border-bottom: 1px solid black;
}

footer {
    font-size: small;
    text-align: center;
    padding: 2em 1em;
    border-top: 1px solid black;
}
/* 
main {
    padding: 0 1em;
} */

#page_top {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 8px;
    bottom: 8px;
    border: 4px solid black;
    border-radius: 50%;
    opacity: 0.6;
}

#page_top a {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
}

#page_top a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f0d8';
    font-size: 25px;
    color: black;
    position: absolute;
    width: 25px;
    height: 25px;
    top: -15px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}

#page_top a::after {
    content: 'TOP';
    font-size: 13px;
    color: black;
    position: absolute;
    top: 25px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}

.link-button {
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: 80%;
    text-align: center;
    color: #131;
    font-weight: bold;
    border: 2px solid #363;
    border-radius: 0.5em;
    padding: 0.5em 1em;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.5s;
}
.link-button:hover {
    color: white;
    background-color: #363;
}

.youtube {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.youtube iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.gallery>figure {
    margin: 1em;
}
.gallery>figure>img {
    width: 320px;
    height: 168px;
    /* max-width: 320px; */
}
.gallery>figure>figcaption {
    text-align: center;
}
