* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    list-style: none;
    font-family: 'Noto Sans KR', sans-serif;
}


section {
    max-width: 2000px;
    margin: 0 auto;
}

.first-section {
    margin-top: var(--height-top);
}

a {
    color: #333;
    cursor: pointer;
}

header {
    box-shadow:none;
}

header.scroll-active {
    box-shadow: 0 1px 0 #bbbbbb;
}

nav > ul > li > a:hover {
    color: var(--color-primary);
}

HEADER > .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 20px;
    left: 20px;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
}

.hamburger-label .line {
    display: block;
    height: .25rem;
    width: 2rem;
    border-radius: .75rem;
    background: #03302b;
}

#hamburger:checked ~ .sidebar {
    display: flex;
    visibility: visible;
}

#hamburger:checked ~ .sidebar .sidebarBg {
    transform: translateX(0);
    visibility: visible;
}

.sidebar {
    visibility: hidden;
    width: 100vw;
    height: 100vh;
    backdrop-filter: brightness(0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
}

.sidebar > .sidebarBg {
    width: 60vw;
    visibility: hidden;
    transform: translateX(-150%);
    transition: transform .25s ease-in-out;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 3px 1px 5px #333;
    justify-content: center;
    user-select: none;
}

.btn-close {
    position: absolute;
    right: 1rem;
    top: 2rem;
    height: 1.05rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    flex: 1;
}

.btn-close .line {
    display: block;
    height: .25rem;
    width: 1.25rem;
    border-radius: .5rem;
    background: #03302b;
}

.btn-close .line.line1 {
    transform-origin: 0 0;
    transform: rotate(45deg);
}

.btn-close .line.line2 {
    transform-origin: 0 100%;
    transform: rotate(-45deg);
}

.sidebar > .sidebarBg > UL {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 6rem 0 0 2rem;
    gap: 1rem;
}

.sidebar UL > LI {
}

.sidebar UL > LI > P {
    font-weight: 600;
    cursor: pointer;
    font-size: 1.25rem;
}

.sidebar UL > LI > P.active {
    font-weight: 800;
}

.big.active ~ UL.sub {
    visibility: visible;
    height: fit-content;
    display: flex;
    transform: translateY(0);
}

.sidebar UL > LI > UL.sub {
    visibility: hidden;
}

.sidebar UL > LI > UL.sub {
    display: flex;
    flex-direction: column;
    height: 0;
    gap: .25rem;
    padding: 0 1.5rem;
    font-size: 1.125rem;
    padding-top: 1rem;
    transform: translateY(-20%);
    transition: transform .4s ease-in-out;
}

.main-logo a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    display: flex; /* 변경된 부분: flex로 설정하여 flex 아이템들을 가로로 배치 */
    align-items: center;
    justify-content: flex-end; /* 변경된 부분: 오른쪽 정렬 */
}

nav ul {
    display: flex; /* 변경된 부분: flex로 설정하여 flex 아이템들을 가로로 배치 */
}

nav li {
    flex-grow: 1; /* 변경된 부분: 각 li 요소가 동일한 간격으로 확장됨 */
    text-align: center; /* 변경된 부분: 텍스트 가운데 정렬 */
    width: 120px;
    margin: 0 0.5rem;
    font-weight: 900;
}

nav li a {
    display: block; /* 변경된 부분: 링크를 블록 레벨 요소로 만들어 전체 영역 클릭 가능하게 함 */
    padding: 0.625rem 0; /* 변경된 부분: 간격 조정 */
}


/*========= Test Start =========*/
.imgslide {
    width: 100%;
    height: 40vw;
    min-height: 400px;
    margin-bottom: 2.688rem;
}

.imgslide-list {
    width: 100%;
    height: 100%;
}

.imgslide-list LI {
    width: 100%;
    height: 100%;
}

.imgslide-list LI > A {
    width: 100%;
    height: 100%;
    background: url("../images/main_visual01.gif") center center no-repeat;
    background-size: 100%;
    display: flex;
    border-radius: 2.5rem;
    align-items: flex-start;
    padding: 10rem;
    color: #ffffff;
}

