body {
    font-family: 'Lato', 'Noto Sans TC', 'Microsoft JhengHei';
}

#header {
    padding: 10px 0;
    background-color: #fff;
}
#tg-nav .navbar-right {
    border-top: 1px solid #777;
}
#tg-nav ul li.active a {
    font-weight: 500;
}
.tg-home-slider .item {
    position: relative;
    height: 45vw;
    min-height: 500px;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.indexslider__content {
    position: absolute;
    left: 0;
    bottom: 70px;
    width: 100%;
}
.indexslider__box {
    display: inline-block;
    padding: 40px 30px;
    border-radius: 11px;
    -webkit-box-shadow: 0 0 35px rgba(0,0,0,.6) inset;
    -moz-box-shadow: 0 0 35px rgba(0,0,0,.6) inset;
    box-shadow: 0 0 35px rgba(0,0,0,.6) inset;
    background-color: rgba(51,51,51,.6);
}
.indexslider__title {
    color: #fff;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}
.indexslider__subtitle {
    color: #fff;
    font-size: 38px;
    line-height: 1.1;
    margin: 13px 0 0;
}
.indexslider__text {
    color: #fff;
    font-size: 30px;
    line-height: 1.4;
    margin: 8px 0 0;
}
.footer__locationrow:nth-child(n + 2) {
    margin-top: 15px;
}
.footer__locationtitle {
    color: #ccc;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}
.footer__locationlink {
    color: #999;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.7;
}
.col p.footernews__title {
    max-height: 3.2em;
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    -webkit-transition: color .3s ease;
    -moz-transition: color .3s ease;
    transition: color .3s ease;
    overflow: hidden;
}
.col .footernews__date {
    color: #999;
    font-size: 12px;
    line-height: 2;
    -webkit-transition: color .3s ease;
    -moz-transition: color .3s ease;
    transition: color .3s ease;
}
.col ul li a:hover .footernews__title {
    color: #a78b21;
}
.col ul li a:hover .footernews__date {
    color: #fff;
}
.tg-heading-border h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 90px;
    width: 19px;
    height: 2px;
    background-image: url(../images/heading_border.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.timeline__item {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    -webkit-align-items: center;
            align-items: center;
    -webkit-align-content: center;
            align-content: center;
    /*float: left;*/
    margin-top: 20px;
}
.timeline__item:first-child {
    margin-top: 0;
}
.timeline__title {
    min-height: 60px;
    display: flex;
    -webkit-align-items: center;
            align-items: center;
    -webkit-align-content: center;
            align-content: center;
    color: #a78b21;
    font-size: 30px;
    font-weight: bold;
    line-height: 40px;
    letter-spacing: .1em;
    padding-right: 25px;
    border-right: 1px solid #a78b21;
    margin: 0;
}
.timeline__text {
    flex: 1;
    color: #4f4f4f;
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 0 25px;
}
.company__feature {
    color: #777;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6875;
}
.company__feature-title {
    color: #000;
    font-size: 18px;
    text-align: center;
    line-height: 1.2;
    margin: 0 0 20px;
}
.company__feature-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #a78b21;
    margin: 10px auto 0;
}
.company__feature-text {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    margin: 20px 0 0;
}
.news__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #a78b21;
    margin-top: 15px;
}
.news__titlelink {
    display: block;
    color: #000;
    font-size: 18px;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
}
.news__text {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    height: 3.4em;
    overflow: hidden;
}
.news__item {
    margin-top: 50px;
}
.news__item:nth-child(-n + 2) {
    margin-top: 0;
}
.tg-post {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row-reverse;
}
.tg-post-img {
    float: none;
}
.newdetail__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #a78b21;
    margin: 12px 0 0;
}
.newdetail__titlelink {
    color: #000;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
}
.newdetail__date {
    color: #333;
    font-size: 16px;
    line-height: 1;
    margin-top: 20px;
    margin-bottom: 25px;
}
@media (max-width:991px) {
    .news__titlelink {
        height: 2.4em;
    }
    .indexslider__content {
        bottom: 30px;
    }
}
@media (max-width:991px) and (min-width:576px) {
    .indexslider__title {
        font-size: 34px;
    }
    .indexslider__subtitle {
        font-size: 30px;
    }
    .indexslider__text {
        font-size: 20px;
    }
}
@media (max-width:575px) {
    .timeline__title {
        min-height: auto;
    }
    .indexslider__title {
        font-size: 28px;
    }
    .indexslider__subtitle {
        font-size: 24px;
    }
    .indexslider__text {
        font-size: 18px;
    }
}
/* editor */
.editor p {
    color: #777;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6875;
}
.editor h5 {
    color: #333;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}
/* editor end */
.returnbox {
    width: 100%;
    display: flex;
    justify-content: center;
}
.returnbox__btn {
    display: block;
    height: 40px;
    color: #a78b21;
    font-size: 16px;
    line-height: 38px;
    border: 1px solid #adadad;
    padding: 0 60px;
    -webkit-transition: color .3s ease, background-color .3s ease, border-color .3s ease;
    -moz-transition: color .3s ease, background-color .3s ease, border-color .3s ease;
    transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}
.returnbox__btn:hover {
    color: #fff;
    background-color: #a78b21;
    border-color: #a78b21;
}
.tg-widget ul li a.sidebar__new-title {
    color: #333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-transition: color .3s ease;
    -moz-transition: color .3s ease;
    transition: color .3s ease;
}
.tg-widget ul li a.sidebar__new-title:hover {
    color: #a78b21;
    text-decoration: none;
}
.sidebar__new-date {
    color: #999;
    font-size: 14px;
    line-height: 1;
}
.tg-section-head .tg-description p.product__maintext {
    max-width: 51em;
    color: #4f4f4f;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    margin: 0 auto;
}
.prouct__name {
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 2;
    width: 100%;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.875;
    padding: 0 15px;
    opacity: 0;
    -webkit-transition: opacity .3s ease;
    -moz-transition: opacity .3s ease;
    transition: opacity .3s ease;
}
.tg-project--mobile .tg-portfolio-hover,
.tg-project--mobile .prouct__name {
    opacity: 1;
}
.tg-project--mobile .anchor-bottom {
    top: auto;
    right: 0;
    bottom: 0;
    opacity: 1;
    visibility: visible;
}
.tg-project:hover .prouct__name {
    opacity: 1;
}
.detailbanner {
    width: 100%;
}
.detail__titlebox {
    padding: 30px 0 25px;
    margin-top: 30px;
    border-top: 1px solid #a78b21;
    border-bottom: 1px solid #e2e2e2;
}
.detail__maintitle {
    color: #333;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}
.detail__subtitle {
    color: #999;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    margin: 5px 0 0;
}
.detail__subtitle:empty {
    display: none;
}
/* detail */
.editor {
    margin: 30px 0 40px;
}
.editor * {
    font-family: 'Lato', 'Noto Sans TC', 'Microsoft JhengHei' !important;
}
.editor h6 {
    color: #333;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}
.editor p {
    color: #777;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    line-height: 1.875;
}
.editor table {
    margin: 0;
}
.editor td {
    padding: 2px 15px;
}
.editor__table {
    width: 100%;
}
.editor__table .mCS-minimal.mCSB_scrollTools {
    margin: 0 !important;
}
.editor__table .mCS-minimal.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: rgba(41, 63, 84, 0.1);
}
/* detail end */
.loc-email,
.loc-phone,
.loc-fax {
    color: #a78b21;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 8px;
}
[class^="loc-"] .fa {
    width: 16px;
    font-size: 14px;
    text-align: center;
    color: #686868;
    margin: 4px 10px 0 0;
}
@media (max-width:991px) {
    .tg-main-section {
        padding: 40px 0;
    }
    .tg-banner {
        padding: 80px 0 0;
    }
    .tg-banner ul {
        padding: 10px 20px;
    }
    .indexslider__box {
        padding: 25px 15px;
    }
    .indexslider__text {
        font-size: 24px;
    }
    .four-columns {
        padding: 40px 0;
    }
    .width-footercol {
        text-align: center;
    }
    .width-footercol:nth-child(n + 2) {
        display: none;
    }
    .col .logo {
        display: block;
        float: none;
        margin: 0 auto 20px;
    }
    .col ul li {
        float: none;
    }
    .tg-post {
        flex-direction: column;
    }
    .tg-post-img,
    .tg-post-area {
        width: 100%;
    }
    .news__item {
        margin-top: 30px;
    }
}
@media (max-width:991px) and (min-width:768px) {
    .tg-hover-content {
        height: 350px;
    }
}
@media (max-width:767px) {
    .whychoiceus__item > div {
        display: flex;
        flex-wrap: wrap;
    }
    .whychoiceus__item:nth-child(2) > div {
        flex-direction: column-reverse;
    }
    .whychoiceus__item:nth-child(n + 2) {
        margin-top: 20px;
    }
    .tg-hover-content {
        height: auto;
    }
}
@media (max-width:575px) {
    .timeline__item {
        align-items: flex-start;
        flex-direction: column;
    }
    .timeline__title {
        line-height: 1;
        border: 0;
    }
    .timeline__text {
        margin: 0;
    }
    .news__item {
        width: 100%;
    }
    .news__item:nth-child(2) {
        margin-top: 30px;
    }
    .detail__maintitle {
        font-size: 24px;
    }
    .detail__subtitle {
        font-size: 16px;
    }
    .detail__titlebox {
        padding: 20px 0;
    }
    .tg-widget ul li ul {
        margin-left: 0;
    }
    .widget-accordions ul li ul li {
        list-style: none;
    }
    .loc-email, .loc-phone, .loc-fax {
        flex-direction: column;
    }
    .tg-project figure  {
        display: none;
    }
    .tg-project {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .tg-project::before {
        content: '';
        display: block;
        padding-top: 60%;
    }
    .masonry-grid {
        position: static!important;
        width: 100%;
    }
    .tg-portfolio-hover {
        background: rgba(0,0,0,.5);
    }
}
.footer__gallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.footer__gallery a {
    display: block;
    width: 91px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 12px;
    margin-top: 12px;
}
.footer__gallery a:nth-child(-n + 4) {
    margin-top: 0;
}
.footer__gallery a:nth-child(4n) {
    margin-right: 0;
}
.footer__gallery a::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 100%;
}
@media (max-width:1199px) {
    .footer__gallery a:nth-child(4n) {
        margin-right: 12px;
    }
    .footer__gallery a:nth-child(3n) {
        margin-right: 0;
    }
    .footer__gallery a:nth-child(4) {
        margin-top: 12px;
    }
}


/*leo*/

.tg-aboutus {
    display: flex;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-justify-content: flex-start;
            justify-content: flex-start;
    -webkit-align-items: stretch;
            align-items: stretch;
    -webkit-align-content: flex-start;
            align-content: flex-start;
}
.tg-abouts-img {
    width: 100%;
    height: 100%;

    -webkit-background-size: cover;
         -o-background-size: cover;
            background-size: cover;
    background-position: center;
}
@media (max-width: 991px) {
    .tg-aboutus > div:nth-child(1) {
        margin-bottom: 40px;
    }
    .tg-abouts-img:before {
        content: "";

        display: block;

        width: 100%;
        padding-bottom: 60%;
    }
}

.tg-whychoiceus {
    display: flex;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-justify-content: flex-start;
            justify-content: flex-start;
    -webkit-align-items: stretch;
            align-items: stretch;
    -webkit-align-content: flex-start;
            align-content: flex-start;
}

.tg-whychoiceus .tg-hover-content {
    height: auto;
    padding: 30px 25px;
}
.tg-whychoiceus .tg-theme-hover {
    height: 100%;
}
.tg-whychoiceus figure {
    width: 100%;
    height: 280px;

    -webkit-background-size: cover;
         -o-background-size: cover;
            background-size: cover;
    background-position: center;
}
.tg-whychoiceus .tg-hover-box {
    display: flex;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-justify-content: center;
            justify-content: center;
    -webkit-align-items: center;
            align-items: center;
    -webkit-align-content: center;
            align-content: center;

    height: calc(100% - 280px);
}

.footer__logo {
    height: 24px;
}
.header__logo {
    width: auto;
    height: 80px;
}

@media (max-width: 575px) {
    .header__logo {
        height: 60px;
    }
    .tg-rightarea {
        margin-top: 8px;
    }
}

.masonry-grid {
    transform:translate3d(0,0,0);
    -webkit-transform:translate3d(0,0,0);
    -moz-transform:translate3d(0,0,0);
}