/*根元素*/
:root{
--bg:#ffffff; /* 背景(白) var(--bg)*/
--card:#e2e3e3; /* 卡片底(淺灰) var(--card)*/
--text:#0f172a; /* 主要文字(黑藍) var(--text)*/
--muted:#94a3b8; /* 次要文字(灰紫) var(--muted)*/
--green:#6bb90e; /* 亮綠色 var(--green)*/
--blue:#27b1fc; /* 亮藍色 var(--blue)*/
--orange:#f7b129; /* 橙色 var(--orange)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
}

.topnavbar {
    background-color: var(--bg);/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;/*頁籤間距*/
}

.topnavbar .container {
  text-align: justify;
  padding: 0;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}

body {
    background-color: var(--bg);/*背景底色*/
    font-family: 'Noto Sans TC', sans-serif;/*套用google font字型Noto Sans TC黑體*/
}

#logo h1 { text-align: center; }

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

/*編輯欄設定*/
.fcol p{
  color: var(--text);/*文字顏色*/
    font-size: clamp(16px, 2vw, 18px); /*最小值 首選值 最大值 限制屬性值區間*/    
    line-height: 2;
}

body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}

.fcol h2 { 
  color: var(--orange);
  font-size: clamp(26px, 3vw, 36px);/*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;
}

.fcol h3 { 
  color: var(--blue);
  font-size: clamp(22px, 3vw, 28px);/*最小值 首選值 最大值 限制屬性值區間*/
  line-height:1.2;
}
.fcol h4 {
  color: var(--green);
  font-size: clamp(18px, 2vw, 22px); 
  line-height:1.5;
}

/*nav*/
#nav {
    vertical-align: bottom;
}
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: var(--text);/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--green);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color:  var(--text);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

#nav .subnav {
    background-color: var(--bg);/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    width: max-content;/*最大內容*/
    text-align: left;
}

#nav li.has-subnav ul li.has-subnav>div a::after, #nav>ul>li.has-subnav>a::after {
    padding-left: 2px;/*下拉選單箭頭距離*/
}

ul.product-list li a {
  color:  var(--text);/*產品格文字顏色*/
}
ul.product-list li a:hover {
    color: var(--muted);/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 p{
    color: #333;
    font-size: 30px;
}/*產品內頁標題文字*/

#side h3 { font-size: 24px;}
#side ul li a { color: var(--text);}
#side ul li a:hover { 
  color: #fff; 
  background-color: rgb(70 75 100 / 50%);
}

/*產品頁-右側產品項目連結*/
.product-list-div h2 a {
    color: var(--text);/*產品項目文字連結顏色*/
    text-decoration: none;
    display: inline-block;
}
.product-list-div h2 a:hover {
    color: var(--muted);/*產品項目文字連結滑入顏色*/
}
.product-list-div h2 {
  text-shadow: none;/*產品項目文字陰影隱藏*/
  font-size: 2em; /*產品項目文字大小*/ 
  line-height: 1.5;
}
body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: #fff;/*查看產品按鈕文字顏色*/
    background: var(--blue);/*查看產品按鈕背景顏色*/
    text-shadow: none;/*文字陰影隱藏*/
    padding: 0 10px;
}
body[data-type="fullpage"] .product-list-div h2 a:hover.show-all {
    color: #fff100;/*查看產品按鈕文字滑入顏色*/
}

/*title文字顏色*/
.h1title h1{
  color: var(--blue);
  text-align: center;
}

a {
    color: var(--blue);/*連結顏色*/
    text-decoration: none;
}

.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(750 / 1920 * 100%); /* 自定響應式圖片高度 */
}


.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}

body.about-us .fcol.fcol-3 { padding:3em 0; background-color:var(--green); }
#bodyinhome .fcol.fcol-2 { padding:3em 0; background-color: #f5f5f5; }

#bodyinhome .fcol.fcol-6 {
   width: 100%;
   background-attachment: scroll; /*fixed固定背景; scroll捲動背景*/
   background-repeat: no-repeat;
   background-position:center;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(top, rgb(0 0 0 / 70%) 0%, rgb(0 0 0 / 50%) 100%),url(https://static.iyp.tw/409799/files/88d50da0-3fc8-48ef-bf64-26021486e4af.jpg);
  padding:3em 0;
}

/*卡片底*/
.chip-1 {
  padding: 5px 15px; 
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background:var(--card);

    width: -webkit-fill-available;
    height: 100%;
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.chip-1 p {
  text-align: justify;  
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
}

.chip-1 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.chip-1 img {
  max-width: 200px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 3em; 
  margin-top: -5em; 
  margin-bottom: 5px;
  box-shadow:var(--shadow);
}
.chip-1:hover img {
  transform:translateY(-5px);
  transition:.3s;
}

#icon-1 {
  font-size: 3em; 
  color: var(--green); 
  padding: 10px;
}

