.legacy-header {
    position: relative;
    width: 100%;
    height: 16.25vw;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    z-index: 100;
}

.legacy-header--contact {
    position: fixed;
    height: 80px;
    box-shadow: 0 0 3px rgb(0 0 0 / 5%);
}

.legacy-header__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.legacy-header--contact .legacy-header__inner {
    max-width: 1920px;
    width: 100%;
    padding: 8px 40px;
    justify-content: space-between;
}

.legacy-header__logo {
    overflow: hidden;
    margin-top: 1vw;
}

.legacy-header__logo img {
    width: auto;
    height: 7.5vw;
    line-height: 1;
}

.legacy-header--contact .legacy-header__logo {
    margin: 4px 0 0 12px;
}

.legacy-header--contact .legacy-header__logo img {
    height: 2.7vw;
    max-height: 41px;
}

.legacy-header__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.legacy-header__tel-box {
    margin-right: 29px;
}

.legacy-header--contact .legacy-header__tel-box {
    margin-right: 29px;
}

.legacy-header__tel-text {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.legacy-header--contact .legacy-header__tel-text {
    font-size: clamp(1.2rem, 1vw, 1.5rem);
}

.legacy-header__tel-number {
    color: #016fbe;
    font-size: 3.5rem;
    font-weight: 700;
    text-decoration: none;
}

.legacy-header--contact .legacy-header__tel-number {
    font-size: clamp(1.2rem, 2vw, 3.6rem);
}

.legacy-header__mail-box {
    width: 28vw;
}

.legacy-header--contact .link_btn {
    height: 6vw;
    max-height: 54px;
    width: 31vw;
    max-width: 300px;
    font-size: clamp(2rem, 1.8vw, 2rem);
    letter-spacing: 0.16vw;
}

.legacy-header__mail-btn {
    display: block;
}

.legacy-header__mail-btn:hover img {
    filter: brightness(1.2);
}

@media (min-width: 641px) and (max-width: 1027px) {
    .legacy-header {
        width: 100%;
        height: 8vw;
    }

    .legacy-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
        height: 100%;
        padding: 0 32px;
        margin: 0 auto;
    }

    .legacy-header__logo {
        margin-top: 1px;
    }

    .legacy-header__logo img {
        height: 3.5vw;
    }
}

@media screen and (max-width: 767px) {
    .legacy-header--contact {
        height: 64px;
        box-shadow: none;
    }

    .legacy-header--contact .legacy-header__logo {
        margin: 0;
    }

    .legacy-header--contact .legacy-header__logo img {
        height: 7.5vw;
    }

    .legacy-header--contact .legacy-header__inner {
        padding: 2.3vw 3.7vw;
        justify-content: center;
    }
}

@media (min-width: 1028px) {
    .legacy-header {
        width: 100%;
        height: 84px;
    }

    .legacy-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 1028px;
        height: 100%;
        margin: 0 auto;
    }

    .legacy-header__logo {
        margin-top: 1px;
    }

    .legacy-header__logo img {
        height: 44px;
    }
}
