/*整體文字調整*/
body {
    color: #333;
    font-size: 16px;
    margin: 0;
}
a {
    color: #383838;
    text-decoration: none;
}
a:hover {
    color: #e60201;
}


/*Banner*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(700 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}


/*TOP*/
.topnavbar {
  background-color: #333;
  top:0px;
  position: relative;
  z-index:100;
  width:100%;
  padding: .6rem 0;
  height: 100px;
  padding-top:0px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
.topnavbar .container {
    height: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    font-size: 0;
}

.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
}


/*nav*/
#nav ul li a {
    white-space: nowrap;
    color: #fff;
    line-height: 1.3;
    font-weight: normal;
    padding: 10px 15px;
    font-size: 100%;
    transition:all 0.5s  all ease;
    border-top:1px solid transparent;    
}

#nav ul li a:hover{
    color: #fe0100;
    font-weight: bold;
}

#nav ul li a::before {
  content:"";
  /*border-top:1px solid #a88685;*/
  width:0;
  position:absolute;
  left:0;
  right:0;
  top:5px;
  margin:0 auto;
  transition:.3s all ease
}

#nav ul li a:hover::before {
      width:100%;
      color: #fff;
}

#nav ul li.current a  {
    color: #fe0100;  
}

#nav .subnav {
    position: absolute;
    top: 100%;
    max-width: 200px;
    background-color: rgba(242, 153, 1, 0.7);
} 

#nav ul .subnav li a {
    color: #333;
    background-color: rgba(255, 255, 255, 1);
    text-align: left;
    width: 200px;
}

#nav ul .subnav li a:hover {
    color: #fff;
}

#nav ul li .subnav a span {
    display: inline-block;
    max-width: 200px;
}

#nav li.has-subnav ul li a {
    color: #333;
    width:200px;
    white-space: pre-line;  
}


/*h1*/
.h1title {
    color: #900000;
}


/*side*/
#side ul li.current>div a {
    color: #900000;
}


/*查看本分類所有產品 字修改*/
.product-list-div h2 {
  text-shadow: 0 0px 0 #fff;
}
body[data-type="fullpage"] .product-list-div h2 a.show-all {
  color: #383838;
  transition-property: left, color;
}
.product-list-div .show-all {
  font-size: 18px;
}



/*產品格描述隱藏語法*/
ul.product-list li .desc {
    display: none;
}  
.productdetail .detail-desc b {
   display: none;
}
ul.product-list li h3 {
    flex: 1 0 auto;
    max-height: 3.15rem;
    margin: 0.7rem 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #333;
    overflow: hidden;
    padding: 0 16px;
}

/*改產品格名稱顏色*/
ul.product-list div.img {
    background: #FBFBFB;
}

/*產品格背景*/
ul.product-list li a {
 border:0px solid #ddd;
 border-radius:0px;
   background-color:transparent;
}

/*產品框線*/
ul.product-list li a.focus,ul.product-list li a:hover {
 color:#333;
 border:0px solid #333;
 box-shadow:0 0px 0px 0px rgba(0,0,0,0.08)
}

/*產品格詳細介紹的產品格背景*/
.productdetail .detail-img a {
    outline: none;
    position: relative;
    height: 0;
    padding-bottom: 100%;
    display: block;
    background: #333;
    line-height: 0;
}
ul.product-list li a { 
border: 1px solid #ddd; 
}

/*產品格去框線-1調成0*/
.productdetail .detail-img .main-image-area a {
    display: block;
    position: relative;
    height: 0;
    padding-bottom: 100%;
    background: #fff;
    line-height: 0;
 /* display: none;*/
}

.productdetail .detail-spec {
  width:55%;
  display:inline-block;
  vertical-align:text-top;
 /* display: none;*/
 }


/*最新消息改顏色*/
.news .fcol .news-list li h3, .news .news.main-content li h3, #news-heading h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: #b20000;
}
.news .fcol .news-list li .ico, .news .news.main-content li .ico, #news-heading .ico {
   display: none;
}


/*footer*/
#footer {
    color: #fff;
    background-color: #900000;
}
#foot-nav {
    clear: both;
    padding: 1em 0;
    border-bottom: 1px solid #444;
    display: none;
}
.contact-row {
    padding: 0em 0 1em;
    line-height: 1.6;
}
#contact-info ul li span {
    color: #fff;
}
#footer a {
    color: #fff;
}
.contact-row h5 {
    color: #fff;
    padding: .5em 0 1em;
    width: 100%;
}


/*文字滑過變色方塊*/
.serveimg {
   display: block;
   text-align: center;
   width: 100%;
   min-height: 100px
   padding-bottom: 100%;
   background:  #970000;
   overflow: hidden;
   position: relative;
   padding: 30px 10px;
}
.serveimg:hover {
   display: block;
   text-align: center;
   width: 100%;
   min-height: 100px
   padding-bottom: 100%;
   background: #383838;
   overflow: hidden;
   position: relative;
   padding: 30px 10px;
}


/*櫥窗圖庫語法_輪播*/
.owl-carousel.owl-theme {
  padding: 0 1rem 2rem;
}
.owl-carousel.owl-theme .owl-nav {
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
}
.owl-carousel.owl-theme .owl-dots {
	bottom: 0;
}
.owl-carousel.owl-theme button:focus {
	outline: none;
}
.owl-carousel.owl-theme .owl-nav,
.owl-carousel.owl-theme .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
}
.owl-carousel.owl-theme .owl-nav .owl-prev {
  float: left;
  transform: translateX(-100%);
}
.owl-carousel.owl-theme .owl-nav .owl-next {
  float: right;
  transform: translateX(100%);
}
.owl-carousel.owl-theme .owl-nav .owl-prev:hover,
.owl-carousel.owl-theme .owl-nav .owl-next:hover{
  background: none;
  color: inherit;
}
.owl-carousel.owl-theme .owl-nav .fa{
  font-size: 3em; /*箭頭大小*/
}

.editmode .owl-carousel.owl-loaded {
  display: flex;
  flex-wrap: wrap;
}
.editmode .owl-carousel > div {
  flex: 0 0 25%;
  max-width: 25%;
}
.owl-carousel.owl-theme .owl-dots {
    display: none;
}/*隱藏點點*/


/*body*/
#wrap{background:url(https://static.iyp.tw/4130/files/97e55d55-833d-403b-aed7-1ea710e41cc9.jpg)no-repeat;
background-position:bottom left;background-attachment:fixed;}


/*最下層空白處去掉*/
body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }

