/*子頁籤文字連結框框語法*/

.product-link .row .col-2 > a {
  border: 0px solid #ccc;
  width: 100%;
  display: inline-block;
  width: 100%;
  background-color: #B61D22;
  height: 50px;
  line-height: 50px;
  font-size: 130%;
  text-align: center;
}

.product-link .row .col-2 > a:hover {
  color: #6e6a6a;
  background: #6e6a6a;
}

body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) {
  margin-bottom: 0px;
}

body {
  background: #fff;
}

/*logo*/

#logo a {
  background: url("https://static.iyp.tw/40847/files/2debc75f-5d57-4d66-b5ab-b391f3f9e020.jpg") no-repeat scroll 0 0 transparent;
  display: block;
  text-indent: -9999px;
  /*width: 126px;*/
  width: 319px;
  height: 90px;
}

@media (max-width:414px) {
  #logo {
    padding-left: 30%;
  }
}

/*回首頁*/

.navbar-nav > li > a {
  color: #fff;
}

.topnavbar .container {
  height: 100%;
  padding-top: 0px;
  padding-bottom: 10px;
  text-align: center;
  font-size: 0;
}

.topnavbar {
  background-color: #ffffff;
  top: 0px;
  position: relative;
  z-index: 100;
  width: 100%;
  padding: .6rem 0;
  height: 110px;
}

/*nav*/

#nav ul li a {
  white-space: nowrap;
  color: #fff;
  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: #f8c5ae;
}

#nav ul li a span {
  transition: all 0.5s;
}

#nav ul li a:hover span {
  border-top: 2px solid #f8c5ae;
  padding-top: 5px;
}

#nav ul li .subnav a span:hover {
  display: inline-block;
  max-width: 200px;
  border-top: 0px solid;
}

#nav ul li.current a span {
  border-top: 2px solid #fff;
  padding-top: 5px;
  color: #fff;
}

#nav .subnav {
  position: absolute;
  top: 100%;
  max-width: 200px;
  background-color: rgba(75,75,75,0.55);
}

#nav ul .subnav li a {
  background-color: rgba(75, 75, 75,0.85);
  color: #fff;
  text-align: left;
  width: 200px;
}

#nav ul li .subnav a span {
  display: inline-block;
  max-width: 200px;
}

#nav li.has-subnav ul li a {
  color: #fff;
  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*/

@media (max-width:414px) {
  #bodyinhome .fcol.fcol-1 .col-6 {
    width: 33.3%;
  }
}

/*Index_2*/

#bodyinhome .fcol.fcol-2 {
  background: #e6bda9;
}

#bodyinhome .fcol.fcol-2 .col-4 img {
  border: 8px solid #fff;
  transition: all 0.7s;
  border-radius: 8px;
}

#bodyinhome .fcol.fcol-2 .col-4 img:hover {
  border: 8px solid #b60000;
  border-radius: 8px;
  box-shadow: 0 5px 5px rgba(44,44,44,0.35);
}

@media only screen and (max-width: 414px) {
  #bodyinhome .fcol.fcol-2 .col-4 {
    width: 50%;
  }
}

/*Index_3*/

#bodyinhome .fcol.fcol-3 {
  background: #ffffff;
}

/*Index_4*/

#bodyinhome .fcol.fcol-4 {
  background: #e7e7e7 url(https://static.iyp.tw/40847/files/e062bab5-e423-4eed-a37a-e396eeacd57a.png);
}

.intro {
  -webkit-animation-delay: 1.5s;
}

.intro a {
  overflow: hidden;
  position: relative;
  padding: 10px 40px;
  border: 0px #aaa solid;
  display: inline-block;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
  background: #6fc33c;
}

.intro a:hover {
  color: #fff;
  background: #000;
  transition: all 0.4s;
}

.intro a:after {
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  top: 0;
  left: -100%;
  display: block;
  background: #000;
  transition: all 0.4s;
  z-index: -1;
}

#service .list article {
  background: #fff;
  width: 90%;
  margin: 0%;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.16);
  padding: 15px 15px 5px;
  text-align: left;
  height: 300px;
  border-radius: 0 50px;
}

@media screen and (max-width: 768px) {
  #service .list article {
    height: 280px;
  }
}

#service .list article a {
  display: block;
}

#service .list article .image_hover {
  height: 60%;
  border-radius: 0 50px;
  display: flex;
  align-items: center;
}

#service p {
  font-size: 90%;
  padding: 8px 0px;
  color: #777;
}

#service p span {
  padding: 8px 0px;
  color: #000;
}

.image_hover {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}

.image_hover img {
  margin: auto;
  transition: transform 0.6s ease;
}

.image_hover:hover img {
  transform: scale(1.2);
}

.project .dfd-folio-categories .byline.category {
  display: inline-block;
  overflow: hidden;
  margin-bottom: 10px;
}

span.cat-name {
  background: #b80000;
  padding: 15px 0px;
  float: right;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 12px;
  transition: all .5s;
}

span.cat-name:hover {
  background: #3d3d3d;
  padding: 15px 0px;
  float: right;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 12px;
}

/*Index_5*/

#bodyinhome .fcol.fcol-5 {
  background: url(https://static.iyp.tw/40847/files/c97b8b56-ed30-45e9-8b00-b23f0c8e43b0.jpg)no-repeat;
  background-position: top center;
}

@media (width:414px) {
  #bodyinhome .fcol.fcol-5 {
    background: url(https://static.iyp.tw/40847/files/c97b8b56-ed30-45e9-8b00-b23f0c8e43b0.jpg)no-repeat;
    background-position: top center;
    background-size: cover;
  }
}

#bodyinhome .fcol.fcol-6 {
  display: none;
}

/*h1*/

.h1title {
  color: #000;
  border-bottom: 1px dashed #000;
}

/*Side*/

#side ul li a {
  color: #555;
  display: block;
  padding: 10px 20px;
  transition: .3s;
  border-bottom: 1px dashed #555;
}

#side ul li a:hover {
  background: #b60000;
  color: #fff;
}

/*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;
}

.mark {
  background: none;
}

/*footer*/

#footer {
  border-top: 5px solid #b41d22;
}

#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;
}


.topnavbar {
  /*background-color: #b61d22;*/
}

#nav ul li.current a span {
  border-top: 2px solid #000;
  padding-top: 5px;
  color: #000;
}
#nav ul li a {
  white-space: nowrap;
  color: #000;
}
#nav ul .subnav li a {
  background-color: #fff;
}
#nav li.has-subnav ul li a {
  color: #000;
}