@charset "UTF-8";

body {
    width: 100vw;
    margin: 0 auto;
}

main {
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
a,
p,
ul,
form {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    letter-spacing: 0.1vw;
    color: #1D1D1D;
}

p {
    font-feature-settings: "palt";
    letter-spacing: 0.1vw;
}

.noto-serif-jp {
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-weight: ;
    font-style: normal;
}

.roboto-condensed {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}


.header {
    width: 100%;
    height: 8vw;
    display: grid;
    grid-template-columns: 10% 25% 55% 10%;
    grid-template-rows: auto;
    z-index: 99;
    position: fixed;
    top: 0;
    background-color: transparent;
    /* 初期の色を透明に */
    transition: background-color 0.3s ease-in-out;
    /* 滑らかな変化 */
}

.header>a:first-of-type {
    width: 40%;
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin-top: 2vw;
}

.header>a:first-of-type>img {
    width: 100%;
}

.header>ul {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    width: 43%;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 10%;
    list-style: none;
    align-self: center;
    justify-self: end;
}

.header>ul>li {
    transition: background-color 0.2s ease-in-out;
}

.header>ul>li>a {
    text-decoration: none;
    font-size: 0.9vw;
    font-weight: 400;
    transition: background-color 0.2s ease-in-out;
}

.header>ul>li>a:hover {
    color: rgb(121, 121, 121);
}


/* headerの色を変える */
.header.change-color {
    background-color: #ffffff62;
}


/* footer */
footer {
    width: 100%;
    display: grid;
    grid-template-columns: 10% 25% 55% 10%;
    grid-template-rows: repeat(2, auto);
    background-color: #1D1D1D;
    height: 15vw;
    margin-bottom: -2vw;
}

footer>a:first-of-type {
    grid-column: 2;
    grid-row: 1;
    width: 40%;
    align-self: center;
}

footer>a:first-of-type>img {
    width: 100%;
}

footer>ul {
    grid-column: 3;
    grid-row: 1;
    width: 43%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 10%;
    list-style: none;
    align-self: center;
    justify-self: end;
}

footer>ul>li>a {
    font-size: 1vw;
    font-weight: 300;
    color: white;
}

footer>ul>li>a:hover {
    opacity: 90%;
}


footer>p {
    grid-column: 1/5;
    grid-row: 2;
    font-size: 0.9vw;
    color: white;
    text-align: center;
    width: 100%;
    height: 3vw;
    background-color: rgb(45, 45, 45);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
}

.top {
    width: 4vw;
    position: fixed;
    /* 画面に固定 */
    bottom: 10vw;
    right: 3vw;
    display: none;
    /* 初期状態では非表示 */
    z-index: 99;
    /* 他の要素の上に表示 */
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    /* ホバー時のトランジション */
}

.top:hover {
    opacity: 1;
}

.top>img {
    width: 100%;
}



@media (max-width: 430px) {
    .header {
        width: 100%;
        height: 8vw;
        display: grid;
        grid-template-columns: 5% 30% 60% 5%;
        grid-template-rows: auto;
        background-color: transparent;
        /* 初期の色を透明に */
        transition: background-color 0.3s ease-in-out;
        /* 滑らかな変化 */
    }

    .header>a:first-of-type {
        width: 70%;
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        margin-top: 4vw;
    }

    .header>a:first-of-type>img {
        width: 100%;
    }

    .header>ul {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 10%;
        list-style: none;
        align-self: center;
        justify-self: end;
    }

    .header>ul>li {
        transition: background-color 0.2s ease-in-out;
    }

    .header>ul>li>a {
        font-size: 2.6vw;
        font-weight: 400;
    }

    .header>ul>li>a:hover {
        color: rgb(121, 121, 121);
    }


    /* headerの色を変える */
    .header.change-color {
        background-color: #ffffff62;
    }


    /* footer */
    footer {
        width: 100%;
        display: grid;
        grid-template-columns: 5% 30% 60% 5%;
        grid-template-rows: repeat(2, auto);
        background-color: #1D1D1D;
        height: 30vw;
        margin-bottom: -5vw;
    }

    footer>a:first-of-type {
        width: 70%;
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        margin-top: 2vw;
    }

    footer>a:first-of-type>img {
        width: 100%;
    }

    footer>ul {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 10%;
        list-style: none;
        align-self: center;
        justify-self: end;
    }

    footer>ul>li>a {
        font-size: 2.6vw;
        font-weight: 300;
    }

    footer>ul>li>a:hover {
        opacity: 90%;
    }


    footer>p {
        grid-column: 2/4;
        grid-row: 2;
        font-size: 2vw;
        color: white;
        text-align: center;
        width: 100%;
        height: 8vw;
        background-color: rgb(45, 45, 45);
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: end;
    }

}