.phone{position:fixed;right:1%;top:35%;z-index:1000;}
.line-1{position:fixed;right:1%;top:50%;z-index:1000;}


/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shop-1, .x-twitter, .pixnet, .youtube-1, .tiktok , .thread { 
    transform: scale(0.8);
    right:0;
  }
}

.container h4 {
   background: linear-gradient(to top, #0d2181, #0d2181, #0841da);
   background-clip: text;
   -webkit-background-clip: text;
   color: transparent;
  font-size: clamp(24px, 2vw, 40px);
  font-weight: 700;
  line-height:40px;
  font-family: 'Noto Serif TC', serif;
}

/*套用google font字型Noto Serif TC明體*/
#t-500{
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
    color: #2c2c2c;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 40px;
}

.topnavbar {
 /* background-color: Transparent;*/
    background-color: #294999;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding-bottom: 5;/*頁籤間距*/
}

@media only screen and (min-width: 768px){
.topnavbar .container {
  text-align: justify;
  padding: 10px 0 0 0;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}}

#logo h1 {
    height: 70px;
}


a {
    color: #9e7865;/*連結顏色*/
    text-decoration: none;
}

/* 首頁與內頁共用 */
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(700 / 1920 * 100%); /* 注意圖片高度與寬度要去掉單位 */
}

.swiper-slide {
  width: 100% !important;
}


/*nav*/
#nav {
    vertical-align: bottom;
}

/*nav*/
#nav ul li a {

    font-size: 1.0rem;/*頁籤文字大小*/
    color: #fff;/*頁籤文字顏色*/
    padding: 10px 11px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: #38ff46;/*頁籤滑過文字顏色*/
}

#nav ul li.current a {
    color: #38ff46;/*頁籤按下後文字顏色*/
    font-weight: 500;
}

/*頁籤按鈕下底線滑入特效-底線短*/
#nav ul li a::before {
  content:"";
  border-bottom:3px solid #38ff46;
  width:0;
  position:absolute;
  left:0;
  right:0;
  top:0px;
  margin:0 auto;
  transition:.3s all ease;
  border-radius: 2px;
}

#nav ul li a:hover::before {
    width: 50%;
}

#nav ul.subnav li a::before {
  display:none;
}

/*次頁籤文字顏色*/ 
#nav .subnav {
    text-align: left;
    background-color: #295898;/*次頁籤底色*/
}
#nav .subnav a { font-size: 14px; }

#nav li.has-subnav ul li a:hover {
   color: #000;/*次頁籤滑過後文字顏色*/   
    background-color: #38ff46; /*次頁籤滑過底圖顏色*/
}

#nav li.has-subnav ul li a:hover::before { display:none;}

#nav li.has-subnav ul li.current a {
   color: #f7ce3e;/*次頁籤按下後文字顏色*/    
}

@media only screen and (min-width: 768px){
#bodyinhome .fcol.fcol-4 .container {
   width: 90%;
}

 .word {text-align: right;}

}

#bodyinhome .fcol.fcol-1 {
     background:linear-gradient(120deg, #dfdfdf 0%, #dfdfdf 70%, #000 70%, #000 100%);
}

#bodyinhome .fcol.fcol-2 {
     background:linear-gradient(120deg, #488f49 0%, #488f49 70%, #000 70%, #000 100%);
    color: #fff;
  border-bottom: 10px solid #000;
}
#bodyinhome .fcol.fcol-3 {
     background-color: #000;
}



body.about-us .fcol.fcol-2, body.about-us .fcol.fcol-4 {
    background-color: #ffffff;
}

body.about-us .fcol.fcol-6 {
   background-repeat: no-repeat;
   background-position: 50% 50%;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.6) 0% ,rgba(0, 0, 0, 0.6) 100%) , url(https://static.iyp.tw/409811/files/62c82fd3-e6a3-4847-9670-e5209582d2af.jpg);
   padding: 5rem 0;
}


/*title文字顏色*/
body.about-us  .h1title {display: none;}

