.phone{position:fixed;right:1%;top:30%;z-index:1000;}
.fb{position:fixed;right:1%;top:42%;z-index:1000;}
.line-1{position:fixed;right:1%;top:54%;z-index:1000;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shop-1, .x-twitter, .pixnet, .youtube-1, .tiktok , .thread , .messenger-link , .mail-1 { 
    transform: scale(0.8);
    right:0;
  }
}

/*根元素*/
:root{
--bg:#d1dde7; /* 背景 var(--bg)*/
--card:#ffffff; /* 卡片底 var(--card)*/
--text:#000000; /* 主要文字(黑) var(--text)*/
--text2:#94a3b8; /* 次要文字(灰紫) var(--text2)*/
--green:#add76e; /* 亮綠色 var(--green)*/
--blue:#2a24b3; /* 亮藍色 var(--blue)*/
--orange:#ff9900; /* 橙色 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{
    font-size: clamp(16px, 2vw, 18px); /*最小值 首選值 最大值 限制屬性值區間*/
    color: #000000;/*文字顏色*/
    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(--blue);
  font-size: clamp(24px, 3vw, 36px);/*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;
}

.fcol h3 { 
  color: var(--blue);
  font-size: clamp(22px, 3vw, 28px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*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(--blue);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--text);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

#nav .subnav {
    background-color: var(--card);/*次頁籤底色*/
    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: #2276d2;/*產品格文字顏色*/
    background-color: #eee;/*產品格底色*/
}
ul.product-list li a:hover {
    color: #2276d2;/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 p{
    color: #333;
    font-size: 30px;
}/*產品內頁標題文字*/


/*title文字顏色*/
.h1title h1{
    color: var(--blue);
}

a {
    color: #00b7ee;/*連結顏色*/
    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; /* 強制圖片寬度隨容器變更 */
}

#bodyinhome .fcol.fcol-1 .container {  width: 100%; background: #dee4e9;}

#bodyinhome .fcol.fcol-4 { 
  background-color: var(--text2);
  padding: 1em 0;
}

@media only screen and (min-width: 768px){
  #bodyinhome .fcol.fcol-2 .container,
  #bodyinhome .fcol.fcol-3 .container,
  #bodyinhome .fcol.fcol-4 .container { width: 100%; }
}

/*服務項目*/
.snip1347 {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  /*min-width: 150px;*/
  width: 100%;
  height: 100%;
  color: #ffffff;
  text-align: left;
  line-height: 1.4em;
  background-color: var(--blue);
}
.snip1347 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}
.snip1347 img {
  width: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  vertical-align: top;
  opacity: 0.85;
  object-fit: cover;
}
.snip1347 .date {
  position: absolute;
  background-color: var(--blue);
  top: 0;
  right: 0;
  width: 100%;
  padding: 5px 10px;
  text-align: right;
  font-size: 0.9em;
  font-weight: 300;
  letter-spacing: 1px;
  color: #e6e6e8;
  text-transform: uppercase;
}
/*.snip1347 .date:before {
  position: absolute;
  content: '';
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 500px 55px 0;
  border-color: transparent var(--blue) transparent transparent;
}*/
.snip1347 figcaption {
  width: 100%;
  padding: 10px 15px;
  position: relative;
}
/*.snip1347 figcaption:before {
  position: absolute;
  content: '';
  bottom: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 55px 0 0 500px;
  border-color: transparent transparent transparent var(--blue);
}*/
.snip1347 figcaption a {
  padding: 5px;
  border: 1px solid #e6e6e8;
  color: #e6e6e8;
  font-size: 0.7em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 10px 0;
  display: inline-block;
  opacity: 0.65;
  width: 47%;
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
}
.snip1347 figcaption a:hover {
  opacity: 1;
}
.snip1347 h2 {
  margin: 5px 0;
  font-weight: 500;
  font-size: 1.5em;
  line-height: 1.2em;
  color:var(--green);
}
.snip1347 p {
  margin: 0 0 10px;
  font-size: clamp(13px,2vw,14px);
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
}

