@font-face {
    font-family: 'OleoScript-Regular';
    src: url('/css/fonts/OleoScript-Regular.woff') format('woff'),
        url('/css/fonts/OleoScript-Regular.ttf') format('truetype'),
        url('/css/fonts/OleoScript-Regular.eot') format('embedded-opentype');
}

@font-face {
    font-family: 'ClashDisplay-Medium';
    src: url('/files/fonts/ClashDisplay-Medium.woff') format('woff'),
        url('/files/fonts/ClashDisplay-Medium.ttf') format('truetype'),
        url('/files/fonts/ClashDisplay-Medium.eot') format('embedded-opentype');
}

@media (max-width:544px) {
    /*html,body{
        font-size: 14px;
    }*/
}

body {
    color: #021039;
    background-color: #eef2f6;
}

a {
    color: #FFF;
}

a:hover {
    color: #FFF;
}

.home article {
    overflow-x: hidden;
}

article {
    padding-left: 100px;
    color: #FFF;
}

@media (max-width:992px) {
    article {
        padding-left: 0;
    }
}

.px-grid {
    padding-left: 4%;
    padding-right: 4%;
}

.p-hr {
    border-top: none;
    position: relative;
    width: 100%;
}

.p-hr-double {
    height: 10px;
}

.p-hr-double::after {
    bottom: 0;
    position: absolute;
}

