.phone-1{position:fixed;right:1%;top:40%;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{
--white:#ffffff; /* 背景(白) var(--white)*/
--black:#000000; /* 段落文字  var(--black)*/
--bg:#F9F6EE; /* 背景(米白) var(--bg)*/
--card:#F2EBDD; /* 卡片底(溫潤米白) var(--card)*/
--text:#9E2525; /* 主要文字(硃砂紅) var(--text)*/
--text2:#7D171C; /* h3次要文字(深朱砂紅) var(--text2)*/
--text3:#C6A15B; /* h4次要文字(燙金) var(--text3)*/
--text4:#E4C98A; /* 次要文字(淺金) 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: var(--bg);/*頁籤底圖顏色;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: center;  /* center上下置中; flex-end靠下; */
  justify-content: space-around; /* 平均分配 */

  text-align: center;
}

.topnavbar .container #logo, 
.topnavbar .container #nav { 
  width: 100%; 
}

.topnavbar .container #nav { text-align: right; }/* 讓頁籤選單文字靠右 */

/*按鈕-回首頁&搜尋*/
body[data-type="fullpage"] .navbar .container {
    padding: 0;
    margin: 0 3vw 0 auto;
}

body {
    background-color: var(--bg);/*米白-背景底色*/
    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(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(--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);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#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.4rem;
  font-weight: 700;
  color: var(--white);
}
#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);
  text-align: center;
}

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; /* 強制圖片寬度隨容器變更 */
}


body.about-us .fcol.fcol-5 {
   background-color: var(--text2);
   background-attachment: scroll; /*fixed固定背景; scroll捲動背景*/
   background-repeat: no-repeat;
   background-position: 0% 150%;
   background-image: url(https://static.iyp.tw/5569/files/2281863f-608c-484d-b5eb-e97db5a96cef.png);
  padding: 2em 0;
}

/* about */
.rh-container {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
}
/* 左側圖片區塊 */
.rh-about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.rh-about-img-box:hover img {
  transform: scale(1.05);
}
/* 右側文案區塊 */
.rh-content {
	padding: 10px 0;
}
.rh-subtitle-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.rh-subtitle {
	font-size: 1.1rem !important;
	color: var(--text) !important;
	font-weight: 700;
	letter-spacing: 2px;
}
.rh-line {
	height: 1px;
	width: 40px;
	background-color: var(--text);
}
.rh-title {
	font-size: 2.1rem;
	color: var(--text2) !important;
	font-weight: 800;
	margin: 0 0 20px 0;
	letter-spacing: 1px;
	line-height: 1.3;
}
/* 底部 4 個特點數據/ICON */
.rh-about-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 10px;
	margin-top: 35px;
	padding-top: 25px;
	border-top: 1px solid var(--text4);
}
@media (min-width: 576px) {
	.rh-about-features {
		grid-template-columns: repeat(4, 1fr);
	}
}
.rh-about-feature-item {
	text-align: center;
	position: relative;
	padding: 0 5px;
}
@media (min-width: 576px) {
	.rh-about-feature-item:not(:last-child)::after {
		content: "";
		position: absolute;
		right: 0;
		top: 15%;
		height: 70%;
		width: 1px;
		background-color: var(--text4);
	}
}
.rh-about-icon-box {
	width: 54px;
	height: 54px;
	margin: 0 auto 10px auto;
	border-radius: 50%;
	border: 2px solid var(--text3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8c1d1d;
	font-size: 1.35rem;
	background-color: #ffffff;
	box-shadow: 0 2px 8px rgba(197, 160, 89, 0.15);
}
.rh-about-feature-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--text);
	margin-bottom: 2px;
}
.rh-about-feature-title span {
	font-size: 0.85rem;
	font-weight: 700;
}
.rh-about-feature-desc {
	font-size: 0.82rem;
	color: #666666;
	margin: 0;
	font-weight: 500;
}


