main {
    min-height: 95vh;
    padding: 20vh 5vw 0;
}

main ul {
    padding: 0;
    margin: 0;
}

h1 {
    font-family: Arno Pro;
    font-size: 50px;
    color: #004939;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

h1::before,
h1::after {
    content: " ";
    width: 60px;
    height: 1px;
    background: #004939;
    position: absolute;
    transform: rotate(-45deg);
}

h1::before {
    right: -55px;
    top: 20px;
}

h1::after {
    left: -66px;
    bottom: 11px;
}

h1 p {
    font-family: "微軟正黑體";
    font-size: 20px;
    font-weight: bolder;
    padding: 0;
    margin-top: -4px;
}

.wp1 {
    padding: 80px 0;
    display: flex;
}

.wp3 {
    padding: 5vh 0;
}

.wp1 .left {
    width: 20%
}

.wp1 .right {
    width: 80%;
    padding: 0 100px;
}

.wp1 .pic div {
    position: relative;
    transition: all 0.5s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp1 .pic div:hover::after,
.wp1 .pic div:hover span {
    opacity: 1;
}

.wp1 .pic div::after {
    content: " ";
    width: 100%;
    height: 100%;
    background: rgba(255, 219, 75, 0.70);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: all 0.5s;
}

.wp1 .pic div span {
    text-align: center;
    display: block;
    color: #fff;
    opacity: 0;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transition: all 0.5s;
    transform: translate(-50%, -50%);
}

.wp1 .pic div span::after {
    content: "more";
    position: absolute;
    display: block;
    font-family: Arno Pro;
    margin: 10px 0 0 -8px;
}

.wp1 .pic div img {
    -webkit-transition: all 0.2s ease-out 0s;
    -moz-transition: all 0.2s ease-out 0s;
    transition: all 0.2s ease-out 0s;
}

.wp1 .pic div:hover img {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    transform: scale(1.1);
}

.title {
    color: #004939;
    font-size: 1.9em;
    font-weight: bolder;
    padding: 0 10px;
}


/*hot*/

main.hot {
    background: url(../images/hot_bg.jpg)no-repeat top center /cover;
}

.hot .list>ul li,
.portfolio .list>ul li {
    margin: 0 10px;
    padding: 0 20px;
}

.hot .text {
    padding: 25px 0;
}

.hot ul .text ul li {
    padding: 5px 0;
}

.hot ul .text li span::before {
    content: "/";
    padding: 0 5px;
}

.hot .text img {
    display: inline-block !important;
    margin-right: 5px;
}

.hot .text a:hover {
    color: #004939;
}

.hot .text b {
    display: block;
    margin: 10px 0;
    color: #3a200f;
    padding: 0 10px;
}

.hot .text ul {
    padding: 10px 0;
    border-top: solid 1px #ccc;
    border-bottom: solid 1px #ccc;
}


/*about*/

main.about {
    background: url(../images/about_bg.jpg)no-repeat bottom center /cover;
}

.about b {
    display: inline-block;
    color: #fff;
    background: #306b5e;
    margin: 20px 0;
    padding: 3px 18px;
}

.about p {
    line-height: 1.7;
}

.about .row div:first-child {
    text-align: center;
}

.about .row div:nth-child(2) {
    padding-left: 100px;
}

.about .row div:last-child {
    padding-left: 200px;
}

.wp2 .text_title {
    padding: 50px 0 0;
}


/*news*/

main.news {
    background: url(../images/news_bg.jpg)no-repeat top center /cover;
}

.news .wp1 .right {
    padding: 0;
}

.news .list li {
    width: calc(100%/2 - 30px);
    display: inline-block;
    margin: 20px 10px;
}

.news .list a {
    display: flex;
}

.news .list .photo {
    width: 180px;

}

.news .list .photo img {
    object-fit: cover;
    width: 180px;
    min-width: 180px;
}

.news .list .text {
    margin-left: 20px;
    text-align: left;
}

.news .times {
    font-size: 14px;
    color: #666;
}

.news .title {
    font-size: 20px;
    padding: 0;
}

.news .list .text p {
    margin: 0;
    max-width: 350px;
    color: #333;
}

.news .list a {
    position: relative;
}

.news .list a::after {
    content: " ";
    width: 0;
    left: 50%;
    position: absolute;
    height: 1px;
    background: #306b5e;
    bottom: -20px;
    transition: all 0.3s;
}

.news .list a:hover::after {
    width: 100%;
    left: 0%;
}

.news .list a:hover .text p,
.news .list a:hover .text b {
    color: #306b5e;
}

.news .list a:hover .text .title {
    color: #881b13;
}


/*news_detail*/

.news_detail .right .one_btn {
    display: none !important;
}

.news_detail.detail .one_btn {
    width: auto;
    padding-top: 0;
    display: inline-block;
}

.news_detail .one_btn a {
    width: 120px;
    background: #999;
    color: #eee;
    margin: 0 auto 5px;
}

.news_detail .one_btn a:hover {
    background: #306b5e;
    color: #fff
}

.wp1.news_detail .left {
    width: 25%;
    text-align: right;
}

.wp1.news_detail .right {
    width: 75%;
    margin: 0 auto;
    padding: 0 200px;
}

.news_detail .detail_pic li {
    width: calc(100%/3 - 10px);
    display: inline-block;
    padding: 10px;
}

.news_detail .down {
    margin-top: 20px;
}

.news_detail .down b {
    font-size: 18px;
    display: inline-block;
    margin-bottom: 10px;
}


/*portfolio*/

main.portfolio {
    background: url(../images/portfolio_bg.jpg)no-repeat bottom center /cover;
}

.portfolio .pic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio .pic div {
    padding: 5px;
    border: solid 1px #ccc;
    display: inline-block;
}
.portfolio .pic img{
    max-height: 390px;
    max-width: 300px;
    object-fit: cover;
}

.portfolio .text {
    margin-top: 20px;
}

.portfolio .text p {
    padding: 10px 60px;
    display: inline-block;
    border-top: solid 1px #bbb;
    color: #000;
}

.portfolio .title {
    font-size: 1.6em;
}

.portfolio .slick-prev,
.portfolio .slick-next {
    top: 39%;
}


/*portfolio_detail*/

.portfolio_detail .detail_text_wp {
    line-height: 1.6;
}

.hot_detail .detail_text_wp {
    line-height: 1.4;
}


/*contact*/

main.contact {
    background: url(../images/contact_bg.jpg)no-repeat top center /cover;
}

.container_wp {
    display: flex;
}

.contact .contact_row{
	justify-content: flex-end;
	display: flex;
	width: 100%;
	margin-right: 200px;
}
.contact .m_left {
    width: 350px;
}

.contact .m_right {
    
}

.contact .m_left ul {
    margin: 35px 0;
}

.contact .m_left li {
    display: flex;
    align-items: baseline;
}

.contact .m_left li,
.contact .m_left a {
    color: #004c3b;
}

.contact .m_left img {
    margin-left: 8px;
}

.contact_table li div {
    text-align: justify;
    text-justify: inter-ideograph;
    -ms-text-justify: inter-ideograph;
    /*IE9*/
    -webkit-text-align-last: justify;
    /*Chrome*/
    -moz-text-align-last: justify;
    /*Firefox*/
    width: 80px;
    height: 0;
}

.contact_table li div::after {
    content: ' ';
    display: inline-block;
    width: 100%;
}
.contact_table span{
	color: #b30000;
}
.contact_table span::before{
	content: "*";
	margin-left:-10px;
}

.contact_table input,
.contact_table select,
.contact_table textarea {
    background: transparent;
    border: 0;
    width: 300px;
    margin-left: 20px;
    font-size: 15px;
    color: #666;
}

.contact_table li {
    padding:8px 7px;
    border-bottom: solid 1px #ccc;
    display: flex;
}

.contact_btn {
    text-align: right;
}

.contact_btn input {
    width: 75px !important;
    height: 35px;
    background: #666;
    color: #fff;
    font-family: "微軟正黑體";
    text-align: center;
    cursor: pointer;
}

.contact_btn input:hover {
    background: #004939;
}


/*detail*/

.wrapper1385 {
    max-width: 1385px;
    margin: 0 auto;
}

.detail_text_wp {
    display: flex;
}

.detail .one_btn {
    width: 20%;
    padding-top: 50px;
}

.detail .one_btn .phone ,.phone{
    pointer-events: none;
}

.detail .two_text {
    width: 80%;
    letter-spacing: 0.5px;
}

.one_btn a {
    text-align: center;
    width: 80px;
    height: 60px;
    padding: 12px 0;
    display: block;
    color: #999;
    background: #e2e2e2;
    margin: 0 auto 10px;
    font-weight: bolder;
}

.one_btn a i {
    display: block;
    margin-bottom: 3px;
}

.one_btn a:last-child i {
    transform: scale(-1, -1);
}

.one_btn a:hover {
    color: #fff;
    background: #306b5e;
}

.two_text .title {
    padding: 0 5px 10px;
}

.two_text li {
    padding: 8px 5px;
    border-bottom: solid 1px #ccc;
}

.two_text p {
    margin: 20px 0;
}

.two_text b {
    color: #603e27;
}

.two_text span {
    margin-left: 15px;
}


/*slick*/

.slick-prev:before,
.slick-next:before {
    font-family: FontAwesome;
    color: #999;
}

.slick-next:before {
    content: "\f054"
}

.slick-prev:before {
    content: "\f053";
}

.slick-prev,
.slick-next {
    top: 25%;
}

.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before {
    color: #004939;
}

.slick-dots li.slick-active button:before {
    color: #004939;
}


/*detail slick*/

.detail .slider_top {
    margin-bottom: 20px;
}

.detail .slider_top li ,.detail .slider_top li img{
    max-height: 350px;
}

.slider_down li {
    height: 150px;
    height: 85px;
}

.slider_down li img {
    width: 100%;
}

.detail .photo li {
    margin: 0 5px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.detail .photo li img {
    object-fit: contain;
    height: 100%;

}


@media only screen and (max-width: 1460px) {
    main {
        padding: 20vh 15px 50px;
    }
    .wrapper1385 {
        width: 90%;
    }
    .wp1.news_detail .left {
        width: 35%;
    }
    .wp1.news_detail .right {
        width: 65%;
        padding: 0 100px;
    }
}

@media only screen and (max-width: 1280px) {
    main {
        padding: 20vh 0 0 0;
    }
    .wp1,
    .wp2,
    .wp3 {
        display: block;
        padding: 5vh 15px;
    }
    .wp1 .left,
    .wp1 .right,
    .wp1.news_detail .left,
    .wp1.news_detail .right {
        width: 100%;
        padding: 50px;
    }
    .wp1.news_detail .left {
        text-align: center;
    }
    .about .row div:last-child {
        padding-left: 135px;
    }
    .about .row div:nth-child(2) {
        padding-left: 15px;
    }
    .news_detail.detail .one_btn a {
        margin: 20px 5px 10px;
    }
    .news_detail .left .one_btn {
        display: none;
    }
    .news_detail .right .one_btn {
        display: inline-flex !important;
    }
	.contact .contact_row{
		justify-content: center;
		margin-right: 0;
	}

}

@media only screen and (max-width: 999px) {
    main {
        padding: 13vh 0 50px 0;
    }
    .about .row div:last-child {
        padding-left: 15px;
    }
    .wrapper1385 ,.container_wp {
        width: 100%;
    }
    .wrapper1385 .photo {
        max-width: 700px;
        margin: 0 auto;
    }
    .detail_text_wp {
        margin: 20px 0;
    }
  	
}

@media only screen and (max-width: 768px) {
    .wp1 .left,
    .wp1 .right,
    .wp2 .text_title,
    .news .wp1 .right ,.contact .wp1 .top{
        padding: 15px 30px;
        text-align: center;
    }
    .about .row div {
        text-align: center;
    }
    .detail_text_wp ,.container_wp{
        display: block;
    }
    .detail .one_btn,
    .detail .two_text,.news .list li,.news .list .text p,.contact_table input, .contact_table select, .contact_table textarea,.contact .m_left{
        width: 100%;
        max-width: 100%
    }
    .one_btn {
        text-align: center;
        margin: 30px 0;
    }
    .one_btn a {
        display: inline-block;
        margin: 0 5px;
    }  
    .detail .one_btn .phone ,.phone{
        pointer-events: initial;
    }
    .contact .m_left ul{
    	display: inline-block;
    	margin: 35px 20px 0 0 ;
    }
	main.contact {
	    background: url(../images/contact_bg.jpg)no-repeat left center /cover;
	}

}

@media only screen and (max-width: 640px) {
    h1 {
        font-size: 36px;
    }
    h1 p {
        font-size: 18px;
    }
    h1::before,
    h1::after {
        width: 50px;
    }
    h1::before {
        right: -50px;
        top: 15px;
    }
    h1::after {
        left: -60px;
        bottom: 20px;
    }
    .news .list a {
        display: block;
    }
    .news .list .text {
        margin-left: 0;
        margin-top: 10px;
        text-align: left;
    }
    .news .list li {
        border-bottom: solid 1px #ccc;
        padding-bottom: 20px;
        margin: 20px 0;
    }
    .news_detail .right .one_btn {
        display: inline-block !important;
    }
    .contact_table input, .contact_table select, .contact_table textarea{
    	width: calc(100% - 100px);
    }
    .news .list a::after{
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    main {
        min-height: 90vh;
    }
    .wp1 .left,
    .wp1 .right,
    .wp2 .text_title,
    .news .wp1 .right,.contact .wp1 .top {
        padding: 15px;
    }
    .hot .list ul.slide li {
        padding: 0;
    }
    .wp1,    
    .wp3 {
        padding: 130px 15px 0;
    }
    .wp2{
    	padding: 130px 0 0;
    }

    .detail .slider_top li,.detail .photo li img { 
        height: auto;
    }
    
    .news_detail .detail_pic li {
        width: 100%;
        text-align: center;
    }
}
