*,
:after,
:before { border: 0 solid; box-sizing: border-box;}

html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.5; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4;
}

body {
    line-height: inherit;
    margin: 0;
}

hr {
    border-top-width: 1px;
    color: inherit;
    height: 0;
}

abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

b,
strong {
    font-weight: bolder;
}

code,
kbd,
pre,
samp {
    /* font-family: var(--font-family); */
    font-size: 1rem;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -.25rem;
}

sup {
    top: -.5rem;
}

table {
    border-collapse: collapse;
    border-color: inherit;
    text-indent: 0;
}

button,
input,
optgroup,
select,
textarea {
    color: inherit;
    /* font-family: inherit; */
    font-size: 100%;
    line-height: inherit;
    margin: 0;
    padding: 0;
}

button,
select {
    text-transform: none;
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
    margin: 0;
}

fieldset {
    margin: 0;
}

fieldset,
legend {
    padding: 0;
}

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

textarea {
    resize: vertical;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #9ca3af;
    opacity: 1;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

[role=button],
button {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
    display: block;
    vertical-align: middle;
}

img,
video {
    height: auto;
    max-width: 100%;
}

[hidden] {
    display: none;
}

.ico-hamburger {
    width: 36px; aspect-ratio: 1 / 1;
    background: url(../images/icons/ico_hamburger.png) no-repeat 0 0/100%;
    text-indent: -1000rem;    
}

:root {
    --layout-header: 60px;
    --font-family: "Noto Sans SC", sans-serif;
    --btn-copy:40px;
}

#wpadminbar {
    z-index: 10 !important;
}

html {
    font-size: 15px;
    /* scroll-behavior: smooth; */
}

body,
html { height: 100%;}

body {
    background-color: #242424;
    color: #111;
    font-family: "Noto Sans SC", sans-serif;
    font-weight: 400;
}

img {
    image-rendering: -webkit-optimize-contrast;
}

.layout {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    z-index: 0;
}

.layout .layout-container {
    -ms-flex: 1;
    flex: 1;
    min-height: 100vh;
}

.layout .layout-container,
.layout .layout-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;    
}

.layout .layout-header {
    padding: 5px 0 2px 0;
    background-color: #111;
    color: #fff;    
    /* min-height: 60px; */
    min-height: var(--layout-header);
    justify-content: center; align-items: center;
    position: -webkit-sticky;  position: sticky; top: 0; z-index: 99;
    flex:0 0 auto;
}

.layout .layout-header .title {
    max-width: 95px; vertical-align: middle; display: inline-block;
}
.menu-container .menu-container-title .title { max-width: 100px;}

.layout .layout-header .title:hover {
    filter: brightness(1.1); transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

.layout .layout-header .ico-hamburger {
    left: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translate(40%, -50%);
    transform: translate(40%, -50%);
}

.layout .layout-main {
    height: 100%;
    display: flex; flex-direction: column; align-items: stretch;
    flex: 1; position: relative;
}


.layout .fixed-btn {
    bottom: 0;
    height: 0;
    left: 0;
    position: -webkit-sticky;
    position: sticky;
    right: 0;
    text-align: right;
}

.layout .btn-top {
    width: 50px; aspect-ratio: 1/1; cursor: pointer;
    background: url(../images/icons/top.png) no-repeat 0 0/100% auto;
    color: transparent; display: inline-block; overflow: hidden;
    position: absolute; right: 0; top: 0;
    transform: translate(-45%, -140%); 
    transition: .25s cubic-bezier(0.4,0,0.2,1);   
}

.layout .btn-top:hover {
    filter: brightness(1.2);
}

.layout .layout-footer {
    padding: 1rem 0;
    /* min-height: 150px; */ background-color: #242424;
    font-size: 12px; color: #a3a3a3; text-align: center;
    display: flex; justify-content: center; align-items: center; flex-direction: column; 
}

.layout .layout-footer address {
    /* font-family: var(--font-family); */
    font-style: normal;
    font-weight: 400;
    margin-top: 0;
}

.logos a { padding: 0 10px;}

.logos a,
.logos svg {
    display: inline-block;
}

.logos svg {
    max-width: 140px; width: 100%; aspect-ratio: 296 / 110;
    background: url(../images/icons/logo_uj.svg) no-repeat 0 0 / 100% auto;
    vertical-align: middle;
}

.menu-container {
    bottom: 0;
    left: 0;
    overflow: auto;
    position: fixed;
    right: 0;
    top: 0;
    transition: visibility .4s linear;
    visibility: hidden;
    z-index: 20;
}

.is-menu .menu-container {
    visibility: visible;
}

.menu-container .menu-container-dimmed {
    background-color: rgba(0, 0, 0, .8);
    bottom: 0;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity .4s linear;
    z-index: 0;
}

.is-menu .menu-container .menu-container-dimmed {
    opacity: 1;
}

.menu-container .menu-container-inner {
    background-color: #242424;
    max-width: 300px;
    min-height: 100%;
    position: relative;
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.65, 0, .35, 1);
    width: 83.33%;
    z-index: 1;
}

