/* JoyLinks global menu */
body {
    padding-top: 58px;
}

#navbar.navbar-default {
    min-height: 58px;
    background: #fbfbfb;
    border: 0;
    border-bottom: 1px solid #d8d8d8;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .15);
}

#navbar > .container {
    width: 100%;
    padding-right: 22px;
    padding-left: 22px;
}

#navbar .navbar-header {
    min-height: 58px;
}

#navbar .navbar-brand {
    height: 58px;
    padding: 15px 24px 21px 0;
    color: #6e6e6e;
    font-family: "Yu Gothic Light", "Yu Gothic", "Yu Gothic UI Light", "Yu Gothic UI", Meiryo, sans-serif;
    font-size: 18px;
    font-weight: 100;
    letter-spacing: 0;
    line-height: 24px;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

#menuCollapse {
    padding-right: 0;
    padding-left: 0;
}

.jl-global-menu,
.jl-user-menu {
    margin: 0;
}

.jl-menu-parent,
.jl-menu {
    position: relative;
}

.jl-menu-parent-link,
.padding-menu-parent {
    min-height: 50px;
    padding: 15px !important;
    color: #777777 !important;
    letter-spacing: 0;
    background: transparent !important;
}

.jl-global-menu > .jl-menu-parent > .jl-menu-parent-link,
.jl-user-menu > .jl-menu-parent > .jl-menu-parent-link,
.jl-user-menu .jl-menu-parent-link {
    min-width: 8em;
    font-family: "Yu Gothic Light", "Yu Gothic", "Yu Gothic UI Light", "Yu Gothic UI", Meiryo, sans-serif;
    font-size: 18px;
    font-weight: 100 !important;
    line-height: 24px;
    text-align: center;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

.jl-user-menu .jl-menu-parent-link {
    padding-right: 22px !important;
    padding-left: 22px !important;
}

.jl-user-menu-link {
    min-height: 58px;
    padding: 19px 20px 17px !important;
    color: #666666 !important;
    font-family: "Yu Gothic Light", "Yu Gothic", "Yu Gothic UI Light", "Yu Gothic UI", Meiryo, sans-serif;
    font-size: 18px;
    font-weight: 100;
    line-height: 24px;
    letter-spacing: 0;
    background: transparent !important;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

.jl-menu-parent-text {
    display: inline-block;
    font-weight: inherit !important;
    vertical-align: middle;
    white-space: nowrap;
}

.jl-menu-parent-link .arrow-menu {
    display: none;
}

.jl-menu-parent-has-child .arrow-menu {
    display: inline-block;
}

.jl-menu-caret {
    display: inline-block;
    margin-left: 5px;
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    vertical-align: middle;
}

.jl-menu-caret::before {
    content: "\25BC";
}

.arrow-menu {
    display: inline-block;
    float: none;
    width: 0;
    height: 0;
    margin: 0 0 0 7px;
    vertical-align: middle;
    border-top: 5px solid #777777;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    color: #0f766e !important;
    background: #eeeeee !important;
    box-shadow: none;
}

.navbar-default .navbar-nav > li > a:hover .arrow-menu,
.navbar-default .navbar-nav > li > a:focus .arrow-menu,
.navbar-default .navbar-nav > .open > a .arrow-menu {
    border-top-color: #0f766e;
}

.jl-menu-child {
    min-width: 230px;
    margin-top: 0 !important;
    padding: 18px 22px 26px !important;
    background: #ffffff !important;
    border: 1px solid #b9b9b9;
    border-radius: 0;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .42);
}

.jl-menu-child::before {
    position: absolute;
    top: -15px;
    left: 94px;
    width: 0;
    height: 0;
    content: "";
    border-right: 12px solid transparent;
    border-bottom: 15px solid #b9b9b9;
    border-left: 12px solid transparent;
}

.jl-menu-child::after {
    position: absolute;
    top: -13px;
    left: 95px;
    width: 0;
    height: 0;
    content: "";
    border-right: 11px solid transparent;
    border-bottom: 14px solid #ffffff;
    border-left: 11px solid transparent;
}

.jl-menu-child-grid {
    align-items: flex-start;
    gap: 18px;
    min-width: 530px;
}

.open > .jl-menu-child-grid {
    display: flex !important;
}

.jl-menu-column {
    width: 232px;
    list-style: none;
}

.jl-menu-column-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.jl-user-menu-child {
    right: 16px !important;
    left: auto !important;
    min-width: 264px;
    padding: 18px 12px 36px !important;
}

.jl-user-menu-child::before {
    left: auto;
    right: 72px;
    transform: none;
}

.jl-user-menu-child::after {
    left: auto;
    right: 73px;
    transform: none;
}

.jl-menu-heading {
    height: 18px;
    padding: 0 6px;
    color: #333333;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    background: #ffffff;
    border-bottom: 2px solid #bfbfbf;
}

.jl-menu-item > a,
.dropdown-menu > .jl-menu-item > a {
    display: block;
    height: 57px;
    padding: 16px 16px !important;
    color: #6b6b6b !important;
    font-size: 20px;
    font-weight: 500;
    line-height: 25px;
    white-space: nowrap;
    background: transparent !important;
    border-bottom: 1px solid #e8e8e8;
}

.jl-menu-item > a.jl-menu-item-small,
.dropdown-menu > .jl-menu-item > a.jl-menu-item-small {
    height: 34px;
    padding: 7px 16px !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.jl-menu-item > a.jl-menu-item-small::before,
.dropdown-menu > .jl-menu-item > a.jl-menu-item-small::before {
    content: "\0009";
    white-space: pre;
}

.jl-menu-item > a:hover,
.jl-menu-item > a:focus {
    color: #555555 !important;
    background: #eeeeee !important;
    text-decoration: none;
}

.style-hr,
.style-hr-child,
.hr-last {
    display: none !important;
}

.jl-user-menu-link {
    display: flex !important;
    align-items: center;
    min-width: 218px;
    justify-content: center;
    padding-top: 19px !important;
    padding-bottom: 17px !important;
    text-align: center;
    background: transparent !important;
}

.jl-user-name,
.jl-user-role {
    display: inline;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jl-user-name {
    font-size: inherit;
    font-family: inherit !important;
    font-weight: 100 !important;
    line-height: inherit;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

.jl-user-role {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: #666666;
}

.jl-user-menu-link:hover .jl-user-role,
.jl-user-menu-link:focus .jl-user-role,
.open > .jl-user-menu-link .jl-user-role {
    color: #0f766e;
}

.jl-logout-form {
    display: none;
}

.jl-menu-item-logout {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid #e5e7eb;
}

.jl-user-menu-child .jl-menu-heading {
    margin: 0 0 6px;
}

.jl-user-menu-child .jl-menu-item > a,
.dropdown-menu.jl-user-menu-child > .jl-menu-item > a {
    height: 42px;
    padding: 8px 24px !important;
    color: #666666 !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    border-bottom: 1px solid #eeeeee;
}

@media screen and (min-width: 768px) {
    .jl-global-menu > .jl-menu-parent > .jl-menu-child {
        right: auto !important;
        left: 0 !important;
        transform: none;
    }

    .jl-menu-parent:hover > .jl-menu-child,
    .jl-menu:hover > .jl-menu-child {
        display: block;
    }

    .jl-menu-parent:hover > .jl-menu-child-grid,
    .jl-menu:hover > .jl-menu-child-grid {
        display: flex !important;
    }
}

@media screen and (max-width: 1300px) {
    body {
        padding-top: 58px;
    }

    #navbar > .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .jl-menu-parent-link,
    .jl-user-menu-link,
    .padding-menu-parent {
        color: #777777 !important;
        background: transparent !important;
    }

    .menu-child,
    .jl-menu-child {
        background: #ffffff !important;
    }

    .navbar-default .navbar-nav > li > a {
        background-color: transparent;
    }

    .navbar-default .navbar-nav > li > a:hover,
    .navbar-default .navbar-nav > li > a:focus {
        background-color: #eef8f7 !important;
    }

    .jl-user-menu-link {
        background: transparent !important;
    }
}

@media screen and (max-width: 767px) {
    #navbar .navbar-brand {
        padding-left: 0;
    }

    #navbar .navbar-toggle {
        margin-top: 11px;
        margin-bottom: 11px;
    }

    #menuCollapse {
        max-height: calc(100vh - 56px) !important;
        overflow-y: auto;
        background: #ffffff;
        border-top: 1px solid #d6dce5;
    }

    .jl-global-menu,
    .jl-user-menu,
    .navbar-nav {
        margin: 0 -15px !important;
    }

    .jl-menu-parent-link,
    .jl-user-menu-link,
    .padding-menu-parent {
        min-height: auto;
        padding: 14px 18px !important;
    }

    .jl-user-menu-link {
        display: block !important;
        min-width: 0;
        text-align: left;
    }

    .jl-user-name,
    .jl-user-role {
        max-width: none;
    }

    .jl-menu-child {
        position: static;
        float: none;
        width: 100%;
        min-width: 0;
        margin-top: 0 !important;
        border: 0;
        box-shadow: none;
    }

    .jl-menu-child::before,
    .jl-menu-child::after {
        display: none;
    }

    .open > .jl-menu-child-grid,
    .open > .jl-menu-child {
        display: block !important;
    }

    .jl-menu-column {
        width: auto;
    }

    .dropdown-menu > .jl-menu-item > a,
    .jl-menu-item > a {
        height: auto;
        padding: 9px 32px !important;
        white-space: normal;
    }

    .jl-menu-item > a.jl-menu-item-small,
    .dropdown-menu > .jl-menu-item > a.jl-menu-item-small {
        padding: 5px 32px !important;
        font-size: 14px;
        line-height: 18px;
    }

    .jl-menu-heading {
        height: auto;
        min-height: 30px;
        padding: 7px 22px 6px;
        margin: 8px 0 2px;
        color: #555555;
        font-size: 14px;
        line-height: 17px;
        text-align: left;
        background: #f2f6f8;
        border-top: 1px solid #e2e8ec;
        border-bottom: 1px solid #d9e2e7;
    }
}
