img { width: 100%;vertical-align: middle; }

/** ** ** =IE input ** ** */
::-ms-clear, ::-ms-reveal {
  display: none;
}
/* ======================================= TOP回到頂端按鈕 ======================================= */
#gotop {
  position:fixed;
  display:none;
  z-index:9999;
  right:2%;
  bottom:5%;
  width:50px;
  height:50px;
  transition:all 0.5s;
  text-align: center;
}
#gotop img{
  width: 75%;
  transform: translateY(5px);
}
#gotop :hover{
  background:#10935e;
}
/** ===================================== 主框和背景 ===================================== **/
main {
	  margin: 0px auto;
	  width: 100%;
	  padding:0;
	  overflow:hidden;
}

main{
  background-color: #F1FAEE; /* 建議加上背景底色避免圖片沒載入時太白 */
}
@media (min-width:540px){   
	main {
	  margin: 50px auto;
	  box-sizing: border-box;
	  width: 100%;
	  border: solid #083323 2px;
	  border-radius:16px;
	  overflow:hidden;
	}

}
/** ===================================== 主視覺 ===================================== **/


.slogan {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #dff1f3;
}

.slogan-visual {
  width: 100%;
  max-width: 1106px;
  margin: 0 auto;
  line-height: 0;
  overflow: hidden;
}

.kv-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}


/* ============================== 桌機版 ================================= */

@media screen and (min-width: 769px) {
  .slogan-visual {
    max-width: 1106px;
  }

  .kv-img {
    width: 120%;
    margin-left: -10%;
  }
}

/* ============================== 手機版 ================================= */

@media screen and (max-width: 768px) {
  .slogan {
    width: 100%;
  }

  .slogan-visual {
    width: 100%;
    max-width: none;
    overflow: hidden;
  }

  .kv-img {
    width: 122%;
    max-width: none;
    margin-left: -9%;
  }
}


/* ==============================   小手機版 ================================= */

@media screen and (max-width: 480px) {
  .kv-img {
    width: 126%;
    margin-left: -12.5%;
  }
}
/* =========================================功能選項區 ========================================= */
#menu {
  width: 100%;
  max-width: 540px; /* 需與主視覺保持相同最大寬度 */
  margin: 0 auto;   /* 區塊置中 */
  background: #FF7B00;
  display: flex;
  justify-content: space-evenly; /* 讓按鈕平均分佈 */
  align-items: center;
  padding: 15px 0; /* 選單上下內距 */
}

#menu a {
  text-decoration: none;
  color:#ffffff;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.3rem;
  position: relative !important; 
  display: inline-block !important; 
  padding-bottom: 15px; /* 預留下方空間給倒三角形 */
}

/* 倒三角形箭頭設定 */
#menu a::after {
  content: '';
  position: absolute !important; 
  bottom: 0; 
  left: 50%; 
  transform: translateX(-50%); 
  display: block;
  width: 12px; 
  height: 8px; 
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin: 0;
}


#menu a:hover {
  opacity: 0.8;
}
.button_group{
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    margin: 1.5rem auto 2.5rem auto;
}
.button_group a{
  flex: 0 auto;
  scroll-snap-align: center;
  color: #282828;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-around;
  font-size: 16px;
}
/* 在文字下方加箭頭 */
.button_group a::after {
  content: "▼";  /* 或者 "\25BC" 是 Unicode 黑色下三角形 */
  position: absolute;
  top: 2.5em;/* 調整箭頭與文字距離 */
  font-size: 12px;
  color: #9e928b; /* 可以改成你要的顏色 */
}
.button_group a.btn_3::after{
    top: 1.8rem;
  }
@media screen and (min-width: 768px) {
  .button_group a::after {
    top: 3.3rem;
  }
}
@media (max-width: 480px) {
 .button_group a::after {
    top: 2.8rem;
  }
}
.button_group_fixed{
	background: #ffffff;
    width: 100%;
    text-align: center;
    display: flex;
    top: 0;
    position: fixed;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height:40px;
}
.button_group_fixed a{
	display:block;
	width:80px;
  cursor: pointer;
	padding:10px 0;
	color:#333;
} 
.button_group_fixed a:hover{
	border-bottom: 3px solid #007bff;
    padding-bottom: 7px;
	color:#007bff;
}
/* ================================= 版面固定上方MENU ================================= */
#menu_fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 999;
  display: none; 
}
/* 共用樣式 */
.fixed-nav {
  max-width: 540px;
  margin: 0 auto;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #F5EEEB;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.fixed-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.fixed-nav ul li {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 10px 0 10px;
}

.fixed-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  display: block;
}

.fixed-nav ul li .arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #8B7B73;
  margin: 6px auto 0;
  display: none;
}

.fixed-nav ul li.active .arrow {
  display: block;
}

/* 桌機版：最大寬度540px、置中 */
@media screen and (min-width: 768px) {
  .fixed-nav {
    display: flex;
    justify-content: center;
  }

  .fixed-nav ul {
    max-width: 540px;
    width: 100%;
  }
}

/* ========================================= 功能選項區 手機版 RWD ========================================= */
@media (max-width: 480px) {
  #menu {
    padding: 13px 0; 
  }
  
  #menu a {
    font-size: 18px;
    padding-bottom: 12px;
  }
  
  #menu a::after {
    width: 10px;
    height: 6px;
  }
}

