.phone{position:fixed;right:1%;top:40%;z-index:1000;}
.line-1{position:fixed;right:1%;top:52%;z-index:1000;}
.fb{position:fixed;right:1%;top:64%;z-index:1000;}
.shopping{position:fixed;right:1%;top:76%;z-index:1000;}
/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone, .fb, .line-1, .ig, .map, .wechat, .shopping, .phone-1, .pixnet, .youtube-1, .tiktok , .thread { 
    transform: scale(0.7);
    right:0;
  }
}


/*根元素*/
:root{
--white:#ffffff; /* 白 var(--white)*/
--black:#000000; /* 段落文字  var(--black)*/
--card:#a7a7a7; /* 卡片底(淺灰) var(--card)*/
--text:#3f4f31; /* 主要文字(綠) var(--text)*/
--text2:#a7a7a7; /* h3次要文字(褐) var(--text2)*/
--text3:#c09250; /* h4次要文字(古銅金) var(--text3)*/
--text4:#2BA9B3; /* 次要文字(翡翠青) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, var(--text) 0%, var(--text3) 100%); /* 漸層 var(--gradient)*/
}

.topnavbar {
    background-color: Transparent;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;
   border-bottom: 1px solid #ddd;/*表格細線*/
}

.topnavbar .container {
  padding: 0;  /* 清除內距 */
  text-align: center;
}

iframe { border-radius: 40px;}

body {
  margin:0;
  font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;
  color:#3e352a;
  background:var(--white);
}

/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

hr {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin: 2em 0;
}

/*編輯欄設定*/
#main-wrap .container {
  font-size: clamp(16px, 2vw, 18px);
  color:  var(--black);
}/*編輯欄文字*/

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(--black);
  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 ul li a {
    white-space: normal; /*自動換行*/
    font-size: 0.9rem;/*頁籤文字大小*/
    color: #000;/*頁籤文字顏色*/
    padding: 10px 16px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--card);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--card);/*頁籤按下後文字顏色*/
    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-image: var(--gradient);
  border-radius: 10px 10px 0 0;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--white);
}
#side ul li a {
  font-size: 16px;
  color: var(--black);
  border-bottom: 1px dashed #ddd;
}
#side ul li a:hover {
  color: var(--text);
}
#side ul li.current>div a {
    color: var(--black);
}

.product-list-div h2 a {
    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: var(--text);
    font-size: 30px;
}/*產品內頁標題文字*/


/*分頁title文字*/
.h1title h1{
    color: var(--card);
    font-size: clamp(20px, 3vw, 24px);
}

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; /* 強制圖片寬度隨容器變更 */
}

#bodyinpage #banner { display:none; }

/*#bodyinhome .fcol:nth-child(-n+6) { padding: 2em 0; } 首頁-全編輯欄間距*/

#bodyinhome .fcol.fcol-3 {     
    display:flex;
    align-items:center;
    background:
    linear-gradient(
        90deg,
        rgba(0,0,0,.7),
        rgba(0,0,0,.2)
    ),
    url("https://static.iyp.tw/410001/files/8dd5c6e1-c666-4d9b-beed-83a5b9673cc4.jpg")
    center/cover no-repeat;
   padding: 2rem 0;
}


/*#bodyinhome .fcol.fcol-4 .container,

#bodyinhome .fcol.fcol-2 {  background-color: var(--text);}
*/

/*footer*/
#footer {
    color: #fff;
    background-color: var(--card);
}

#foot-nav { display:none; }


/*首頁-關於我們*/
.section-label{
    font-size:12px;
    letter-spacing:4px;
    color:#999;
    margin-bottom:15px;
    text-transform:uppercase;
}

/* =========================
首頁-產品
========================= */

.product-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

.product-card{
    position:relative;
    overflow:hidden;
    border-radius:25px;
    height:500px;
    background:#eee;
}

.product-card h3 {
  color:var(--white);
}

.product-card.large{
    grid-row:span 2;
    height:1025px;
}

.product-card img{
    width: 100%;
    height:100%;
    object-fit:cover;
    transition:transform .7s;
}

.product-card:hover img{
    transform:scale(1.05);
}

.product-overlay{
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    padding:45px 35px;
    color:var(--white); 
    background:
    linear-gradient(
        transparent,
        rgba(0,0,0,.72)
    );

}



@media(max-width:600px){
    .product-card,
    .product-card.large{
        height:400px;
    }
}


@media(max-width:900px){
    .product-grid{
        grid-template-columns:1fr;
    }

    .product-card,
    .product-card.large{
        height:500px;
        grid-row:auto;
    }
}

.product-overlay span{
    font-size:12px;
    letter-spacing:3px;
    opacity:.7;
}

.product-overlay h3{
    font-size:28px;
    margin-top:5px;
    font-weight:500;
}


.product-grid a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
}

/* =========================
首頁-每一種生活
========================= */

.life-content{
    max-width:600px;
}

.life-content span{
    letter-spacing:4px;
    font-size:12px;
    opacity:.7;
  color:var(--white);
}


/* =========================
PHILOSOPHY
========================= */


.quote{
    font-size:clamp(30px,4vw,52px);
    line-height:1.5;
    font-weight:400;
    letter-spacing:1px;
}

.quote span{
    color:#aaa;
}

.philosophy p{
    color:#888;
    max-width:600px;
    margin:35px auto 0;
}

.lifestyle{
    color:var(--white);
}

/* =========================
FEATURES
========================= */
.feature-card{
    background:#fff;
    padding:55px 40px;
    border-radius:24px;
    min-height:330px;
    transition:.4s;
  border: 1px solid #ddd;
}

.feature-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 50px rgba(0,0,0,.07);
}

.feature-card h3 {
     color: var(--black);
}

.feature-no{
    width:45px;
    height:45px;
    display:flex;
    justify-content:center;
    align-items:center;

    background:#111;
    color:white;

    border-radius:50%;
    font-size:13px;

    margin-bottom:40px;
}
