.phone{position:fixed;right:1%;top:40%;z-index:1000;}
.phone-1{position:fixed;right:1%;top:60%;z-index:1000;}
.map{position:fixed;right:1%;top:64%;z-index:1000}
.ig{position:fixed;right:1%;top:76%;z-index:1000}
.fb{position:fixed;right:1%;top:88%;z-index:1000}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone, .phone-1, .line-1, .ig, .map, .wechat, .shop-1, .phone-1, .pixnet, .youtube-1, .tiktok , .thread { 
    transform: scale(0.8);
    right:0;
  }
}

:root {
  --main_bg: #3975a7;/* 主色(深藍) var(--main_bg)*/
  --main2_bg: #467f75;/* 主色(墨綠) var(--main2_bg)*/
  --secondary: #91A79D;/* 主色(墨綠) var(--secondary)*/
  ----background: #F7F6F2;/* 背景(淺灰) var(--background)*/
  --section-bg: #E8E6E1;
  --text: #4c8cc2;/* 字(深藍) var(--text)*/
  --accent: #91b8d9;/* 主色(淺藍) var(--accent)*/
  --shadow: 0 15px 40px rgba(5, 90, 145, 0.13); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, var(--text) 0%, var(--text2) 30%, var(--text) 100%); /* 漸層 var(--gradient)*/
}

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 


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(--main_bg);
  font-size: clamp(1.0rem, 2vw, 1.5rem); 
 /*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2; 
}

.fcol h3 { 
    color: var(--text);
  font-size: clamp(1.0rem, 2vw, 1.2rem); 
 /*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2; 
}

.topnavbar {
 /* background-color: Transparent;*/
   background-color: rgba(255,255,255,0.85); /*頁籤底圖顏色;background-color: #fff;透明Transparent*/
    /*position: relative;relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding-bottom: 0;/*頁籤間距*/
}

.topnavbar .container {
   text-align: center;
  padding: 0;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}


/*nav*/
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: var(--text);/*頁籤文字顏色*/
    padding: 10px 16px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: #fff;/*頁籤滑過文字顏色*/
  background-color: var(--main_bg);
}
#nav ul li.current a {
    color: var(--accent);/*頁籤按下後文字顏色*/
    font-weight: 500;
}



#nav .subnav {
    background-color: #fff;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    width: max-content;/*最大內容*/
    text-align: left;
}

#nav li.has-subnav ul li a:hover {
   color: #fff;/*次頁籤滑過後文字顏色*/ 
  background-color: rgb(53, 92, 85);
}

#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: linear-gradient(120deg, var(--main_bg) 0%, var(--main2_bg) 100%);
  border-radius: 10px 10px 0 0;
  font-size: 1.0em;
  font-weight: 700;
  color: #fff;
}
#side ul li a {
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px dashed #ddd;
}
#side ul li a:hover {
  color: var(--main_bg);
}

ul.product-list li a.focus h3, ul.product-list li a:hover h3 {
    color: inherit;
}

ul.product-list li a {
    color: #fff;/*產品格文字顏色*/
    background-color: var(--main_bg);/*產品格底色*/
}

ul.product-list li a:hover {
    color: var(--accent);/*產品格滑過文字顏色*/
}

ul.product-list li .desc, ul.product-list li a:hover .desc { color: #ffffff; } 



/*title文字顏色*/
.h1title h1{
    color: var(--main_bg);
}

a {
    color: var(--main_bg);/*連結顏色*/
    text-decoration: none;
}

a:hover  {
    color: #1e5a9b;/*連結顏色*/
    text-decoration: none;
}

/* 首頁與內頁共用 */
.swiper-container {
  height: auto !important;
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
}

.swiper-slide {
  width: 100% !important;
}

/* 首頁 */
#bodyinhome .swiper-wrapper, #bodyinhome .swiper-slide {
  padding-bottom: calc(800 / 1920 * 100%); /* 首頁 banner 大小 */
}

/* 內頁 */
#bodyinpage .swiper-wrapper, #bodyinpage .swiper-slide {
  padding-bottom: calc(600 / 1920 * 100%); /* 內頁 banner 大小 */
}
/*title文字顏色*/
body.about-us  .h1title {display: none;}
.fcol.fcol-header .container { padding: 0px;/*頁籤間距*/}
.h1title {text-align:center;}

#bodyinhome .fcol.fcol-2 .container { width: 100%; padding: 4px;}
#bodyinhome .fcol.fcol-4 { 
   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/410002/files/194b50f5-2d9e-447e-8da3-28c81777a15e.jpg);
   padding: 5rem 0;
}

#bodyinhome .fcol.fcol-5 .container {  padding: 2rem 0;}

#bodyinhome .fcol.fcol-6 .container { width: 100%; padding: 0px; margin-bottom: -5px;}

