/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/*固定的layout*/
.wrap{
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
    background: #FFF5EE;
}

.header{
    position: relative;
}

.header a{
    text-decoration: none;;
}

.header img{
    width: 15%;
    margin-top: 1%;
    margin-left: 1%;
}

.menu{
    width: 50%;
    float: right;
    position: absolute;
    right: 0%;
    top: 30%;
}

@media screen and ( max-width: 768px ) {
    .menu{
      width: 60%;
      top: 20%;
    }
  }

@media screen and ( max-width: 569px ) {
    .menu{
      width: 80%;
      top: 10%;
    }
  }

.menu li{
    float: left;
    margin-left: 3%;
    border-bottom: #888888 solid 2px;
}

.menu a{
    width: 50%;
    font-family: BankGothic Lt BT;
    font-size: 130%;
    color: 	black;
}

@media screen and ( max-width: 768px ) {
    .menu a{
      font-size: 80%;
    }
  }

@media screen and (max-width:569px) {
    .menu a{
      font-size: 50%;
    }
}

.menu a:hover{
    color: #CC0000;
}

.footer{
    text-align: center;
    line-height: 1.5;
    margin-top: 1%;
    font-family: calibri;
    font-size: 80%;
    padding: 2%;
    background-color: maroon;
    color: white;
}

.chihtai{
    font-weight: 600;
    font-size: 150%;
}

.copyright{
    color: gray;
    font-size: 80%;
}

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

.clearfix{
    clear: both;
}

/*home的layout*/
.w3-content{
    margin-top: 1%;
    position:relative;
}

@media screen and ( max-width: 768px ) {
    .mySlides {
      width: 100%;
    }
  }

.productslist{
    margin-top: 2%;
    margin-left: 2%;
}

.productslist a{
    font-size: 30px;
    font-weight: 700;
    font-family: BankGothic Md BT;
    color: black;
}

.productslist a:hover{
    color: #CC0000;
}

* { box-sizing: border-box; }

body { font-family: sans-serif; }

.carousel {
  background: #EEE;
}

.carousel img {
  display: block;
  height: 300px;
}

@media screen and ( max-width: 768px ) {
  .carousel img {
    height: 150px;
  }
}

/*company profile的layout*/
.intro{
    margin: 3% 5%;
    line-height: 130%;
    text-indent: 5%;
    text-align: justify;
}

.profile{
    margin-left: 5%;
}

.profile_title{
    width: 200px;
    font-weight: bolder;
}

.profile td{
    padding: 1%;
}


/*products的layout*/
.category{
    margin: 100px;
}

.category li{
    width: 21%;
    height: 300px;
    position: relative;
    float: left;
    margin: 2%;
}

@media screen and ( max-width: 768px ) {
    .category li {
      width: 46%;
    }
  }

@media(max-width:569px) {
    .category li {
        width: 96%;/*100%記得扣除768px以上的左右margin共4%*/
        margin: 5%;
    }
}

.category img{
    width: 100%;
}

.category_name{
    width: 100%;
    height: 50px;
    font-family: ISOCPEUR;
    font-size: 100%;
    background: #E63F00;
    color: white;
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category_name:hover{
    background: #CC0000;
}

/*各個products頁面的layout*/
.allproducts_title{
    font-size: 250%;
    font-family: ISOCPEUR;
    text-align: center;
}

.allproducts_title a{
    text-decoration: none;
    color: #2F4F4F;
}

.productsbar{
    margin: 0 auto;
    margin-top: 1%;
    max-width: 1000px;
}

.productsbar ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.productsbar li{
    width: 200px;
    padding: 1%;
    margin-bottom:3% ;
    margin-left: 5px;
    border: solid 2px ;
    border-radius: 10px;
    background: #F5FFFA;
    font-size: 100%;
}

@media screen and ( max-width: 768px ) {
    .productsbar li{
        width: 150px;
        height: 40px;
        display: flex;
        align-items: center;
    }
  }

@media(max-width:569px) {
    .productsbar li{
        width: 140px;
        height: 50px;
        display: flex;
        align-items: center;
    }
}

.productsbar a{
    text-decoration: none; 
    color: #2F4F4F; 
    text-align: center;
    font-family: ISOCPEUR;
    font-weight: 600;

}

.productsbar li:hover{
    background: #2F4F4F;
}

.productsbar a:hover{
    color: #F5FFFA;
}

.allproducts{
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 1%;
}

.items{
    width: 48%;
    float: left;
    box-shadow: 1px 1px 25px 1px rgb(175, 174, 174);
    border-radius: 10px;
    margin: 1%;
    padding: 1%;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: white;
}

@media screen and ( max-width: 768px ) {
    .items {
      width: 100%;
    }
  }

@media(max-width:569px) {
    .items {
        width: 100%
    }
}

.items img{
    margin-top: 1px;
    margin-bottom: 1px;
    margin-left: 10px;
    float: left;
}

.items p{
    font-size: 120%;
    float: left;
    line-height: 120%;
    color: #666666;
    margin-left: 20px;
    margin-right: 20px;
    font-family: calibri;
}

.items span{
    color: black;
    font-family: ISOCPEUR;
    font-size: 120%;
    font-weight: bolder;
}


/*產品內頁的layout*/
.products_description{
    max-width: 1000px;
    margin-left: 20%;
    margin-top: 1%;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: Bahnschrift;
    font-size: 120%;
}

.products_description img{
    transform: scale(1,1);/*滑鼠移至圖片時放大*/
    transition: all 0.5s;
}

.products_description img:hover{
    transform: scale(2, 2);
}

.products_description span{
    font-weight: bolder;
    font-family: ISOCPEUR;
    font-size: 150%;
}

.products_description p{
    margin-left: 3%;
    line-height: 120%;
}

@media screen and ( max-width: 768px ) {
    .products_description {
        margin-left: 10%;
    }
  }

@media(max-width:569px) {
    .products_description {
        margin-left: 5%;
    }
}


/*to the top箭頭*/
.top{
    width: 64px;
    height: 64px;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    background: url(../pic/top.png) no-repeat;
    cursor: pointer;
    padding: 20px;
    border: none;
    font-size: 18px;
}
