.row [class^="col-"] {
  padding:10px;
}


body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }


/*logo*/

 #logo img {
   padding: 0 16px 16px;
 }


/*top*/
.navbar-nav > li > a {
    color: #fff;
}


.topnavbar .container {
  text-align: justify;
  font-size: 0;
  /*text-align: center;*/  
}

.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
}

.topnavbar {
  background-color: #fff;
  top:0px;
  position: relative;
  z-index:100;
  width:100%;
  padding: .6rem 0;
  height: 100px;
}



/*nav*/
#nav ul li a {
    white-space: nowrap;
    color: #333;
    line-height: 1.3;
    font-weight: normal;
    padding: 10px 18px;
    font-size: 95%;
    border-right: 1px #888 dotted;
    transition:all 0.5s;
}

#nav ul li a:hover{
    color: #1580c3;
}

#nav ul li a span{transition:all 0.5s;}

#nav ul li a:hover span{border-top:2px solid #1580c3;padding-top:5px;}


#nav ul li.current a  {
    color: #1580c3;  
}



#nav .subnav {
    position: absolute;
    top: 100%;
    max-width: 200px;
    background-color: #efefef;
} 


#nav ul .subnav li a {
    background-color: #fff;
    color: #fff;
    text-align: left;
    width: 200px;
}

#nav ul li .subnav a span {
    display: inline-block;
    max-width: 200px;
    padding: 0px 10px;
    border-top:0px;
}

#nav ul li .subnav a span:hover  {
    display: inline-block;
    max-width: 200px;
    border-top: 0px solid;
    padding: 0px 10px;
    border-top:0px;
}

#nav li.has-subnav ul li a {
    color: #333;
    width:200px;
    white-space: pre-line;
  }


/*Banner*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(700 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}


/*Index_1*/
#bodyinhome .fcol.fcol-1{
  background:url(https://static.iyp.tw/42713/files/9191a16f-438b-4979-bfcb-c7062f98800b.jpg)no-repeat;
  background-size:cover;
  background-position:center center;
  min-height:450px;
}


#bodyinhome .fcol.fcol-1 .container{
  padding:40px 0;  
}

@media(max-width:480px){
  #bodyinhome .fcol.fcol-1 .col-md-7{
    margin-right:10px;
  }
}

.ab {
  background: rgba(255,255,255,0.85);
  padding: 70px 20px;
  border-radius: 10px;
  margin-left: -45px;
  margin-top: 25px;
}


@media(max-width:428px){
  .ab {
  background: rgba(255,255,255,0.85);
  padding: 40px 20px;
  border-radius: 10px;
  margin-left: 0px;
  margin-top: 15px;
 }
}

/*Indx_2*/
#bodyinhome .fcol.fcol-2{
  background:url(https://static.iyp.tw/42713/files/0cdb26d2-94ae-4da7-97eb-8d58aa8c35eb.jpg)no-repeat;
  background-size:cover;
  background-position:center center;
  min-height:450px;
}


.ab_ti.row {
  margin: 5% auto;
  width: 300px;
  height: 300px;
  background: rgba(0,0,0,0.65);
  border-radius: 99em;
  padding: 50px 15px 15px 15px;
  
}

.ab_ti.row h2{font-size:30px;color:#fff}
.ab_ti.row h3{font-size:20px;color:#ccc;}


/*Index_3*/
#bodyinhome .fcol.fcol-3 .container{
   max-width:100%;
   width:100%;
}

.service_img {
  position: relative;
}

.service_text {
  position: absolute;
  display: table-cell;
  z-index: 999;
  text-align: center;
  vertical-align: middle;
  width: 100%;
  height: 99%;
  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;*/
  letter-spacing: 0.2em;
  transition: 0.3s;
}

.service_text:hover {
  position: absolute;
  display: table-cell;
  z-index: 999;
  text-align: center;
  vertical-align: middle;
  width: 100%;
  height: 99%;
  color: #fff;
  top: 0px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 15px 15px 15px;
  background-color: rgba(0,0,0,0.55);
 }

.service_text div {
  font-size: 25px;
  line-height: 22px;
  position: relative;
  top: 0%;
  font-weight: bold;
  transition: all 0.5s;
  background: rgba(0,0,0,0.85);
  padding: 15px 10PX;
  width: 25%;
  left: 0%;
  border-radius: 0 0 15px 15px;
}

.service_text:hover div {
  transform:scale(1);
}

  @media (max-width: 768px){
.service_text div {
  font-size: 18px;
  line-height: 28px;
  position: relative;
  top: 0%;
  width: 40%;
 }
  }   


/*Index_4*/
#bodyinhome .fcol.fcol-4{
  background:url(https://static.iyp.tw/42713/files/b99038e4-4dc2-4a8e-945b-2778ee23bf3c.jpg)no-repeat;
  background-size:cover;
  background-position:center center;
  min-height:400px;
 }
}

@media(max-width:480px){
  #bodyinhome .fcol.fcol-4{
    min-height:300px;
  }
}

.greyLine {
    position: relative;
    margin: 0 auto;
    height: 5rem;
    width: .0625rem;
    background: #fff;
    display: block;
    margin-bottom: 2rem;
}

.greyLine::after {
    content: '';
    display: block;
    position: absolute;
    height: .625rem;
    width: .625rem;
    background:#fff;
    transform: rotate(45deg);
    bottom: -.625rem;
    left: -.3125rem;
}

span.cat-name2 {
  background: #f7b926;
  padding: 10px 15px;
  border-radius:25px;
  float: center;
}


/*Index_5~6*/
#bodyinhome .fcol.fcol-5,
#bodyinhome .fcol.fcol-6{
   display:none;
}


/*h1*/
.h1title{color:#012551;text-align:center;}


.h1title h1 span::after {
    content: "";
    display: inline-block;
    font-family: monospace;
    background: #d05c5c;
    width: 25px;
    height: 5px;
    display: block;
    margin: .5em auto 1em;
}

/*side*/
#side ul li a {
    color: #555;
    display: block;
    padding: 10px 20px;
    transition: .3s;
    border-bottom: 1px 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: #000;
    overflow: hidden;
    padding: 0 16px;
}

body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: #fff;
    transition-property: left, color;
    background: #59aacb;
    text-shadow: none;
    padding: 0 10px;
}


/*form*/
.mark {
    background: none;
   }


/*footer*/
#foot-nav ul li a {
    color: #fff;
    font-size: 1.06em;
}

#foot-nav {
    clear: both;
    padding: 1em 0;
    border-bottom: 1px solid #fff;
}

#footer {
    color:#fff;
}

#contact-info ul li span {
    color: #fff;
}

#copyright, #copyright a{color:#dcdcdc;}