.p-hr::before,
.p-hr--dot-pattern::after,
.p-hr-double::after {
    content: '';
    display: block;
    width: 0%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.p-hr[data-scroll]::before,
.p-hr[data-scroll]::after,
.p-hr--dot-pattern[data-scroll] span {
    transition-property: width, height;
    transition-duration: 2s;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    width: 0%;
}

.p-hr[data-scroll].ns-ent.enter::before,
.p-hr[data-scroll].ns-ent.enter::after {
    width: 100%;
}

.p-hr--dot-pattern {
    height: 61px;
    /*padding: 2px 0;*/
}

.p-hr--dot-pattern span {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-image: radial-gradient(rgba(255, 255, 255, 0.5) 10%, transparent 10%);
    background-image: -webkit-radial-gradient(rgba(255, 255, 255, 0.5) 10%, transparent 10%);
    background-size: 3px 3px;
}

.p-hr--dot-pattern[data-scroll].ns-ent.enter span {
    width: 100%;
}

.p-heading {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: stretch;
    padding-top: 43px;
    padding-bottom: 43px;
}

.p-heading .more {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: stretch;
    /*transition-duration: 0.2s;*/
    -webkit-animation: btnAni 0.8s infinite cubic-bezier(0.66, 0, 0, 1);
    animation: btnAni 0.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@-webkit-keyframes btnAni {
    20% {
        margin-right: 0px;
    }

    70% {
        margin-right: -8px;
    }
}

@keyframes btnAni {
    20% {
        margin-right: 0px;
    }

    70% {
        margin-right: -8px;
    }
}

.p-heading .more .circle-arw {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: stretch;
    width: 16px;
    height: 16px;
    background-color: transparent;
    border-radius: 50%;
    display: inline-block;
}

.p-heading .more .circle-arw::before {
    content: '';
    display: block;
    height: 0px;
    width: 0px;
    border-style: solid;
    border-color: transparent transparent transparent #FFF;
    border-width: 5px;
    margin-left: 6px;
    margin-top: 5px;
}

.p-heading .more a:hover {
    color: #000;
}

.p-heading .more a:hover .circle-arw::before {
    border-color: transparent transparent transparent #000;
}

.p-title {
    line-height: 120%;
    margin-bottom: 0;
}

.p-heading .p-title_en {
    display: block;
    font-family: 'ClashDisplay-Medium';
    font-weight: 500;
    font-size: 3.5rem;
}

.p-heading .p-title_tw {
    font-size: 1.2rem;
    font-family: '思源黑體';
}

.p-title-circle::before {
    content: '';
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    margin-right: 15px;
}

.p-title-circle small {
    font-size: 1rem;
}

@media (max-width:768px) {
    .p-title {
        line-height: 100%;
    }

    .p-heading .p-title_en {
        font-size: 2.5rem;
    }

    .p-heading .p-title_tw {
        font-size: 1rem;
    }
}
@media (max-width:464px) {
    .p-heading .p-title_en {
        font-size: 2rem;
    }
}

.c-line {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.c-line::before {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
}

.c-line[data-line-direction='left']::before {
    left: 0;
}

.c-line[data-line-direction='right']::before {
    right: 0;
}

.c-line[data-line-direction='left']::before,
.c-line[data-line-direction='right']::before {
    top: 0;
    width: 1px;
    height: 0%;
}

.c-line.ns-ent.enter::before {
    transition-property: width, height;
    transition-duration: 2s;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.c-line[data-line-direction='left'].ns-ent.enter::before,
.c-line[data-line-direction='right'].ns-ent.enter::before {
    height: 100%;
}

a:hover {
    text-decoration: none;
}

.fs-xl-14 {
    font-size: 14px;
}

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

.container .container {
    padding: 0;
}

.btn-default {
    background-color: #bd2130;
}

.flex-card-header {
    display: block;
}

.empty-hidden:empty {
    display: none;
}

.indent-cont {
    display: block;
    max-width: 830px;
    margin-left: auto;
    margin-right: auto;
}

.bg-top-shadow {
    box-shadow: inset 0px 2px 3px rgba(20%, 20%, 40%, 0.2);
}

.btn:not(.normal) {
    border-radius: 0;
    padding-right: 3.75rem;
    box-sizing: border-box;
    overflow: hidden;
    transition: all .5s;
    background: #4b4b4b;
    color: #FFF;
}

.btn:not(.normal)::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    margin-top: -0.5px;
    width: 35px;
    height: 1px;
    background: #fff;
    transition: all .5s;
}

.btn:not(.normal)::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -0.5px;
    width: 35px;
    height: 1px;
    background: #c1c1c1;
    transition: all .5s;
}

.btn:not(.normal):hover {
    padding-left: 3.75rem;
    padding-right: 0.75rem;
    transition: all .5s;
}

.btn:not(.normal):hover:before {
    left: 0px;
    transition-delay: .2s;
    background: #c1c1c1
}

.btn:not(.normal):hover:after {
    right: -50px;
    width: 0px;
}

.btn-default {
    background-color: #bd2130;
}

#pagearea .break-inside-avoid {
    outline: 1px dotted #CCC;
    background-color: rgba(0, 255, 100, 0.1);
}

.break-inside-avoid {
    display: grid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.dotted-btm {
    border-bottom: 2px dotted #DDD;
}

.step-wrap {
    counter-reset: my-sub-counter;
}

.step-row {
    counter-reset: my-sec-counter;
}

.step-block {
    padding: 1.25rem;
    height: 100%;
}

.step-block::before {
    counter-increment: my-sec-counter;
    content: counter(my-sec-counter);
    position: absolute;
    bottom: 50px;
    right: 5px;
    color: #E8E8E8;
    font-family: Arial;
    font-style: italic;
    font-size: 8em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.step-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    border-bottom: 1px dotted #CCC;
}

.step-topic::before {
    content: '步驟'counter(my-sub-counter);
    counter-increment: my-sub-counter;
    position: relative;
    display: inline-block;
    font-family: 'Allura', '微軟正黑體';
    font-size: 1rem;
}

.en .step-topic::before {
    content: 'Step'counter(my-sub-counter);
}

.step-topic>span.fa {
    font-size: 18px;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    color: #990000;
}

.step-topic>span {
    font-size: 1rem;
}

.step-text {
    color: #999;
}

.entre-row {
    counter-reset: block-counter;
}

.entre-row .card-body {
    text-align: center;
}

.entre-row .card-title::before {
    content: 'STEP 'counter(block-counter);
    counter-increment: block-counter;
    position: relative;
    display: inline-block;
}

/************slider**************/
.slick-dots {
    position: absolute;
    bottom: 30px;
}

.slick-arrow {
    z-index: 10;
}

.products-carousel {
    max-width: 420px;
    margin: auto;
}

/****************************  ****************************/
/*
.slider-syn {
    width: 100%;
}

.slider-syn .items-view {
    margin-bottom: 1rem;
}

.slider-syn .slider-nav .slick-slide {
    margin: 0.5rem;
}

.slider-syn .slider-nav .slick-list {
    margin: -0.5rem;
}
*/
.slider-syn .slider-nav .items-block {
    cursor: pointer;
    border: dotted 1px #CCC;
}

.slick-arrow {
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 1rem;
}

.slick-prev {
    left: 10px;
    background-color: rgba(255, 255, 255, 0.5);
}

.slick-next {
    right: 10px;
    background-color: rgba(255, 255, 255, 0.5);
}

.slick-prev::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(/images/icons/arrow-bl.png);
    background-size: cover;
    margin-left: 6px;
}

.slick-next:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(/images/icons/arrow-br.png);
    background-size: cover;
    margin-left: 6px;
}

.slider-syn .slider-nav .slick-slide.slick-current .items-block {
    border: solid 1px #000;
}

.slider-syn .items-view {
    margin-bottom: 1rem;
}

.items-view .items-block,
.items-nav .items-block {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    padding-bottom: 100%;
}

