@charset "utf-8";

@import url(./root.css);

/* --------------------------------------------
 * HanbitSoft Service Development Team
 * 그라나도 에스파다 M 사전예약페이지 Stylesheet
 * Author - sgp8116@hanbitsoft.co.kr DEC 2023
----------------------------------------------- */

/* Styles
-------------------------------------------------------------- */
html {
    background-color: #fff;
    scroll-behavior: smooth;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
input[type="radio"]:focus-visible ~ .checkmark,
input[type="checkbox"]:focus-visible ~ .checkmark {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

/* common section */
.section {
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    position: relative;
    width: var(--section-width);
    max-width: 2560px;
    margin: 0 auto;
}
.section-content {
    position: relative;
    width: var(--section-content-width);
    max-width: 2400px;
    margin: 0 auto;
}
.section .content-wrapper .button-open-modal {
    background: url(../images/button-modal.png) no-repeat 0 0 / contain;
    width: var(--game-introduce-button-width);
    height: var(--game-introduce-button-height);
    margin-top: var(--game-introduce-button-margin-top);
    position: relative;
}
.section .content-wrapper .button-open-modal::after {
    content: "";
    position: absolute;
    top: 50%;
    right: var(--game-introduce-button-arrow-position-right);
    transform: translate(0, -50%);
    background: url(../images/button-arrow-right.png) no-repeat 0 0 / contain;
    width: var(--game-introduce-button-arrow-width);
    height: var(--game-introduce-button-arrow-height);
    animation: buttonArrow 2s infinite alternate;
}

/* 게임 소개 */
.section-game-introduce {
    background-image: url(../images/game-introduce/game-intoduce-background-image.jpg);
    height: var(--game-introduce-height);
    /* height: 2160px; */
}
.section-game-introduce .headline-wrapper {
    position: absolute;
    top: var(--game-introduce-headline-position-top);
    left: 0;
    width: 100%;
}
.section-game-introduce .headline-wrapper .headline {
    background: url(../images/game-introduce/headline.png) no-repeat 50% 0 /
        contain;
    width: var(--game-introduce-headline-width);
    height: var(--game-introduce-headline-height);
    margin: 0 auto;
}
.section-game-introduce .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.section-game-introduce .content-wrapper .game-introduce {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50%;
    height: 100%;
}
.section-game-introduce .content-wrapper .game-introduce .background-image {
    background: url(../images/game-introduce/game-introduce-chrtrs.png)
        no-repeat 0 0 / cover;
    position: absolute;
    top: var(--game-introduce-background-image-position-top);
    right: var(--game-introduce-background-image-position-right);
    width: var(--game-introduce-background-image-width);
    height: var(--game-introduce-background-image-height);
    transition: transform 1s;
}
.section-game-introduce .content-wrapper .game-introduce .content {
    position: relative;
    margin: var(--game-introduce-content-margin);
    transition: transform 1s;
}
.section-game-introduce .content-wrapper .game-introduce .headline {
    background: url(../images/game-introduce/game-introduce-text.png) no-repeat
        0 0 / contain;
    width: var(--game-introduce-content-headline-width);
    height: var(--game-introduce-content-headline-height);
}

.section-game-introduce .content-wrapper .core-contents {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
}
.section-game-introduce .content-wrapper .core-contents .background-image {
    background: url(../images/game-introduce/core-contens-chrtrs.png) no-repeat
        0 0 / cover;
    position: absolute;
    bottom: var(--game-introduce-core-content-background-image-position-bottom);
    left: var(--game-introduce-core-content-background-image-position-left);
    width: var(--game-introduce-core-content-background-image-width);
    height: var(--game-introduce-core-content-background-image-height);
    transition: transform 1s;
}
.section-game-introduce .content-wrapper .core-contents .content {
    position: relative;
    margin: var(--game-introduce-core-content-content-margin);
    transition: transform 1s;
}
.section-game-introduce .content-wrapper .core-contents .headline {
    background: url(../images/game-introduce/core-contents-text.png) no-repeat 0
        0 / contain;
    width: var(--game-introduce-core-content-content-headline-width);
    height: var(--game-introduce-core-content-content-headline-height);
}

/* 미디어 */
.section-media {
    background-image: url(../images/media/media-background-image.jpg);
    height: var(--media-height);
    /* height: 2160px; */
}
.section-media .headline-wrapper {
    position: absolute;
    top: var(--media-headline-position-top);
    left: 0;
    width: 100%;
}
.section-media .headline-wrapper .headline {
    background: url(../images/media/headline.png) no-repeat 50% 0 / contain;
    width: var(--media-headline-width);
    height: var(--media-headline-height);
    margin: 0 auto;
}
.section-media .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.section-media .content-wrapper .gallary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 50%;
    height: 100%;
}
.section-media .content-wrapper .gallary .background-image {
    background: url(../images/media/gallary-chrtr.png) no-repeat 0 0 / cover;
    position: absolute;
    top: var(--media-gallary-background-image-position-top);
    right: var(--media-gallary-background-image-position-right);
    width: var(--media-gallary-background-image-width);
    height: var(--media-gallary-background-image-height);
    transition: transform 1s;
}
.section-media .content-wrapper .gallary .content {
    position: relative;
    margin: var(--media-gallary-content-margin);
    transition: transform 1s;
}
.section-media .content-wrapper .gallary .content .headline {
    background: url(../images/media/gallary-text.png) no-repeat 0 0 / contain;
    width: var(--media-gallary-content-headline-width);
    height: var(--media-gallary-content-headline-height);
}
.section-media .content-wrapper .ost {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
}
.section-media .content-wrapper .ost .background-image {
    background: url(../images/media/ost-chrtr.png) no-repeat 0 0 / cover;
    position: absolute;
    bottom: var(--media-ost-background-image-position-bottom);
    left: var(--media-ost-background-image-position-left);
    width: var(--media-ost-background-image-width);
    height: var(--media-ost-background-image-height);
    transition: transform 1s;
}
.section-media .content-wrapper .ost .content {
    position: relative;
    margin: var(--media-ost-content-margin);
    transition: transform 1s;
}
.section-media .content-wrapper .ost .content .headline {
    background: url(../images/media/ost-text.png) no-repeat 0 0 / contain;
    width: var(--media-ost-content-headline-width);
    height: var(--media-ost-content-headline-height);
}

/* history */
.section-history {
    background-image: url(../images/history/history-background-image.jpg);
    height: var(--history-height);
    padding-top: var(--history-padding-top);
    box-sizing: border-box;
}
.section-history .headline-wrapper {
    margin-bottom: var(--history-headline-margin-bottom);
}
.section-history .headline-wrapper .headline {
    background: url(../images/history/headline.png) no-repeat 0 0 / contain;
    width: var(--history-headline-width);
    height: var(--history-headline-height);
    margin: 0 auto;
}
.section-history .history {
    background: url(../images/history/history.png) no-repeat 0 0 / contain;
    width: var(--history-content-width);
    height: var(--history-content-height);
    margin: 0 auto;
    transition: transform 0.35s;
}
.section-history .link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--history-link-wrapper-margin-top);
    transition: transform 0.35s 1.45s;
}
.section-history .link-wrapper .link-to-characters {
    background: url(../images/history/link-to-charaters.png) no-repeat 0 0 /
        contain;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--history-link-gap);
    width: var(--history-link-width);
    height: var(--history-link-height);
}
.section-history .link-wrapper .link-to-characters .link-to-characters-text {
    background: url(../images/history/link-to-characters-text.png) no-repeat 0 0 /
        contain;
    width: var(--history-link-text-width);
    height: var(--history-link-text-height);
    transition: transform 0.5s;
}
.section-history .link-wrapper .link-to-characters .link-to-characters-arrow {
    background: url(../images/history/link-to-characters-arrow.png) no-repeat 0
        0 / contain;
    width: var(--history-link-text-arrow-width);
    height: var(--history-link-text-arrow-height);
    animation: buttonArrow2 2s infinite alternate;
}
.section-history
    .link-wrapper
    .link-to-characters:hover
    .link-to-characters-text {
    transform: translate3d(0, -1px, 0);
}

