.phone-1{position:fixed;right:1%;top:30%;z-index:1000;}
.line-1{position:fixed;right:1%;top:42%;z-index:1000;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone-1, .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:#ffffff; /* 背景(白) var(--bg)*/
--p:#000000; /* 段落文字 var(--p)*/
--card:#f1f1f1; /* 卡片底(淺灰) var(--card)*/
--text:#080808; /* 主要文字(深灰) var(--text)*/
--text2:#b81c22; /* h3次要文字(紅) var(--text2)*/
--text3:#666666; /* h4次要文字(中灰) var(--text3)*/
--text4:#33435f; /* 次要文字(深灰藍) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, var(--text4) 0%, var(--text2) 100%); /* 漸層 var(--gradient)*/
}

.t-Serif { font-family: 'Noto Serif TC', serif; }/*宋體*/

.topnavbar {
    background-color: #fff;/*頁籤底圖顏色;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: #fff;/*背景底色*/
    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;
} 

hr {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin: 1em 0;
}

/*編輯欄設定*/
#main-wrap .container {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--p);
}/*編輯欄文字*/

body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}

.fcol p{  
  line-height: 2;
  text-wrap: pretty ;  /*適用內文,段落避開孤字*/
 }

h1, h2, h3, h4, h5, h6 { 
  text-wrap: balance ;  /*適用標題和短文案,視覺效果更平衡*/
} 

.fcol h2 { 
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#nav {
    vertical-align: bottom;
}
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #000;/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--text2);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--text);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

#nav .subnav {
    background-color: #fff;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    width: max-content;/*最大內容*/
    text-align: left;
}

#nav .subnav .has-subnav span{
    max-width: 400px;/*次頁籤文字背景最大寬度*/
}

#nav li.has-subnav ul li.has-subnav>div a::after, #nav>ul>li.has-subnav>a::after {
    padding-left: 2px;/*下拉選單箭頭距離*/
}

/*產品頁*/
#side h3 {
  /*background-color: var(--card);*/
  background-image: var(--gradient);
  border-radius: 10px 10px 0 0;
  font-size: 1em;
  font-weight: 700;
  color: var(--bg);
}
#side ul li a {
  font-size: 16px;
  color: #333;
  border-bottom: 1px dashed #ddd;
}
#side ul li a:hover {
  color: var(--text);
}

