/*整體文字調整*/
body {
    color: #333;
    font-size: 16px;
    margin: 0;
}
a {
    color: #0a79bf;
    text-decoration: none;
}
a:hover {
    color: #3fcbea;
}


/*Banner*/
.swiper-container {
  height: auto !important;
}

#bodyinhome .swiper-wrapper,#bodyinhome .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(800 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

#bodyinpage .swiper-wrapper,#bodyinpage .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(800 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
  background-position:center center;
}

.swiper-slide {
  width: 100% !important;
}


/*top*/
.navbar-nav > li > a {
  color: #fff;
}
.topnavbar {
  background-color: #fff;
  top: 0px;
  position: relative;
  z-index: 100;
  width: 100%;
  padding: 0;
}
.topnavbar .container {
  text-align: justify;
  font-size: 0;
  padding-top: 0px;
  padding-bottom: 0px;
}
.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
}


/*nav*/
#nav ul li a {
  white-space: nowrap;
  color: #333;
  line-height: 1.3;
  padding: 10px 15px;
  font-size: 100%;
}

#nav ul li a:hover {
  color: #267d52;
}

#nav ul li.current a {
  color: #267d52;
}

#nav li.has-subnav ul li a {
   white-space: pre-line;  
}

#nav ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0%;
  width: 0;
  height: 100%;
  border-bottom: 2px solid #267d52;
  transition: 0.2s all linear;
}

#nav ul li a:hover::before {
  width: 100%;
  top: 0;
  left: 0;
  transition-delay: 0.1s;
  border-top-color: #267d52;
  z-index: -1;
}

#nav .subnav {
  position: absolute;
  top: 100%;
  background-color: rgba(0, 0, 0,0.35);
  max-width: 2200px;
}

#nav ul .subnav li a {
  background-color: rgba(0, 0, 0,0.75);
  color: #fff;
  text-align: left;
  max-width: 220px;
}

#nav ul li .subnav a span {
    display: inline-block;
    max-width: 220px;
} 


#nav ul li .subnav a span:hover  {
    display: inline-block;
    max-width: 220px;
    border-top: 0px solid;
    padding: 0px;
    border-top:0px;
}

#nav li.has-subnav ul li a {
    color: #fff;
    width:220px;
    white-space: pre-line;
  }


/*h1*/
.h1title{color:#333;border-bottom:1px dashed #333;}


/*side*/
#side ul li a {
    color: #555;
    display: block;
    padding: 10px 20px;
    transition: .3s;
    border-bottom: 0px dashed #555;
}  

/*pd*/
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;
}

body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: #fff;
    transition-property: left, color;
    background: #267d52;
    text-shadow: none;
    padding: 0 10px;
}


/*form*/
.mark {
    background: none;
   }

#footer{border-top:4px solid #267d52;}


/*最下層空白處去掉*/
body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }


/*Index_2*/
#bodyinhome .fcol.fcol-2{
  background:url(https://static.iyp.tw/42053/files/4d32dea9-5497-400f-97b2-672e2f09fbe3.jpg)no-repeat;
  background-position:left center;
  background-size:cover;
  background-attachment:fixed;
}



/*Index_2_產品*/
.service_img {
  position: relative;
}

.service_text {
  position: absolute;
  display: table-cell;
  z-index: 999;
  text-align: center;
  vertical-align: middle;
  width: 100%;
  height: 100%;
  color: #fff;
  top: 0px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 15px 15px 15px;
  background: rgba(0, 0, 0, 0);
  text-shadow: black 0.1em 0.1em 0.2em;
}

.service_text:hover {
  position: absolute;
  display: table-cell;
  z-index: 999;
  text-align: center;
  vertical-align: middle;
  width: 100%;
  height: 100%;
  color: #fff;
  top: 0px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 15px 15px 15px;
  background-color: rgba(0,0,0,0.55);
  transition: 0.5s;
}

.service_text div {
    font-size: 24px;
    line-height: 30px;
    position: relative;
    top: 50%;
    font-weight: bold;
    border: 2px solid #fff;
    width: 60%;
    margin: 0 auto;
}  


@media (max-width: 768px) {
  .service_text div {
    font-size: 25px;
    line-height: 30px;
    position: relative;
    top: 50%;
    border: 2px solid #fff;
    width: 60%;
    margin: 0 auto;
  }
}


/*Index_5~6*/
#bodyinhome .fcol.fcol-4, #bodyinhome .fcol.fcol-5, #bodyinhome .fcol.fcol-6{display:none;}

