.wp-block.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
    background: transparent;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 2rem);
    margin-inline: auto;
}

.header__brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header__brand-link,
.header__custom-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.header__logo-image,
.header__custom-logo .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: clamp(2.5rem, 6vw, 4.5rem);
}

.header__site-name {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.header__nav-area {
    margin-left: auto;
}

.header__menu-toggle {
    display: none;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.header__menu-toggle-icon {
    position: relative;
    display: inline-block;
    width: 1.1rem;
    height: 0.65rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.header__menu-toggle-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 2px solid currentColor;
    transform: translateY(-50%);
}

.header__nav-panel {
    display: block;
}

.header__menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.6rem, 1.3vw, 1.3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.header__menu-list .nav__item {
    position: relative;
}

.header__menu-list .nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.15rem;
    border-bottom: 2px solid transparent;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.2;
}

.header__menu-list .nav__link:hover,
.header__menu-list .nav__link:focus-visible,
.header__menu-list .nav__item--current > .nav__link {
    border-bottom-color: currentColor;
}

.header__menu-list .nav__submenu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    display: none;
    min-width: 12rem;
    margin: 0;
    padding: 0.6rem;
    border-radius: 0.5rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.95);
    color: #1d2327;
}

.header__menu-list .nav__item:hover > .nav__submenu,
.header__menu-list .nav__item:focus-within > .nav__submenu {
    display: block;
}

.header__menu-list .nav__submenu .nav__link {
    width: 100%;
    padding: 0.4rem 0.15rem;
    border-bottom: 0;
}

.header__menu-toggle:focus-visible,
.header__menu-list .nav__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .header__inner {
        flex-wrap: wrap;
    }

    .header__nav-area {
        width: 100%;
    }

    .header__menu-toggle {
        display: inline-flex;
    }

    .header--js .header__nav-panel[hidden] {
        display: none;
    }

    .header__nav-panel {
        margin-top: 0.8rem;
    }

    .header__menu-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.7rem 0.9rem;
        border: 1px solid rgba(29, 35, 39, 0.15);
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.95);
        color: #1d2327;
    }

    .header__menu-list .nav__submenu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0.2rem 0 0.2rem 0.9rem;
        background: transparent;
    }
}