.h1title h1 {font-size: 16pt; color: #0d2282;}
.fcol.fcol-header .container { padding: 0px;/*頁籤間距*/}
/* 消除空白*/
body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}

/*改內文標題顏色*/
h2, h5, h6, .h1, .h2, .h4, .h5, .h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: inherit;
    color: #0d2282;
}


#side h3 {
   color: #fff;
   background-color: #0d2282;
}


#side ul li a {
    color: #2c2c2c;
   font-size: 16px;
}

#side ul li.current>div a {
    color: #0d2282;
}

.product-list-div h2 a {
    color: #0d2282;
    text-decoration: none;
    display: inline-block;
}

ul.product-list li a.focus h3, ul.product-list li a:hover h3 {
    color: #082453;
}
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: #082453;
    overflow: hidden;
    padding: 0 16px;
}


body[data-type="fullpage"] .product-list-div h2 a.show-all:hover {
    color: #fff;
}


body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}


#main-wrap .container {
    font-size: clamp(16px, 2vw, 18px);
  line-height:30px;
  color: #232d3a;
}

/*footer*/
#footer {
    background-color: #294999;
    color: #fff;
}


#foot-nav {
    clear: both;
    padding: 1em 0;
    border-bottom: 0px solid #7825c1;
}
#foot-nav ul li a {
    display: block;
    color: #fff;
    font-size: 1.02em;
    margin-right: 10px;
    padding: 8px 16px;
}

#foot-nav ul li.current a {  color: #fff; }


body {
    background-color: #dfdfdf;/*背景底色*/
    font-family: 'Noto Sans TC', sans-serif;/*套用google font字型Noto Sans TC黑體*/
}

/*服務項目*/
ul.c {
  list-style-type: disc;/*disc實心 ecimal 數字*/
  margin-left: 1em;
}

ul.c li {
  border-bottom: 1px solid #7a7a7a; 
  padding:10px;
    display: flex; 
  justify-content: space-between;
}


ul.b li::marker{
  color: #4983e1;  
}

ul.b {
  list-style-type: disc;
   margin-left: 1em;
}


/*產品介紹-圖文左右(手機版上下)特效*/
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500,700);
.snip1244 {
  font-family: 'Raleway', Arial, sans-serif;
  color: #fff;
  position: relative;
  margin:0 auto;
  min-width: 480px -60px;
  max-width: 600px;
  width: 100%;
  color: #ffffff;
  text-align: left;
  background-color: #4983e1;
  font-size: 16px;
  overflow:hidden;
}
.snip1244 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.4s ease-in;
  transition: all 0.4s ease-in;
}
.snip1244 img {
  position: relative;
  max-width: 50%;
  height: 250px;
  object-fit: cover; 
  vertical-align: top;
  transform:scale(1,1);
}

.snip1244:hover img {
  position: relative;
  max-width: 50%;
  height: 250px;
  object-fit: cover; 
  vertical-align: top;
  transform:scale(1.1,1.1);
}

.snip1244 figcaption {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  padding: 20px 0 20px 50%;
}
.snip1244 figcaption:before,
.snip1244 figcaption:after {
  width: 1px;
  height: 0;
}
.snip1244 figcaption:before {
  right: 0;
  top: 0;
}
.snip1244 figcaption:after {
  left: 0;
  bottom: 0;
}
.snip1244 h3,
.snip1244 p {
  line-height: 1.5em;
  padding: 0 30px;
  color: #fff;
  
}
.snip1244 h3 {
  margin: 0 0 5px;
  font-weight: 700;
  text-transform: uppercase;
}
.snip1244 p {
  font-size: 0.8em;
  font-weight: 500;
  margin: 0 0 15px;
}
.snip1244 a {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
}
.snip1244:before,
.snip1244:after,
.snip1244 figcaption:before,
.snip1244 figcaption:after {
  position: absolute;
  content: '';
  background-color: #ffffff;
  z-index: 1;
  -webkit-transition: all 0.4s ease-in;
  transition: all 0.4s ease-in;
  opacity: 0.8;
}
.snip1244:before,
.snip1244:after {
  height: 1px;
  width: 0%;
}
.snip1244:before {
  top: 0;
  left: 0;
}
.snip1244:after {
  bottom: 0;
  right: 0;
}
.snip1244:hover figcaption,
.snip1244.hover figcaption {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.05);
}
.snip1244:hover figcaption:before,
.snip1244.hover figcaption:before,
.snip1244:hover figcaption:after,
.snip1244.hover figcaption:after {
  height: 100%;
}
.snip1244:hover:before,
.snip1244.hover:before,
.snip1244:hover:after,
.snip1244.hover:after {
  width: 100%;
}
.snip1244:hover:before,
.snip1244.hover:before,
.snip1244:hover:after,
.snip1244.hover:after,
.snip1244:hover figcaption:before,
.snip1244.hover figcaption:before,
.snip1244:hover figcaption:after,
.snip1244.hover figcaption:after {
  opacity: 0.1;
}

