.nav {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 0;
}

.nav__bg {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-size: 0;
    line-height: 0;
    z-index: 10;
    overflow: hidden;
}

.nav-open .nav__bg {
    z-index: 13;
}

.nav__bg-inner {
    height: 100%;
    overflow: hidden;
}

.nav__bg-item {
    position: relative;
    overflow: hidden;
    display: inline-block;
    height: 100%;
    vertical-align: top;
    width: calc(100% / 8);
}

.nav__bg-item:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-left: 1px solid #516cba;
    background-color: #1a2ae7;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0, 1) 0.5s;
    transform-origin: center right;
    z-index: 20;
}

.nav-open .nav__bg-item:after {
    transform: scaleX(1);
    transform-origin: center left;
    transition-delay: 0s;
    z-index: 20;
}

.nav__mn {
    position: fixed;
    display: inline-block;
    top: 30%;
    bottom: 20%;
    width: 100%;
    height: 50%;
    z-index: 14;
    margin: 0 auto;
    overflow: hidden;
}

.nav__text {
    font-family: "GmarketSansBold";
    position: fixed;
    direction: rtl;
    top: 27%;
    width: 100%;
    height: 25%;
    right: 50%;
    margin: 0 auto;
    padding-right: 3rem;
    color: white;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0, 1);
    transform: translate3d(3%, 0, 0);
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.nav-open .nav__text {
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.nav__menu {
    position: fixed;
    display: inline-block;
    min-width: 0%;
    left: 50%;
    color: white;
    padding-left: 3rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column; 
    pointer-events: none;
}

.nav-open .nav__menu {
    pointer-events: auto;
}

.nav__menu-item {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-bottom: 2rem;
}

.nav__menu-item:nth-child(1) {
    width: 100%;
}

.nav__menu-item:nth-child(2) {
    width: 100%;
}

.nav__menu-item:nth-child(3) {
    width: 100%;
}

.nav__menu-item:nth-child(4) {
    width: 120%;
}

.nav__menu-item a {
    position: relative;
    text-decoration: none;
    color: white;
    opacity: 1;
    top: 0;
    width: 100%;
    font-family: "GmarketSansBold";
    transition: transform 0.2s ease-out, opacity 0.4s ease-out;
}

.nav__menu-item:hover a {
    transform: translateX(1%);
}

.nav__menu-item.inactive a {
    opacity: 0.7;
}


.nav__text > .address {
    font-size: 1.2rem;
    font-family: "GmarketSansBold";
    order: 0;
}

.nav__text p {
    font-size: 1rem;
    line-height: 2rem;
    font-family: "GmarketSansLight";
    color: white;
    text-decoration: none;
}

.nav__text p b {
    font-family: "GmarketSansBold";
}

.nav__text p a{
    font-family: "GmarketSansLight";
    color: white;
    text-decoration: none;
}

.nav__menu > li {
    position: relative;
    overflow: hidden;
    opacity: 0;
    font-size: 3rem;
    list-style: none;
    transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0, 1);
    transform: translate3d(-3%, 0, 0);
}

.nav__menu > li+li {
    margin-top: -10px;
}

.nav-open .nav__menu > li {
    opacity: 1;
    transform: translate3d(0, 0, 0) translateX(0);
}

.nav-open .nav__menu>li:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-open .nav__menu>li:nth-child(2) {
    transition-delay: 0.3s;
}

.nav-open .nav__menu>li:nth-child(3) {
    transition-delay: 0.4s;
}

.nav-open .nav__menu>li:nth-child(4) {
    transition-delay: 0.5s;
}


.nav__icon-company {
    position: fixed;
    display: inline-block;
    top: 30%;
    width: 10%;
    height: 100%;
    overflow: hidden;
    z-index: 11;
    margin-left: 0;
    transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0, 1);
    transform: translate3d(-20%, 0, 0);
}

.nav-open .nav__icon-company {
    transform: translate3d(-2%, 0, 0);
    width: 2%;
    opacity: 0.7;
}

