
.nav-item.mb-2.mb-lg-0.z-1:nth-child(-n+3) .sub-menu-custom-2columns {
    left: 0;
    right: auto;
    transform: none;
    width: max-content;
}

.nav-item.mb-2.mb-lg-0.z-1:nth-child(n+6):nth-child(-n+11) .sub-menu-custom-2columns {
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
}

.nav-item.mb-2.mb-lg-0.z-1:nth-child(n+12) .sub-menu-custom-2columns {
    left: auto;
    right: 0;
    transform: none;
    width: max-content;
}

.nav-item.mb-2.mb-lg-0.z-1:nth-child(14) .sub-menu-custom-2columns .title-custom,
.nav-item.mb-2.mb-lg-0.z-1:nth-child(15) .sub-menu-custom-2columns .title-custom {
    display: none;
}

.nav-item.mb-2.mb-lg-0.z-1 {
    margin-bottom: 0;
    height: 88px;
    display: flex;
    align-items: center;
    position: relative;
}


.nav-item.mb-2.mb-lg-0.z-1::after {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffc51c;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 101;
}

.nav-item.mb-2.mb-lg-0.z-1:hover::after {
    opacity: 1;
    visibility: visible;
}

.nav-item.mb-2.mb-lg-0.z-1.no-submenu::after {
    display: none;
}

.menu-pc {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.bg-menu.bg-menu-custom-menu {
    padding: 0 .5rem;
    position: relative;
}

.custom-link {
    position: relative;
    display: inline-block;
}

.custom-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffc500;
    border-radius: 2px;
    transition: width 0.4s ease-in-out;
}

.nav-item:hover .custom-link,
.custom-link:hover {
    color: #ffc500 !important;
}

.nav-item:hover .custom-link::after,
.custom-link:hover::after {
    width: 100%;
}

.sub-menu.sub-menu-custom-2columns {
    top: 88px;
    width: max-content;
}
.title-custom {
    font-weight: 700;
    text-transform: uppercase;
    color: #233f9d;
    margin-bottom: 10px;
    padding-top: 5px;
}

.text-hover-ffc500:hover {
    color: #ffc500 !important;
}

.custom-menu-th,
.custom-menu-nc {
    padding: 0;
}

.is-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 10px;
}

@media(max-width: 1180px) {

    .menu-pc {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .nav-item.mb-2.mb-lg-0.z-1 {
        margin-bottom: 5px;
    }

    .menu-pc,
    .nav-item.mb-2.mb-lg-0.z-1 {
        height: auto;
    }
    .bg-menu.bg-menu-custom-menu {
        padding: .5rem;
    }
}

@media (max-width: 1000px) {
    
    .nav-item:hover .custom-link::after,
    .nav-item.mb-2.mb-lg-0.z-1:hover::after,
    .custom-link::after {
        display: none
    }

    .sub-menu-custom-2columns {
        flex-direction: column;
        gap: 10px;
    }

    .is-grid {
        grid-template-columns: 1fr;
        column-gap: 5px;
    }

    .nav-item.mb-2.mb-lg-0.z-1:nth-child(-n+3) .sub-menu-custom-2columns,
    .nav-item.mb-2.mb-lg-0.z-1:nth-child(n+6):nth-child(-n+11) .sub-menu-custom-2columns,
    .nav-item.mb-2.mb-lg-0.z-1:nth-child(n+12) .sub-menu-custom-2columns,
    .sub-menu.sub-menu-custom-2columns {
        right: auto;
        width: 100%;
        transform: translateX(0);
        left: 0;
    }
}