#icon-2 {
    font-size: 3em;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 100%;
    border: 2px solid var(--card);
    margin: -1em auto 10px;
    box-shadow: var(--shadow);  
      aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
}

#item-img {
  border-radius: 2em;
  box-shadow: var(--shadow);
  max-width: 220px;
}

#area-img {  
  border-radius: 1em;
  box-shadow: var(--shadow);
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #fff;
  padding: 10px;
}


/*服務流程*/
.service-list { text-align: center; }
.service-list h3 {font-size: 24px;}
.service-list i {
  font-size: 3em; color:
    #ffffff; padding: 10px;
}
.service-list p {
  text-align: justify;
  line-height: 1.5;
  font-size: clamp(14px, 2vw, 16px);
}

/*footer*/
#footer {
  color:  var(--text);
  background-color: #f5f5f5;
}
#footer a { color: var(--text); }
#footer a:hover { color: var(--orange); }
#foot-nav ul li a {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    background-color: rgb(70 75 100 / 50%);
    border-radius: 10px;
}
#foot-nav ul li a:hover { 
  background-color: var(--blue);
  color: var(--text);
}

#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 1px dotted #878787;
  display: flex;
  justify-content: center;
}

.contact-row h5 { color: var(--text); }
#contact-info ul li span { color: var(--text); }


/* 下排浮動頁籤連結 */
#wrap-fmenu{
   max-width:1920px;
    width:100%;
    margin:0px auto;
    display:block;
}
.fMenu{
   background-color:var(--bg);
   display:block;
   position:fixed;
   width:100%;
   margin:0 auto;
   z-index:100;
   color:#FFF;
   left:0;
   bottom:0;
}
.fMenu ul li{
    letter-spacing:1.5px;
    float:left;
    width:50%;
    border-left:1px solid #fff;
    box-sizing:border-box;
    color:#FFF;
    min-height: 80px; /*最小高度*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fMenu ul li:first-child{
	border:none;
}
.fMenu ul li a{
    display:block;
    padding: 10px 10px 0 10px;
    font-size: clamp(12px, 2vw, 16px);
    color:#FFF;
    text-align:center;
    box-sizing:border-box;
    letter-spacing:0px;
    line-height: 1.2;
}
.fMenu ul li a i{
    display:block;
    font-size: clamp(20px, 3vw, 24px);
    color:#FFF;
}

/*避免遮到footer版權服務文字*/
body[data-type="fullpage"] .container #footer-service { padding: 15px 15px 100px 15px; ; }

/*手機版漢堡選單*/
.navbar .container {
    background-color: #333; /*導覽列背景顏色樣式*/
}
.navbar-icon-bar {
  width: 28px; /* 三變大*/
  height: 4px; 
  background-color: #fff; /* 填入想要的三條線顏色 */

}
.navbar-icon-bar:before, .navbar-icon-bar:after {
    background-color: #fff; /* 填入想要的三條線顏色 */
}
.navbar .rwd-navbar-toggle {
    padding-right: 100% !important;/*導覽列寬度*/
}
.navbar .rwd-navbar-toggle .label {
    left: 45px;
    font-size: 1.0rem; /*導覽列文字尺寸*/
    color: #fff; /*導覽列文字顏色樣式*/
    background-color: var(--blue);/*導覽列文字背景顏色*/
    border-radius: 3px;
    padding: 4px;
}
@media only screen and (max-width: 767px){
.rwd-side .nav li {
    border-bottom: 1px #ccc dashed; /* 展開連結文字底虛線 */
}
.rwd-side .nav span {
    color: #fff; /* 展開連結文字顏色 */
}}

/*產品介紹圖文特效*/
figure.snip1249 {
  position: relative;
  overflow: hidden;
  margin: 0 auto 0;
  min-width: 150px;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  font-family: verdana, geneva;
      display: flex;
    flex-direction: column;
    justify-content: space-between;
}
figure.snip1249 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
}
figure.snip1249 img{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  vertical-align: top;
  padding: 10px;
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
}
figure.snip1249:hover img{
  opacity: 0.8;
}
figure.snip1249 h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
}
figure.snip1249 p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: justify;
  line-height: 1.5;
    /*限制內容字數*/
 /* overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;/*限制行數*/
}
figure.snip1249 figcaption {
  padding: 10px 20px 5px;
    color: #000000;
    position: relative;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
}

figure.snip1249 .btn-more {
border: 1px solid var(--muted);
    padding: 0.4em 0.6em;
    color: var(--muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    margin: 10px 20px;
    text-align: center;
    letter-spacing: 5px;
  background-color: var(--green);
    color: #ffffff;
}

figure.snip1249:hover .btn-more {
  background-color: #4c8509;
}

figure.snip1249 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}