.phone{position:fixed;right:1%;top:40%;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:#ffffff; /* 背景(白) var(--bg)*/
--p:#000000; /* 段落文字 var(--p)*/
--card:#f1f1f1; /* 卡片底(淺灰) var(--card)*/
--text:#255544; /* 主要文字(深綠) var(--text)*/
--text2:#089382; /* h3次要文字(藍綠) var(--text2)*/
--text3:#D30900; /* h4次要文字(紅) var(--text3)*/
--text4:#dcd5cb; /* 次要文字(米) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, #255544 0%, #089382 100%); /* 漸層 var(--gradient)*/
}

.topnavbar {
    background-color: var(--text);/*頁籤底圖顏色;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 Serif TC', serif; /*明體*/
}

#logo h1 { text-align: center; }

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

/*編輯欄設定*/
.fcol p{
    font-size: clamp(16px, 2vw, 18px); /*最小值 首選值 最大值 限制屬性值區間*/
    color: var(--p);/*文字顏色*/
    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(--text);
  font-size: clamp(26px, 3vw, 36px);/*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h5 { 
  color: var(--text4);
  font-size: clamp(20px, 3vw, 22px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#nav {
    vertical-align: bottom;
}
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: var(--bg);/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--text4);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--text4);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

/*頁籤按鈕上底線滑入特效-底線短*/
#nav ul li a::before {
  content:"";
  border-top:3px solid var(--text4);
  width:0;
  position:absolute;
  left:0;
  right:0;
  top:0px;
  margin:0 auto;
  transition:.3s all ease;
}
#nav ul li a:hover::before {
    width: 70%;
}

#nav .subnav {
    background-color: #444;/*次頁籤底色*/
    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: 1.4em;
  font-weight: 700;
  color: var(--bg);
}
#side ul li a {
  font-size: 16px;
  color: #333;
}
#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 p{
    color: #333;
    font-size: 30px;
}/*產品內頁標題文字*/

/*產品頁-右側產品項目連結*/
.product-list-div h2 a {
    color: var(--text);/*產品項目文字連結顏色*/
    text-decoration: none;
    display: inline-block;
}
.product-list-div h2 a:hover {
    color: var(--text2);/*產品項目文字連結滑入顏色*/
}
.product-list-div h2 {
    text-shadow: none;/*產品項目文字陰影隱藏*/
    line-height: 1.5;
    font-size: clamp(1.5em, 3vw, 2em);/*產品項目文字大小*/
}
body[data-type="fullpage"] .product-list-div h2 a.show-all {
    color: var(--p);/*查看產品按鈕文字顏色*/
    background: var(--text4);/*查看產品按鈕背景顏色*/
    text-shadow: none;/*文字陰影隱藏*/
    padding: 0 10px;
}
body[data-type="fullpage"] .product-list-div h2 a:hover.show-all {
    color: var(--text3);/*查看產品按鈕文字滑入顏色*/
}

/*title文字顏色*/
.h1title h1{
    color: var(--text);
  text-align: center;
  font-weight: 600;
}

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-color: var(--text);
}
#bodyinhome .fcol.fcol-1 .container {  width: 100%; }/*拉寬編輯欄設定*/

#bodyinhome .fcol.fcol-2 {
    width: 100%;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: 0% 100%;
    background-size: cover;
    background-image:  -webkit-linear-gradient(top, rgb(0 0 0 / 60%) 0%, rgb(0 0 0 / 60%) 100%), url(https://static.iyp.tw/409845/files/86372cb8-6378-463b-aadc-447a9161d463.jpg);
  padding:3em 0;
}

#bodyinhome .fcol.fcol-3 { padding:3em 0; }
#bodyinhome .fcol.fcol-4 .container {  
  width: 100%; 
  padding:0;
  /*background-image: var(--gradient);*/
  background-color: var(--card);
}/*拉寬編輯欄設定*/

#bodyinhome .fcol.fcol-6 .container {  width: 100%; padding: 0; }/*拉寬編輯欄設定*/

