/*gotop*/
#gotop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 5px 15px;
  font-size: 17px;
  border-radius: 10px;
  width: 60px;
  height: 60px;
  background-color: #e67b13;
  color: white;
  text-align: center;
  cursor: pointer;
}


/*icon*/

.line{position:fixed;right:0.5%;top: 40%;z-index:1000;width:60px;height:60px;}

.tl {position: fixed;right: 0.5%; top:50%;z-index: 1000;;width:60px;height:60px;}

.ema {position: fixed;right: 0.5%; top:60%;z-index: 1000;;width:60px;height:60px;}

.map {position: fixed; right: 0.5%; top:70%; z-index: 1000;;width:60px;height:60px;}



/*body*/
.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;
 }

@media only screen and (max-width: 767px) {
  #logo a img {
    margin: 0 auto;
  }
}


/*top*/
.navbar-nav > li > a {
    color: #fff;
}


.topnavbar .container {
  text-align: justify;
  font-size: 0;
  /*text-align: center;*/
  padding-top:0px;
}

.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;
}

@media(max-width:1280px){
  .topnavbar {
     height: 150px;
  }
}


@media(max-width:600px){
   .topnavbar .container {
    text-align: center;
 }
}


@media(max-width:1024px){
  .topnavbar {
    height: 125px; 
  }
}
  

@media(max-width:900px){
  .topnavbar {
    height: 185px; 
  }
}

@media(max-width:767px){
  .topnavbar {
    height: 90px; 
  }
}  


/*nav_fall*/
body[data-type="fullpage"] #nav {
    font-size: 1rem;
    width: 100%;
}


@media(min-width:1920px){
body[data-type="fullpage"] #footer .container {
    width: 1160px;
 }
}

#header .topnavbar .container {
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

@media(max-width:1280px){
#header .topnavbar .container {
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
 }
}


/*nav*/
#nav{
  margin-top:-55px;
}

@media(max-width:1280px){
  #nav{
  margin-top:0px;
  }
}

#nav ul li a {
    white-space: nowrap;
    color: #333;
    line-height: 1.3;
    font-weight: normal;
    padding: 10px 18px;
    font-size: 100%;
    border-right: 0px #888 dotted;
    transition:all 0.5s;
}

#nav ul{
  float:right;
}


#nav ul li a:hover{
    color: #222;
}

#nav ul li a span{transition:all 0.5s;}

#nav ul li a:hover span{border-top:2px solid #e8bf00;padding-top:5px;}


#nav ul li.current a  {
    color: #222;  
}

#nav .subnav {
    position: absolute;
    top: 100%;
    max-width: 150px;
    background-color:#c00000;
} 


#nav ul .subnav li a {
    background-color: #fff;
    color: #222;
    text-align: left;
    width: 150px;
 }

#nav ul li .subnav a span {
    display: inline-block;
    max-width: 150px;
    padding: 8px 5px;
    border-top:0px;
    font-size:95%;
}

#nav ul li .subnav a span:hover  {
    display: inline-block;
    max-width: 150px;
    border-top: 0px solid;
    padding: 8px 5px;
    border-top:0px;
}

#nav li.has-subnav ul li a {
    color: #222;
    width:150px;
    white-space: pre-line;
    padding:8px 5px;
  }

#nav li.has-subnav ul li a:hover {
   color:#fff;
}

@media(max-width:1024px){
#nav{
  margin-top:-10px;
 }
}


/*Banner*/
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(800 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}



/*Index_1*/
#bodyinhome .fcol.fcol-1{
  display:none;
}


/*Index_2*/
#bodyinhome .fcol.fcol-2{
  background:url(https://static.iyp.tw/409654/files/9017f1e6-f227-47a2-abb7-5ed5a9b95d54.png)no-repeat;
  background-position:top center;
  background-size:cover;
  /*background-attachment:fixed;*/
  min-height:650px;
}

.ab{
  margin-top:-10%;
}



/*Index_3*/
#bodyinhome .fcol.fcol-3{
  margin-top:-65px;
}

.sr.row {
  border: 1px solid #b90000;
  padding: 15px;
  width: 140px;
  height: 140px;
  border-radius: 99rem;
  display: inline-block;
  vertical-align: middle;
  transition:all 0.5s;
} 

.sr.row:hover {
  border: 1px solid transparent;
  background:#b90000;
  padding: 15px;
  width: 140px;
  height: 140px;
  border-radius: 99rem;
  display: inline-block;
  vertical-align: middle;
}

.sr.row .fa-solid, .fas {
  font-weight: 900;
  color: #b90000;
}

.sr.row:hover .fa-solid, .fas {
  font-weight: 900;
  color: #fff;
}

.sr.row:hover p{
  color: #fff;
}


/*Index_4*/
#bodyinhome .fcol.fcol-4{
  background:url(https://static.iyp.tw/409654/files/f7438b12-01dc-491c-aab4-f48909902c9f.jpg)no-repeat;
  background-position:top center;
  background-size:cover;
  background-attachment:fixed;
   }


#bodyinhome .fcol.fcol-4 .container{
  padding:40px 20px;
  min-height:400px;
}


.pro.row .col-1{
  border-radius: 50px;
  background: rgba(255,255,255,0.65);
  margin-top:10px;
}




/*Index_5*/
#bodyinhome .fcol.fcol-5 .container{
  padding:60px 20px; 
}

#service .list article {
  background: #fff;
  width: 90%;
  margin: 0%;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.16);
  padding: 15px 15px 15px;
  text-align: center;
  height: 350px;
}


#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: #b90000;
  padding: 5px 15px;
}

@media(max-width:767px){
  #service .list article .image_hover {
  height: 60%;
  }
}

@media(max-width:600px){
#service .list article {
  background: #fff;
  width: 90%;
  margin: 0%;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.16);
  padding: 15px 15px 15px;
  text-align: center;
  height: 300px;
 }
}



/*about*/
@media(max-width:767px){
.aa.row .col-2{
  flex:0 0 100%;
  max-width:100%;
 }  
}


/*h1*/
.h1title h1{
  color:#b50000;
  text-align:center;
}


/*side*/
#side ul li a {
    color: #555;
    display: block;
    padding: 10px 20px;
    transition: .3s;
    border-bottom: 1px dashed #555;
}  




/*form*/
.mark{
  background:none;
}


  
/*cont*/
@media(max-width:767px){
.cont.row .col-md-3,
.cont.row .col-md-9{
  flex:0 0 50%;
  max-width:50%;
 }
}

@media(max-width:480px){
.cont.row .col-md-3,
.cont.row .col-md-9{
  flex:0 0 100%;
  max-width:100%;
 }
}
