/* .header .header-wrap .logo {
    line-height: 43px;
} */
.header.header-fix .header-wrap .logo {
    /* 143-80=63 */
    line-height: 63px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.header.header-fix {
    box-shadow: 0 4px 3px rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#mainnav {
    margin-top: 63px;
    margin-bottom: 37px;
}

.header.header-fix #mainnav {
    margin-top: 18px;
    margin-bottom: 12px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#mainnav>ul>li>a {
    padding: 10px 5px 8px 5px;
    margin: 0 12px;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
}

.header .header-wrap .menu-extra {
    top: 70px;
    right: -3px;
}

.header.header-fix .header-wrap .menu-extra {
    top: 30px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.menu-extra li a i {
    font-size: 17px;
}

.menu-extra li.shopping-cart:hover .submenu {
    -webkit-transform: translateX(-30px);
    -moz-transform: translateX(-30px);
    -ms-transform: translateX(-30px);
    -o-transform: translateX(-30px);
    transform: translateX(-30px);
    visibility: visible;
}

@media screen and (min-width: 900px) {
    #navitem01 {
        width: 83px;
    }

    #navitem02 {
        width: 105px;
    }

    #navitem03 {
        width: 131px;
    }

    #navitem04 {
        width: 108px;
    }

    #navitem05 {
        width: 100px;
    }
}

/* All Mobile Sizes */
@media only screen and (max-width: 767px) {
    .menu-extra li.shopping-cart:hover .submenu {
        -webkit-transform: translateX(-80px);
        -moz-transform: translateX(-80px);
        -ms-transform: translateX(-80px);
        -o-transform: translateX(-80px);
        transform: translateX(-80px);
        visibility: visible;
    }
}

.menu-extra .shopping-cart .submenu .widget_shopping_cart_content {
    text-align: center;
    padding: 0 10px 0px 10px;
    width: 130px;
}

/* .section {
    margin-bottom: 100px;
} */

.section-title {
    padding: 50px 0 30px 0;
}

.grid-simple-layout .project-info-wrap .project-title {
    font-size: 19px;
    margin-bottom: 0;
}

.grid-simple-layout .project-item .project-thumb a {
    position: relative;
    display: block;
    z-index: 90;
}

.grid-simple-layout .project-item .project-thumb a img {
    width: 100%;
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.grid-simple-layout .project-item .project-thumb a:hover img {
    transform: scale(1.02);
    /* 新增的放大效果 */
    filter: grayscale(5%);
    -webkit-filter: grayscale(5%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#off-canvas .off-canvas-wrap {
    position: relative;
}

.close-sidebar a i {
    color: #fff;
    position: absolute;
    right: 15px;
    top: 15px;
}

#off-canvas {
    color: #e6e6e6;
    height: 100vh;
    width: 480px;
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

/* Mobile Portrait Size */
@media only screen and (max-width: 479px) {
    #off-canvas {
        width: 100vw;
    }
}

.map-responsive {
    margin-top: 30px;
    overflow: hidden;
    padding-bottom: 125.25%;
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.breadcrumbs ul li,
.breadcrumbs ul li.active {
    font-size: 0.8rem;
    font-weight: 300;
}

.project-gallery-list {
    width: 65%;
    margin: 0 auto;
}

@media only screen and (max-width: 767px) {
    .project-gallery-list {
        width: 100%;
    }
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul {
    /* background: #456990; */
    /* padding: 50px 0; */
}

.timeline ul li {
    list-style-type: none;
    position: relative;
    width: 1px;
    margin: 0 auto;
    padding-top: 50px;
    background: #c8c8c8;
}

.timeline ul li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: inherit;
}

.timeline ul li div {
    position: relative;
    bottom: 0;
    width: 400px;
    padding: 15px;
    background: #f4f4f4;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.timeline ul li div::before {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline ul li:nth-child(odd) div {
    left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent #f4f4f4 transparent transparent;
}

.timeline ul li:nth-child(even) div {
    left: -439px;
}

.timeline ul li:nth-child(even) div::before {
    right: -15px;
    border-width: 8px 0 8px 16px;
    border-color: transparent transparent transparent #f4f4f4;
}

time {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
}

/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul li::after {
    transition: background 0.5s ease-in-out;
}

.timeline ul li.in-view::after {
    background: #c8c8c8;
}

.timeline ul li div {
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
    transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
    transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
    transform: none;
    visibility: visible;
    opacity: 1;
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
    .timeline ul li div {
        width: 250px;
    }

    .timeline ul li:nth-child(even) div {
        left: -289px;
        /*250+45-6*/
    }
}

@media screen and (max-width: 600px) {
    .timeline ul li {
        margin-left: 20px;
    }

    .timeline ul li div {
        width: calc(100vw - 91px);
    }

    .timeline ul li:nth-child(even) div {
        left: 45px;
    }

    .timeline ul li:nth-child(even) div::before {
        left: -15px;
        border-width: 8px 16px 8px 0;
        border-color: transparent #f4f4f4 transparent transparent;
    }
}



.flat-contact-form strong.must {
    color: #ff3300;
    font-size: 21px;
}

.flat-contact-form .send-wrap input.submit {
    line-height: 60px;
    padding: 10px 40px 0;
    font-size: 1.2rem;
    font-weight: 300;
    font-family: "Josefin Sans",
        Arial,
        "文泉驛正黑",
        "WenQuanYi Zen Hei",
        "儷黑 Pro",
        "LiHei Pro",
        "黑體-繁",
        "Heiti TC",
        "微軟正黑體",
        "Microsoft JhengHei",
        "Karla",
        sans-serif;
}

.flat-information .flat-information-wrap {
    background: url("../images/bg-contact.jpg") #333 repeat scroll;
    padding: 70px 70px 30px;
}

.timeline img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.timeline img:hover {
    filter: grayscale(0);
    -webkit-filter: grayscale(0);
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
}

.blog.blog-single.without-sidebar .post-wrap {
    width: 85%;
    margin: 0 auto;
}

.blog.blog-single.without-sidebar .post-wrap .entry .entry-content img.alignnone {
    margin-left: -5%;
    margin-right: -5%;
    width: 110%;
}

.project-item.w2.post img {
    border: 5px solid #fff;
}

.project-item.w2.post img:hover {
    opacity: 0.75;
}

.main-post .entry-title span {
    font-size: 1rem;
    color: #878787;
}

.main-post .entry-title span a {
    color: #878787 !important;
}

.main-post .entry-title span a:hover {
    text-decoration: underline;
}


.main-post .entry-title span:before {
    content: ' / ';
    color: #bbb;
}

.blog-tags ul {
    list-style: none;
    display: inline;
}

.blog-tags li {
    display: inline;
}

.blog-tags li:after {
    content: '、';
}

.blog-tags li:last-child:after {
    content: "";
}

.breadcrumbs .dropdown-menu {
    min-width: 160px;
    padding: 5px 10px;
    margin: 2px 0 0;
    font-size: 14px;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.breadcrumbs .dropdown-menu a:before {
    display: none;
}

.breadcrumbs .dropdown a:before {
    content: "/";
    right: -36px;
}

.breadcrumbs .dropdown-menu li {
    width: 100%;
    margin-bottom: 5px;
}

.breadcrumbs ul li {
    display: inline-block;
    padding-right: 30px;
}


/* 區塊標題改成 h1 時（SEO：每頁一個 h1），外觀維持跟原本的 h3 一樣 */
h1.as-h3 { font-size: 30px; }
@media only screen and (max-width: 991px) {
    h1.as-h3 { font-size: 24px; }
}
