/* Header: desktop values first, responsive adjustments below. */

.l-header__nav-list li a:hover {
    opacity: 1;
    color: var(--color-navy);
}

.l-header__entry:hover {
    opacity: 0.85;
}

.l-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.l-header__hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}

.l-header__hamburger.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.l-header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.l-header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.l-header {
    position: fixed;
    top: var(--header-top);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 0;
    width: calc(100% - 40px);
    max-width: none;
    height: 100px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
}

.l-header__inner {
    align-items: center;
    gap: 0;
    position: relative;
    display: block;
    height: 100%;
    padding: 0;
}

.l-header__logo {
    flex-shrink: 0;
    margin-right: 18px;
    position: absolute;
    top: 25px;
    left: 1.28%;
    height: 50px;
    margin: 0;
}

.l-header__logo a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 300px;
    height: 50px;
    gap: 9px;
}

.l-header__logo-img {
    flex: 0 0 76px;
    width: 76px;
    height: 50px;
    object-fit: contain;
}

.l-header__logo-text {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    white-space: nowrap;
    flex: 0 0 auto;
    gap: 8px;
    line-height: 1;
    transform: translateY(-3px);
}

.l-header__logo-text-sm {
    font-weight: var(--fw-bold);
    color: var(--color-text);
    font-size: 24px;
    line-height: 1;
    letter-spacing: 2.56px;
}

.l-header__logo-text-lg {
    font-weight: var(--fw-bold);
    color: #153e75;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 2.56px;
}

.l-header__logo-text-recruit {
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-top: -4px;
    align-self: flex-end;
    display: block;
    width: auto;
    margin: 0 0 2px -2px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .8px;
}

.l-header__nav {
    margin-left: auto;
    position: absolute;
    top: 42px;
    left: 32.5%;
    margin: 0;
}

.l-header__nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.l-header__nav-list li a {
    font-weight: var(--fw-bold);
    color: var(--color-text);
    white-space: nowrap;
    text-align: center;
    display: block;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1.28px;
}

.l-header__right {
    align-items: center;
    margin-left: 20px;
    flex-shrink: 0;
    position: static;
    display: block;
    height: auto;
    margin: 0;
}

.l-header__tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 27px;
    left: 70.8%;
    width: 277px;
    height: 46px;
    padding: 0;
}

.l-header__tel a {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    height: 32px;
}

.l-header__tel-icon {
    flex: 0 0 32px;
}

.l-header__tel-icon img {
    width: 32px;
    height: 32px;
}

.l-header__tel-number {
    font-family: var(--font-en);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    text-transform: uppercase;
    flex: 0 0 auto;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 2.4px;
    white-space: nowrap;
}

.l-header__tel-time {
    font-weight: var(--fw-bold);
    color: var(--color-text);
    text-transform: uppercase;
    text-align: center;
    align-self: flex-end;
    margin: 0 3px 0 0;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1.12px;
}

.l-header__entry {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    gap: 2px;
    min-width: 170px;
    position: absolute;
    top: 15px;
    right: 1.01%;
    display: grid;
    grid-template-columns: 35px auto;
    grid-template-rows: 32px 10px;
    column-gap: 17px;
    row-gap: 5px;
    width: 240px;
    height: 70px;
    padding: 12px 20px 11px;
    background: linear-gradient(270deg, #ff8a00 0%, #ffc83d 100%);
}

.l-header__entry-icon {
    display: flex;
    align-items: center;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
}

.l-header__entry-icon img {
    width: 35px;
    height: 25px;
    object-fit: contain;
}

.l-header__entry-text {
    font-weight: var(--fw-bold);
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 2.56px;
}

.l-header__entry-sub {
    font-weight: var(--fw-bold);
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .8px;
}

@media (max-width: 1699px) {
    .l-header {
        height: 86px;
    }

    .l-header__logo {
        top: 18px;
        left: 20px;
    }

    .l-header__logo a {
        min-width: 270px;
    }

    .l-header__nav {
        right: 280px;
        left: 500px;
        height: 86px;
    }

    .l-header__nav-list {
        gap: clamp(10px, 1.25vw, 18px);
    }

    .l-header__nav-list li a {
        font-size: 14px;
    }

    .l-header__tel {
        right: 20px;
        left: auto;
        width: 240px;
    }

    .l-header__tel-number {
        font-size: 22px;
    }

    .l-header__entry {
        display: none;
    }
}

@media (max-width: 1279px) {
    .l-header {
        top: 0;
        width: 100%;
        max-width: 100%;
        height: 70px;
        border-radius: 0;
    }

    .l-header__logo {
        top: 10px;
        left: 16px;
        height: 50px;
    }

    .l-header__logo a {
        min-width: 0;
        height: 50px;
    }

    .l-header__logo-img {
        flex-basis: 70px;
        width: 70px;
        height: 46px;
    }

    .l-header__logo-text-sm {
        font-size: 12px;
    }

    .l-header__logo-text-lg {
        font-size: 20px;
    }

    .l-header__logo-text-recruit {
        font-size: 7px;
    }

    .l-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        padding: 80px 30px 40px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right var(--transition);
        overflow-y: auto;
        z-index: 1000;
    }

    .l-header__nav.is-active {
        right: 0;
    }

    .l-header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .l-header__nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .l-header__nav-list li a {
        display: block;
        padding: 15px 0;
        font-size: var(--fs-base);
    }

    .l-header__right {
        display: none;
    }

    .l-header__hamburger {
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .l-header__logo {
        left: 10px;
    }

    .l-header__logo-img {
        flex-basis: 62px;
        width: 62px;
    }

    .l-header__logo-text-sm {
        font-size: 10px;
    }

    .l-header__logo-text-lg {
        font-size: 17px;
    }
}