body.about-us .fcol.fcol-2 { 
 background-attachment: scroll;
   background-repeat: no-repeat;
   background-position:left center;
   background-size: cover;
   background-image: -webkit-linear-gradient(left, rgb(255 255 255 / 50%) 100%, rgb(255 255 255 / 100%) 100%),url(https://static.iyp.tw/409998/files/54c41da7-fbf1-4cf2-b612-9140cbd21736.jpg);
  padding: 5rem 0;
}

body.about-us .fcol.fcol-4 { 
  background-attachment: scroll;
   background-repeat: no-repeat;
   background-position:left center;
   background-size: cover;
   background-image: -webkit-linear-gradient(left, rgb(255 255 255 / 50%) 100%, rgb(255 255 255 / 100%) 100%),url(https://static.iyp.tw/409998/files/7367c0a2-a87f-47ca-81eb-0a15e42067cb.jpg);
  padding: 5rem 0;
}

/* 文字新做法*/
#main-wrap .container {
     font-size: clamp(1.0rem, 1.5vw, 1.2rem);
  line-height:30px;
  color: #2d2d2d;
}
#footer {
   font-size: 12px;
}

body {
    background-color: var(--background);/*背景底色*/
    font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;/*套用google font字型Noto Sans TC黑體*/
}

/*footer*/
#footer {
    color: #fff;
    background-color: var(--main_bg);
}
#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 0px solid #444;
  display: flex;
  justify-content: center;
  
}

.contact-row h5 { color: #fff;}

#footer a { color: #fff; }
#footer a:hover { color: #fff; }
#foot-nav ul li.current a { color: #000; }
#foot-nav ul li a {
    display: block;
    color: var(--main_bg);
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    background-color: #fff;
   border-radius: 5px;
}

#foot-nav ul li a:hover { background-color: #000; color: #fff;}

/*首頁圖片*/
.about-visual {
    width: 100%; 
  aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(85,55,28,.2), rgba(85,55,28,.2)),
        url("https://static.iyp.tw/409998/files/96cc34ee-0d2a-4c45-bce0-60b44486c587.jpg") center / cover no-repeat;
}

.about-badge {
    position: absolute;
    left: 50px;
    bottom: 50%;
    padding: 18px 22px;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
   text-shadow: 1px 1px 3px #000;
}


/* ======================
   首頁商品區
====================== */
.pine-products{
  background:#fffdf8;
}

.pine-product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.pine-product-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 28px rgba(67,48,22,.08);
  transition:.3s;
}

.pine-product-card:hover{
  transform:translateY(-6px);
}

.pine-product-img{
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f1eadc;
}

.pine-product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.4s;
}

.pine-product-card:hover img{
  transform:scale(1.05);
}

.pine-product-info{
  padding:24px 20px 27px;
  text-align:center;
}

.pine-product-info h3{
  margin:0 0 8px;
  color:var(--text);
  font-size:20px;
}

.pine-product-info p{
  margin:0 0 15px;
  color:#897b6b;
  font-size:14px;
}

.pine-product-link{
  color:#b77c1f;
  font-size:14px;
  font-weight:600;
}


.pine-btn:hover{
  background:#40532d;
  transform:translateY(-2px);
}

.pine-btn.light{
  background:#e7ad38;
  color:#fff;
}

.pine-btn.light:hover{
  background:#ce9224;
}



/* ======================
   手機版
====================== */
@media(max-width:991px){
  .pine-product-grid{
    grid-template-columns:repeat(1,1fr);
  }
  
   .pine-process-grid{
    grid-template-columns:repeat(2,1fr);
    row-gap:40px;
  }

  }

/*3大事業體*/
.care-circles {
  display: flex;
  justify-content: center;
  gap: 24px;/*用來設定排版網格與列之間間隙（gutters）的簡寫屬性*/
  flex-wrap: wrap;
  padding: 30px 0;
}

.care-circle {
  width: 160px;
  height: 160px;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .care-circle {
    width: 130px;
    height: 130px;
    font-size: 18px;
  }
}



/* 產品頁圖片滿版*/
ul.product-list div.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*背景圖固定-適用行動裝置*/
body{
  background: url(https://static.iyp.tw/410002/files/4a68d502-dd4d-420f-83d3-a8f235d60437.jpg) no-repeat top;
  background-size:750*@fs1 1624*@fs1;
  height: 100%;
  min-height: 1268*@fs1;
  /* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
  background-attachment: fixed;
  font-size: 22*@fs1;
}
body:before{
    content: "";
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: inherit;
    background-size:750*@fs1 1624*@fs1!important;
    -webkit-background-size: 750*@fs1 1624*@fs1!important;
    -o-background-size:750*@fs1 1624*@fs1!important;
}