figure.snip1244 figcaption .btn-more {
  display: inline-block;
  width: auto;
  border: 2px solid #20638f;
  padding: 5px 10px;
  color: #20638f;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9em;
  text-transform: uppercase;

}

figure.snip1244:hover .btn-more {
  background-color: #20638f;
  color: #ffffff;
}

@media only screen and (max-width: 480px) {
  .snip1244 img {
    max-width: 100%;
    width: 100%;
    height: 250px;
  object-fit: cover; 
  }
  .snip1244:hover img {
    max-width: 100%;
  }
  
  .snip1244 figcaption {
    position: relative;
    padding-left: 0px;
  }
}

/*時間軸*/
#content {
  margin-top: 50px;
  text-align: left;
  width: 100%;
}

section.timeline-outer {
  width: 100%;
 margin-left:0;
}

h1.header {
  font-size: 50px;
  line-height: 70px;
}
/* Timeline */

.timeline {
  border-left: 8px solid #42A5F5;
  border-bottom-right-radius: 2px;
  border-top-right-radius: 2px;
  color: #333;
  margin: 30px auto;
  letter-spacing: 0.5px;
  position: relative;
  line-height: 1.4em;
  padding: 20px;
  list-style: none;
  text-align: left;
}

.timeline h1,
.timeline h2,
.timeline h3 {
  font-size: 1.4em;
}

.timeline .event {
  border-bottom: 1px solid rgba(160, 160, 160, 0.2);
  padding-bottom: 15px;
  margin-bottom: 20px;
  position: relative;
}

.timeline .event:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}

.timeline .event:before,
.timeline .event:after {
  position: absolute;
  display: block;
  top: 0;
}

.timeline .event:before {
 /*left: -177.5px;*/
  color: #212121;
  content: attr(data-date);
  text-align: right;
  /*  font-weight: 100;*/
  
  font-size: 16px;
  min-width: 120px;
}

.timeline .event:after {
  box-shadow: 0 0 0 8px #42A5F5;
  left: -30px;
  background: #212121;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  content: "";
  top: 5px;
}
/**/
/*——————————————
Responsive Stuff
———————————————*/

@media (max-width: 945px) {
  .timeline .event::before {
    left: 0.5px;
    top: 20px;
    min-width: 0;
    font-size: 13px;
  }
  .timeline h3 {
    font-size: 16px;
  }
  .timeline p {
    padding-top: 20px;
  }
  section.lab h3.card-title {
    padding: 5px;
    font-size: 16px
  }
}

@media (max-width: 768px) {
  .timeline .event::before {
    left: 0.5px;
    top: 20px;
    min-width: 0;
    font-size: 13px;
  }
  .timeline .event:nth-child(1)::before,
  .timeline .event:nth-child(3)::before,
  .timeline .event:nth-child(5)::before {
    top: 38px;
  }
  .timeline h3 {
    font-size: 16px;
  }
  .timeline p {
    padding-top: 20px;
  }
}
/*——————————————
others
———————————————*/

a.portfolio-link {
  margin: 0 auto;
  display: block;
  text-align: center;
}
