@font-face {
    font-family: 'MapoFlowerIsland';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/MapoFlowerIslandA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cafe24ShinigStar';
    src: url('../fonts/Cafe24Shiningstar-v2.0.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DaeguJunggueupseong';
    src: url('../fonts/대구중구읍성 Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
    min-height: 100vh;
    font-family: 'Varela Round', 'MapoFlowerIsland', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow: hidden;
    background: transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

p {
    margin: 0;
}

ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    object-fit: cover;
}

/* SWIPER */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.swiper-slide-active {
    opacity: 1;
}

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

/* INTRO START */
#wrap {
    overflow: hidden;
    position: relative;
    min-height: 100vh;
    background: #000;
}

.intro-typo-wrapper {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 12px;
    line-height: 1.66;
}

/* 이미지 로고 쓸때만 활성화 */
.intro-logo {
    width: 280px;
    margin: 0 auto 10px auto;
}

.intro-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.text-logo {
    font-family: 'Cafe24ShinigStar', sans-serif;
    color: #fff;
    margin: 0;
    font-size: 3.2rem;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0.8;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: logoScale 2s ease-out;
}

@keyframes logoScale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.intro-txt {
    font-size: 18px;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 1.5s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.content-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    z-index: 10;
    color: #fff;
}

.left-title, .right-title {
    font-family: 'DaeguJunggueupseong', 'Cafe24ShinigStar', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 25px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.left-subtitle, .right-subtitle {
    font-size: 18px;
    font-weight: 400;
    display: block;
    opacity: 0.9;
    line-height: 1.5;
}

.left-section {
    -webkit-mask-image: url("../images/layermask.png");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: url("../images/layermask.png");
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5;
    transition: all 1s ease;
    overflow: hidden;
    animation: fadeInScale 2s ease-out 0.3s both;
}


.right-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 4;
    transition: all 1s ease;
    overflow: hidden;
    animation: fadeInScale 2s ease-out 0.5s both;
}

@keyframes fadeInScale {
    0% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.common-wrapper {
    width: 50%;
}

.common-wrapper a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #fff;
    border-radius: 50%;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    animation: slideUpFade 1.5s ease-out 0.8s both;
    color: #fff;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.content-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}


.left-wrap {
    width: 50%;
}

.left-wrap a {
    justify-content: flex-end;
    align-items: center;
    transform: translateX(-10%);
}

.left-wrap .content-box {
    margin-bottom: 50px;
}

.right-wrap {
    width: 50%;
}

.right-wrap a {
    justify-content: flex-end;
    align-items: center;
    transform: translateX(10%);
}

.right-wrap .content-box {
    margin-bottom: 50px;
}



/* EFFECT */
.left-section.size {
    transform: scale(1.1);
}

.right-section.size {
    transform: scale(1.1);
}

.left-section.off .left-image-item {
    filter: grayscale(100%) brightness(50%);
}

.right-section.off .right-image-item {
    filter: grayscale(100%) brightness(50%);
}

.left-section .left-image-item {
    transition: filter 1s ease;
}

.right-section .right-image-item {
    transition: filter 1s ease;
}

@media screen and (max-width: 768px) {
    span.left-title, span.right-title {
        padding-bottom: 20px !important;
    }

    .left-subtitle, .right-subtitle {
        font-size: 16px !important;
    }

    .left-wrap a span:not(.left-title) {
        padding: 0 !important;
    }
    .right-wrap a span:not(.right-title) {
        padding: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    body {
        position: relative;
        min-height: 100vh;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .content-wrapper {
        flex-direction: column;
        height: 100vh;
        position: relative;
        background: transparent;
        z-index: 2;
    }

    .left-wrap {
        width: 100%;
        order: 1;
        height: 50vh;
        position: relative;
        z-index: 10;
        background: transparent;
    }

    .right-wrap {
        width: 100%;
        order: 2;
        height: 50vh;
        position: relative;
        z-index: 10;
        background: transparent;
    }

    .left-section {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    .right-section {
        clip-path: none;
        height: 100vh;
        min-height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1;
        opacity: 1;
        background-size: cover;
        background-position: center;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }

    .left-section .swiper-slide,
    .right-section .swiper-slide {
        opacity: 1;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }


    .left-wrap a {
        transform: translateX(0);
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        padding-bottom: 40px;
    }

    .right-wrap a {
        transform: translateX(0);
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        padding-top: 30px;
    }

    /* 이미지 로고 쓸때만 활성화 */
    .intro-logo {
        width: 170px;
    }

    .intro-typo-wrapper {
        position: fixed;
        left: 50%;
        top: 30px;
        transform: translateX(-50%);
        z-index: 20;
        width: auto;
        font-size: 11px;
    }

    .text-logo {
        font-size: 1.8rem;
        white-space: nowrap;
    }

    .intro-txt {
        display: none;
    }


    .content-wrapper span {
        font-size: 22px;
        font-weight: 700;
    }

    .content-box {
        width: 230px;
        height: 230px;
        padding: 20px;
        transition: transform 0.3s ease;
    }

    .left-wrap .content-box {
        margin-bottom: 20px;
    }

    .right-wrap .content-box {
        margin-bottom: 150px;
    }

    .content-box:hover {
        transform: scale(1.1);
    }
}

/* VISIT BUTTON STYLES */
.visit-btn {
    position: relative;
    border: 1px solid #fff;
    border-radius: 0;
    height: 60px;
    width: 180px;
    padding: 0;
    outline: none;
    overflow: hidden;
    color: #fff;
    background-color: transparent;
    transition: all 0.4s ease-out;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    margin-top: 40px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-family: 'MapoFlowerIsland';
    font-weight: bold;
}

.visit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: #fff;
    transition: width 0.4s ease-out;
    z-index: -1;
}

.visit-btn:hover {
    color: #000;
}

.visit-btn:hover::before {
    width: 100%;
}

/* 각 영역 호버 시 버튼 스타일 변경 */
.left-wrap:hover .visit-btn {
    background-color: #fff;
    color: #000;
}

.left-wrap:hover .visit-btn::before {
    background-color: transparent;
}

.right-wrap:hover .visit-btn {
    background-color: #fff;
    color: #000;
}

.right-wrap:hover .visit-btn::before {
    background-color: transparent;
}

.visit-btn .visit-text {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.visit-btn .arrow {
    transition: transform 0.3s ease;
}

.visit-btn:hover .arrow {
    transform: translateX(4px);
}
