.phone-1{position:fixed;right:1%;top:20%;z-index:1000;}
.fb{position:fixed;right:1%;top:32%;z-index:1000;}
.line-1{position:fixed;right:1%;top:44%;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:#4a3b2a; /* 主要文字(深棕) var(--text)*/
--text2:#d19a3e; /* h3次要文字(金黃) var(--text2)*/
--text3:#857766; /* h4次要文字(淺棕) var(--text3)*/
--text4:#f6ecd8; /* 次要文字(淺膚) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, var(--text) 0%, var(--text2) 100%); /* 漸層 var(--gradient)*/
}

/*logo&頁籤選單文字區塊左右靠齊*/
.topnavbar {
    background-color: #fff;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;
}

.topnavbar .container {
  padding: 0;  /* 清除內距 */
  display: flex;
  align-items: flex-end;  /* center上下置中; flex-end靠下; */
  justify-content: space-around; /* 平均分配 */
}

.topnavbar .container #logo, 
.topnavbar .container #nav { 
  width: 100%; 
}

.topnavbar .container #nav { text-align: right; }/* 讓頁籤選單文字靠右 */


body {
    background-color: #fff;/*背景底色*/
    font-family: 'Noto Sans TC', sans-serif;/*套用google font字型Noto Sans TC黑體*/
}


/*動到表格手機不會破版*/
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(15px, 2vw, 17px);
  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 { 
  font-family: 'Noto Serif TC', serif;
  font-weight:700;
  text-wrap: balance ;  /*適用標題和短文案,視覺效果更平衡*/
} 

.fcol h2 { 
  color: var(--text);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 26px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*頁籤底拉寬*/
#header .topnavbar .container {
  padding-left: 3vw;
  padding-right: 3vw;
  width: 100%;
}
#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(--text);/*頁籤滑過文字顏色*/
}
#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: 1.4em;
  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(--text);
  border-bottom: 1px solid var(--text4);
}

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; /* 強制圖片寬度隨容器變更 */
}


@media only screen and (min-width: 768px){
  #bodyinhome .fcol:nth-child(-n+6) .container {
    width: 90%;
  }
} /* 在螢幕寬度 768px 以上顯現 */

#bodyinhome .fcol:nth-child(-n+6) { padding: 2em 0; }

#bodyinhome .fcol.fcol-2::after {
    content: "";
    position: absolute;
   /* left: 0;
    bottom: 0;*/
    width: 100%;
    height: 8px;
    background: -webkit-repeating-linear-gradient(0deg, var(--text2) 0, var(--text2) 8%, rgba(64, 198, 127, .001) 0, rgba(64, 198, 127, .001) 50%);
    background: -o-repeating-linear-gradient(0deg, var(--text2) 0, var(--text2) 8%, rgba(64,198,127,.001) 0, rgba(64,198,127,.001) 50%);
    background: -moz-repeating-linear-gradient(0deg, var(--text2) 0, var(--text2) 8%, rgba(64,198,127,.001) 0, rgba(64,198,127,.001) 50%);
    background: repeating-linear-gradient(90deg, var(--text2) 0, var(--text2) 8%, rgba(64, 198, 127, .001) 0, rgba(64, 198, 127, .001) 50%);
    background-size: 8px 8px;
    background-repeat: repeat;
}

#bodyinhome .fcol.fcol-4 { background-color: var(--text4) ;}
  
.eyebrow { font-size: clamp(14px,2vw,16px); font-weight: 700; letter-spacing: 0.3em; color: var(--text2); }

/* ---------- Buttons ---------- */
.btn-1 {
  padding: 3px 20px;
  border-radius: 100vmax;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--text2); color: var(--bg); }
.btn-primary:hover { background: var(--text); }
.btn-outline { background: transparent; border-color: var(--text3); color: var(--text3); }
.btn-outline:hover { background: var(--text3); color: var(--bg); }
.btn-1 .icon { width: 20px; height: 20px; }

