@charset "utf-8";
/* CSS Document */

/* default layout */
header{ position: fixed; z-index: 100; width: 100%; background-color: transparent; }
#topaniwrap{ height: calc(var(--headerH) + var(--aniH));  padding-top: var(--headerH); overflow: hidden; }
#conts{     
    min-height: calc(100vh - var(--footerH) - var(--aniH) - var(--headerH)); 
    font-weight: 400; 
}
footer{     
    min-height: var(--footerH); background-color: #232323; color:white;
    border-top: 1px solid rgba(0, 0, 0, 0.15); text-align: center;  overflow: hidden;
}
#botx{ display: none; visibility: hidden; }


/* logo */
*:has(>.logo){letter-spacing: -0.03em; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;  }
.logo{ height: 1.3rem; margin-right: 0.5rem;  }
.logo+span{ font-weight: 700; position: relative; display: inline-block; }
.sitetitle{ height: 5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); width: 100%; display: flex; justify-content: center; }


/* navigattion */
#nav{ 
    list-style: none; padding-inline-start: 0em;
    display: flex; align-items: center; margin: 0%; flex: 1 1 auto;
}
#nav>li{ flex:1 1 auto; }
#nav>li>a{ display: block; width: 100%; font-size: 1.1em; font-weight: 500;  }
#nav>li>div{ display: block; text-align: left; }
#nav>li>div>a{ transition: all 0.3s ease-out; }
#nav>li>div>div{ display: none; }


/* header */
header{ position: fixed; z-index: 100; width: 100%; background-color: white; }


/* footer 이하 */
#footLink{ width: 100%; height: 3rem; line-height: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
#footLink>a{ display: inline-block; padding: 0em 0.3em; font-weight: 300; color: rgba(255, 255, 255, 0.5); }
.logowrap{ display: flex; align-items:baseline; column-gap: 2px; justify-content: center; width: 100%; padding: 1em 0; }

#footInfo{ 
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 0.5rem;
    font-size: 0.9rem; font-weight: 300; max-width: var(--fullwidth); margin: auto; color: rgba(255, 255, 255, 0.5);
}
#footInfo>p:last-child{ opacity: 0.7; width: 100%; padding: 1em 0 2rem 0; }


/* conts */
#conts{ color:rgba(0, 0, 0, 0.6); font-weight: 400; font-size: 17px; line-height: 1.7; }
#location{ display: flex; align-items: center; font-size: 0.9em; color:rgba(0, 0, 0, 0.5); }
#location .material-icons{ font-size: 1em;}
#page-h1{ display: none; } /* 동적 h1 컨트롤 */
#pagetitle{ padding-top: 1rem; font-size: 1.5em; color:black; text-align: center; font-weight: 500; }
#pagetitle::after{ content: ""; display: block; margin-top:1rem; height: 2rem;  border-top: 1px solid rgba(0, 0, 0, 0.15); }
#pagetitle>.h1-desc{ font-size: 1rem; font-weight: 400; opacity: 0.5; padding-top: 5px; width: var(--fullwidth); margin: auto; min-height: 29px; }


:root { --main-color: #7accc8; --headerH : 100px; --footerH : 16rem; --aniH: 360px; }

/*탭 이하*/
@media screen and (max-width: 1024px) {
    :root { --fullwidth: calc(100vw - 2em); --headerH : 3rem; --aniH: 0px; }

    /* 모바일 메뉴 버튼 */
    #btn-nvopen{ 
        background: url(/images/mobile_icoList_black.svg) no-repeat; width: 20px; height: 20px; 
        display: block; position: fixed;  top: 15px; right: 10px; cursor:pointer;
    }
    .sitetitle{ height: var(--headerH); position: fixed; z-index: 0; background-color: #fff; }
    #topmn{display: none;}

    /* navigation 이하 */
    #nav{ 
        flex-wrap: wrap;  
        position: fixed; z-index: 3; width: 300px; padding: 30px  20px; height: 100vh; left:-300px; align-content: flex-start;
        background-color: #fff; border-right: 1px solid rgba(0, 0, 0, 0.1); 
        transition:left 0.3s ease-out; 
    }
    #nav.menuon{ left:0px; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5); }
    #nav>li{ min-width: 100%; padding: 0.7em 0em; font-size: 1.1em; border-bottom: 1px solid rgba(0, 0, 0, 0.1);  }
    #nav>li>div{ 
        display: none; margin:15px 0px 10px 0px; padding: 0.5em 1em; text-align: left; border:1px solid rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.03); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
    }
    #nav>li>div>a{ display: block; width: 100%; padding: 0.5em 0em; }
    #nav>li>div>a:not(:last-of-type){ border-bottom: 1px solid rgba(0, 0, 0, 0.1);}

    #topmn{display: none;}
    #nav>#topmn{ 
        display: flex; width: 100%; align-items: center; justify-content: center; margin:1.5em 0; padding: 0.7em 0; background-color: var(--main-color); color:white; border-radius: 3px;
    }
    #nav>#topmn>a{ padding: 0 0.5em;}
    #nav>#topmn>a:not(:first-child){ border-left:1px solid rgba(255, 255, 255, 0.5); }

    #bmask{ position:fixed; top:0px; left: 0px; width: 100%; height: 100vh; background: black; opacity: 0; }
    #btn-nvclose{ background: url(/images/mobile_icoListX_black.svg) no-repeat; width: 20px; height: 20px; display: block; position: absolute; z-index: auto; top: 10px; right: 10px; cursor:pointer }
    
    /* conts */
    #conts{ padding: 0rem 1rem 2rem 1rem; }
    #location{ padding:1em 0em; border-bottom: 1px solid rgba(0, 0, 0, 0.1);}
}

