@import url('./fonts.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* 공통 컬러 */
    --black: #000;
    --white: #fff;
    --gray-light: #e5e5e5;
    --gray: #d1d1d1;
    --gray-text: #c9caca;
    --gray-text-dark: #888;
    --gray-dark: #2a2a2a;
    --main: #0080ff;
    --main-light: #f0f9ff;
    --active: #00e8b1;
}

.a {
    font-family: 'Noto Sans KR';
    font-weight: 500;
    font-size: 24px;
}

.a2 {
    font-family: 'Noto Sans KR';
    font-weight: 500;
    font-size: 18px;
}

.b {
    font-family: 'Montserrat';
    font-weight: bold;
    font-size: 111.35px;
    color: var(--gray-light);
    line-height: 80%;
}


/* 초기화 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans KR';
	letter-spacing: -2.2px;
    word-break: keep-all;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--black);
}

ul, li, ol {
    list-style: none;
}

/* 공통 스타일 */
html {
	scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(0deg, rgba(155, 255, 228, 1) 7%, rgba(0, 232, 177, 1) 24%, rgba(40, 62, 255, 1) 100%);
    
    border-radius: 10px;
    background-clip: padding-box;
    border: 1px solid transparent;
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0px 0px 5px white;
    
}

.bold {
    font-weight: bold;
}

.main {
    color: var(--main);
}

.accent {
    color:  var(--active);
}



/* 헤더 */
header {
    position: relative;
    width: 100%;
    height: auto;
}

.gnb_menu {
    display: grid;
    grid-template-columns: 3fr 3fr 3fr;
    gap: 2%;
    white-space: nowrap;
    align-items: center;
    height: 116px;
    justify-content: space-between;
}

.gnb_sub_w {
    display: none;
}

header:hover .gnb_sub_w {
    display: grid;
    grid-template-columns: 3fr 3fr 3fr;
    gap: 2%;
    white-space: nowrap;
    align-items: center;
    justify-content: space-between;
}

.gnb_menu > ul:last-of-type , .gnb_sub_w > div.subNav {
    justify-self: end;
}

.gnb_menu > a,
.gnb_sub_w > a{
    justify-self: start;
}

.skillFit {
    justify-self: center;
}

.gnb_menu {
    background-color: var(--black);
    color: var(--white);
    padding: 1% 5%;
}

.gnb_menu > a {
	font-size: 24px;
		width: 251px;
		height: 47px;
	}

.gnbLogo {
    width: 251px;
    height: 47px;
}

.gnbLogo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mainNav > li > a {
    color: var(--white);
}

.mainNav>li.skill:hover > a > img {
    filter: invert(42%) sepia(97%) saturate(1480%) hue-rotate(187deg) brightness(100%) contrast(101%);
}

.gnb_sub_w {
    position: absolute;
    top: 100%;
    /* 메인 메뉴 바로 아래에 위치하도록 설정 */
    left: 0;
    background-color: var(--white);
    width: 100%;
    height: 281px;
    padding: 0 5%;
    z-index: 90;
}

.mainNav , .subNav {
    display: flex;
    
}

.mainNav > li,
.subNav > ul > li {
    width: 140px;
}

.subNav>ul>li>a {
    font-weight: 600;
    color: var(--gray-text-dark);
}

.subNav>ul:not(.skillFit)>li:hover {
    position: relative;
}

.subNav>ul:not(.skillFit) > li:hover::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 1px;
    background-color: var(--main);
    bottom: 0;
    left: 0;
    z-index: 99;
}

.mainNav>li:hover>a, .subNav>ul>li:hover > a  {
color: var(--main);
}
.subNav>ul.skillFit{
    width: 155px;
    height: 280.99px;
}

.mainNav li.skillFit{
    width: 155px;
}
.mainNav>li >a,
.subNav>ul>li >a, .subNav>ul.skillFit>li,.subNav>ul.skillFit>li>a >img {
    width: 100%;
    height: 100%;
}
.subNav>ul>li {
    padding: 18% 0 3%;
}