/*圖文連結特效*/
figure.snip1416 {
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  /*min-width: 150px;
  max-width: 350px;*/
  width: 100%;
  background: #000000;
  color: #ffffff;
  text-align: left;
  line-height: 0;
}
figure.snip1416 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.6s ease;
  transition: all 0.6s ease;
}
figure.snip1416 img {
  opacity: 0.8;
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}
figure.snip1416 figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 1.2;
}
figure.snip1416 figcaption > div {
  height: 50%;
  overflow: hidden;
  width: 100%;
  position: relative;
}
figure.snip1416 h2,
figure.snip1416 h3,
figure.snip1416 p {
  margin: 0;
  position: absolute;
  left: 0;
  padding: 0 30px;
  text-transform: uppercase;
  color: #fff;
}
figure.snip1416 h2 {
  font-weight: 700;
  bottom: 0;
}
figure.snip1416 h3 {
  font-size: 1em;
  top: 0;
  font-weight: 500;
}
figure.snip1416 h3:nth-of-type(2) {
  opacity: 0;
  -webkit-transform: translateY(-150%);
  transform: translateY(-150%);
}
figure.snip1416 p {
  font-size: 14px;
  top: 0;
  font-weight: 400;
}
figure.snip1416 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
}
figure.snip1416:hover img,
figure.snip1416.hover img {
  opacity: 0.3;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}
figure.snip1416:hover figcaption h3:first-of-type,
figure.snip1416.hover figcaption h3:first-of-type {
  -webkit-transform: translateY(-150%);
  transform: translateY(-150%);
  opacity: 0;
}
figure.snip1416:hover figcaption h3:nth-of-type(2),
figure.snip1416.hover figcaption h3:nth-of-type(2) {
  opacity: 1;
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
}
figure.snip1416 figcaption > div:hover, 
figure.snip1416 figcaption > div.hover {
  opacity: 0;
}


/*首頁-about*/
@media only screen and (min-width: 768px){
  .t-box {
    z-index: 2;
    right: -4em;
  }
  .t-bg { 
    background-color: rgb(255 255 255 / 70%); 
    padding: 3em 4em; 
  }
}
@media only screen and (max-width: 767px){ .t-bg { background-color: #fff0; padding: 2em 3em; }}

.img-about {
  position: relative; /* 設置相對定位，方便控制偽元素位置 */
}
.img-about img {
  position: relative;
  z-index:1;
  display: block;
}
.img-about::after {
  content: ""; /* 偽元素的內容設為空 */
  position: absolute; /* 絕對定位 */
  left: -30%;
  bottom: 5%;
  width: 100%;
  height: 85%; 
  border: 10px #ddd solid;
}


/*標題裝飾線*/
.border-1 {position: relative; border-top: 1px solid #cccccc; width: 100%; margin: 10px auto;}
.border-1::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -10px;
    width: 10px;
    height: 10px;
    background-color: #fc4138;
    z-index: 1;
}

.border-2 {position: relative; border-top: 1px dotted #ddd; width: 100%; margin: 10px auto;}
.border-2::before {
    content: "";
    position: absolute;
    top: -4px;
    right: 0px;
    width: 7px;
    height: 7px;
    background-color: #fc4138;
    z-index: 1;    
  border-radius: 100%;
}


/*owl 輪播圖語法*/
.owl-carousel.owl-theme {
  padding: 0 20px 35px;/*內距:上 左右 下;*/
}
.owl-carousel.owl-theme .owl-nav {
  position: absolute;
  margin: 0;
  top:40%;
  left: 0;
  right: 0;
  transform: translateY(0%);
}
.owl-carousel.owl-theme .owl-dots {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
}
.owl-carousel.owl-theme button:focus {
  outline: none;
}
.owl-carousel.owl-theme .owl-nav .owl-prev {
  float: left;
  transform: translateX(-100%);
}
.owl-carousel.owl-theme .owl-nav .owl-next {
  float: right;
  transform: translateX(100%);
}
.owl-carousel.owl-theme .owl-nav .owl-prev:hover,
.owl-carousel.owl-theme .owl-nav .owl-next:hover{
  background: none;
  color: inherit;
}
.owl-carousel.owl-theme .owl-nav .fa{
  font-size: 3em; /*箭頭大小*/
}

.editmode .owl-carousel.owl-loaded {
  display: flex;
  flex-wrap: wrap;
}
.editmode .owl-carousel > div {
  flex: 0 0 25%;
  max-width: 25%;
}

.owl-carousel .owl-item img {
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;  /*比例*/
  border: 2px solid #fff;
  box-shadow: 0 6px 5px rgba(44,44,44,0.25);
}
.owl-carousel .row-no-gutters {
    margin-right: 5px;
    margin-left: 2px;
}

/*footer*/
#footer {
    color: #fff;
    background-color: #2c2c2c;
}