/* footer */
.footer .grade {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--footer-grade-height);
}
.footer .grade .img-grade {
    width: var(--footer-grade-img-width);
}
.footer .grade span {
    font-family: "Noto Sans HK", serif;
    font-optical-sizing: auto;
    font-size: var(--footer-grade-font-size);
    font-weight: 400;
    font-style: normal;
    color: #fff;
    padding-left: 23px;
}
.footer .copyright {
    border-top: 1px solid #333;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--footer-copyright-height);
}
.footer .copyright p {
    font-size: var(--footer-copyright-font-size);
    font-weight: 500;
    letter-spacing: -0.25px;
    color: #616161;
}

/* animation */
.section-game-introduce .content-wrapper .game-introduce .background-image,
.section-media .content-wrapper .gallary .background-image {
    opacity: 0;
    transform: translate3d(0, -10%, 0);
}
.section-game-introduce .content-wrapper .game-introduce .content,
.section-media .content-wrapper .gallary .content {
    opacity: 0;
    transform: translate3d(0, 10%, 0);
}
.section-game-introduce .content-wrapper .core-contents .background-image,
.section-media .content-wrapper .ost .background-image {
    opacity: 0;
    transform: translate3d(0, 10%, 0);
}
.section-game-introduce .content-wrapper .core-contents .content,
.section-media .content-wrapper .ost .content {
    opacity: 0;
    transform: translate3d(0, -10%, 0);
}
.section-history .history {
    opacity: 0;
    transform: translate3d(0, 10%, 0);
}

.section-game-introduce.active
    .content-wrapper
    .game-introduce
    .background-image,
.section-media.active .content-wrapper .gallary .background-image {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.section-game-introduce.active .content-wrapper .game-introduce .content,
.section-media.active .content-wrapper .gallary .content {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.section-game-introduce.active
    .content-wrapper
    .core-contents
    .background-image,
.section-media.active .content-wrapper .ost .background-image {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.section-game-introduce.active .content-wrapper .core-contents .content,
.section-media.active .content-wrapper .ost .content {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.section-history.active .history {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@keyframes buttonArrow {
    from {
        transform: translate3d(0, -50%, 0);
    }
    to {
        transform: translate3d(30%, -50%, 0);
    }
}
@keyframes buttonArrow2 {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(30%, 0, 0);
    }
}