.subNav>ul.skillFit>li {
    padding: 0;
}

.mob li:last-child {
    display: none;
}

.gnb_sub_w>div.subNav.a2 {
    justify-self: start;
    text-align: left;
}

.mob_menu {
    display: none;
}

/* 고투탑 버튼 */
.toTop {
    position: fixed;
    bottom: 5%;
    right: 5%;
    z-index: 9999;
    cursor: pointer;
}

.toTop div.top {
    width: 51px;
    height: 51px;
    position: relative;
}

.toTop div.top >img {
    width: 100%;
    height: 100%;
}

.toTop div.top::after {
    content: 'Page Up';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(5%, 100% );
    text-align: center;
    font-size: 12px;
    letter-spacing: -1px;
    font-weight: 500;
    color: var(--black);
    mix-blend-mode: difference;
    font-family: 'Montserrat';
    mix-blend-mode: difference;
}

/* 푸터 */

footer {
    background-color: var(--gray-dark);
    padding: 3% 5%;
    height: 100%;
    display: grid;
    grid-template-areas: 
    " footerLogo adress call      "
    "    copy     info  breakTime ";
    grid-template-columns: 2fr 3fr 1fr;
    grid-row-gap: 30px;
    color: var(--gray-text);
    /* font-size: 16px; */
    letter-spacing: 0;
}

.footerLogo {
    grid-area: "footerLogo";
}

.adress {
    grid-area: "adress";
}

.call {
    grid-area: "call";
}

.copy {
    grid-area: "copy";
    color: #4a4a4a;
}

.info {
    grid-area: "info";
    display: flex;
    gap: 14%;
}

.breakTime {
    grid-area: "breakTime";
    font-weight: bold;
    font-size: 14px;
}

.fbold {
    font-weight: bold;
}

@media screen and (max-width: 1630px) {
    .b {
        font-size: 100px;
    }
}

@media screen and (max-width: 1530px) {
    .b {
        font-size: 90px;
    }
    footer {
        grid-template-columns: 1.4fr 3fr 1fr;
    }
}

@media screen and (max-width: 1400px) {
    .b {
        font-size: 80px;
    }

    footer {
        grid-template-areas:
            " footerLogo copy"
            " adress info";

    grid-template-columns: 1fr 1.6fr;
    grid-template-rows: 1fr .3fr;
    }

    .info {
        gap: 5%;
    }

    .call , .breakTime {
        display: none;
    }


}

@media screen and (max-width: 1300px) {
    .b {
        font-size: 70px;
    }
}

@media screen and (max-width: 1160px) {
    .gnbLogo {
            width: 200px;
            height: 30px;
        }

    .gnbLogo >img {
        object-fit: contain;
    }

    .b {
        font-size: 60px;
    }
}