/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 5px 25px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.btn-more1 {
    border-radius: 30px;
    border: 0px solid #000;
    color: #fff;
    font-size: clamp(28px, 3vw, 30px);
    background-color: #ff0000;
     font-weight: 700;
}
.btn-more1:hover{
    background-color: #ff9900; /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}

/*圖文特效*/
figure.snip1084 {
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  background: #000000;
  text-align: center;
}

figure.snip1084 * {
  -webkit-box-sizing: padding-box;
  box-sizing: padding-box;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

figure.snip1084 img {
  opacity: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  display: block;
  opacity: 0.8;
}

figure.snip1084 figcaption {
  top: 50%;
  left: 40px;
  right: 40px;
  position: absolute;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

figure.snip1084 figcaption h2 {
  position: relative;
  color: var(--bg);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 700;
  line-height:1.2;
  text-transform: uppercase;
  margin: 0;
  -webkit-transform: translateY(50%);
  transform: translateY(50%);
}

figure.snip1084 figcaption p {
  color: var(--bg);
  font-size: 0.9em;
  font-weight: 500;
  opacity: 0;
  margin: 0;
}

figure.snip1084:before,
figure.snip1084:after {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  content: '';
  opacity: 0;
  -webkit-transition: opacity 0.6s, -webkit-transform 0.6s;
  transition: opacity 0.6s, -webkit-transform 0.6s, -moz-transform 0.6s, -o-transform 0.6s, transform 0.6s;
}

figure.snip1084:before {
  border-top: 1px double #fff;
  border-bottom: 1px double #fff;
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
}

figure.snip1084:after {
  border-right: 1px double #fff;
  border-left: 1px double #fff;
  -webkit-transform: scale(1, 0);
  transform: scale(1, 0);
}

figure.snip1084 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
}

figure.snip1084:hover img,
figure.snip1084.hover img {
  opacity: 0.7;
  -webkit-filter: blur(5px);
  filter: blur(5px);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

figure.snip1084:hover figcaption h2,
figure.snip1084.hover figcaption h2,
figure.snip1084:hover figcaption p,
figure.snip1084.hover figcaption p {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

figure.snip1084:hover figcaption p,
figure.snip1084.hover figcaption p {
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}

figure.snip1084:hover:before,
figure.snip1084.hover:before,
figure.snip1084:hover:after,
figure.snip1084.hover:after {
  opacity: 0.8;
  -webkit-transform: scale(1);
  transform: scale(1);
}

/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 5px 25px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.btn-more1 {
    border-radius: 30px;
    border: 1px solid var(--card);
    color: #fff;
    font-size: clamp(14px, 3vw, 16px);
    background-color: var(--text);
     font-weight: 500;
}
.btn-more1:hover{
    background-color: var(--text2); /* 當滑鼠經過時按鈕表格底色變化 */
    color: #fff;/* 當滑鼠經過時按鈕表格文字變化 */
}

/*footer*/
#footer {
    color: var(--bg);
    background-color: var(--text);
}

#footer a { color: var(--bg); }
#footer a:hover { color: var(--text4); }

#foot-nav ul li a {
    display: block;
    color: var(--bg);
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    background-color: var(--text2);
    border-radius: 10px;
}
#foot-nav ul li a:hover { background-color: var(--text3); }

#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 0px solid #444;
  display: flex;
  justify-content: center;
}
.contact-row h5 { color: var(--bg); }
#contact-info ul li span { color: var(--bg); }

/*項目標題*/
ul.b {
  list-style-type: disc; 
  margin-left: 1.5rem;
  font-size: clamp(16px, 2vw,18px);
  color: var(--p);
}
ul.b li {   
  background-color: var(--card);
  padding: 2px 5px;
  margin: 10px 0;
}
ul.b li::marker { color:var(--text3); }

/*項目標題*/
ul.c {
  font-size: clamp(16px, 2vw,18px);
  font-weight: 600;
  color: var(--p);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;  
  text-align: center;
}
ul.c li {   
  background-color: var(--card);
  padding: 2px 5px;
  width: calc(25% - 1em);
}
@media only screen and (max-width: 768px){
  ul.c li {  width: calc(50% - 1em);  }
}

ul.c li::marker { color:var(--text3); }

/*服務項目*/
@media only screen and (min-width: 768px){
.item-1 {border-top: 1px solid var(--text2);}
}
.item-1 i {
    color: #ffffff;
    font-size: 2em;
    background-color: var(--text2);
    border-radius: 100%;
    padding: 8px;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/*關於我們-電梯種類詳細說明*/
.card-1 {
  width: 100%;
  height: 100%;
  background-color: var(--card);
  padding: 1.5em;
  box-shadow: var(--shadow);
}
.card-1 h3 {
  font-size: clamp(20px, 3vw, 24px);
  background-image: var(--gradient);
  padding: 3px 10px;
  margin-left: -1.2em;
  margin-bottom: 10px;
  color: var(--bg);
}