@charset "utf-8";

body {
    min-width: 1200px;
}

.intro {
    width: 100vw;
    height: 100vh;
    display: flex;
}

.panel {
    position: relative;
    overflow: hidden;
    flex: 1 1 0%;
}

.front {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    transition: all .45s ease;
    gap: 10px;
}

.front h2 {
    display: inline-block;
    font-size: 60px;
    font-weight: 500;
    line-height: 1em;
    color: #000;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .8s cubic-bezier(.2, .6, .2, 1) forwards;
}

.front h2 span {
    font-size: 60px;
    font-weight: 500;
}

.front h2:nth-of-type(1) {
    animation-delay: .1s;
}

.front h2:nth-of-type(1) span {
    /*font-weight: 700;*/
}

.front h2:nth-of-type(2) {
    animation-delay: .2s;
}

.front h2:nth-of-type(3) {
    animation-delay: .4s;
}

.front figure{
    position: absolute;
    bottom: 84px;
    left: 0;
    width: 100%;
    text-align: center;
    margin: 0;
}


.btn-go {
    position: relative;
    margin-top: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    line-height: 38px;
    border-radius: 19px;
    text-align: center;
    background-color: #06205B;
    color: #fff;
    font-weight: 500;
    font-size: 20px;
    opacity: 0;
    transform: translateY(18px);
    transition: all 0.3s ease;
    animation: fadeUp .8s cubic-bezier(.2, .6, .2, 1) 0.6s forwards;
}

.btn-go .arrow,
.brand .btn .arrow {
    position: absolute;
    top: 50%;
    right: 18px;
    display: inline-block;
    width: 9px;
    height: 9px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg) translateY(-50%);
}

.panel:nth-child(1) .front {
    background-color: #EFEFEF;
}

.panel:nth-child(2) .front {
    background-color: #F8F8F8;
}

.panel:nth-child(1) h2 span {
    color: #06205B;
}

.panel:nth-child(2) h2 span {
    color: #7030A0;
}

.panel:nth-child(3) h2 span {
    color: #06205B;
}

.panel:nth-child(2) .btn-go {
    background-color: #7030A0;
}

.back {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

.panel:nth-child(1) .back {
    background: url('/images/intro/img_over_serenity.jpg?v=2') center center no-repeat;
    background-size: cover;
}

.panel:nth-child(2) .back {
    background: url('/images/intro/img_over_podo.jpg?v=2') center center no-repeat;
    background-size: cover;
}

.panel:nth-child(3) .back {
    background: url('/images/intro/img_over_gangchon.jpg?v=2') center center no-repeat;
    background-size: cover;
}

.back-overlay {
    position: absolute;
    inset: 0;
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: #fff;
    text-align: center;
    transform: translateY(12px);
    opacity: 1;
    transition: transform .45s ease, opacity .45s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    height: 177px;
}

.brand .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    line-height: 38px;
    border-radius: 19px;
    text-align: center;
    background-color: #fff;
    color: #00205C;
    font-weight: 500;
    font-size: 20px;
    margin-top: 50px;
}

.panel:hover .front,
.panel:focus-within .front {
    opacity: 0;
}

.panel:hover .back,
.panel:focus-within .back {
    opacity: 1;
    pointer-events: auto;
}

.panel:hover .brand,
.panel:focus-within .brand {
    opacity: 1;
    transform: translateY(0);
}

.panel:hover .brand .btn .arrow {
    border-color: #00205C;
}

.panel:nth-child(2):hover .brand .btn {
    color: #7030A0;
}

.panel:nth-child(2):hover .brand .btn .arrow {
    border-color: #7030A0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
