@charset "UTF-8";

/* ==========================================================================
   Reset
========================================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main {
    display: block;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img {
    vertical-align: bottom;
}

hr {
    height: 1px;
    border: none;
    border-bottom: 1px solid #e6e6e6;
    color: #e6e6e6;
    margin: 0;
}
button {
    background: none;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}
input,
textarea {
    font-family: sans-serif;
    line-height: 1;
}



/*------------------------------------------------------------
    utility
------------------------------------------------------------*/
.none {
    display: none;
}
.hidden {
    visibility: hidden;
}
.clearfix:after {
    content: "";
    display: table;
    clear: both;
    height: 0;
}
.no-js .hidden {
    visibility: visible;
}



/* ==========================================================================
   layout
========================================================================== */
body {
    font-family: sans-serif;
    line-height: 1;
    min-width: 960px;
    min-height: 900px;
    background-color: #f5e6d2;
}
.wrapper{
    width: 100%;
    min-height: 860px;
    overflow: hidden;
}
.logo_3ds {
    position: absolute;
    top: 46px;
    right: 1px;
    z-index: 1;
}



/*------------------------------------------------------------
  footer
------------------------------------------------------------*/
.footer_section {
    position: relative;
    height: 40px;
    margin-top: -30px;
    padding-top: 132px;
}



/*------------------------------------------------------------
  gnav
------------------------------------------------------------*/
.gnav_section {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-width: 960px;
    height: 132px;
    background: url(../img/common/gnav_bg_pattern.png) center bottom repeat-x;
}
.nofixed .gnav_section {
    position: absolute;
    bottom: 40px;
}
.gnav_section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/common/gnav_bg.png) center bottom no-repeat;
}
.gnav_inner {
    position: relative;
    width: 960px;
    height: 100%;
    margin: 0 auto;
}
.logo_soft {
    position: absolute;
    top: 51px;
    left: -2px;
}
.gnav_list li {
    position: absolute;
    top: 56px;
}
.gnav_story {
    left: 239px;
}
.gnav_character {
    left: 385px;
}
.gnav_oasis {
    left: 531px;
}
.gnav_sabaku {
    left: 677px;
}
.gnav_movie {
    left: 823px;
}
.gnav_list li:before,
.gnav_list li:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
}
.gnav_list li:before {
    opacity: 0;
    background-image: url(../img/common/gnav_btn_frame_ov.png);
}
.gnav_list li.current:before {
    opacity: 1;
}
.gnav_list li:after {
    opacity: 1;
    background-image: url(../img/common/gnav_btn_frame.png);
}
.gnav_list li.current:after {
    opacity: 0;
}
.gnav_list li img {
    position: relative;
    z-index: 1;
}
.gnav_list .gnav_new{
    display: block;
    width: 75px;
    height: 24px;
    background: url(../img/common/gnav_new.png) 0 0 no-repeat;
    position: absolute;
    left: -8px;
    top: -12px;
    z-index: 1;
}
.main_gnav em{
    display: block;
    width: 75px;
    height: 24px;
    background: url(../img/common/gnav_new.png) 0 0 no-repeat;
    position: absolute;
    left: -8px;
    top: -8px;
    z-index: 1;
}

/*------------------------------------------------------------
  pagetop
------------------------------------------------------------*/
.pagetop_btn {
    position: fixed;
    bottom: 79px;
    left: 50%;
    z-index: 100;
    margin-left: 336px;
    -webkit-transform: translate3d(0,246px,0);
            transform: translate3d(0,246px,0);
    -webkit-transition: all 400ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
            transition: all 400ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.nofixed .pagetop_btn {
    position: absolute;
    bottom: 119px;
    -webkit-transform: translate3d(0,286px,0);
            transform: translate3d(0,286px,0);
}
.show_pagetop_btn.pagetop_btn,
.nofixed .show_pagetop_btn.pagetop_btn {
    -webkit-transform: translate3d(0,0,0);
            transform: translate3d(0,0,0);
}
@media screen and (max-width: 960px) {
    .pagetop_btn {
        left: auto;
        right: 10px;
        margin-left: 0;
    }
}



/*------------------------------------------------------------
  fnav
------------------------------------------------------------*/
.fnav_section {
    height: 40px;
    background: url(../img/common/fnav_bg.png) center top repeat-x;
}
.fnav_inner {
    position: relative;
    width: 960px;
    margin: 0 auto;
}
.fnav_nintendo {
    position: absolute;
    top: 12px;
    left: 316px;
    border-right: 1px solid #ffffff;
}
.fnav_3ds {
    position: absolute;
    top: 12px;
    left: 452px;
}



/*------------------------------------------------------------
  modal
------------------------------------------------------------*/
.modal_open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000000;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.modal_open .modal {
    display: block;
}
.modal_window_small.modal_open .modal {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.modal_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/common/modal_bg.png) center top repeat;
}
.modal_inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 960px;
    margin-left: -480px;
}
.modal_window_small .modal_inner {
    top: 0;
}
.modal_close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}
.modal_contents {
    display: none;
    position: relative;
    padding-top: 36px;
    padding-bottom: 36px;
}
.modal_contents_mfp{
    display: none;
    position: relative;
    padding-top: 56px;
    padding-bottom: 56px;
}
.mfp-comic-open .modal_contents_mfp{
    display: block;
}
.mfp-comic-open button.mfp-close{
    position: fixed;
    top: 26px;
    right: 30px;
    background: url(../img/common/modal_btn_close.png) 0 0 no-repeat;
    opacity: 1;
}
/*------------------------------------------------------------
  hover
------------------------------------------------------------*/
.no-touchevents .gnav_list li:before,
.no-touchevents .gnav_list li:after,
.no-touchevents .modal_close,
.no-touchevents .fnav_nintendo,
.no-touchevents .fnav_3ds {
    transition: opacity 400ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.no-touchevents .gnav_list li:hover:before {
    opacity: 1;
}
.no-touchevents .gnav_list li:hover:after {
    opacity: 0;
}
.no-touchevents .pagetop_btn:hover,
.no-touchevents .modal_close:hover,
.no-touchevents .fnav_nintendo:hover,
.no-touchevents .fnav_3ds:hover {
    opacity: 0.8;
}