@media screen and (max-width: 1024px) {
    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    .mob li:not(:last-child) {
        display: none;
    }

    .mob li:last-child {
        display: block;
        text-align: right;
    }

    .subNav.a2 {
        flex-direction: column;
    }

    .subNav.a2 ul:not(:first-child) {
        border-top: 3px solid;
    }

    .subNav.a2 ul:not(:last-child) {
        padding-bottom: 10px;
    }
    
    .gnb_menu {
		height: 90px;
	}
	
	.gnb_menu >a {
		width: 200px;
		height: 37px;
	}

    .gnb_sub_w .skillFit , .gnb_sub_w > a, header:hover .gnb_sub_w {
        display: none;
    }

    .mob_menu::-webkit-scrollbar {
        width: 10px;
        background-color: transparent;
    }

    .mob_menu::-webkit-scrollbar-thumb {
        background: linear-gradient(0deg, rgba(155, 255, 228, 1) 7%, rgba(0, 232, 177, 1) 24%, rgba(40, 62, 255, 1) 100%);

        border-radius: 10px;
        background-clip: padding-box;
        border: 1px solid transparent;
    }

    .mob_menu::-webkit-scrollbar-track {
        box-shadow: inset 0px 0px 5px white;

    }

    .mob_menu {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        z-index: 10;
        background-color: var(--white);
        grid-template-columns: 1fr;
        grid-template-rows: .1fr 1fr;
        background-color: #f5f5f5;
        overflow-y: auto;
    }
    .mob_menu .top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 1% 5%;
        white-space: nowrap;
        align-items: center;
        justify-content: space-between;
        background-color: var(--white);
    }

    .mob_menu .top .close {
        justify-self: end;
        width: 23px;
        height: 24px;
        font-size: 24px;
        line-height: 24px;
        background-color: transparent;
        border: none;
        color: #c8c8c8;
        font-weight: 300;
        font-style: normal;
        font-family: 'Montserrat';
    }

    .mob_menu .menu > li {
        cursor: pointer;
        position: relative;
    }

    .mob_menu .menu > li::after , .mob_menu ul.sub::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #c8c8c8;
        top: 0;
    }

    .mob_menu ul.sub {
        background-color: var(--white);
        position: relative;

    }

    .mob_menu .menu li a , .mob_menu .menu li div {
        display: flex;
        justify-content: space-between;
        padding: 3% 5%;
        font-size: 24px;
        font-weight: 500;
    }

        .mob_menu .menu li a span,
        .mob_menu .menu li div span {
            color: #c8c8c8;
            font-weight: 300;
            font-style: normal;
            font-family: 'Montserrat';
            width: 23px;
            height: 24px;
            font-size: 24px;
            line-height: 24px;
        }

    .mob_menu ul.sub li:hover {
        position: relative;
    }

    .mob_menu ul.sub li:hover::after {
        content: '';
        position: absolute;
        width: 90%;
        height: 1px;
        background-color: var(--main);
        bottom: 15%;
        left: 5%;
        z-index: 99;
    }

    .mob_menu ul.sub li a {
        font-size: 20px;
        color: #6d6d6d;
        font-weight: 500;
    }

    .mob_menu ul.sub li:hover a {
        color: var(--main);
    }

    .mob_menu .menu li:hover >a>img {
        filter: invert(42%) sepia(97%) saturate(1480%) hue-rotate(187deg) brightness(100%) contrast(101%);
    }
    .mob_menu .menu li:hover > div{
        color: var(--main);
    }
}

@media screen and (max-width: 865px){
    footer {
        grid-template-areas:
            " footerLogo"
            " adress "
            " info ";
        grid-template-columns: 1fr;
        grid-template-rows: .5fr 1fr .3fr;
    }

    .call , .breakTime {
        display: none
    }
}

@media screen and (max-width: 650px){
    .gnb_menu {
        grid-template-columns: 3fr 3fr .1fr;
    }

    .mainNav li:last-child {
        width: 100px;
    }
}

@media screen and (max-width: 550px) {
    .gnbLogo {
        width: 150px;
        height: 30px;
    }
    .mainNav li:last-child {
        width: 80px;
    }

    footer {
        grid-template-rows: .6fr 1fr .1fr .1fr;
    }
}


@media screen and (max-width: 480px) {
	.gnb_menu {
    height: 80px;
}

.skillFit {
	display: none;
}
.gnb_menu >a {
    width: 161px;
    height: 30px;
}

    .mainNav li:last-child {
            display: flex;
            align-items: center;
            justify-content: end;
        }
}
@media screen and (max-width: 430px) {
    .adress {
        display: none;
    }

    footer {
        grid-template-rows: .6fr .1fr 1fr;
    }

    .info {
        flex-direction: column;
    }
}

@media screen and (max-width: 400px) {
    .gnbLogo {
        width: 100px;
    }

    .mainNav.skillFit.a {
        display: none;
    }

}

@media screen and (max-width: 350px) {
    .footerLogo {
        width: 80%;
    }

    .footerLogo > img{
        width: 100%;
    }


}