* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* General styles */
body {
    color: #fff;
    font-size: 1em;
    height: 100vh;
    position: relative;
    font-family: Microsoft JhengHei, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #fff;
    text-decoration: none;
    outline: none;
}

a:hover {
    color: #fff;
}

a:hover,
a:focus {
    outline: none;
}

nav {
    width: 100%;
    margin: 0 auto;
}

nav ul {
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    max-width: 25%;
    display: inline-block;
}

.button {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin: 5px 20px 5px 0;
    border: 2px solid #f7f7f7;
    border-radius: 4px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    -webkit-transition: .3s;
    transition: .3s;
}

.button:nth-of-type(4) {
    margin: 5px 0;
}

.button a {
    padding: 15px;
    display: block;
}

.button:after {
    position: absolute;
    -webkit-transition: .3s;
    transition: .3s;
    content: '';
    width: 0;
    left: 50%;
    bottom: 0;
    height: 3px;
    background: #f7f7f7;
    right: 0;
    left: auto;
}

.button:hover, .button:focus {
    cursor: pointer;
}

.button:hover:after, .button:focus:after {
    width: 100%;
    left: 0;
}

.turnDeviceNotification {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: none;
    z-index: 9999;
    background: url(../img/turnDevice.png) center center no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* Main container */
.container {
    position: relative;
    height: calc(100vh - 35px);
    overflow: hidden;
    text-align: center;
}

.container:before{
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
}

.container::-webkit-scrollbar {
    display: none
}

.container_inline {
    position: relative;
    height: auto;
}

/* Header */
header {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -webkit-flex: none;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    height: 35px;
    position: relative;
    background-color: #141414;
}

header h1 {
    font-size: 1em;
    margin: 0 auto 0 0;
    padding: 0.5em;
}

header h1 span {
    color: #585558;
}

.head_group {
    width: 100%;
}

.logo {
    max-width: 86px;
    margin: 0 auto;
    padding: 0.1rem 0.8rem;
    font-size: 4rem;
    text-align: center;
    vertical-align: middle;
    background-color: #004e97;
    position: relative;
    z-index: 999;
}

.logo a {
    color: #fff;
}

.notice {
    left: 1rem;
    position: absolute;
    top: 9px;
    font-size: 0.875rem;
}

.share {
    position: absolute;
    line-height: 1;
    padding: 0.5rem 0;
    right: 1rem;
}

.sinline {
    position: fixed;
    text-align: center;
    line-height: 1;
    display: block;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0.5% 0;
    right: 0;
}

.share ul {
    margin: 0 auto;
    padding: 0;
}

.share ul li {
    display: inline-block;
    font-size: 1.2rem;
    text-align: center;
    vertical-align: middle;
    list-style: none;
    padding: 0 15px 0 0;
    cursor: pointer;
}

.share ul li:nth-of-type(4) {
    padding: 0;
}

.share ul li i.icon-facebook {
    font-size: 1em;
}

.share ul li i.icon-google-plus {
    font-size: 1.3em;
}

.share ul li i.icon-line {
    font-size: 1em;
}

.share ul li.hide {
    display: none;
}

.pagetitle {
    width: 90%;
    display: inline-block;
    vertical-align: middle;
    bottom: 0;
    margin: 0 auto;
    z-index: 8;
    position: relative;
    -webkit-filter: drop-shadow(0px 2px 1px #141414);
    filter: drop-shadow(0px 2px 1px #141414);
}

.pagetitle h1 {
    width: 100%;
    height: 70px;
    margin: 0.5rem auto;
    z-index: 0;
    background: url(../img/pagetitle.svg) center no-repeat;
}

.pagetitle span,
h2 span {
    opacity: 0;
}

.pagetitle p {
    margin: 0 auto;
    padding: 0.5% 0 1% 0;
    max-width: 700px;
    font-size: 1.2em;
    text-align: justify;
    line-height: 1.5;
}

.inline_wrapper {
    /*background: #0b0b0b;
    background: rgba(0, 0, 0, 0.5);*/
    display: -webkit-box;
    /* OLD - iOS 6-, Safari 3.1-6 */
    /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;
    /* TWEENER - IE 10 */
    display: -webkit-flex;
    /* NEW - Chrome */
    display: flex;
    margin: 0 auto;
}

.inline {
    max-width: 800px;
    margin: 0 auto;
}

.inline_title h2 {
    width: 100%;
    height: 50px;
    margin: 8% auto 0 auto;
    z-index: 0;
    background: url(../img/pagetitle_s.svg) center no-repeat;
}

.inline_title p {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

h2.no-span {
    width: 100%;
    display: table;
    white-space: nowrap;
    overflow: hidden;
}

h2.no-span:before,
h2.no-span:after {
    border-top: 1px solid #c4c4c4;
    content: '';
    display: table-cell;
    position: relative;
    top: 0.5em;
    width: 46%;
}

h2.no-span:before {
    right: 1.5%;
}

h2.no-span:after {
    left: 1.5%;
}

/* padding-bottom and top for image */
.mfp-no-margins img.mfp-img {
    padding: 0;
}

/* position of shadow behind the image */
.mfp-no-margins .mfp-figure:after {
    top: 0;
    bottom: 0;
}

/* padding for main container */
.mfp-no-margins .mfp-container {
    padding: 0;
}

/* Hero image */
.hero {
    position: absolute;
    width: 100%;
    height: calc(100vh - 35px);
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.mask {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.75) 100%);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #141414;
}

.slide1,
.slide2,
.slide3,
.slide4,
.slide4 {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide1 {
    background: url(../img/bg.jpg);
    background-size: cover;
    background-position: center center;
    animation: fade 30s infinite;
    -webkit-animation: fade 30s infinite;
}

.slide2 {
    background: url(../img/bg2.jpg);
    background-size: cover;
    background-position: center center;
    animation: fade2 30s infinite;
    -webkit-animation: fade2 30s infinite;
}

.slide3 {
    background: url(../img/bg3.jpg);
    background-size: cover;
    background-position: center center;
    animation: fade3 30s infinite;
    -webkit-animation: fade3 30s infinite;
}

.slide4 {
    background: url(../img/bg4.jpg);
    background-size: cover;
    background-position: center center;
    animation: fade4 30s infinite;
    -webkit-animation: fade4 30s infinite;
}

@-webkit-keyframes fade {
    0% {
        opacity: 1
    }

    25% {
        opacity: 0
    }

    50% {
        opacity: 0
    }

    75% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes fade {
    0% {
        opacity: 1
    }

    25% {
        opacity: 0
    }

    50% {
        opacity: 0
    }

    75% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@-webkit-keyframes fade2 {
    0% {
        opacity: 0
    }

    25% {
        opacity: 1
    }

    50% {
        opacity: 0
    }

    75% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@keyframes fade2 {
    0% {
        opacity: 0
    }

    25% {
        opacity: 1
    }

    50% {
        opacity: 0
    }

    75% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@-webkit-keyframes fade3 {
    0% {
        opacity: 0
    }

    25% {
        opacity: 0
    }

    50% {
        opacity: 1
    }

    75% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@keyframes fade3 {
    0% {
        opacity: 0
    }

    25% {
        opacity: 0
    }

    50% {
        opacity: 1
    }

    75% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@-webkit-keyframes fade4 {
    0% {
        opacity: 0
    }

    25% {
        opacity: 0
    }

    50% {
        opacity: 0
    }

    75% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

@keyframes fade4 {
    0% {
        opacity: 0
    }

    25% {
        opacity: 0
    }

    50% {
        opacity: 0
    }

    75% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

.content {
    top: 100px;
    min-height: 100vh;
    position: relative;
    /*background: rgba(0, 0, 0, 0.9);*/
}

.item {
    width: 100%;
    position: relative;
    margin: 4% auto 8% auto;
}

.item_content {
    position: relative;
    z-index: 100;
    margin: 0 auto;
}

.max12 {
    max-width: 1200px;
}

.max8 {
    max-width: 800px;
}

.item_content img {
    max-width: 100%;
}

.item_content p {
    font-size: 1.2em;
    line-height: 1.6;
    text-align: justify;
    color: #f5f4f4;
    margin: 1% auto;
}

/* footer */
footer {
    text-align: center;
    bottom: 0;
    width: 100%;
    padding: 2em 0;
    line-height: 2;
    z-index: 2;
}

footer.index {
    position: absolute;
}

footer.inpage {
    position: relative;
}

.scrollIcon {
    position: fixed;
    text-align: center;
    width: 100%;
    bottom: 75px;
    z-index: 999;
}

.scrollIcon a {
    opacity: 0.5;
    font-size: 30px;
    display: block;
    /* transform:rotate(90deg);
    -webkit-transform:rotate(90deg);
    -moz-transform:rotate(90deg);
    -ms-transform:rotate(90deg);
    -o-transform:rotate(90deg); */

    -o-transition: opacity 0.5s ease-in-out;

    transition: opacity 0.5s ease-in-out;
    -webkit-transition: opacity 0.5s ease-in-out;

    animation-name: Blinking;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: Blinking;
    -webkit-animation-duration: 1s;
}

@-webkit-keyframes Blinking {
    from {
        opacity: 0.5
    }

    to {
        opacity: 1;
    }
}

@keyframes Blinking {
    from {
        opacity: 0.5
    }

    to {
        opacity: 1;
    }
}

/* Mobile-specific media queries */
@media screen and (max-width: 768px) {
    .logo {
        width: 76px;
        height: 58px;
        font-size: 45px;
        line-height: 58px;
        float: left;
    }

    .notice {
        display: none;
    }

    nav {
        width: auto;
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap;
    }

    nav ul li {
        max-width: 60%;
    }


    footer {
        font-size: 0.8em;
    }

    .mfp-close {
        right: 5px;
    }

    .item {
        width: 90%;
        margin: 4% auto 10% auto;
    }

}

@media screen and (max-width: 680px) {

    .button, .button:nth-of-type(4){
        margin: 1rem 0.5em 1rem auto;
        border: 1px solid #f7f7f7;
    }

    .button:nth-of-type(4){
        margin: 1rem auto;
        border: 1px solid #f7f7f7;
    }

    .pagetitle p {
        max-width: 370px;
    }
}

@media screen and (max-width: 480px) {
    .pagetitle {
        width: 90%;
    }

    .pagetitle h1 {
        height: 50px;
        background: url(../img/pagetitle_s.svg) center no-repeat;
    }

    .pagetitle p {
        font-size: 1em;
        font-weight: normal;
    }

    .button a {
        padding: 12px;
    }

    /* gabby 20181224 */
    .share ul li.hide.in-web {
        display: inline-block;
    }

    .in-app-module .share ul li.hide.in-app {
        display: inline-block;
    }

    .in-app-module .share ul li.hide.in-web {
        display: none;
    }

    .sinline {
        padding: 2.2% 0;
        right: 0;
    }

    .inline_title {
        margin: 15% 0 0 0;
    }

    .inline_title h2 {
        height: 45px;
    }

    .item_content p {
        margin: 2% auto;
        font-size: 1em;
    }

    .slide4 {
        background-position: -350px center;
    }
}


@media screen and (max-width: 360px) {
    .pagetitle h1 {
        height: 65px;
    }

    .pagetitle p {
        font-size: 1em;
        font-weight: normal;
    }
    .button a {
        padding: 12px;
    }
}

@media screen and (max-width: 320px) {
    .pagetitle {
        width: 85%;
    }

    .pagetitle p {
        display: none;
    }

    .item_content p {
        margin: 4% auto;
    }

    nav {
        margin: 0 auto;
    }
}

@media only screen /*iphoneX*/
    and (device-width : 375px) 
    and (device-height : 812px) 
    and (-webkit-device-pixel-ratio : 3) {
    .container, .hero {
        height: calc(100vh - 35px);
    }
 }