/*모바일*/
@media screen and (max-width: 500px) {   

    /* #pagetitle과 nav-tab  간격 설정*/
    #pagetitle:has(+.nav-tab)::after{ height: 0; }
}

/*탭 이상*/
@media screen and (min-width: 500.02px) {
    /* #pagetitle과 nav-tab  간격 설정*/
    #pagetitle:has(+.nav-tab)::after{ height: 1em; }
}

/*PC*/
@media screen and (min-width: 1024.02px) {
    :root { --fullwidth: 1200px; }

    /* topmenu */
    #topmn{ 
        position: absolute; top:0px; left:calc(50% + 600px - 160px); width: fit-content; 
        background-color: #389DDC; line-height: 2.5em; width: 160px; color:white;
        display: flex; justify-content: center; align-items: center; gap: 0.5em; font-size: 0.8em;
    }
    #topmn>.material-icons{ font-size: 1.2em; color:rgba(255, 255, 255) }

    /* header */
    header{ overflow: hidden;  border-top: 3px solid #389DDC; }
    header:has(.onmenu){ box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);  }
    header::after{ 
        content: ""; display: block; width: 100%; height: 0px;
        border-top: 1px solid rgba(0, 0, 0, 0); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition:all 0.3s ease; 
    }
    header:has(.onmenu)::after{ 
        border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        height: 260px; /* 마우스 온일 경우 높이 설정 */
    }

    /* navigattion */
    #nav{ margin: auto; padding: 45px 0 0 350px; max-width: var(--fullwidth); min-width: 1024px; }
    #nav>li{ position: relative; text-align: center; padding-bottom: 18px; line-height: 2rem; }
    #nav>li>a{ font-size: 1.3rem; font-weight: 500; border-right: 1px solid rgba(0, 0, 0, 0.1); }
    #nav>li>a:last-child{ border-right: none;}
    #nav>li>a:after{ 
        content:''; position:absolute; display:block; bottom:0px; left:50%; width:0%; height:2px; background-color:white;
        transition:all 0.2s ease-out; 
    }
    #nav>li>div{ 
        position: absolute; opacity: 0; width: 100%; font-size: 1.05em; padding: 1em 0.5em; font-weight: 500; 
        color:rgba(0, 0, 0, 0.7); top:2rem; 
        transition:all 0.3s ease; 
    }
    #nav>li>a.onmenu{color:var(--main-color); }
    #nav>li>a.onmenu:after{background-color:var(--main-color); left:0%; width:100%; }

    #nav:has(.onmenu)>li>div{ opacity: 1; top:3rem; }

    #nav>li>div>a{ display: flex; justify-content: center; line-height: 2.5rem; transition:all 0.2s ease-out; }
    #nav>li>div>a.menuon{ color:var(--main-color); transform: scale(1.15); }
    #nav>li>div>a.menuoff{ color:unset; opacity: 0.7; }


    /* conts */
    #conts{ padding-bottom: 2rem; }
    #location{ position: relative; right: 0px; top:70px; height: 0px; justify-content: flex-end; font-size: 1em; }
    #location+#pagetitle{  margin-left: auto; margin-right: auto; font-size: 1.9rem; font-weight: 700; line-height: normal; padding-top: 1.5rem; position: relative; overflow: hidden; background: url(/images/h1back.svg) no-repeat calc(50% - 655px) 0 / 452px ; }

    #conts>.devicefull{ width: var(--fullwidth); min-width: var(--fullwidth); margin-left: auto; margin-right: auto; }


    /* 기타 설정  ################################################################################### */
    .sitetitle{ position: absolute; z-index: auto; top:15px; left: calc(50% - 600px); width: fit-content; border-bottom: none;}
    .logo{ height: 2em;}
    .logo+span{ height: 2em; font-size: 1.7rem;}
    .logo+span::after{
        content: "UJU PRECISION INDUSTRIAL., LLC."; position:absolute; display: block; text-align: center;
        font-size: 0.35em; color: rgba(0, 0, 0, 0.5);  bottom:0rem; left: 0; width: 100%;
    }

    #topani{ 
        height: 360px; position: relative; margin: auto; overflow: hidden; 
        font-family: "Noto Sans KR";  font-size: 135%;
    }
    #topani>*{ position: absolute; z-index: auto; opacity: 0; }
    #ani01{ 
        width:100%; height: 100%; background: url(/images/aniimg01.jpg) repeat-x; background-size: auto; background-position: 50% 0%; 
        animation: anik01 ease 2s; animation-delay: 0.1s; animation-fill-mode:forwards; top:0px;
    }
    @keyframes anik01{
        0% {opacity:0; scale: 1.2;}
        50% { opacity:1; }
        100% {  opacity:1; scale: 1;  }
    }
    #ani02{ 
        width:100%; height: 100%; background: url(/images/aniimg02.svg) no-repeat; background-size: auto; background-position: 50% -100px; 
        animation: anik02 ease 2s; animation-delay: 0.1s; animation-fill-mode:forwards; 
    }
    @keyframes anik02{
        0% {opacity:0; transform: translateX(100px); }
        100% { opacity:1; transform: translateX(-53px); }
    }
    #ani03{ 
        width:100%; height: 100%; background: url(/images/aniimg03.svg) no-repeat; background-size: auto; background-position: 50% 0%;  transform: translateY(0px) translateX(43px);
        animation: anik03 ease 2s; animation-delay: 0.5s; animation-fill-mode:forwards; 
    }
    @keyframes anik03{
        0% {opacity:0; transform: translateY(0px) translateX(-100px); }
        100% { opacity:1; transform:translateY(0px) translateX(43px); }
    }
    #ani04{ 
        width:100%; height: 100%; background: url(/images/aniimg04.svg) no-repeat; background-size: auto; background-position: 50% -100px; 
        animation: anik04 ease 2s; animation-delay: 0.8s; animation-fill-mode:forwards; 
    }
    @keyframes anik04{
        0% {opacity:0; transform: translateX(200px); }
        100% { opacity:1; transform: translateX(0px); }
    }
    #ani05{ 
        width:100%; height: 100%; background: url(/images/aniimg05.svg) no-repeat; background-size: auto; background-position: 50% -100px; 
        animation: anik05 ease 2s; animation-delay: 1s; animation-fill-mode:forwards; 
    }
    @keyframes anik05{
        0% {opacity:0; transform: translateX(-200px); }
        100% { opacity:1; transform: translateX(0px); }
    }
    #ani06{ left:calc(50% - 600px); top:45px; opacity:0; animation: anik06 ease 1s; animation-delay: 1s; animation-fill-mode:forwards;  }
    @keyframes anik06{
        0% {opacity:0; top:25px; }
        100% { opacity:1; top:45px;; }
    }
    #ani07{ 
        left:calc(50% - 530px); top:90px; width: 540px; color:#029add; font-size: 200%; font-weight: 600; opacity:0; text-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
        animation: anik07 ease 1s; animation-delay: 1.2s; animation-fill-mode:forwards;
    }
    @keyframes anik07{
        0% {opacity:0; top:130px;; }
        100% { opacity:1; top:90px;; }
    }
    #ani08{ 
        left:calc(50% - 530px); top:265px; width: 540px; font-size: 120%; font-weight: 500; opacity:0;
        animation: anik08 ease 1s; animation-delay: 1.4s; animation-fill-mode:forwards;
    }
    @keyframes anik08{
        0% {opacity:0; top:145px;; }
        100% { opacity:1; top:165px;; }
    }
    #ani09{ 
        left:calc(50% - 530px); top:310px; width: 540px; color:rgba(0, 0, 0, 0.7); font-weight: 500; opacity:0;
        animation: anik09 ease 1s; animation-delay: 1.6s; animation-fill-mode:forwards;
    }
    @keyframes anik09{
        0% {opacity:0; top:190px;; }
        100% { opacity:1; top:210px;; }
    }
    #ani10{ left:calc(50% - 530px); top:20px; width: 50px; transform: rotate(0.15turn);  animation: anistar linear 2s infinite; animation-delay: 1s; }
    #ani11{ left:calc(50% - 220px); top:70px; width: 50px; transform: rotate(0.1turn);  animation: anistar linear 2s infinite; animation-delay: 1.2s; }
    #ani12{ left:calc(50% - 70px); top:140px; width: 40px; transform: rotate(0.15turn);  animation: anistar linear 2s infinite; animation-delay: 1.4s; }
    #ani13{ left:calc(50% + 100px); top:180px; width: 35px; transform: rotate(0.15turn);  animation: anistar linear 2s infinite; animation-delay: 1.6s;  }
    @keyframes anistar{
        0% {opacity:0; transform: scale(0.5) rotate(0turn); }
        50% { opacity:1; transform: scale(1) rotate(0.2turn); }
        100% { opacity:0; transform: scale(0.5) rotate(0turn); }
    }

    footer .logo+span::after{ color: rgba(255, 255, 255, 0.5); }
    #footInfo{  max-width: 840px; }
}