/*
 * main.css
 * 메인페이지에만 적용되는 스타일 입력,
 * 다른 css import 
 */
@import url(default.css);
@import url(font.css);
@import url(common.css);
@import url(layout.css);

.visual {
    position: relative;  /* ctrl_wrap 정렬의 기준 */
}
.visual h2 {
    display: none;  /* 숨김 */
}
.visual .swiper ul li {
    position: relative; /* .visual_txt 정렬의 기준 */
}
.visual .swiper ul li .photo {
    overflow: hidden;
    height: 900px;
}
.visual .swiper ul li .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.visual .swiper ul li.swiper-slide-active .photo img {
    animation-name: visual_photo;
    animation-duration: 5s; /*jquery에서 정한 팝업 시간과 똑같게*/
    animation-timing-function: linear; /*가속도x*/
    animation-iteration-count: 1;
    animation-fill-mode: forwards; /*마지막을 유지함*/
    transform: scale3d(1.1, 1.1, 1);
}
@keyframes visual_photo {
    0% { transform: scale3d(1, 1, 1);}
    100% { transform: scale3d(1.2, 1.2, 1);}
}
.visual .swiper ul li .visual_txt {
    position: absolute;
    left: 0;
    bottom: 3em; /*180px를 60px을 기준으로 환산*/
    /*em은 글자 크기의 몇배인지 계산한 것임. 감싸는 요소나 나 자신에게 글자크기를 선언해야 함. 아무것도 주지 않으면 기본 글자크기를 1em으로 계산*/
    width: 100%;
    font-size: 3.5294rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}
.visual .ctrl_wrap {
    position: absolute; /*visual을 기준으로 정렬*/
    left: calc(50% - 600px);
    bottom: 6em; /*120px를 20px을 기준으로 환산*/
    z-index: 10;
    font-size: 1.1765rem; /*글자 크기 20px를 17px을 기준으로 환산*/
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.visual .ctrl_wrap .paging { 
    font-size: 0; /*숫자 중간에 '/' 없애기*/
    line-height: 0;
    display: flex;
}
.visual .ctrl_wrap .paging span {
    font-size: 1.1765rem; /*글자 크기 20px를 17px을 기준으로 환산*/
    line-height: 1;
}
.visual .ctrl_wrap .paging span.swiper-pagination-current {
    margin-right: 6em;
    position: relative; /*span current::before의 정렬의 기준*/
}
.visual .ctrl_wrap .paging span.swiper-pagination-current::before {
    content: "";
    position: absolute; /*span current를 기준으로 정렬*/
    left: calc(100% + 0.6em);
    top: 35%;
    width: 4.75em;
    height: 3px;
    background-color: rgba(255,255,255,0.7);
}
.visual .ctrl_wrap .paging span.swiper-pagination-current::after {
    content: "";
    position: absolute; /*span current를 기준으로 정렬*/
    left: calc(100% + 0.6em);
    top: 35%;
    width: 0;
    height: 3px;
    background-color: #0000A9;

    animation-name: paging_ani;
    animation-duration: 5s; /*jquery에서 정한 팝업 시간과 똑같게*/
    animation-timing-function: linear; /*가속도x*/
    animation-iteration-count: infinite;
}
@keyframes paging_ani {
    0% { width: 0; }       
    100% { width: 4.75em; }       
}/*@keyframes*/

.visual .ctrl_wrap .paging span.swiper-pagination-total {
    color: rgba(255,255,255,0.7);
}
.visual .ctrl_wrap button {
    color: transparent; /*색상 투명*/
    /*font-size: 0;
    line-height: 0; 폰트 사이즈를 0을 주면 rem, em이 0이 되기 때문에 색 속성을 바꿔서 글자를 안보이게 해줌*/
    width: 1.5882em;
    height: 1.5882em;
    position: relative; /* before 정렬의 기준 */
}
.visual .ctrl_wrap button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}
.visual .ctrl_wrap button.stop::before {
    background-image: url("data:image/svg+xml,%3Csvg width='27' height='27' viewBox='0 0 27 27' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.125 8.77539V18.2254' stroke='white' stroke-width='2' stroke-linecap='square'/%3E%3Cpath d='M16.875 8.77539V18.2254' stroke='white' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E%0A");
}
.visual .ctrl_wrap button.play::before {
    background-image: url("data:image/svg+xml,%3Csvg width='27' height='27' viewBox='0 0 27 27' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.25 9.23686L18.5 14L10.25 18.7631V9.23686Z' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A");
}
.visual .ctrl_wrap button.play {
    display: none;
}

