html {
    font-size: 16px;
}
@media screen and (max-width: 500px) {
    html {
        font-size: 14px;
    }
}
body {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    margin: 0;
    background-color: white;
    min-width: 350px;
    color: #2a2a2a;
}

main {
    min-height: 100vh;
}
header {
    position: relative;
}
.header-spacer {
    width: 100%;
    height: 5rem;
}
.header {
    position: fixed;
    top: 0;
    height: 5rem;
    width: 100%;
    background-color: white;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: inline-block;
    width: 225px;
    height: 45px;
    margin-left: 3rem;
    vertical-align: middle;
}
.header-logo > img {
    display: block;
    max-width: 100%;
    height: 45px;
} 
.header-side-toggle {
    display: none;
    cursor: pointer;
    margin: 0 2rem 0 auto;
    position: relative;
}
.header-side-toggle-open {
    visibility: visible;
    opacity: 1;

    position: absolute;
    top: 0;
    left: 0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}
.header-side-toggle-open>div {
    background-color: #2a2a2a;
    height: 4px;
}
.header-side-toggle-open:hover>div {
    background-color: #aaa;
}
.header-side-toggle-close {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    transition: 0.3s;

    position: relative;
}
.header-side-toggle-close div:first-of-type {
    position: absolute;
    top: 15px;
    width: 30px;
    height: 4px;
    background-color: #2a2a2a;
    transform: rotate(45deg);
}
.header-side-toggle-close div:last-of-type {
    position: absolute;
    top: 15px;
    width: 30px;
    height: 4px;
    background-color: #2a2a2a;
    transform: rotate(-45deg);
}
.header-side-toggle-close:hover>div {
    background-color: #aaa;
}
.header-menu {
    display: inline-block;
    vertical-align: middle;
}
.header-menu-frame {
    margin: 0.5rem 5vw 0 auto;
    width: fit-content;
    background-color: white;
}
@media screen and (max-width: 1000px) {
    .header-logo {
        margin-left: 1rem;
    }
    .header-menu-frame {
        margin-right: 0;
    }
}
.header-menu-nav {
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
nav a {
    text-decoration-line: none;
    padding-bottom: 0.5rem;
    margin-right: 2rem;
    border-bottom: 2pt solid white;
}
nav a.selected {
    border-bottom: 2pt solid #2a2a2a;
}
nav a:hover {
    border-bottom: 2pt solid gray;
}
.header-eng {
    font-family: "Jost";
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1pt;
    color: #2a2a2a;
}
.header-sub {
    font-size: 0.7rem;
    text-align: center;
    color: #636363;
}
.header-sns-icons {
    display: none;
    width: 100%;
    padding: 0 3rem 1rem 3rem;
    box-sizing: border-box;
}
.header-sns-icons-frame {
    border-top: 1px solid #2a2a2a;
    padding-top: 1.2rem;
    text-align: right;
}
.header-sns-icons a {
    text-decoration-line: none;
}
.header-sns-icons svg {
    margin: 0 0 0 0.8rem;
    width: 2rem;
    height: 2rem;
    color: #2a2a2a;
}
@media screen and (max-width: 900px) {
    .header-menu-frame {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        visibility: hidden;
        opacity: 0;
        position: fixed;
        top: 5rem;
        left: 0;
        width: 100%;
        height: calc(100vh - 5rem);
        height: calc(100dvh - 5rem);
        margin: 0;
    }
    .header-menu-nav {
        flex-direction: column;
        justify-content: left;
        row-gap: 1rem;
        width: 100%;
        box-sizing: border-box;
        height: fit-content; 
        padding: 2rem 3rem 0 3rem;
    }
    .header-menu-nav a {
        margin: 0;
    }
    .header-eng {
        font-size: 1.4rem;
    }
    .header-sub {
        font-size: 0.8rem;
        text-align: left;
    }
    .header-side-toggle {
        display: block;
    }
    .header-side-toggle-open {
        visibility: visible;
        opacity: 1;
    }
    .header-side-toggle-close {
        visibility: hidden;
        opacity: 0;
    }
    .header-sns-icons {
        display: block;
    }
}

footer {
    background-color: #242323;
    color: #dbdbdb;
    font-size: 0.7rem;
}
footer a {
    color: #dbdbdb;
    text-decoration-line: none;
}
footer a:hover {
    text-decoration-line: underline;
}
.footer-links-frame {
    display: flex;
    align-items: center;
}
.footer-links {
    margin: 0 auto 0 auto;
    padding-top: 5rem;
    padding-bottom: 7.8rem;
    display: flex;
    flex-direction: row;
}
.footer-links-item {
    display: flex;
    flex-direction: row;
    width: fit-content;
    height: 6.5rem;
}
.footer-links-item img {
    height: 6.5rem;
    width: 150px;
}
.footer-links-item ul {
    width: fit-content;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.footer-links-item ul li {
    white-space: nowrap;
}
.footer-links-item-divider {
    border-left: 1px solid #dbdbdb;
    margin: 0 0.5rem 0 4.5rem;
}
.footer-links-item-sumiki {
    margin: 0 0 0 2.5rem;
}
.footer-links-item-coral {
    margin: 0 0 0 1.5rem;
}
.linebreak {
    display: none;
}
@media screen and (max-width: 900px) {
    .footer-links {
        flex-direction: column;
    }
    .footer-links-item {
        margin-top: 2rem;
    }
    .footer-links-item ul li {
        white-space: initial;
    }
    .footer-links-item-divider {
        display: none;
    } 
    .footer-links-item-sumiki {
        margin: 0;
    }
    .footer-links-item-coral {
        margin: 0;
    }
    .footer-links-item img {
        align-self: center;
        height: calc(6.5rem/1.5);
        width: calc(150px/1.5);
        margin: 0 1rem 0 0rem;
    }
    .footer-links-item>ul>li>span {
        text-wrap: wrap;
    }
    .linebreak {
        display: block;
    }
}
.footer-sns-icons {
    display: flex;
    flex-direction: col;
    vertical-align: middle;
    justify-content: center;
    margin-bottom: 3rem;
}
.footer-sns-icons svg {
    margin: 0 1rem 0 1rem;
    fill: #dbdbdb;
    width: 2rem;
    height: 2rem;
}
.copyright {
    color: white;
    font-size: 0.6rem;
    text-align: center;
    padding-bottom: 1rem;
    letter-spacing: 0.05rem;
}
