@charset "utf-8";

@import url(./root.css);

/* --------------------------------------------
 * HanbitSoft Service Development Team
 * 그라나도 에스파다 M 사전예약페이지 Stylesheet
 * Author - sgp8116@hanbitsoft.co.kr DEC 2023
----------------------------------------------- */

/* CSS Reset
-------------------------------------------------------------- */
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
strong,
small,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
select,
input,
button,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
figure,
figcaption {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
}
img,
fieldset,
button {
    border: 0;
}
article,
aside,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
    display: block;
}
html,
body {
    line-height: 1.2;
    font-family: "Noto Sans JP", Malgun Gothic, "맑은 고딕", "돋움", dotum,
        Helvetica, sans-serif;
    font-size: 16px;
    color: #000;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
img {
    width: 100%;
    vertical-align: middle;
}
ol,
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: #000;
}
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: #181c26;
}
strong,
em {
    font-weight: normal;
}
em {
    font-style: normal;
}
button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    outline: 0;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
input[type="text"]:-ms-clear {
    display: none !important;
}
caption,
legend {
    width: 0;
    height: 0;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    visibility: hidden;
}
input {
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
}
input[type="radio"] {
    -webkit-appearance: radio;
    -moz-appearance: radio;
    appearance: radio;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}
input[type="text"],
input[type="password"],
input[type="submit"],
input[type="search"] {
    border-radius: 0;
    outline: 0;
}
input:checked[type="checkbox"] {
    background-color: #fff;
    -webkit-appearance: checkbox;
    cursor: pointer;
}
input[type="checkbox"] {
    background-color: #fff;
    -webkit-appearance: checkbox;
    cursor: pointer;
}
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"] {
    -webkit-appearance: button;
    border-radius: 0;
    cursor: pointer;
}
input[type="text"]::-ms-clear {
    display: none;
}
/* placeholder */
.placeholder {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
} /* IE9 이하를 위한 css */
input::-webkit-input-placeholder {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
}
input:-ms-input-placeholder {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
} /* IE */
input:-moz-input-placeholder {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
} /* Firefox */
input::-ms-input-placeholder {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
    transform: scale(0.55) translateX(-40%);
} /* IE */
input::placeholder {
    color: #999;
    font-size: 1rem;
    font-weight: 400;
    opacity: 1;
} /* IE10 이상을 위한 css */

/* Reserved Class
-------------------------------------------------------------- */
.irPm {
    display: block;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
}
.irWa {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.blind {
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    margin: -1px;
    width: 1px;
    height: 1px;
}
.show {
    display: block;
}
.hide {
    display: none;
}
.fL {
    float: left;
}
.fR {
    float: right;
}
.clearFix:after {
    display: block;
    content: "";
    clear: both;
}
/* skip navigation */
.skip-navigation a {
    display: block;
    position: absolute;
    left: 0;
    top: -10000px;
    text-align: center;
    width: 100%;
    height: 40px;
    z-index: 500;
    line-height: 40px;
    font-weight: 600;
    font-size: 18px;
}
.skip-navigation a:hover,
.skip-navigation a:focus,
.skip-navigation a:active {
    background: #000;
    top: 0;
    left: 0;
    color: #fff;
}
.visibilityhidden {
    visibility: hidden;
}

/* 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);
    }
}

/* 게임 뉴스 */
.section-news {
    background-image: url(../images/news/news-background-image.jpg);
    height: var(--game-news-height);
    padding-top: var(--game-news-padding-top);
    box-sizing: border-box;
}
.section-news .headline-wrapper {
    margin-bottom: var(--game-news-headline-margin-bottom);
}
.section-news .headline-wrapper .headline {
    background: url(../images/news/headline.png) no-repeat 0 0 / contain;
    width: var(--game-news-headline-width);
    height: var(--game-news-headline-height);
    margin: 0 auto;
}
.section-news .content-wrapper {
    position: relative;
    width: var(--game-news-content-width);
    margin: 0 auto;
    transition: transform 1s;
}

.section-news .content-wrapper .board-wrapper {
    background: rgba(255, 255, 255, 0.8);
    padding: var(--game-news-content-padding);
    box-sizing: border-box;
}
.section-news .content-wrapper .board-wrapper .board-table {
    width: 100%;
}
.section-news .content-wrapper .board-wrapper .board-table .table-header {
    display: flex;
    border-bottom: 1px solid #000;
    width: 100%;
    height: var(--game-news-table-thead-height);
    font-size: var(--game-news-table-thead-font-size);
    font-weight: 700;
    letter-spacing: -0.3px;
    text-align: center;
}
.section-news
    .content-wrapper
    .board-wrapper
    .board-table
    .table-header
    .header-text.title {
    width: 80%;
}
.section-news
    .content-wrapper
    .board-wrapper
    .board-table
    .table-header
    .header-text.date {
    width: 20%;
}
.section-news
    .content-wrapper
    .board-wrapper
    .board-table
    .table-content-list
    .table-content-item {
    border-bottom: 1px solid #6d6d6d;
    display: flex;
    align-items: center;
    height: var(--game-news-table-tbody-height);
    font-size: var(--game-news-table-tbody-font-size);
    letter-spacing: -0.3px;
    color: #000;
}
.section-news
    .content-wrapper
    .board-wrapper
    .board-table
    .table-content-list
    .table-content-item
    .table-content-link {
    width: 80%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0 var(--game-news-table-tbody-cont-padding);
    box-sizing: border-box;
}
.section-news
    .content-wrapper
    .board-wrapper
    .board-table
    .table-content-list
    .table-content-item
    .table-content-link:hover {
    text-decoration: underline;
}
.section-news
    .content-wrapper
    .board-wrapper
    .board-table
    .table-content-list
    .table-content-item
    .date {
    display: block;
    width: 20%;
    text-align: center;
}

.section-news .content-wrapper .pagination {
    margin: var(--game-news-table-pagination-margin) 0 0 0;
    text-align: center;
}
.section-news .content-wrapper .pagination .prev {
    background: url(../images/news/prev.png) no-repeat 0 0 / cover;
    width: var(--game-news-table-pagination-button-width);
    height: var(--game-news-table-pagination-button-height);
    margin-right: var(--game-news-table-pagination-button-margin);
}
.section-news .content-wrapper .pagination .next {
    background: url(../images/news/next.png) no-repeat 0 0 / cover;
    width: var(--game-news-table-pagination-button-width);
    height: var(--game-news-table-pagination-button-height);
    margin-left: var(--game-news-table-pagination-button-margin);
}
.section-news .content-wrapper .pagination a,
.section-news .content-wrapper .pagination strong {
    display: inline-block;
    vertical-align: middle;
    font-size: var(--game-news-table-pagination-font-size);
    width: var(--game-news-table-pagination-width);
    height: var(--game-news-table-pagination-height);
    line-height: var(--game-news-table-pagination-height);
    color: #999;
}
.section-news .content-wrapper .pagination strong,
.section-news .content-wrapper .pagination a:hover {
    color: #000;
    text-decoration: none;
}

.footer .copyright {
    flex-direction: column;
    gap: var(--footer-copyright-flex-gap);
}
.footer .copyright .term {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer .copyright .term .link-term {
    display: inline-block;
    font-size: var(--footer-term-link-font-size);
    font-weight: 500;
    letter-spacing: -0.25px;
    color: #616161;
    padding: 0 20px;
    position: relative;
}
.footer .copyright .term .link-term::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: #616161;
    width: 1px;
    height: 100%;
}
.footer .copyright .term .link-term:first-child:before {
    display: none;
}
