
/* p 태그는 기존처럼 전체 animate 사용 */
.mainVisual .swiper-slide-active .main_text p {
    animation: animate 2.5s ease-in-out;
}

/* h2 태그는 opacity만 변화하도록 별도 애니메이션 적용 */
.mainVisual .swiper-slide-active .main_text h2 {
    animation: fadeIn 2s ease-in-out;
}

@keyframes animate {
    0% {
        transform: translateY(50%);
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


#s_text {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 50px;
    overflow: hidden;
}

#s_text > h2 {
    font-size: 48px;
}

#s_text > p {
    font-size: 14px;
    color: #797979;
    margin-top: 20px;
}

#s1 {
    padding-top: 82px;
}

.here {
    text-shadow: 1px 1px 2px #00000099;
    text-align: center;
    position: absolute;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
}

#text_h2 {
    font-size: 57px;
    font-weight: bold;
    color: #fff;
}

#text_p {
    font-size: 16px;
    color: #fff;
    margin-top: 30px;
}

#he {
    width: 100%;
    box-sizing: border-box;
    margin: 100px 0 200px 0;
}

#he > div {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#he ul {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 20px;
    overflow: hidden;
}

#he img {
    width: 100%;
}

.he_ul_text h2 {
    font-size: 22px;
    margin: 30px 0;
    box-sizing: border-box;
}

.he_ul_text p {
    font-size: 13px;
    color: #696a6b;
    margin-top: 5px;
}

#cg {
    width: 100%;
    box-sizing: border-box;
    margin: 100px 0 200px 0;
}

.cg_div {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.cg_div_1 h2 {
    background-color: #103349;
    color: #fff;
    padding: 5px 50px;
    box-sizing: border-box;
    font-size: 26px;
    border-radius: 10px;
}

.cg_div_2 h2 {
    background-color: #787878;
    color: #fff;
    padding: 5px 50px;
    box-sizing: border-box;
    font-size: 26px;
    border-radius: 10px;
    max-width: 260px;
    position: relative;
    transform: translateX(-50%);
    left: 50%;
}

.cg_div_2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    width: 100%;
}

.cg_div_2 > div {
    width: 100%;
}

.cg_div .line1 {
    border-left: 2px dotted #000;
    height: 50px;
    margin-top: 5px;
}

.cg_div .line2 {
    border-top: 2px dotted #000;
    width: calc(50% + 3px);
}

.cg_div .line3 {
    border-left: 2px dotted #000;
    border-right: 2px dotted #000;
    height: 50px;
    width: 50%;
    margin-bottom: 5px;
}

.cg_div_2_div {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    grid-gap: 5px;
}

.cg_div_2_div p {
    padding: 5px 10px;
    box-sizing: border-box;
    font-size: 20px;
    border-radius: 10px;
    background-color: #c2c2c2;
    color: #fff;
    font-weight: bold;
}

.cg_div .line_2 {
    margin-top: 20px;
    width: calc(80% + 2px);
    border-top: 2px dotted #000;
    position: relative;
    transform: translateX(-50%);
    left: 50%;
}

.cg_div .line_3 {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    justify-items: center;
    margin-bottom: 5px;
}

.cg_div .line_3 > div {
    border-left: 2px dotted #000;
    height: 30px;
}

#pn {
    width: 100%;
    box-sizing: border-box;
    margin: 100px 0 200px 0;
    overflow: hidden;
}

#pn > div {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#pn ul {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    grid-gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

#pn img {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

#vs {
    width: 100%;
    box-sizing: border-box;
    margin: 100px 0 100px 0;
}

.vs_div2 {
    background-image: url(/theme/basic/img/main/vs_bg.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

#vs ul {
    display: grid;
    grid-template-columns: repeat(3,1fr);
}

#vs ul li {
    padding: 15% 0;
    box-sizing: border-box;
    transition: ease-in-out 0.7s all;
}

#vs ul li:hover {
    background-color: #00000066;
}

#vs ul li:not(:last-child) {
    border-right: 1px solid #fff;
}

#vs ul h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

#vs ul p {
    font-size: 13px;
    line-height: 1.5;
}

#pn2 {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 100px 0;
}

#pn2 ul {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    grid-gap: 50px;
    overflow: hidden;
}

#pn2 img {
    width: 100%;
}

@media all and (max-width:1500px) {}


@media all and (max-width:1100px) {}

@media all and (max-width:900px) {
    #s1 .swiper-control {
        bottom: 10px;
    }
    #s1 {
        margin: 0;
        padding-top: 121px;
    }
    #text_h2 {
        font-size: 40px;
    }
    #s_text > p {
        padding: 0 20px;
        box-sizing: border-box;
    }
    #he ul {
        grid-gap: 10px;
        padding: 0 10px;
        box-sizing: border-box;
    }
    #pn ul {
        grid-template-columns: repeat(3,1fr);
        padding: 0 50px;
        box-sizing: border-box;
    }
    #vs ul h2 {
        font-size: 18px;
    }
    #vs ul p {
        font-size: 12px;
    }
    #pn2 ul {
        padding: 0 10px;
        box-sizing: border-box;
    }
}

@media all and (max-width:600px) {
    #s1 {
        padding-top: 116px;
        min-height: initial;
        margin: 0;
    }
    #s1 .swiper-control {
        bottom: 5px;
    }
    #text_h2 {
        font-size: 16px;
    }
    #text_p {
        font-size: 12px;
        margin-top: 5px;
        padding: 0 20px;
        box-sizing: border-box;
    }
    #s_text > h2 {
        font-size: 40px;
    }
    #s_text > p {
        font-size: 12px;
        padding: 0 20px;
        box-sizing: border-box;
        line-height: 1.5;
    }
    #he,
    #pn,
    #vs {
        margin: 50px 0 100px 0;
    }
    #he ul {
        grid-template-columns: repeat(2,1fr);
        grid-gap: 10px;
    }
    .he_ul_text h2 {
        margin: 15px 0;
    }
    #pn ul {
        grid-gap: 5px;
        padding: 0;
    }
    #vs ul h2 {
        font-size: 22px;
    }
    #vs ul p {
        font-size: 13px;
    }
    #vs ul {
        grid-template-columns: repeat(1,1fr);
    }
    #vs ul li {
        padding: 5% 0;
    }
    #vs ul li:not(:last-child) {
        border: none;
        border-bottom: 1px solid #fff;
    }
    #pn2 {
        margin: 0;
    }
    #pn2 ul {
        grid-gap: 10px;
    }
}