/*************other*************/
#gotop {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    line-height: 32px;
    text-align: center;
    font-size: 25px;
    background: rgba(0, 0, 0, .36);
    color: #FAFCFD;
    cursor: pointer;
    z-index: 80
}

#gotop>span.fa {
    top: -5px;
}

#gotop>.txt {
    position: absolute;
    width: 100%;
    line-height: normal;
    font-size: 12px;
    bottom: 5px;
    text-align: center
}

/*************float-contact***********/
.wdg-contact-wrap {
    position: absolute;
    left: 0;
    top: 100px;
    padding: 0.25rem;
    margin-top: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    color: #FFF;
    font-size: 12px;
    transition-duration: .6s;
    transition-timing-function: ease-out;
    z-index: 3000;
}

.wdg-contact-wrap.hide {
    left: -55px;
    transition-duration: .6s;
    transition-timing-function: ease-out;
}

.wdg-contact-wrap .wdg-switch {
    display: block;
    left: 0;
    line-height: 32px;
    text-align: center;
    transition-duration: .6s;
    font-family: FontAwesome;
}

.wdg-contact-wrap .wdg-switch::before {
    content: '\f060';
}

.wdg-contact-wrap.hide .wdg-switch {
    width: 28px;
    line-height: 60px;
    left: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition-duration: .6s;
    transition-delay: .3s;
}

.wdg-contact-wrap.hide .wdg-switch::before {
    content: '\f061';
}

.wdg-contact-wrap .wdg-link:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.wdg-contact-wrap .wdg-link {
    display: block;
}

.wdg-contact-wrap .wdg-icon {
    display: block;
    width: 45px;
    height: 45px;
    text-align: center;
    margin: auto;
}

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

.wdg-contact-wrap .wdg-icon>img {
    max-width: 32px;
    max-height: 32px;
    display: inline-block;
    vertical-align: middle;
}

.invalid-feedback {
    font-size: 14px;
    color: #FF3F00;
    position: absolute;
    right: 14px;
    bottom: 0;
    pointer-events: none;
}

.invalid-feedback .list-unstyled {
    margin: 0;
}

.has-error .form-input {
    box-shadow: 0 0 1px 1px #FF3F00 inset;
}

.help-block {
    font-size: 14px;
    color: #FF3F00;
    position: absolute;
    right: 24px;
    bottom: 0;
    pointer-events: none
}

.help-block .list-unstyled {
    margin: 0
}

/* 呼吸動畫 */
@-webkit-keyframes moveYPlusCentered2 {
    0% {
        transform: perspective(400px) translate(0) translateZ(0)
    }

    50% {
        transform: perspective(400px) translateY(10px) translateZ(0)
    }

    to {
        transform: perspective(400px) translate(0) translateZ(0)
    }
}

@keyframes moveYPlusCentered2 {
    0% {
        transform: perspective(400px) translate(0) translateZ(0)
    }

    50% {
        transform: perspective(400px) translateY(10px) translateZ(0)
    }

    to {
        transform: perspective(400px) translate(0) translateZ(0)
    }
}

.sticky_block {
    height: 100vh;
    z-index: 1;
    position: -webkit-sticky;
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    background-color: #fff;
    -webkit-transition: background-color .5s ease;
    transition: background-color .5s ease;
}

.sticky_block.black {
    background-color: #23293c;
}

/* 照片牆 */
.dyn-img-sect {
    overflow: hidden;
}

.dyn-img-row {
    margin-left: -2px;
    margin-right: -2px;
}

.dyn-img-row>.column {
    padding: 0;
}

.dyn-img-row .img-layer {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    left: 2px;
    z-index: 10;
    background-size: cover;
    background-position: center center;
    transform: scale(1, 1);
    transition-duration: 2s;
}

.home-case .shp-xl-s {
    padding-top: 70%;
}

.home-case .shp-xl-l {
    padding-top: 35%;
}

/* 旋轉動畫 */
@-webkit-keyframes whirl {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes whirl {
    from {
        -moz-transform: rotate(0deg);
    }

    to {
        -moz-transform: rotate(360deg);
    }
}

@-o-keyframes whirl {
    from {
        -o-transform: rotate(0deg);
    }

    to {
        -o-transform: rotate(360deg);
    }
}

@keyframes whirl {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ratio */
.ratio {
    position: relative;
    width: 100%;
}

.ratio>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ratio-16x9 {
    --bs-aspect-ratio: calc(9 / 16 * 100%);
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: '';
}

.contactform .form-group.has-error .invalid-feedback {
    font-size: 0.75rem;
    display: block;
    bottom: 10px;
    right: 16px;
}