@media screen and (max-width:1300px){ /* 브라우저 너비 기준 1300px이하에서만 실행*/
    .visual .ctrl_wrap {
        left: 140px;
    }
} /* @media */

@media screen and (min-width:761px){  /*761px 이상일 때*/
    .visual .swiper ul li .visual_txt .line {
        white-space: nowrap; /*한 줄 제한*/
        overflow: hidden;
    }
    .visual .swiper ul li.swiper-slide-active  .visual_txt .line p {
        transform: translateY(100%); /*숨겨져 있음*/
        animation-name: visual_txt_ani;
        animation-duration: 0.8s; /*jquery에서 정한 팝업 시간과 똑같게*/
        animation-timing-function: linear; /*가속도x*/
        animation-iteration-count: 1; /*한 번만 실행*/
        animation-fill-mode: forwards; /*마지막 유지*/
    }
    
    @keyframes visual_txt_ani {
        0% { transform: translateY(100%); }       
        30% { transform: translateY(100%); }       
        100% { transform: translateY(0); }       
    }/*@keyframes*/

} /* @media */

@media screen and (max-width:760px){ /* 브라우저 너비 기준 640px이하에서만 실행*/
    .visual .swiper ul li .photo {
        height: 600px;
    }
    .visual .swiper ul li .visual_txt {
        bottom: 3.2667em; /*180px를 60px을 기준으로 환산*/
        font-size: 2.3077rem;
    }
    .visual .ctrl_wrap {
        bottom: 3.8667em; /*58px를 15px을 기준으로 환산*/
        font-size: 1.1538rem; /*글자 크기 15px를 13px을 기준으로 환산*/
    }

} /* @media */
/*************visual 끗***********************/

/****company 회사소개*****/
.cop {
    width: 100%;
    background: #fff;
    color: #111;
    border-bottom: #aaa solid 3px;

}

.cop * {
    box-sizing: border-box;
}

.cop_inner {
    display: flex;
    width: 100%;
    height: 600px;
    min-height: 580px;
}

.cop_menu {
    width: 60%;
    padding: 100px 2% 10px 12%;
    background: #fff;
}

.cop_menu h2 {
    margin: 0 0 70px;
    font-size: 3em;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111;
}

.cop_list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: copNum;
}

.cop_list li {
    counter-increment: copNum;
    margin-bottom: 20px;
}

.cop_list li:last-child {
    margin-bottom: 0;
}

.cop_list li a {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 62px;
    padding-left: 7em;
    text-decoration: none;
    color: #111;
}

.cop_list li a::before {
    content: counter(copNum);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 1px solid #111;
    background: #f8f8fb;
    color: #111;
    font-size: 2em; /* 42px */
    font-weight: 600;
    line-height: 58px;
    text-align: center;
    transition: all 0.25s ease;
}

.cop_list li a span {
    position: relative;
    display: block;
    width: 100%;
    padding-right: 90px;
    font-size: 1.8em;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #111;
    transition: color 0.25s ease;
}

.cop_list li a span::after {
    content: "";
    position: absolute;
    left: -25px;
    right: 80px;
    bottom: -16px;
    height: 4px;
    background: #0000A9;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: all 0.25s ease;
}

.cop_list li a::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    color: #0000A9;
    font-size: 3em; /* 48px */
    font-weight: 700;
    opacity: 0;
    transition: all 0.25s ease;
}

/* hover / active 효과 */
.cop_list li:hover a::before,
.cop_list li.active a::before {
    border-color: #0000A9;
    background: #0000A9;
    color: #fff;
}

.cop_list li:hover a span,
.cop_list li.active a span {
    color: #0000A9;
}

.cop_list li:hover a span::after,
.cop_list li.active a span::after {
    transform: scaleX(1);
    opacity: 1;
}

.cop_list li:hover a::after,
.cop_list li.active a::after {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.cop_img {
    width: 40%;
    min-height: 720px;
    overflow: hidden;
}

.cop_img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
    .cop_inner {
        flex-direction: column;
        min-height: auto;
    }

    .cop_menu {
        width: 70%;
        padding: 80px 6%;
    }

    .cop_img {
        width: 100%;
        height: 420px;
        min-height: auto;
    }

    .cop_menu h2 {
        font-size: 2.875em; /* 46px */
        margin-bottom: 50px;
    }
    .cop_list li a::before {
        width: 64px;
        height: 64px;
        font-size: 2.125em; /* 34px */
        line-height: 64px;
    }

    .cop_list li a span {
        font-size: 2.125em; /* 34px */
    }
}

