/*yt icon*/
.yt{position:fixed;right:0.5%;top:8%;z-index:1000;}

/*fb icon*/
.fb{position:fixed;right:0.5%;top:16%;z-index:1000;}

/*LINE icon*/
.line{position:fixed;right:0.5%;top:24%;z-index:1000;}

/*skype icon*/
.skype{position:fixed;right:0.5%;top:32%;z-index:1000;}


@media only screen and (max-width: 414px) {
  .fb{position:fixed;right:0.5%;top:15%;z-index:1000;}
  .line{position:fixed;right:0.5%;top:25%;z-index:1000}
  .skype{position:fixed;right:0.5%;top:35%;z-index:1000;}
 
}

.yt, .fb, .line, .skype{
    transform:scale(0.9); 
}


@media(max-width:414px){
  .yt, .fb, .line, .skype{
    transform:scale(0.7);  }
}


/*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/42095/files/b5a29fe8-c18c-4778-ac7b-ea5511379495.jpg)no-repeat;
  background-size:cover;
  background-attachment:fixed;
  background-position:top center;
}


/*logo*/
@media(max-width:428px){
 #logo a img {
   padding: 0 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: #efefef;
  top:0px;
  position: relative;
  z-index:100;
  width:100%;
  padding: .6rem 0;
  height: 100px;
  box-shadow: 0px -5px 20px -5px rgba(0,0,0,0.5) inset;
}


/*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:#003c8d;  
}

#nav ul li.current a{
   color:#003c8d; 
}

#nav .subnav {
    position: absolute;
    top: 100%;
    max-width: 180px;
    background-color: rgba(75,75,75,0.75);
} 


#nav ul .subnav li a {
    background-color: rgba(226, 2, 127,0.65);
    color: #fff;
    text-align: left;
    width: 18px;
}

#nav ul .subnav li a {
     color: #fff;
}

#nav li.has-subnav ul li a {
    color: #fff;
    white-space: pre-line;
    padding: 10px 10px;
    width:180px;
}

#nav ul li .subnav a span {
    padding: 5px 0px;
    border-top:0px;
    width:180px;
}

#nav ul li .subnav a span:hover  {
    padding: 5px 0px;
    border-top:0px;
    width:180px;
}


/*Banner*/
.swiper-container {
  height: auto !important;
}

#bodyinhome .swiper-wrapper,#bodyinhome .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(900 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

#bodyinpage .swiper-wrapper,#bodyinpage .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(550 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
  background-position:center center;
}

.swiper-slide {
  width: 100% !important;
}


/*Index_1*/
#bodyinhome .fcol.fcol-1 .container{
   padding:40px 0;
   min-height:350px;
}

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #ccc;
}


/*Index_2*/
#bodyinhome .fcol.fcol-2{
  background:url(https://static.iyp.tw/42095/files/0c0ef261-6f75-44ed-8a38-64b098cff6c5.jpg)no-repeat;
  background-size:cover;
  background-attachment:fixed;
  background-position:top center;
}

.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_3*/
#bodyinhome .fcol.fcol-3 .container{
   padding:40px 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: 50%;
    list-style: none;
}

.courBox .courTxt {
    overflow: hidden;
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 100%;
    padding-left: 0px;
    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;
       width:55%;
}

.courBox li:hover .courTxt p {
      opacity: 1;
      -webkit-transition: 0.4s;
      top: -10px; 
      left:30px;
      width:55%;
}


.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: 1rem; 
 }
}  

@media(max-width:428px){
.courBox .courTxt h3 {
    font-size: 1rem;
    padding-left: 0;
}
}

@media(max-width:480px){
.courBox .courTxt  {
    padding-left: 10px;
    padding-top:10%;
 }  
} 

@media(max-width:480px){
.courBox li .courTxt p{
  display:none;
}
}



/*Index_5~6*/
#bodyinhome .fcol.fcol-5,
#bodyinhome .fcol.fcol-6{
  display:none;
}



/*文字滑過變色方塊*/
.serveimg {
   display: block;
   text-align: center;
   width: 100%;
   min-height:100px
   padding-bottom: 100%;
   background:  #0266e2;
   overflow: hidden;
   position: relative;
   padding:10px 10px;
}
.serveimg:hover {
     display: block;
   text-align: center;
   width: 100%;
   min-height:100px
   padding-bottom: 100%;
   background: #3d92f1;
   overflow: hidden;
   position: relative;
   padding:10px 10px;
}

.serveimg a{
  display: block;
}




/*h1*/
.h1title h1 {
    color: #003c8d;
    text-align: center;
}

/*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: #e2027f;
    text-shadow: none;
    padding: 0 10px;
}


/*form*/
.mark {
    background: none;
   }


/*footer*/
#footer{border-top:4px solid #e2027f;}


.contact-row h5 {
   display: none;
}

#contact-info{
   display: none;
}

.contact-row {
    padding: 0;
    line-height: 1.6;
}