#wrapper .header.show-on-scroll,
#wrapper .stuck .header-main,
#wrapper .header-main {
    height: var(--header-height) !important;
}

div#masthead {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 9999;
    background-color: #fff;
}



.header-wrapper {
    padding-top: var(--header-height);
}

.header_right {
    display: flex;
}

.header .iconMenu_list {
    display: flex;
    align-items: center;
    margin-left: 30px !important;
}

.header .iconMenu_list>li {
    width: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    transition-duration: 0.2s;
    cursor: pointer;
    margin: 0;
}

.header .iconMenu_list>li:not(:last-child) {
    margin-right: 10px;
}

.header .iconMenu_list>li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: var(--primary-color);
}

.header .iconMenu_list>li .iconMenu_img {
    position: relative;
}

.header .iconMenu_list>li .iconMenu_img img {
    width: 30px;
    height: 30px;
    margin: 0 auto;
}

.header .iconMenu_list>li .iconMenu_text {
    font-size: 10px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--primary-color);
    margin-top: 3px;
}

.iconMenu_badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e80101;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iconMenu_badge[data-count="0"] {
    display: none;
}

.header .iconMenu_list>li .iconMenu_img img.off {
    display: block;
}

.header .iconMenu_list>li .iconMenu_img img.on {
    display: none;
}

.header .iconMenu_list>li.is-active .iconMenu_img img.off,
.header .iconMenu_list>li:hover .iconMenu_img img.off {
    display: none;
}

.header .iconMenu_list>li.is-active .iconMenu_img img.on,
.header .iconMenu_list>li:hover .iconMenu_img img.on {
    display: block;
}

.hamburger {
    background: var(--primary-color);
    height: var(--header-height);
    padding: 28px 32px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    background-color: white;
    height: 2px;
    width: 26px;
    margin-bottom: 7px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hamburger p {
    text-align: center;
    color: white;
    font-size: 8px;
    font-weight: bold;
    line-height: 1;
}

.hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.headerMenu_background {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 10000;
    width: 100%;
    height: calc(100% - var(--header-height));
    background-color: rgba(191, 183, 183, 0.83);
}

.headerMenu_wrap {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 10001;
    width: 100%;
}

.headerMenu_inner {
    padding: 30px 0 40px;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.161);
    background-color: white;
}

.headerMenu_content {
    display: none;
}

.headerMenu_content.is-active {
    display: block;
    animation: show 0.2s linear 0s;
}