/* service 產品介紹 */
/* 互動式 <figure> 卡片容器 */
.rh-service-card {
  position: relative;
	margin: 0 0 1em;
	padding: 25px 20px 20px 20px;
	background-color: #ffffff;
	border: 1.5px solid var(--text3);
	/* 典雅金色細邊框 */
	border-radius: 12px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
}
/* 全卡片點擊 <a> 標籤 */
.rh-service-link {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
/* 標題與副標題區塊 <figcaption> */
.rh-service-caption {
	text-align: center;
	margin-bottom: 20px;
}
.rh-service-title {
	font-size: 1.8rem;
	color: var(--text);
	font-weight: 800;
	margin: 0 0 6px 0;
	letter-spacing: 2px;
	transition: color 0.3s ease;
}
.rh-service-desc {
	font-size: 0.98rem;
	color: #555555;
	margin: 0;
	letter-spacing: 1px;
	font-weight: 500;
}
/* 圖片容器 */
.rh-service-img-wrapper {
	position: relative;
	width: 100%;
	height: auto;
    aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background-color: var(--card);
}
.rh-service-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
/* 滑鼠懸停 Hover 動態效果 */
.rh-service-card:hover {
	transform: translateY(-6px);
	border-color: var(--text);
	box-shadow: 0 12px 30px rgba(140, 29, 29, 0.12);
}
.rh-service-card:hover .rh-service-title {
	color: var(--text3);
	/* 滑過時標題變綠/黃金質感色 */
}
.rh-service-card:hover .rh-service-img-wrapper img {
	transform: scale(1.06);
	/* 圖片微微放大 */
}
/* 底部行動按鈕提示 (CTA) */
.rh-service-cta {
	margin-top: 15px;
	text-align: center;
	font-size: 0.88rem;
	color: var(--text);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	opacity: 0.85;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.rh-service-card:hover .rh-service-cta {
	opacity: 1;
	transform: translateX(4px);
}

/* 經營理念&承諾 */
/* 區塊主標題與兩側古銅金飾線 */
.rh-philosophy-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-bottom: 20px;
	text-align: center;
}
.rh-philosophy-title-line {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 1 120px;
}
.rh-philosophy-title-line::before {
	content: "";
	height: 1px;
	background: linear-gradient(to right, transparent, var(--text3));
	flex: 1;
}
.rh-philosophy-title-line.rh-right::before {
	background: linear-gradient(to left, transparent, var(--text3));
}
.rh-philosophy-dot {
	width: 5px;
	height: 5px;
	background-color: var(--text3);
	border-radius: 50%;
}
.rh-philosophy-main-title {
	font-size: 1.8rem;
	color: var(--text);
	font-weight: 800;
	margin: 0;
	letter-spacing: 2px;
}
@media (min-width: 768px) {
	.rh-philosophy-main-title {
		font-size: 2.2rem;
	}
}
/* 三欄式內容網格 */
.rh-philosophy-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 35px;
}
@media (min-width: 768px) {
	.rh-philosophy-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}
.rh-philosophy-card {
	text-align: center;
	padding: 10px 15px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* 桌面版專屬欄位縱向細分隔線 */
@media (min-width: 768px) {
	.rh-philosophy-card:not(:last-child)::after {
		content: "";
		position: absolute;
		right: 0;
		top: 10%;
		height: 80%;
		width: 1px;
		background-color: var(--text4);
	}
}
/* 雙外圈雙層圓框 Icon 區域 */
.rh-philosophy-icon-outer {
	width: 105px;
	height: 105px;
	border-radius: 50%;
	border: 1px solid var(--text3);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
	padding: 5px;
	background-color: #ffffff;
	box-shadow: 0 4px 12px rgba(197, 160, 89, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rh-philosophy-card:hover .rh-philosophy-icon-outer {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(197, 160, 89, 0.22);
}
.rh-philosophy-icon-inner {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 1.5px dashed var(--text3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text3);
	font-size: 2.3rem;
}
/* 核心項目標題與敘述 */
.rh-philosophy-card-title {
	font-size: 1.3rem;
	color: var(--text);
	font-weight: 800;
	margin: 0 0 12px 0;
	letter-spacing: 1px;
}
.rh-philosophy-card-desc {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin: 0;
  line-height: 1.5 !important;
  max-width: 290px;
}


/*footer*/
#footer {
    color: #000;
    background-color: var(--bg);
}
#footer a { color: var(--text);}
#footer a:hover { color: var(--text2); }

#foot-nav ul li a {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-right: 15px;
    padding: 3px 10px;
    background-color: var(--card);;
    border-radius: 100vmax; /*弧度保持膠囊狀*/
}
#foot-nav ul li a:hover { background-color: var(--text4); color: var(--text);}
#foot-nav ul li.current a {  color: var(--text); }

#foot-nav {
  clear: both;
  padding: 2em 0 1em;
  border-bottom: 0px solid #444;
  display: flex;
  justify-content: center;
}
.contact-row h5 {
    color: #000;
}
#contact-info ul li span {
    color: #000;
}

/*按鈕-文字底色變化特效*/
.custom-btn {
    padding: 5px 25px;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}
.btn-more1 {
    border-radius: 100vmax; /*弧度保持膠囊狀*/
    border: 0px solid #000;
    color: var(--text2);
    font-size: clamp(22px, 3vw, 28px);
    background-color: var(--text4);
     font-weight: 700;
}
.btn-more1:hover{
    background-color: var(--text3); /* 當滑鼠經過時按鈕表格底色變化 */
    color: var(--text);/* 當滑鼠經過時按鈕表格文字變化 */
}