ul.product-list li a {
    color: var(--text);/*產品格文字顏色*/
    background-color: #eee;/*產品格底色*/
}
ul.product-list li a:hover {
    color: var(--text2);/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 {
    color: #333;
    font-size: 30px;
}/*產品內頁標題文字*/


/*分頁title文字*/
.h1title h1{
    color: var(--text3);
}

a {
    color: var(--text2);/*連結顏色*/
    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 {
    background: #f5f5f5;
    background: -moz-linear-gradient(-45deg, #f5f5f5 0%, #f5f5f5 37%, #ffffff 37%, #ffffff 100%);
    background: -webkit-linear-gradient(-45deg, #f5f5f5 0%, #f5f5f5 37%, #ffffff 37%, #ffffff 100%);
    background: linear-gradient(135deg, #f5f5f5 0%, #f5f5f5 37%, #ffffff 37%, #ffffff 100%);
    background-attachment: fixed;
}
#bodyinhome .fcol.fcol-1 .container { width: 100%; padding: 0; }

#bodyinhome .fcol.fcol-2 {  
  background-color: var(--card);
  padding:3em 0;
}
#bodyinhome .fcol.fcol-2 .container { width: 100%; }

#bodyinhome .fcol.fcol-3 { background-color: var(--text4); }
#bodyinhome .fcol.fcol-3 .container { width: 100%; }

#bodyinhome .fcol.fcol-5 { background-color: var(--card); }  

#bodyinhome .fcol.fcol-3 ,#bodyinhome .fcol.fcol-4 ,#bodyinhome .fcol.fcol-6 {padding:3em 0;}


/*合作流程*/
@media only screen and (min-width: 768px){ .list-title { writing-mode: vertical-rl; } } /* 在螢幕寬度 768px 以上顯現 */
.list-1 {
  display: grid;
  grid-template-columns: 1fr 5fr;
  grid-template-rows: repeat(5, 1fr);
  gap: 0 1em;
}
.list-1 .item-icon {
  background-color: var(--card);
  clip-path: polygon(50% 20%, 100% 0, 100% 75%, 50% 100%, 50% 100%, 0 75%, 0 0);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text2);
  font-size: clamp(1.5em, 3vw, 2em);
}
.list-1 .item-txt { padding: 1em; }

/*優勢*/
.s-item  { text-align: justify;}
.s-item h3 { 
  font-size: clamp(20px, 2vw, 24px);
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  text-align: left;
}
.s-item h3 span {
  font-style: italic;
  color: #fff000;
  background-image: var(--gradient);
  clip-path: polygon(10% 0, 100% 20%, 60% 100%, 0 80%);
  padding: 0px 10px;
}
.s-item>div {
  background-image: -webkit-linear-gradient(-45deg, #ffffff 70%, #fff8 100%);
  border-radius: 0 0 2em 0;
  padding: 2em;
}

/*服務區域*/
.table-2{
 border-collapse: separate;
 border-spacing: 0;
}
.table-2 tr{
  border: 1px solid #ffffff;
}
.table-2 td{
  max-width: 150px;
  text-align: center;
  margin: 10px ;
  border: 1px solid #ffffff;
  padding: 10px;
  background-color: var(--text2);
  border-radius: 10px 0 10px 0;
  color: #FFF;
}
.table-2 h2{  
  color: #FFF;
  font-size: 18px;
  font-weight: 600;
}

/*首頁-服務項目-圖文按鈕*/
figure.snip1208 {
  color: #fff;
  position: relative;
  overflow: hidden;
  margin:0 auto;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
figure.snip1208 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
figure.snip1208 img {
  aspect-ratio: 4 / 3;
  object-fit: cover; 
  vertical-align: top;
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
figure.snip1208 figcaption {
  padding: 20px;
  position: relative;
}
figure.snip1208 h3,
figure.snip1208 p {
  margin: 0;
  padding: 0;
}
figure.snip1208 h3 {
  font-size: clamp(20px, 3vw, 22px);
  margin-bottom: 10px;
  display: inline-block;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  word-break: break-all;
}
figure.snip1208 p {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 20px;
}
figure.snip1208 button {
  border: medium none;
  padding: 10px 20px;
  background-color: var(--text2);
  font-weight: 500;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.6em;
}
figure.snip1208 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
}
figure.snip1208:hover img,
figure.snip1208.hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
figure.snip1208:hover button,
figure.snip1208.hover button {
  background-color: var(--text3);
}


/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 5px 25px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.btn-more1 {
    border: 0px solid #000;
    color: #fff;
    font-size: clamp(16px, 2vw, 18px);
    background-color: var(--text2);
    font-weight: 400;
}
.btn-more1:hover{
    background-color: var(--text3); /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}

.btn-phone {
    border: 0px solid #000;
    color: #fff;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.btn-phone { background-color: var(--text2);}
.btn-phone:hover {
  color: #fff000;
  transform:scale(1.1);
  background-color: var(--text3);
}

/*經營理念*/
.idea-box {
  color: #fff;
  background-color: var(--text4);
  border: 1px solid #fff;
  border-radius: 1em;
  padding: clamp(1em,2vw,2em);
  box-shadow: var(--shadow);
}
.idea-box i { font-size: 3em;}  
.idea-box h3 { color: #fff000;} 
.idea-box p { line-height: 1.3; } 

/*核心團隊*/
.team-box {
  width: 100%;
  height: 100%;
  border: 1px solid #ddd;
  border-top: 5px solid var(--text2);
  padding: 1.5em;
}

/*工程監控與品質保證*/
.quality-1 { width: 90%; }
.quality-1 > div {
  border-left: 5px solid var(--text2);
  background-color: var(--card);
  margin-bottom: 1em;
  border-radius: 10px;
}
.quality-1 > div:nth-child(n+2) { margin-left: 1.5em; }
.quality-1 > div:nth-child(n+3) { margin-left: 3em; }
.quality-1 > div:nth-child(n+4) { margin-left: 4.5em; }

/*內頁-服務項目-內文*/
.t-1 ul {
  display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.t-1 li {
  padding: 10px;
  width: calc(50% - 10px);
  border-radius: 10px;
  border: 1px solid #dddddd;
  border-left: 5px solid var(--text2);
  background-color: #fff;
}
.t-1 li h3 {font-size: clamp(18px, 3vw, 22px);line-height: 1.2; text-wrap: auto;}
.t-1 li p { font-size: 14px; line-height: 1.3; text-align: justify;}

@media only screen and (max-width: 768px){ 
  .t-1 li {  width: calc(100% - 10px);}
}