/*=============================================================================
header
===============================================================================*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 80px;
    padding-inline: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 16px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

a:hover {
    opacity: 0.5;
}
.header-spacer {
    height: 80px;
}

.logo {
    width: 192px;
}

.header-right,
.header-right__link-list,
.header-right__btn,
.header-right__btn--inquiry a {
    display: flex;
}

.header-right,
.header-right__btn--inquiry a {
    align-items: center;
}

.header-right__link-list li {
    margin-left: 24px;
}

.header-right__btn--inquiry {
    margin-left: 16px;
}

.header-right__btn--inquiry {
    background-color: #003885;
}

.header-right__btn--inquiry a p {
    color: #ffffff;
}

.header-right__btn--inquiry {
    padding: 8px 16px;
    border-radius: 32px;
}

.header-right__btn--inquiry a p {
    margin-left: 4px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.header-right__btn a img {
    width: 24px;
}

.header-right__link-list a {
    position: relative;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0em;
}

.header-right__link-list a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: "";
    width: 0;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
}


.header-right__link-list a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    height: 32px;
    width: 32px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 2;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.5s;
}

.hamburger span:nth-of-type(1) {
    top: 8%;
}

.hamburger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-of-type(3) {
    bottom: 8%;
}

.open .hamburger span:nth-of-type(1) {
    top: 50%;
    transform: rotate(-45deg);
    background-color: #ffffff;
}

.open .hamburger span:nth-of-type(2) {
    opacity: 0;
}

.open .hamburger span:nth-of-type(3) {
    top: 50%;
    transform: rotate(45deg);
    background-color: #ffffff;
}

.mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #333;
    opacity: 0.9;
    z-index: 1;
}

.open .mask {
    display: block;
}

@media(max-width:1040px) {
    header {
        height: 64px;
    }

    .header-right {
        position: fixed;
        top: 0;
        left: -300px;
        padding: 48px;
        transition: all 0.5s;
        z-index: 2;
    }

    .open .header-right {
        left: 0;
    }

    .header-right,
    .header-right__link-list,
    .header-right__btn {
        flex-direction: column;
    }

    .header-right {
        align-items: normal;
    }

    .header-right {
        position: absolute;
    }

    .logo {
        width: 160px;
    }

    .hamburger {
        display: block;
    }

    .header-right__link-list li,
    .header-right__btn--inquiry {
        margin: 8px 0;
    }

    .header-right__link-list a {
        color: #ffffff;
    }

    .header-right__link-list a::after {
        display: none;
    }
}