*,
: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-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;
}
figure {
    margin-bottom: 1.5rem;

}

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;
}


:root {
    --layout-header: 60px;
    --font-family: 'Noto Sans TC', 'Microsoft JhengHei','微軟正黑體', sans-serif, Verdana;
    --btn-copy:40px;
}

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

#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 TC", 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-main{
    background: url(../images/txt_bg_l.png) no-repeat top center;
    background-size: 100% auto;

}

.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;
}


/* BTN X 回頂部*/
.layout .fixed-btn {
    display: none;
    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/btn_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);
}


/* BTN X 語系*/
.layout .fixed-lang {
    position: absolute;
    top: 1.8rem;
    height: 0;
    right: 2.2rem;
    text-align: right;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.layout .btn-lang {
    width: 50px; 
    aspect-ratio: 1/1; 
    cursor: pointer;
    display: inline-block; 
    overflow: hidden;
    /* padding: 10px 8px; */
    /* border: 2px solid #41628a;
    color: #41628a; */
    border: 2px solid #ffffff7a;
    background: #41628a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}
.layout .btn-lang a{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout .btn-lang:nth-child(1) {
    border-radius: 50% 0 0% 50%;
    border-right: 0;
}
.layout .btn-lang:nth-child(2) {
    border-radius: 0% 50% 50% 0%;
}

.layout .btn-lang:hover {
    background-color: #78a5d8;
    color: #fff;
}


/* footer*/
.layout .layout-footer {
    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-style: normal;
    font-weight: 400;
    margin-top: 20px;
}


.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/logo_uj.svg) no-repeat 0 0 / 100% auto;
    vertical-align: middle;
}
/* footer*/



/*左側選單*/
.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:   linear-gradient(to bottom, #476e9c 0%,#262a3b 100%);;
    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: #24242400;
    /* text-align: center; */
    border-bottom: 1px solid #fdf6d552;
    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/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 #fdf6d552;
}

.menu>.menu-item>a{
    position: relative;
}
.menu>.menu-item>a::after{
    width: 100%; height: 100%; 
    /* content: ""; */ display: block;
    position: absolute; top: 0; left: 0;    
    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/chevron-down.png) no-repeat 0 0 / 100% auto;
    content: "";    
    position: absolute; right: 15px; 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/chevron-up.png); filter: grayscale(0);
}

.menu .sub-menu {
    background-color: #263b56;
    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/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: #e2e3e4;
}

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


/* 左邊選單目錄(PC) */
.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_m.webp) no-repeat ;
    background-size: cover;
    font-size: 1rem; text-align: center; color: #d1c3a1; 
    flex: 1;
}

.intro  .intro-title{
    display: block;
    position: relative;
    /* z-index: 999; */
}

/* .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);}



/* 首頁右邊intro頁 (英文版) */
#en .intro-text{
    max-width: 60%;
}
@media (max-width:1300px) {
    #en .intro-title{
        margin-top: 7rem;
    }
    #en .intro-text{
        max-width: 75%;
    }
}



@media (min-width:1300px) {
    .intro{
        padding: 100px 100px;
    }
}


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

@media (min-width:1025px) {
    .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;
    }

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

    .layout .layout-footer address {
        margin-left: 50px;
        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: 10px 0 15px 0;
        display: flex; 
        flex-direction: column;
        justify-content: center; 
        align-items: center;
    }

    .menu-container-title .lang{
    margin-top: .5rem;
    display: flex;
    }
    
    .menu-container-title a{
        width: 80px;
        text-align: center;
        padding: 7px;
    }

    .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;
    } */

    /*左側 X 下拉式設定*/
    .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;
    }

    /*主頁面 X 設定*/
    .intro {
        background-image: url(../images/bg_l.webp);
        background-position: 50% 10%;
        padding: 150px 100px;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content:flex-end ;
    }
    .intro img{
        max-width: 500px;
    }


    .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 (max-width:1024px) {
    .menu-container-title .lang{
        display: none;
    }
    .menu-container .menu-container-title{
        padding: 1.5rem 42px;
    }

    .menu-container .menu-container-title .title{
        max-width: 130px;
    }
    .layout .layout-header{
        flex-direction:row;
    }

    .layout .btn-lang {
        display: none;
    }

    /*MB版*/
    .layout .layout-header .lang{
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(-0%, -50%);
        display: flex;
        justify-content: flex-end;

    }
    .layout .layout-header .lang a{
        width: 50px;
        padding: 15px 9px;
        /* margin: 0 5px; */
        text-align: center;
    }



    .intro{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .intro-title{
        width: 80%;
        margin-top: 3rem;
    }

    .intro .intro-text{
        font-size: 1.5rem;
        margin-top: 1rem;
    }

}



/* ------------------ narrow view ------------------ */
@media (max-width:576px) {

    .intro { 
        background: url(../images/bg_s.webp) no-repeat;
        background-size: cover;
        background-position-x:40%; 
        padding: 20px 10px;
    }
    .intro-title{
        margin-top: 6rem;
    }
    .intro .intro-text{ 
        max-width: 100%;
        font-size: 1.1rem;

    }
    .layout-main{
        background-position-x: right;
        background-size: 180% auto;
    }
}

@media (max-width:380px) {
    .intro-title{
        margin-top: 10rem;
    }

}

@media (max-width:270px) {
    .intro { padding: 20px 5px;}
}

