/*body*/
.row [class^="col-"] {
  padding:10px;
}


body[data-type="fullpage"]:not(#managehome) #wrap > :not(:last-child) { margin-bottom: 0px; }


#bodyinhome #wrap{
  background:url(https://static.iyp.tw/42473/files/18bb0765-d032-4763-9640-b2fedb0539a9.png)no-repeat;
  background-position:top left;
  background-size:cover;
  background-attachment:fixed;
}


/*logo*/
@media only screen and (min-width: 768px){
  #logo img {
  padding: 0 16px 16px;
 }
}

@media(max-width:428px){
 #logo a img {
   padding: 0 16px;
 }
}


/*top*/ 
.topnavbar {
  background-color: rgba(0,0,0,0.4);
  height: 90px;
}


.topnavbar .container {
  text-align: justify;
  font-size: 0;
  /*text-align: center;*/ 
  padding-top:0px;
}

.topnavbar .container::after {
  content: "";
  display: inline-block;
  width: 100%;
}


/*nav*/
#nav ul li a {
  white-space: nowrap;
  overflow: hidden;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
  display: block;
  color: #fff;
  padding: 6px;
  line-height: 1.3;
  transition: .3s;
}


#nav .subnav {
    position: absolute;
    top: 100%;
    max-width: 200px;
    background-color: #c20000;
} 


#nav ul .subnav li a {
    background-color: #efefef;
    color: #333;
    text-align: left;
    padding: 0px 5px;
    width: 200px;
}

#nav ul li .subnav a span {
    display: inline-block;
    max-width: 2200px;
    padding: 0px 5px;
    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;
   padding:10px 15px;
  }

#nav li.has-subnav ul li a:hover {
  color:#fff;
}
 



/*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*/
.button1 {
  background-color: #ebebeb; 
  border: none;
  color: 333;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
  border-radius:15px;
  width:100%;
  font-weight:bold;
}

.button1:hover {
  background-color: #c21111; 
  border: none;
  color: #fff;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius:15px;
  width:100%;
  font-weight:bold;
}


/*Index_2*/
#bodyinhome .fcol.fcol-2{
  background:url(https://static.iyp.tw/42473/files/a9e99341-398b-4428-abcb-81663fc9c586.jpg)no-repeat;
  background-position:top center;
  background-size:cover;
  min-height:450px;
}

@media(max-width:428px){
  #bodyinhome .fcol.fcol-2{
    background-position:top right;
  }
}

@media(max-width:428px){
  #bodyinhome .fcol.fcol-2 .container{
    background:rgba(255,255,255,0.85);
  }
}

@media(max-width:428px){
blockquote {
  padding: 10px 15px;
  margin: 0 0 20px;
  font-size: 17.5px;
  border-left: 5px solid #eee;
 }
}  

@media(max-width:767px){
.mobile-br:before { 
    content: ' '; 
    display: block;
 }
}


/*Inex_3*/
.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.1);
  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: 20px;
  line-height: 25px;
  position: relative;
  top: 50%;
  font-weight: bold;
}

@media (max-width: 768px) {
  .service_text div {
    font-size: 20px;
    line-height: 25px;
    position: relative;
    top: 50%;
  }
}


/*Inex_4*/
#bodyinhome .fcol.fcol-4 .container{
  min-width:100%;
  width:100%;
}


#bodyinhome .fcol.fcol-4 div{padding:0;margin:0;}

.courBox {
    width: 100%;
}

.courBox .mark {
    transition: 0.4s;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: #000;
    opacity: 0;
}

.courBox li {
    position: relative;
    float: left;
    width: 25%;
    list-style: none;
}

.courBox .courTxt {
    overflow: hidden;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 100%;
    padding-left: 30px;
    z-index: 3;
    text-shadow: #030303 2px 0px 2px;
}

.courBox li a:hover .mark {
      -webkit-transition: 0.4s;
      transition: 0.4s;
      opacity: 0.5; }


.courBox .courTxt p {
    position: relative;
    display: block;
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    top: 10px;
    transition: 0.4s;
}

.courBox li .courTxt p {
      opacity: 0;
      -webkit-transition: 0.4s;
      transition: 0.4s;
      top: 10px;
      left:30px;
}

.courBox li:hover .courTxt p {
      opacity: 1;
      -webkit-transition: 0.4s;
      top: -10px; 
      left:30px;
}


.courBox .courTxt h3 {
    display: block;
    font-size: 1.750rem;
    color: #fff;
    margin-bottom: 30px;
    padding-left: 30px;
}

.courBox .courTxt h3::after {
    content: '';
    margin-top: 15px;
    display: block;
    width: 15%;
    height: 2px;
    background: #75c6e9;
}

.courPhoto .mark:hover{opacity:0.65;}

@media(max-width:960px){
.courBox li {
    width: 50%;
  }
} 

@media(max-width:767px){
.courBox .courTxt h3 {
    font-size: 1.550rem; 
 }
}  

@media(max-width:480px){
.courBox .courTxt  {
    padding-left: 10px;
    padding-top:40%;
 }  
}  


#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: 250px;
}

@media screen and (max-width: 768px) {
  #service .list article {
    height: 250px;
  }
}

#service .list article a {
  display: block;
}

#service .list article .image_hover {
  height: 60%;
  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: #bb0000;
  padding: 5px 5px;
  float: right;
}

span.cat-name2 {
  background: #bb0000;
  padding: 10px 30px;
  border-radius:25px;
  float: center;
}



/*Inex_6*/
#bodyinhome .fcol.fcol-6{display:none;}


/*h1*/
.h1title{color:#c20000;}


/*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: #b00000;
    text-shadow: none;
    padding: 0 10px;
}


/*form*/
.mark{background:none;}


/*滑過變色方塊*/
.serveimg {
   display: block;
   text-align: center;
   width: 100%;
   min-height:100px
   padding-bottom: 100%;
   background: #0d74d5;
   overflow: hidden;
   position: relative;
   border-radius:5px;
   padding:20px 15px;
}
.serveimg:hover {
     display: block;
   text-align: center;
   width: 100%;
   min-height:100px
   padding-bottom: 100%;
   background: #1666b1;
   overflow: hidden;
   position: relative;
   border-radius:5px;
   padding:20px 15px;
}