.is-menu .menu-container .menu-container-inner {
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.menu-container .menu-container-title {
    padding: 5px 42px; background-color: #242424;
    /* text-align: center; */
    border-bottom: 1px solid #4d463c;
    position: -webkit-sticky; position: sticky; top: 0; z-index: 1;
    transition: .3s cubic-bezier(0.4,0,0.2,1);
}

.menu-container .btn-close {
    width: 30px; aspect-ratio: 1/1;   
    background: url(../images/icons/close.png) no-repeat 0 0 / 100% auto;
    position: absolute; right: 20px; top: 50%;    
    text-indent: -1000rem;    
    -ms-transform: translateY(-50%); transform: translateY(-50%);
    transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}
@media (hover) {
    .menu-container .btn-close:hover {
        transform: translateY(-50%) scale(1.2); filter: blur(1.5);
    }
}

.menu {
    color: #fff;
    font-size: 20px;
    width: 100%;
}

.menu .menu-item {
    border-bottom: 1px solid #4d463c;
}

.menu>.menu-item>a{
    position: relative;
}
.menu>.menu-item>a::after{
    width: 100%; height: 100%; 
    /* content: ""; */ display: block;
    position: absolute; top: 0; left: 0;    
    background: url(../images/bg_map_world_pattern_a.png) no-repeat center bottom /cover;
    mix-blend-mode: darken;
    opacity: .1;
}

.menu .menu-item>a {
    padding: 18px 40px;
    display: flex; align-items: center;
    transition: .25s cubic-bezier(0.4,0,0.2,1);
}

.menu .menu-item.menu-item-has-children .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(0, 1, 0, 1);
}

.menu .menu-item.menu-item-has-children.current-menu-parent .sub-menu,
.menu .menu-item.menu-item-has-children.is-open .sub-menu {
    max-height: 9999px;
    transition: max-height .4s cubic-bezier(.65, 0, .35, 1);
}

.menu .menu-item.menu-item-has-children>a {
    position: relative;
}

.menu .menu-item.menu-item-has-children>a:before {
    width: 20px; aspect-ratio: 1/1;
    background: url(../images/icons/chevron-down.png) no-repeat 0 0 / 100% auto;
    content: "";    
    position: absolute; right: 40px; top: 50%;
    -ms-transform: translateY(-50%); transform: translateY(-50%);
    filter: grayscale(1);
    transition: .25s filter cubic-bezier(0.4,0,0.2,1);
}
.menu .menu-item.menu-item-has-children>a:hover:before { filter: grayscale(0);}

.menu .menu-item.menu-item-has-children.is-open>a:before {
    background-image: url(../images/icons/chevron-up.png); filter: grayscale(0);
}

.menu .sub-menu {
    background-color: #101010;
    color: #bebebe;
    font-size: 16px;
}

.menu .sub-menu .menu-item {
    border: none;
    display: flex; align-items: center;
}

.menu .sub-menu .menu-item a {
    padding: 14px 48px;    
}

.menu .sub-menu .menu-item a:before,
table.nav_list .nav_name::before {
    height: 16px; aspect-ratio: 24/40; margin-right: 10px; transform: translateY(1px);
    background: url(../images/icons/bullet.png) no-repeat 0 10% /100% auto;    
    content: ""; display: inline-block;
    filter: grayscale(1);    
    transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}
.menu>.menu-item>a:hover,
.menu>.menu-item.active>a,
.menu .menu-item.menu-item-has-children.is-open:has(.menu-item.active)>a,
.menu .sub-menu .menu-item a:hover,
.menu .sub-menu .menu-item.active a {
    color: var(--nav-color);
    font-weight: 700;
}

.menu .sub-menu .menu-item a:hover:before,
.menu .sub-menu .menu-item.active a:before {
    filter: grayscale(0);
}

/* 嵌入框架樣式 */
.layout-main {
    background-color: #222;
}

.layout-main::before {
    width:100%; height:100%;
    background: url(../images/texture/bg_texture3.webp) no-repeat center top / cover;
    content: ''; position: absolute; top: 0; left: 0;
    mix-blend-mode:overlay;
}

#loadpage_container {
    width: 100%; height: 100%;    
    display: flex; flex-direction: column; align-items: stretch;
    flex: 1; position: relative;
    color: #fff;
}

/* 左邊選單目錄 */
.skip-nav a {
    background: #000;
    border-bottom: 1px solid #fff;
    border-bottom-right-radius: 8px;
    border-right: 1px solid #fff;
    color: #fff;
    font-size: .76rem;
    left: 0;
    padding: 6px;
    position: absolute;
    text-decoration: none;
    top: 0;
    -ms-transform: translateY(-100%);
    transform: translateY(-100%);
    transition: transform .1s ease-out;
    z-index: 100;
}

