/* Coordeble V2 - Header */

.coordeble-site-header {
    position: relative;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e3e9e8;
}

.coordeble-site-header .coordeble-header-inner {
    max-width: 1200px;
    min-height: 76px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.coordeble-header-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
    text-decoration: none;
    color: #24383a;
}

.coordeble-header-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 56px;
    object-fit: contain;
}

.coordeble-header-site-name {
    font-size: 20px;
    font-weight: 700;
}

.coordeble-header-navigation {
    margin-left: auto;
}

.coordeble-header-menu,
.coordeble-header-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.coordeble-header-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.coordeble-header-menu li {
    position: relative;
    list-style: none;
    margin: 0;
}

.coordeble-header-menu a {
    display: block;
    padding: 12px 4px;
    color: #24383a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.coordeble-header-menu a:hover,
.coordeble-header-menu a:focus-visible {
    color: #138a8d;
}

.coordeble-header-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e3e9e8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.coordeble-header-menu li:hover > .sub-menu,
.coordeble-header-menu li:focus-within > .sub-menu {
    display: block;
}

.coordeble-menu-toggle {
    display: none;
}

@media (max-width: 767px) {
    .coordeble-site-header .coordeble-header-inner {
        min-height: 64px;
        padding: 10px 16px;
        gap: 12px;
    }

    .coordeble-header-logo-image {
        max-width: min(65vw, 170px);
        max-height: 44px;
    }

    .coordeble-header-site-name {
        font-size: 18px;
    }

    .coordeble-site-header .coordeble-menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 0;
        flex: 0 0 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid #d5e5e4;
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
    }

    .coordeble-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: #24383a;
    }

    .coordeble-header-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: #fff;
        border-bottom: 1px solid #e3e9e8;
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

    .coordeble-header-navigation.is-open {
        display: block;
    }

    .coordeble-header-menu {
        display: block;
        padding: 12px 16px 20px;
    }

    .coordeble-header-menu a {
        padding: 14px 12px;
    }

    .coordeble-header-menu .sub-menu {
        display: block;
        position: static;
        min-width: 0;
        margin-left: 15px;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 2px solid #e3e9e8;
        border-radius: 0;
        box-shadow: none;
    }
}