/*about*/
.highlight {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.highlight .ico-box {
  flex-shrink: 0; 
  width: 48px; 
  height: 48px;
  border-radius: 12px;
  background: rgba(209,154,62,.15);
  color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}
.highlight .ico-box .icon { width: 24px; height: 24px; }
.highlight h3 { font-size: 18px; font-weight: 700; color: var(--text3);}
.highlight p { margin-top: 4px; font-size: 14px; color: var(--text);line-height: 1.5; }


/* ---------- Process ---------- */
.step-grid { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: repeat(4, 1fr); }
@media only screen and (max-width: 768px){ .step-grid { grid-template-columns: 1fr; } } /* 在螢幕寬度 768px 以上顯現 */
.step-card {
  position: relative; text-align: center;
  background: var(--bg); border: 1px solid var(--text4);
  border-radius: 16px; padding: 24px; box-shadow: var(--shadow);
}
.step-num {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 2px 12px; border-radius: 999px;
  font-family: "Noto Serif TC", serif; font-size: 14px; font-weight: 900;
}
.step-card .ico-box {
  width: 64px; height: 64px; border-radius: 999px; margin: 12px auto 0;
  background: rgba(209,154,62,.15); color: var(--text2);
  display: flex; align-items: center; justify-content: center;
}
.step-card .ico-box .icon { width: 32px; height: 32px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-top: 16px; color: var(--text)}
.step-card p { margin-top: 4px; font-size: 14px; color: var(--text3); }
.process-cta { text-align: center; margin-top: 40px; }


/* ---------- LINE&撥打服務專線 ---------- */
.contact-btn {display: flex; flex-wrap: wrap; gap: 2em; margin-top: 1.5em;}

/* ---------- footer ---------- */
#footer {
    color: var(--bg);
    background-color: var(--text);
}
/*contact us*/
.contact-list { margin-top: 10px; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list .icon { width: 20px; height: 20px; color: var(--text2); flex-shrink: 0; margin-top: 2px; }
.contact-list .label { font-size: 12px; font-weight: 600; color: rgba(247,241,232,.6); }
.contact-list a, .contact-list p { font-weight: 500; }
.contact-list a:hover { color: var(--text2); }
/*注意事項與利息規範*/
.legal-box { background: rgba(247,241,232,.1); border-radius: 15px; padding: 20px; }
.legal-box h3 { font-size: 18px; font-weight: 700; }
.legal-list { list-style-type: decimal; margin: 10px auto auto 20px;display: grid; gap: 12px; }
.legal-list li { font-size: 14px; color: rgba(247,241,232,.8); }
.legal-list li::marker { font-weight: 700; color: var(--text2); }


/* === 內頁服務項目 === */
/* 基礎容器（統一字體與盒模型） */
.hg-loan-box, .hg-loan-box * { box-sizing: border-box; }
.hg-loan-box {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft JhengHei", sans-serif;
    color: #5c4e3a;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* 頂部橫幅 */
.hg-banner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
    background: linear-gradient(135deg, #fdf6e9, #f7ecd4);
    border: 1px solid #ecdcb8; border-radius: 20px; padding: 28px; margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(191,150,60,0.12);
}
.hg-banner__img {
    width: 160px; height: 160px; border-radius: 20px; background: #fff;
    box-shadow: 0 4px 12px rgba(191,150,60,0.18); object-fit: cover;
}
.hg-banner__content { flex: 1 1 240px; }
.hg-banner__badge {
    display: inline-block; background: var(--text2); color: #fff; font-size: 13px; font-weight: bold;
    padding: 4px 12px; border-radius: 99px; margin-bottom: 10px;
}
.hg-banner__title { margin: 0 0 12px !important; font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.35; }
.hg-banner__desc { margin: 0; font-size: 15px; color: #6b5c45; }

/* 區塊標題 */
.hg-title {
    display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text) !important;
    margin: 0 0 18px !important; padding-bottom: 10px; border-bottom: 2px solid #ecdcb8;
}
.hg-title::before { content: ""; width: 6px; height: 22px; background: var(--text2); border-radius: 3px; flex-shrink: 0; }

/* 網格與通用卡片 */
.hg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 36px; }
.hg-grid--last { margin-bottom: 0; }

.hg-card {
    border: 1px solid #ecdcb8; border-radius: 16px; padding: 20px;
    box-shadow: 0 4px 12px rgba(191,150,60,0.08); background: #fff;
}
.hg-card--bg { background: linear-gradient(180deg, #fdf6e9, #ffffff 60%); padding: 22px; }

/* 卡片內部元素 */
.hg-card__title { font-size: 20px; font-weight: bold; color: var(--text2); margin-bottom: 8px; }
.hg-card__desc { margin: 0; font-size: 15px; }

.hg-card__badge {
    display: inline-block; background: #7a5c1e; color: #fff; font-size: 14px; font-weight: bold;
    padding: 5px 14px; border-radius: 99px; margin-bottom: 14px;
}
.hg-card__list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.hg-card__item {
    position: relative; padding: 7px 0 7px 22px !important; font-size: 15px;
    border-bottom: 1px dashed #eadcbe; list-style-type: none !important;
}
.hg-card__item:last-child { border-bottom: none; }
.hg-card__item::before { content: "•"; position: absolute; left: 0; top: 7px; color: var(--text2); font-size: 18px; line-height: 1; }