.nav-open .nav__icon-company:hover {
    transform: translate3d(1%, 0, 0);
    opacity: 1;
}

.icon-company {
    position: fixed;
    left: 0%;
    margin-left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0, 1);
    transform: translate3d(-3%, 0, 0);
}

.icon-box {
    display: flex;
    justify-content: center;
    width: 2rem;
    height: 25%;
    background-color: white;
    margin-bottom: 0;
    cursor: pointer;
    align-items: center;
    z-index: 11;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.icon-box-link {
    text-decoration: none;
    color: inherit;
}


.icon-box-m {
    visibility: hidden;
    }

.icon-box p {
    text-decoration: none;
    position: relative;
    font-family: "GmarketSansBold";
    color: #1a2ae7;
    writing-mode: vertical-lr;
    text-align: center;
    margin-left: 0.8rem;
    padding: 0.2rem;
}

.nav-open .icon-company {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.nav__icon {
    display: flex;
    opacity: 0;
    z-index: 17;
    transition: opacity 0.2s ease-in;
    order: 3;
}

.nav-open .nav__icon {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

.nav__icon p i {
    font-size: 1.8rem;
    padding-left: 2rem;
    color: white;
}

.nav__icon > .icon-blog i {
    padding-top: 0.1rem;
    font-size: 1.5rem;
}

.nav__icon > .icon-youtube i:hover {
    color: #f00;
}

.nav__icon > .icon-blog i:hover {
    color: #2DB400
}

.nav__icon > .icon-instagram i:hover {
    color: #E4405F
}

.nav__toggle {
    position: fixed;
    top: 2rem;
    right: 3rem;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1200;
}

.nav__toggle-bar {
    display: block;
    position: absolute;
    width: 100%;
    height: 0.06rem;
    background-color: white;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.15s;
    transform-origin: center;
}

.nav__toggle-bar--1 {
    top: 0.4rem;
    left: 0.4rem;
    transform-origin: top left;
}

.nav__toggle-bar--2 {
    bottom: 0.4rem;
    left: 0.4rem;
    transform-origin: bottom left;
}

.nav-open .nav__toggle-bar--1 {
    transform: translateY(0.2rem) rotate(45deg);
    background-color: white;
}

.nav-open .nav__toggle-bar--2 {
    transform: translateY(0.6rem) rotate(-45deg);
    background-color: white;
}


@media screen and (max-width: 766px) {
    html{
        font-size: 12px;
    }

    .nav__mn {
        position: fixed;
        display: inline-block;
        flex-direction: column;
        top: 12.5%;
        width: 100%;
        height: 100%;
        z-index: 14;
        margin: 0 auto;
        overflow: hidden;
    }

    .nav__bg-item {
        position: relative;
        overflow: hidden;
        display: inline-block;
        height: 100%;
        vertical-align: top;
        width: calc(100% / 5);
    }

    .nav__menu {
        position: relative;
        display: flex;
        justify-content: left;
        text-align: left;
        width: 68%;
        left: 10%;
        padding: 0;
        transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.0, 0, 0, 1);
        transform: translate3d(-5%, 0, 0);
    }
    
    .nav-open .nav__menu>li:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav-open .nav__menu>li:nth-child(2) {
        transition-delay: 0.1s;
    }
    
    .nav-open .nav__menu>li:nth-child(3) {
        transition-delay: 0.1s;
    }
    
    .nav-open .nav__menu>li:nth-child(4) {
        transition-delay: 0.1s;
    }

    .nav__text {
        position: relative;
        top: 0;
        width: 75%;
        left: 10%;
        justify-content: left;
        text-align: left;
        transform: translate(-50%, -50%);
        padding-right: 0;
        transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.0, 0, 0, 1);
        transform: translate3d(5%, 0, 0);
        padding-bottom: 2rem;
    }

    .nav__text > .address {
        margin-top: 0;
    }

    .icon-box {
        visibility: hidden;
    }

    .nav__icon-company {
        pointer-events: none;
    }

    .nav__icon-company a {
        pointer-events: none;
    }

    .icon-box {
        pointer-events: none;
    }

    .nav__icon-company-m {
        position: fixed;
        display: flex;
        justify-content: flex-end;
        top: 12.5%;
        right: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        z-index: 16;
        transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0, 1);
        transform: translate3d(30%, 0, 0);
    }

    .nav-open .nav__icon-company-m {
    opacity: 1;
    width: 30%;
    height: 30%;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

    .icon-box-link-m {
        text-decoration: none;
        color: inherit;
    }

    .icon-box-m {
    visibility: visible;
    display: flex;
    justify-content: center;
    background-color: white;
    width: 2rem;
    height: 100%;
    cursor: pointer;
    align-items: center;
    z-index: 16;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.icon-box-m P {
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
    margin-right: 0.5rem;
    font-family: "GmarketSansBold";
    color: #1a2ae7;
    text-align: center;
    writing-mode: vertical-lr;
    transform: rotate(-180deg);
}

.nav__icon {
    display: flex;
    position: relative;
    top: -15%;
    left: -11%;
    opacity: 0;
    z-index: 17;
    transition: opacity 0.2s ease-in;
    pointer-events: none;
    justify-content: left;
    text-align: left;
}

.nav__icon p i{
    font-size: 2rem;
    padding-left: 2.5rem;
}

.nav__icon > .icon-blog i {
    padding-top: 0.2rem;
    font-size: 1.7rem;
}

}
@media screen and (min-width: 767px) and (max-width: 1023px) {
    html {
    font-size: 16px;
    }

    .nav__icon {
        display: flex;
        justify-content: right;
        top: 0;
        opacity: 0;
        z-index: 17;
        transition: opacity 0.2s ease-in;
        pointer-events: none;
    }

    .nav__icon-company a {
        pointer-events: none;
    }

    .icon-box-link {
        text-decoration: none;
        color: inherit;
    }

    .nav__icon-company {
        position: fixed;
        display: inline-block;
        top: 30%;
        width: 10%;
        height: 100%;
        overflow: hidden;
        z-index: 11;
        margin-left: 0;
        transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0, 1);
        transform: translate3d(-50%, 0, 0);
    }

    .icon-box-link-m {
        text-decoration: none;
        color: inherit;
    }
    
    .nav__icon p i {
        font-size: 2rem;
    }

    .nav__icon > .icon-blog i {
        padding-top: 0.2rem;
        font-size: 1.8rem;
    }
    
    .nav-open .nav__icon-company {
        width: 5%;
        transform: translate3d(0, 0, 0);
    }

}

@media screen and (min-width: 1024px) and (max-width: 1438px) {
    html {
        font-size: 16px;
        }

        .nav__mn {
            top: 30%;
        }

        .icon-box-link-m {
            text-decoration: none;
            color: inherit;
        }

        .nav__text {
            top: 29%;
        }

        .icon-box-link {
            text-decoration: none;
            color: inherit;
        }
    
        .nav__icon {
            display: flex;
            justify-content: right;
            width: 25%;
            height: 10%;
            opacity: 0;
            z-index: 17;
            transition: opacity 0.2s ease-in;
            pointer-events: none;
        }
    
        .nav__icon-company {
            position: fixed;
            display: inline-block;
            top: 30%;
            width: 10%;
            height: 100%;
            overflow: hidden;
            z-index: 11;
            margin-left: 0;
            transition: opacity 0.3s ease-out, transform 0.6s cubic-bezier(0.4, 0, 0, 1);
            transform: translate3d(-50%, 0, 0);
        }
        
        
        .nav-open .nav__icon-company {
            width: 10%;
            transform: translate3d(0, 0, 0);
        }
}

@media screen and (min-width: 1439px) and (max-width: 1978px) {
    html {
    font-size: 18px;
    }
}

@media screen and (min-width: 1979px) and (max-width: 2046px) {
    html {
        font-size: 20px;
    }
}

@media screen and (min-width: 2047px) {
    html {
        font-size: 22px;
    }
}