.img-title {
    margin-bottom: 0.625rem;
}
.img-title {
    font-size: 3.125rem;
    line-height: 1.5;
}

.img-subtitle {
    margin-bottom: 1.25rem;
}

@media (min-width: 900px) and (max-width: 1259px) {
    .img-title {
        font-size: 40px;
        line-height: 1;
    }

    .img-subtitle {
        font-size: 14px;
    }

    .img-txt {
        font-size: 12px;
    }
}



/*========== Test End ==========*/

/*-------------------------------------------------------main_imgslide--------------------------------------------------------------------------*/
.main-imgslide {
    width: 100%;
    /* height: 46.875rem; */
    margin-bottom: 2.688rem;
    border-radius: 2.5rem;
    overflow: hidden; /* 넘치는 부분을 숨기기 위해 추가 */
    position: relative; /* 상대적 위치 지정 */
}

.imgslide-list {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.imgslide-list li {
    flex: 0 0 100%;
}

.main-imgslide img {
    width: 100%; /* 이미지 크기를 조정하려면 이 부분을 조절하세요 */
    height: 100%;
    border-radius: 2px;
}

.main-img-title {
    margin-bottom: 0.625rem;
}

/* 두번째 이미지의 .text-content 위치 조정 */
.imgslide-list li:nth-child(2) .text-content {
    left: 25%; /* 원하는 위치에 배치하려는 값을 지정 */
    transform: translateX(-50%);
}

/* 세번째 이미지의 .text-content 위치 조정 */
.imgslide-list li:nth-child(3) .text-content {
    left: 25%; /* 원하는 위치에 배치하려는 값을 지정 */
    transform: translateX(-50%);
}

/*.imgslide-list li:nth-child(1) {
    background-color: red;
}


.imgslide-list li:nth-child(2) {
    background-color: green;
}

.imgslide-list li:nth-child(3) {
   background-color: blue;
}*/
.main-img-title {
    font-size: 3.125rem;
}

.main-img-subtitle {
    margin-bottom: 1.25rem;
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------*/
.second-section {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.second-section > ul > li {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.img-box {
    border-radius: 1.875rem;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* 이미지 세로 중앙 정렬 */

}

.second-section UL LI:nth-child(even) .img-box {
    order: 2;
}

.txt-box {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 3.125rem 6.875rem;
    justify-content: center;
    gap: 4rem;
}

.txt-box .txt-box-content_wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.txt-box .txt-box-title {
    font-size: 2.3rem;
}

.txt-box-p {
    width: 100%;
    line-height: 1.5rem;
}

.second-section ul li:nth-child(even) .txt-box {
    order: 1;
}

.img-box img {
    border-radius: 1.875rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.txt-box .btn {
    font-weight: 800;
    display: flex;
    flex-direction: row;
}

.btn a:hover {
    font-weight: bold;
    color: var(--color-primary);
}
.btn a {
    display: flex;
    gap: 1.25rem;
    font-size: 1.25rem;
}
.btn a .hover-animation {
    transition: transform 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.btn a:hover .hover-animation {
    transform: translateX(1rem)
}


@media screen and (max-width: 1400px){
    .imgslide-list LI > A {
        padding: 5rem;
    }
    .second-section ul li:nth-child(even) .img-box,
    .second-section ul li:nth-child(even) .txt-box { order: 0;}
    .text-content {
        transform: translate(0, 0);
        color: white;
        text-align: left;
    }

    .txt-box .txt-box-content_wrapper {
        gap: 1rem;
    }
}


@media screen and (max-width: 900px) {
    .imgslide-list LI > A {
        background-size: auto 100%;
        padding: 2rem;
    }

    .img-title {
        font-size: 1.625rem;
    }

    .img-subtitle {
        width: 86%;
        font-size: 0.875rem;
    }

    .img-txt {
        font-size: 0.75rem;
    }

}