@charset "UTF-8";

:root {
    --color-font-gray: #343a40;
    --video-wide: clamp(22.5rem, 10.455rem + 60.23vw, 55.625rem);
    font-size: 102%;
}

* {
    margin: 0;
    box-sizing: border-box;
}

img {
    width: 100%;
    height: auto;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}

a {
    text-decoration: none;
}

a:visited {
    color: #adb5bd;
    opacity: 0.2;
}


ul {
    font-size: 0.8rem;
}

body {
    line-height: 1.5;
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    grid-template-rows:
        [head]35px [video]auto [linearea]auto [foot]auto;
    row-gap: 20px;
    font-family: sans-serif;
    color: var(--color-font-gray);
    max-width: 640px;
    margin: 0 auto;
}

body>* {
    grid-column: 2 / -2;
}

.header {
    padding-top: 15px;
    grid-row: head;
}

.header-container {
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header img {
    max-width: 75px;
    height: auto;
}

.navbtn {
    padding: 0;
    outline: none;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-font-gray);
    font-size: 1rem;
}

.header ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    column-gap: 20px;
}

.footer a:visited {
    color: #adb5bd;
    opacity: 0.2;
}

/* YouTube */
.video-youtube {
    grid-column: 1/-1;
    grid-row: video;
    position: relative;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* アスペクト比16:9の場合 */
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    /* YouTubeの下に余白をつける */
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.video-youtube h2 {
    font-size: 0.8rem;
    color: #343a40;
}

/* line */
.line-area {
    grid-column: 2/-2;
    grid-row: linearea;
}

.line-area p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.line-button {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    text-decoration: none;
    width: 240px;
    margin: auto;
    padding: 10px 15px;
    font-weight: bold;
    box-shadow: 2px 2px 0px #343a40;
    background: #03c34d;
    color: #fff;
    border-radius: 10px;
    transition: 0.5s;
}

a.line-button:hover {

    background: #62beaa;
}


/* footer */
.footer {
    grid-column: 1 /-1;
    grid-row: foot;
    background-color: #00192e;
    color: #fff;

}

.footer ul {
    padding: 1rem 40px 1rem;
    display: flex;
    justify-content: space-evenly;
    list-style: none;
}

.footer ul a:visited {
    color: #788d98;
}


.logo-center {
    display: grid;
    justify-content: center;
    margin-bottom: 0.5rem;
    max-width: 120px;
    margin: 0 auto 1rem;
}

.fadeIn {
    animation-name: fadeInAnime;
    animation-duration: 5s;
    animation-fill-mode: both;
    opacity: 0;
}

@keyframes fadeInAnime {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.footer img {
    max-width: 25vw;

}

.footer p {
    padding: 0.5rem 20px;
    font-size: 0.7rem;
}