* {
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
.contents {
    display: flex;
    height: 100vh;
}

.contents .bg {
    position: relative;
    flex-grow: 1;
    width: calc(100% / 3);
    overflow: hidden;
    transition: all 0.4s;
}

.contents .bg:hover .bg_img::before {
    bottom: 0;
    transition: all 0.2s;
}

.contents .bg:hover {
    width: 40%;
    transition: all 0.4s;
}

.contents .bg:hover .bg_img img {
    transform: scale(1.2);
    transition: all 0.4s;
}

.contents .bg:hover .txt_con {
    transform: translate(-50%, -55%);
    transition: all 0.4s;
}

.contents .bg .bg_img {
    position: relative;
    width: 100%;
}
.contents .bg .bg_img::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 50%;
    bottom: -100%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.contents .bg .bg_img img {
    width: 100%;
    height: 100vh;
    transition: all 0.4s;
    object-fit: cover;
}

.contents .bg .txt_con {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    transition: all 0.4s;
    z-index: 2;
}

.contents .bg .txt_con .title {
    margin-bottom: 25px;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.contents .bg .txt_con .t1 {
    font-size: 18px;
    color: #fff;
}

.contents .bg .txt_con .link {
    display: block;
    width: 100px;
    padding: 10px 35px;
    border: 1px solid #fff;
    border-radius: 100px;
    margin: 50px auto;
}

.contents .bg .txt_con .link span {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

@media (max-width: 1300px) {
    .contents .bg .txt_con .title {
        font-size: 24px;
    }
    .contents .bg .txt_con .t1 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .contents {
        flex-direction: column;
    }
    .contents .bg {
        width: 100%;
        height: calc(100% / 3);
    }
    .contents .bg .bg_img img {
        width: 100%;
        height: auto;
    }
    .contents .bg:hover {
        width: 100%;
        transition: all 0.4s;
    }
    .contents .bg .txt_con .link {
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .contents .bg .bg_img::before {
        /* bottom: -300%; */
    }
    .contents .bg .bg_img {
        height: 100%;
    }
    .contents .bg .bg_img img {
        height: 100%;
    }

    .contents .bg .txt_con .logo {
    }

    .contents .bg .txt_con .logo .logo_img {
        width: 120px;
    }

    .contents .bg .txt_con .title {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .contents .bg .txt_con .link {
        padding: 4px 25px;
    }

    .contents .bg .txt_con .link span {
        font-size: 14px;
    }
}
