@font-face {
    font-family: '4Regular';
    src: url(../fonts/Freesentation-4Regular.ttf) format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: '5Medium';
    src: url(../fonts/Freesentation-5Medium.ttf) format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: '6SemiBold';
    src: url(../fonts/Freesentation-6SemiBold.ttf) format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: '7Bold';
    src: url(../fonts/Freesentation-7Bold.ttf) format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: '8ExtraBold';
    src: url(../fonts/Freesentation-8ExtraBold.ttf) format('woff2');
    font-weight: 400;
    font-style: normal;
}

#wrap  * {
    font-family: "4Regular";
}
header {
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    padding: 0 1.5rem;
    z-index: 7777;
    background: #fff;
}
header h1 {
    width: 10rem;
}
header h1 a {
    width: 100%;
}
header h1 a img {
    width: 100%;
}
header #menuBtn {
    width: 2rem;
    position: absolute;
    right: 1.5rem;
}
header #menuBtn img {
    width: 100%;
}

.navBg {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 8888;
}
nav {
    background-color: #fff;
    display: flex;
    flex-flow: column nowrap;
    width: 45%;
    height: 100%;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
    padding-top: 8rem;
    gap: 20px;
}
nav button {
    position: absolute;
    right: 1.5rem;
    top: 2rem;
    width: 2rem;
}
nav button img {
    width: 100%;
}
nav a {
    font-size: 22px;
    padding: 1.5rem;
    display: flex;
    line-height: 1.2;
    align-items: center;
    margin: 0 1.5rem; 
    background-color: #f0f7fc;
    border-radius: 15px;
    gap: 15px;
}
nav a img {
    width: 10px;
}
@media screen and (max-width: 767px) {
    nav {
        background-color: #fff;
        display: flex;
        flex-flow: column nowrap;
        width: 70%;
        height: 100%;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 9999;
        padding-top: 8rem;
        gap: 20px;
    }
    nav a {
        font-size: 18px;
        padding: 1.5rem;
        display: flex;
        line-height: 1.2;
        align-items: center;
        margin: 0 1.5rem;
        background-color: #f0f7fc;
        border-radius: 15px;
        gap: 10px;
    }
}