@keyframes show {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.headerMenu_content .title_ruby {
    width: var(--content-width);
    text-align: left;
    margin: 40px auto 20px;
}

.headerMenu_content .ux-menu {
    width: var(--content-width);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

.headerMenu_content .ux-menu.-fourColumn {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 30px;
}

.headerMenu_content .ux-menu .ux-menu-link {
    border-bottom: 1px solid var(--gray-light);
    /* width: 100%; */
}

.headerMenu_content .ux-menu .ux-menu-link a {
    display: block;
    position: relative;
    padding: 10px 15px 10px 0;
    font-weight: bold;
}

.headerMenu_content .ux-menu .ux-menu-link a::before,
.headerMenu_content .ux-menu .ux-menu-link a::after {
    display: block;
    position: absolute;
    content: "";
}

.headerMenu_content .ux-menu .ux-menu-link a::before {
    top: 53%;
    right: 1.6px;
    width: 10px;
    height: 2px;
    background-color: var(--primary-color);
}

.headerMenu_content .ux-menu .ux-menu-link a::after {
    top: 46%;
    right: 1.6px;
    transform: rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.headerMenu_content .ux-menu .ux-menu-link a br {
    display: none;
}

.headerMenu_content .ux-menu .ux-menu-link:hover a {
    opacity: 0.4;
}

.headerMenu_content .ux-menu .ux-menu-link:hover a::before,
.headerMenu_content .ux-menu .ux-menu-link:hover a::after {
    right: -5px;
    transition-duration: 0.2s;
}

.title_ruby p {
    display: block;
    color: var(--primary-color);
    font-size: 14px;
    line-height: 19px;
}

.title_ruby strong {
    color: #333;
    font-size: 32px;
}

.searchform input {
    max-width: 100%;
    height: 45px;
    padding: 10px;
    box-shadow: none;
    background-color: white;
    border-radius: 5px;
    border: 0
}

.searchform button {
    background: #Fff;
    color: var(--primary-color);
    height: 45px;
    font-size: 15px;
    border: 0
}

form.searchform {
    min-width: 576px;
    border-radius: 5px;
    border: 1px solid var(--gray-dark);
    overflow: hidden
}

.header-bottom-nav>li>a {
    width: 100px;
    letter-spacing: -0.03em;
    padding: 0;
    line-height: 24px;
    text-transform: none;
    text-align: center;
    justify-content: center;
}

.header-bottom-nav>li.menu-item {
    padding: 0 10px;
    border-left: 1px solid var(--gray-dark);
    margin: 0;
    text-align: center
}

.header-bottom-nav>li:first-child {
    border: 0
}

.header-bottom-nav>li:last-child {
    padding-right: 0;
    margin: 0;
}

.header-bottom {
    background-color: var(--bg-main) !important;
}

.off-canvas-left .mfp-content,
.off-canvas-right .mfp-content {
    background-color: var(--primary-color) !important;
}

.off-canvas:not(.off-canvas-center) .nav-vertical li>a {
    text-transform: unset;
}

@media screen and (min-width: 850px) {
    .admin-bar div#masthead {
        top: 30px;
    }

    .admin-bar .headerMenu_wrap {
        top: calc(var(--header-height) + 30px);
    }

}

@media screen and (max-width: 1300px) {
    form.searchform {
        min-width: auto;
    }
}

@media screen and (max-width: 850px) {

    .header .iconMenu_list {
        margin-right: 0 !important;
        margin-left: 10px !important;
    }

    .header .iconMenu_list>li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 45px;
        padding: 0;
        transition-duration: 0.2s;
    }

    .header .iconMenu_list>li a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .header .iconMenu_list>li .iconMenu_img {
        position: relative;
    }

    .header .iconMenu_list>li .iconMenu_img img {
        width: 30px;
        height: 30px;
    }

    .header .iconMenu_list>li .iconMenu_text {
        font-size: 9px;
        font-weight: bold;
        line-height: 1.2;
        color: var(--primary-color);
        margin-top: 3px;
        word-break: keep-all;
        letter-spacing: -0.09em;
    }

    .header .iconMenu_list>li a .iconMenu_text {
        color: #333;
    }

    .iconMenu_badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: #e80101;
        color: white;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        font-size: 10px;
        font-weight: bold;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .iconMenu_badge[data-count="0"] {
        display: none;
    }

    .header .iconMenu_list>li .iconMenu_img img.off {
        display: block;
    }

    .header .iconMenu_list>li .iconMenu_img img.on {
        display: none;
    }

    .header .iconMenu_list>li.is-active .iconMenu_img img.off {
        display: none;
    }

    .header .iconMenu_list>li.is-active .iconMenu_img img.on {
        display: block;
    }

    /* Menu open */
    .headerMenu_wrap {
        display: none;
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        z-index: 1000;
        width: 100%;
        height: calc(100% - var(--header-height) + 1px);
        background-color: rgba(191, 183, 183, 0.83);
        overflow: scroll;
    }

    .headerMenu_inner {
        padding: 0 15px 20px;
        box-shadow: var(--main-shadow);
        background-color: white;
    }

    .headerMenu_content .title_ruby {
        line-height: 1;
        text-align: left;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .headerMenu_content .ux-menu {
        grid-template-columns: unset !important;
        gap: 0;
        display: block;
        width: 100%;
    }

    .header .iconMenu_list>li:not(:last-child) {
        margin: 0;
        max-width: 50px;
    }

    .headerMenu_content .headerMenu_list li {
        padding-top: 10px;
        border-bottom: 1px solid var(--gray-light);
    }

    .headerMenu_content .headerMenu_list li a {
        display: block;
        position: relative;
        padding: 10px 15px 10px 0;
        font-weight: bold;
        font-size: 16px;
    }

    .headerMenu_content .headerMenu_list li a::before {
        top: 53%;
        right: 1.6px;
        width: 10px;
        height: 2px;
        background-color: var(--primary-color);
    }

    .headerMenu_content .headerMenu_list li a::after {
        top: 46%;
        right: 1.6px;
        transform: rotate(45deg);
        width: 8px;
        height: 8px;
        border-top: 2px solid var(--primary-color);
        border-right: 2px solid var(--primary-color);
    }

    .hamburger {
        background: var(--primary-color);
        height: var(--header-height);
        padding: 15px;
        border-bottom-left-radius: 10px;
    }

    .hamburger span {
        display: block;
        background-color: white;
        height: 2px;
        width: 22px;
        margin-bottom: 6px;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .hamburger p {
        text-align: center;
        color: white;
        font-size: 7px;
        font-weight: bold;
        line-height: 1;
    }

    .hamburger.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .title_ruby p {
        margin-bottom: 5px;
        font-size: 10px;
        line-height: 1;
    }

    .title_ruby strong {
        font-size: 26px;
    }

    .searchform input,
    .searchform button {
        height: 42px;
    }

}

@media screen and (max-width: 550px) {
    .header-bottom-nav>li>a {
        font-size: inherit;
        width: auto;
        letter-spacing: unset;
        font-weight: inherit;
        line-height: 16px !important;
    }

    .header-bottom-nav>li.menu-item {
        height: calc(26 / 375 * 100vw);
        font-size: calc(12 / 375 * 100vw);
        line-height: calc(13 / 375 * 100vw);
        font-weight: bold;
        text-align: center;
        width: calc(67 / 375 * 100vw);
        padding: 0 calc(5 / 375 * 100vw);
        justify-content: center;
        display: flex;
        align-items: center;
    }

    #logo {
        max-width: 210px;
        margin: 0;
    }

    .flex-col.show-for-medium.flex-left {
        flex: unset;
    }

    .header .iconMenu_list>li {
        /* max-width: 50px !important; */
    }

    .header .iconMenu_list {
        margin: 0 !important;
    }
}