main .main-wrap {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
main .tag-title1{
    width: 100%;
    display: block;
    position: absolute;
    top: 0px;
    /* left: 2%; */
    /* transform: translate(-50%, -50%); /* 往上拉一半高度 */
    z-index: 10; 
}
@media (min-width: 461px) {
    main .tag-title1 {
        top: 0px;
    }
}
/*---------------------------------------- 健康授權步驟 區塊 start ----------------------------------------*/
/* 外層整體區塊 */
.main-wrap-smsmall {
  width: 90%;
  max-width: 760px;
  margin: 5% auto 0 auto;
  overflow: hidden;
}
.margin-bottom-10p {
  margin-bottom: 10%;
}

.tag-content-block,
.tag-title1 {
  width: 100%;
  line-height: 0;
  position: relative;
}

.tag-title1 img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================== 下方白色內容區 ================================= */

.white-content-small {
  width: 100%;
  overflow: hidden;
  margin: 75px auto 0 auto;
}

/* 輪播外框 */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

/* 輪播軌道 */
.slider-images {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* 單張輪播 */
.slider-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  line-height: 0;
}

/* 輪播圖片 */
.slider-item img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}


/* ============================== 平板版 ================================= */
@media screen and (max-width: 1024px) {
  .main-wrap-smsmall {
    max-width: 720px;
    padding: 5% 0 0 0 ;
  }
  .white-content-small {
  width: 100%;
  overflow: hidden;
  margin: 76px auto 0 auto;
}

}

/* ============================== 手機版 ================================= */
@media screen and (max-width: 768px) {
  .main-wrap-smsmall {
    width: calc(100% - 32px);
    max-width: none;
    padding: 5% 0 0 0 ;
  }

  .slider-container {
    width: 100%;
  }
  .white-content-small {
    width: 100%;
    overflow: hidden;
    margin: 60px auto 0 auto;
}
 
}
/* ============================== FAQ 區塊 ================================= */
.white-content-small-faq {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
}
.tag-content-block,
.tag-title {
  width: 100%;
  line-height: 0;
  position: relative;
}

.tag-title img {
  display: block;
  width: 100%;
  height: auto;
}

.faq-content-block {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}
.dashed-line {
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 0;
    margin: 5px 0;
}
.ask_qa_content{
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: #30AE78;
    font-weight: 500;
    margin: 5%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    flex-direction: column;
}
/* 整個 QA 區塊 */
.ask_qa_block {
  width: 100%;
  /* max-width: 395px; */
  margin: 0 auto;
}


/* 單一 QA */
.ask_qa_item {
  width: 100%;
  overflow: hidden;
}

/* 問題列 */
.ask_qa_question {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 38px 10px 10px;
  color: #C56325;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  text-align: left;
}

/* Q 圖示 */
.ask_qa_question img {
  width: 22px;
  height: auto;
  flex-shrink: 0;
  margin-top: 3px;
}

/* 右側箭頭 */
.ask_qa_question::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 35%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #C56325;
  border-bottom: 2px solid #C56325;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}

/* 展開時箭頭向上 */
.ask_qa_item.active .ask_qa_question::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* 答案區 */
.ask_qa_answer {
  display: none;
  padding: 0 20px 0px 40px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  text-align: left;
  font-weight: 400;
}
.ask_qa_answer .font-brown{
  color: #C56325;
}
.ask_qa_answer ul {
  /* padding-left: 20px; */
  margin: 12px 0;
  list-style-type: decimal; /* 外層數字編號：1. 2. */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  font-size:16px;
  line-height: 1.3;
}

.ask_qa_answer li {
  margin-bottom: 8px;
}

/* ✅ 內層條列改成小括號數字：如 (1) (2) (3) */
.ask_qa_answer ul ul {
  list-style-type: none;
  margin-left: -20px;
}

.ask_qa_answer ul ul li {
  position: relative;
  padding-left: 1.3em;
}

.ask_qa_answer ul ul li::before {
  content: "(" counter(subitem) ")";
  counter-increment: subitem;
  position: absolute;
  left: 0;
  color: #333;
}

/* ✅ 初始化 counter */
.ask_qa_answer ul li > ul {
  counter-reset: subitem;
}
/* 連結樣式 */
.ask_qa_answer a {
  color: #30AE78;
  text-decoration: underline;
}

/* list 微調 */
.ask_qa_answer ul {
  padding-left: 20px;
  margin: 8px 0;
}

.ask_qa_answer li {
  margin-bottom: 6px;
}

/* RWD */
@media (max-width: 480px) {
  .ask_qa_question {
    font-size: 16px;
  }

  .ask_qa_answer {
    font-size: 16px;
  }
}
.ask_qa_more{
  width: 33%;
  display: block;
  margin: 5% auto;
}

/* =========================FOOTER ========================= */
.footer_section{
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.footer_content {
  position: relative;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

/* 角色圖：置中、貼近底邊 */
.footer_logo {
  position: relative;
  width: 100%;             
  display: flex;
  align-items: flex-end;           
  justify-content: center;
}

.footer_logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto -1px; }