.skip-nav a:focus {
    left: 0;
    outline-color: transparent;
    position: absolute;
    top: 0;
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* 首頁右邊intro頁 */
.intro {
    padding: 40px 50px;
    background: url(../images/bg_intro_m.webp) no-repeat 50% 20% / cover;    
    font-size: 1rem; text-align: center; color: #d1c3a1; 
    flex: 1;
}

.intro .intro-title { 
    font-size: 38px; font-weight: 700;
}
.intro .intro-title span{
    background: url('../images/texture/bg_texture.webp') no-repeat 50% 50% / cover;
    background-clip: text;
    color: transparent;
    filter: saturate(1.2);
}

.intro .intro-text { 
    max-width:80%; margin: 10px auto 0;
    text-shadow: 0 0 5px rgb(31, 15, 7, .3), 0 0 10px rgb(31, 15, 7, .8), 0 0 15px rgb(31, 15, 7, .9), 0 0 20px rgb(31, 15, 7, .9);    
}

.intro .intro-text span{ display: block;}



.intro .intro-btn {
    max-width: 260px; min-width: 140px; margin: 26px auto 0; padding: 15px 10px;
    display: block; transition: .25s cubic-bezier(0.4,0,0.2,1);
    font-size: 1.15rem; font-weight: 600; text-align: center;
    border-image: url('../images/btn_website.webp') round;
    /* top | right | bottom | left */
    border-image-slice:  calc(61 / 96 * 100%) calc(54 / 292 * 100%) calc(34 / 96 * 100%) calc(54 / 292 * 100%) fill;
    border-image-width: 61px 54px  34px 54px;    
}
.intro .intro-btn span{
    background: linear-gradient(to bottom, #f9f0c0 50%, #ddc671 100%);
    background-clip: text;
    color: transparent;
}

.intro .intro-btn:hover { filter: brightness(1.2);}


/* ------------------ wide view ------------------ */

@media screen and (min-width:1024px) {
    .layout {
        display: block;
        height: 100%
    }

    .layout .layout-container {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: row;
        flex-direction: row
    }

    .layout .layout-container .layout-header {
        -ms-flex-align: unset;
        -ms-flex-pack: start;
        align-items: unset;
        background-color: #242424;
        justify-content: start;
        position: relative;
        width: 245px;
        z-index: 0
    }

    .layout .layout-container .layout-header .ico-hamburger,
    .layout .layout-container .layout-header h1 {
        display: none
    }

    .layout .layout-container .layout-main {
        -ms-flex: 1;
        flex: 1;
        height: auto;
    }

    .layout .layout-container .layout-main .btn-top { width: 60px;}

    .layout .layout-footer {
        height: 120px; text-align: left;
        display: flex; flex: 0 0 120px;  flex-direction: row;
        gap: 10px;
    }

    .layout .layout-footer br {
        display: none
    }

    .layout .layout-footer address {
        margin-left: 0;
        margin-top: 0
    }

    .menu-container {
        height: 100%;
        overflow: visible;
        position: absolute;
        visibility: visible;
        z-index: 0
    }

    .menu-container .menu-container-inner {
        -ms-transform: translate(0);
        transform: translate(0);
        transition: none;
        width: 100%
    }

    .menu-container .menu-container-title { 
        padding: 0; position: static; padding: 30px 0 25px 0;
        display: flex; justify-content: center; align-items: center;
    }

    .menu-container .menu-container-title .title {
        width: 100%; max-width: 170px; height: 100%;
        /* display: flex; justify-content: center; align-items: center; */
    }

    .menu-container .menu-container-title .btn-close {
        display: none;
    }

    .menu-container .menu-primary-container {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        top: var(--wp-admin--admin-bar--height, 0);
    }

    .menu {
        font-size: 17px;
        letter-spacing: -.5px;
    }

    .menu .menu-item a {
        padding: 20px 36px;
    }


    .menu>.menu-item>a {
        background: url(../images/texture/bg_quest_wall_01.webp) no-repeat 50% 50% / cover;
    }


    .menu .sub-menu .menu-item a {
        padding: 10px 40px;
    }
    .menu .sub-menu .menu-item:first-child a{padding-top: 20px;}
    .menu .sub-menu .menu-item:last-child a{padding-bottom: 20px;}


    .logos svg {
        max-width: 150px;
    }

    .intro {
        background-image: url(../images/bg_intro2.webp);
        background-position: 50% 0;
        padding: 180px 100px;
        text-align: left;
    }

    .intro .intro-title {
    font-size: clamp(70px, 7vw, 90px);
  }

    .intro .intro-text {
        font-size: 22px;
        margin: 18px 0 0;
        max-width: none
    }

    .intro .intro-btn {
        font-size: 22px;
        margin: 48px 0 0;
        max-width: 360px;
    }
}

@media screen and (min-width:1640px) {
    .intro {background-image: url(../images/bg_intro.webp);}

}

/* ------------------ narrow view ------------------ */
@media screen and (max-width:400px) {
    .intro { padding: 20px 10px;}
    .intro .intro-text{ max-width: 100%;}
}

@media screen and (max-width:270px) {
    .intro { padding: 20px 5px;}
    .intro .intro-title { font-size: 30px;}
}