@media screen and (max-width: 640px) {
    .cop_menu {
        padding: 60px 24px;
    }

    .cop_menu h2 {
        font-size: 2.375em; /* 38px */
        margin-bottom: 40px;
    }

    .cop_list li {
        margin-bottom: 20px;
    }

    .cop_list li a {
        min-height: 62px;
        padding-left: 86px;
    }

    .cop_list li a::before {
        width: 54px;
        height: 54px;
        font-size: 1.75em; /* 28px */
        line-height: 54px;
    }

    .cop_list li a span {
        font-size: 1.75em; /* 28px */
        padding-right: 50px;
    }

    .cop_list li a span::after {
        left: -10px;
        right: 45px;
        bottom: -10px;
        height: 3px;
    }

    .cop_list li a::after {
        right: 0;
        font-size: 2.25em; /* 36px */
    }

    .cop_img {
        height: 320px;
    }
}


/****business 사업분야*****/
.biz {
    width: 100%;
    background: #fff;
    color: #111;
}

.biz * {
    box-sizing: border-box;
}

.biz_inner {
    display: flex;
    width: 100%;
    height: 400px;
    min-height: 720px;
}

.biz_menu {
    width: 60%;
    padding: 100px 2% 10px 12%;
    background: #fff;
}

.biz_menu h2 {
    margin: 0 0 70px;
    font-size: 3em;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111;
}

.biz_list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: bizNum;
}

.biz_list li {
    counter-increment: bizNum;
    margin-bottom: 20px;
}

.biz_list li:last-child {
    margin-bottom: 0;
}

.biz_list li a {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 62px;
    padding-left: 7em;
    text-decoration: none;
    color: #111;
}

.biz_list li a::before {
    content: counter(bizNum);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 1px solid #111;
    background: #f8f8fb;
    color: #111;
    font-size: 2em;
    font-weight: 600;
    line-height: 58px;
    text-align: center;
    transition: all 0.25s ease;
}

.biz_list li a span {
    position: relative;
    display: block;
    width: 100%;
    padding-right: 90px;
    font-size: 1.8em;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #111;
    transition: color 0.25s ease;
}

.biz_list li a span::after {
    content: "";
    position: absolute;
    left: -25px;
    right: 80px;
    bottom: -16px;
    height: 4px;
    background: #005C00;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: all 0.25s ease;
}

.biz_list li a::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    color: #005C00;
    font-size: 3em;
    font-weight: 700;
    opacity: 0;
    transition: all 0.25s ease;
}

/* hover / active 효과 */
.biz_list li:hover a::before,
.biz_list li.active a::before {
    border-color: #005C00;
    background: #005C00;
    color: #fff;
}

.biz_list li:hover a span,
.biz_list li.active a span {
    color: #005C00;
}

.biz_list li:hover a span::after,
.biz_list li.active a span::after {
    transform: scaleX(1);
    opacity: 1;
}

.biz_list li:hover a::after,
.biz_list li.active a::after {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.biz_img {
    width: 40%;
    min-height: 720px;
    overflow: hidden;
}

.biz_img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 반응형 */
@media screen and (max-width: 1024px) {
    .biz_inner {
        flex-direction: column;
        min-height: auto;
    }

    .biz_menu {
        width: 70%;
        padding: 80px 6%;
    }

    .biz_img {
        width: 100%;
        height: 420px;
        min-height: auto;
    }

    .biz_menu h2 {
        font-size: 2.875em;
        margin-bottom: 50px;
    }

    .biz_list li a::before {
        width: 64px;
        height: 64px;
        font-size: 2.125em;
        line-height: 64px;
    }

    .biz_list li a span {
        font-size: 2.125em;
    }
}

@media screen and (max-width: 640px) {
    .biz_menu {
        padding: 60px 24px;
    }

    .biz_menu h2 {
        font-size: 2.375em;
        margin-bottom: 40px;
    }

    .biz_list li {
        margin-bottom: 20px;
    }

    .biz_list li a {
        min-height: 62px;
        padding-left: 86px;
    }

    .biz_list li a::before {
        width: 54px;
        height: 54px;
        font-size: 1.75em;
        line-height: 54px;
    }

    .biz_list li a span {
        font-size: 1.75em;
        padding-right: 50px;
    }

    .biz_list li a span::after {
        left: -10px;
        right: 45px;
        bottom: -10px;
        height: 3px;
    }

    .biz_list li a::after {
        right: 0;
        font-size: 2.25em;
    }

    .biz_img {
        height: 320px;
    }
}