

* {
    transition: 0.3s;
}

a {
    text-decoration: none !important;
}

#first {
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
}

.middle-logo {
    width: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.first-wrapper {
    width: 50%;
    background-size: cover !important;
    background-position: center center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: background-image 0.5s ease, opacity 0.5s ease;
    position: relative;
}

.left {
    background: url('../img/intro1.png');
}

.right {
    background: url('../img/intro2.png');
}

.global {
    background-color: #6F3232;
}

.left::before, .right::before, .global::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.left::before {
    background-image: url("../img/first/left-bg.png");
}

.right::before {
    background-image: url("../img/first/right-bg.png");
}

.global {
    background-image: url("../img/first/global-bg.png");
}

.left:hover::before, .right:hover::before {
    opacity: 0;
}

.first-div {
    transition: transform 0.6s ease;
    transform: translateY(45px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.first-div>div {
    color: #FFF;
    text-align: center;
    font-family: "Pretendard";
    font-size: 56px;
    line-height: 130%; /* 72.8px */
    font-weight: 800;
}

.first-div>p {
    color: #FFF;
    font-family: "Pretendard";
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 130%; /* 36.4px */
    margin: 0;
}

.first-wrapper:hover .first-div {
    transform: translateY(0) !important;
}


/* .first-wrapper:hover .first-div>div>span {
    color: #FFF;
} */

.go-btn {
    box-sizing: border-box;
    padding: 10px 30px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border: 1px solid #FFF;
    opacity: 0;
    transform: translateY(20px); /* 살짝 아래에 배치 */
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
    position: relative;
}

.go-btn>span {
    color: #FFF;
    text-align: center;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%; /* 23.4px */
    letter-spacing: -0.45px;
    transition: color 0.4s ease-in;
    z-index: 5;
    position: relative;
}

.go-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #FFF; /* 배경색 설정 */
    transition: transform 0.4s ease-out;
}

.left .go-btn:hover>span {
    color: #11624A;
}

.right .go-btn:hover>span {
    color: #B2A475;
}

.global .go-btn:hover>span {
    color: #6F3232;
}

.go-btn>svg {
    position: relative;
    top: 4px;
}

.go-btn:hover>svg {
    position: relative;
    z-index: 5;
}

.left .go-btn:hover>svg path {
    stroke: #11624A;
}

.right .go-btn:hover>svg path {
    stroke: #222;
}

.global .go-btn:hover>svg path {
    stroke: #B2A475;
}

.go-btn:hover::before {
    transform: translateX(100%);
}

.first-wrapper:hover .go-btn {
    opacity: 1; /* 투명도 조절 */
    transform: translateY(0); /* 제자리로 이동 */
}


#header {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 15px 0px;
    z-index: 100;
    background: #11624A;
}

.logo {
    width: 135px;
}



@media(max-width: 1300px) {
    .middle-logo {
        width: 150px;
    }
    .first-div>div {
        font-size: 48px;
        letter-spacing: -1.2px;
    }
    .first-div>p {
        font-size: 24px;
        letter-spacing: -0.6px;
    }
}

@media(max-width: 1024px) {
    .middle-logo {
        width: 120px;
    }
    .first-div>div {
        font-size: 40px;
        letter-spacing: -1px;
    }
}

@media(max-width: 900px) {
    #first {
        flex-direction: column;
        height: auto;
    }
    .first-wrapper {
        width: 100%;
        height: calc(50vh - 21px);
    }
    .middle-logo {
        width: 150px;
    }
    .first-div {
        transform: translateY(0);
        gap: 4px;
    }
    .first-div>div {
        font-size: 48px;
        letter-spacing: -1.2px;
    }
    .first-div>p {
        font-size: 20px;
        letter-spacing: -0.5px;
    }
    .left:hover::before, .right:hover::before {
        opacity: 1;
    }
    .go-btn {
        opacity: 1;
        transform: none;
    }
    .go-btn:hover::before {
        transform: none;
    }
    .go-btn {
        background: rgba(255, 255, 255, 0.10);
    }
    .go-btn:hover>span {
        color: #FFF !important;
    }
    .go-btn:hover>svg path {
        stroke: #FFF !important;
    }
    #header {
        position: static;
        background: #00693E;
    }
    .logo {
        width: 142.25px;
    }
}

@media(max-width: 600px) {
    .middle-logo {
        width: 130px;
    }
    .first-div>div {
        font-size: 40px;
        letter-spacing: -1px;
    }
    .logo {
        width: 137px;
    }
}

@media(max-width: 480px) {
    .middle-logo {
        width: 120px;
    }
    .first-div>div {
        font-size: 32px;
        letter-spacing: -0.8px;
    }
    .first-div>div>span {
        -webkit-text-stroke-width: 0.8px;
    }
    .first-div>p {
        font-size: 18px;
        letter-spacing: -0.45px;
    }
    .go-btn>span {
        font-size: 16px;
        letter-spacing: -0.4px;
    }
    .go-btn>svg {
        width: 16px;
        height: 16px;
        margin-top: -2px;
    }
}
