/*@font-face {
   font-family: 'Noto Sans TC';
   font-style: normal;
   font-weight: 400;
   src: url(../fonts/NotoSansTC-Regular.woff2) format('woff2'),
          url(../fonts/NotoSansTC-Regular.woff) format('woff'),
          url(../fonts/NotoSansTC-Regular.otf) format('opentype');
 }*/

 @font-face {
   font-family: 'GenYoGothicTW';
   font-style: normal;
   font-weight: 400;
   src: url(../fonts/GenYoGothicTW-Regular-TTF.woff2) format('woff2'),
          url(../fonts/GenYoGothicTW-Regular-TTF.woff) format('woff'),
          url(../fonts/GenYoGothicTW-Regular.ttf) format('truetype');
 }

/* body{
	font-family: 'Noto Sans TC', "Microsoft JhengHei", "Microsoft Yahei", Arial, sans-serif;
	background: #ffffff;
	margin: 0;
	padding: 0;
	color: #231815;
  letter-spacing: 0.08em; 
  overflow-x: hidden;  
}*/

 body{
  font-family: 'GenYoGothicTW', "Microsoft JhengHei", "Microsoft Yahei", Arial, sans-serif;
  background: #eeeeef;
  margin: 0;
  padding: 0;
  color: #231815;
  letter-spacing: 0.06em; /* 調整文字字母間距 */
  overflow-x: hidden;  /* 禁止橫向滾動 */
}


#myVideo {
    width: 100vw; /* 確保佔滿整個視窗寬度 */
    height: auto;
    display: block;
}




*/
a:focus, a:hover{
  text-decoration: none;
}

 #wrapper{
    display: block;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.content{
	margin: 0;
	padding: 0;
}

.link-btn img{
  max-width: 100%;
}



/*==================================================================
[ Form ]*/
/* Logo 容器 */
.logo-box {
  margin-bottom: 30px; /* Logo 與文字的距離 */
  opacity: 0;
  transform: scale(0.9); /* 稍微縮小，準備進場動畫 */
  animation: logoFadeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 圖片型 Logo 控制 */
.main-logo {
  width: auto;
  height: 80px;      /* 調整 Logo 高度 */
  max-width: 200px;  /* 限制最大寬度防止跑版 */
  object-fit: contain;
}

/* 暫時性 Logo (圓形徽章感) - 若沒圖片可用這個 */
.temp-logo-circle {
  width: 60px;
  height: 60px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  color: var(--accent-color);
  font-family: serif;
  font-size: 1.5rem;
}

/* Logo 進場動畫：淡入並緩慢放大回原位 */
@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 調整原本的文字間隔，讓整體重心更平衡 */
.brand-name {
  margin-top: 10px;
  /* 保持之前的居中設定... */
}



:root {
  /* 使用米白或極淺灰，增加柔和感 */
  --bg-color: #fcfbf9;      
  /* 品牌文字顏色，使用深碳灰而非純黑 */
  --text-color: #2d2d2d;    
  /* 麗寶/鵬程建設可用的香檳金或雅緻金 */
  --accent-color: #b08e4f;  
  /* 輔助灰色，用於進度條底色 */
  --light-gray: #e0e0e0;    
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  /* 這裡改用 Fade Out 淡出效果，白底配淡出比向上抽離更優雅 */
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

/* 1. 確保最外層容器是滿寬且置中的 */
.loader-wrapper {
  width: 100%;
  max-width: 600px; /* 這裡加大，確保 8 個中文字不會斷行 */
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* 確保所有子元素水平置中 */
  text-align: center;
}

#loader-number {
  font-family: "Montserrat", "Noto Sans TC", sans-serif; /* 建議用精緻的無襯線體 */
  font-size: 1.2rem;       /* 稍微放大一點點 */
  font-weight: 300;        /* 使用纖細體感（Light），高級感會提升 */
  letter-spacing: 0.2rem;  /* 增加一點點字距 */
  color: var(--accent-color); /* 使用金色，讓數字成為視覺焦點 */
}


/* 文字樣式修正 */
.brand-name {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  
  /* 解決跑版的關鍵組合 */
  letter-spacing: 0.6rem;    
  text-indent: 0.6rem;       /* 抵銷最後一個字的右間距，達成幾何置中 */
  white-space: nowrap;       /* 強制不換行，防止中文掉下去 */
  display: inline-block;     /* 確保 text-indent 生效 */
  width: 100%;               /* 佔滿容器寬度以利置中 */

  /* 動畫 */
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1.2s ease-out forwards;
}

.subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.4rem;
  text-indent: 0.4rem;
  color: var(--accent-color);
  margin-top: 12px;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 1.2s 0.4s ease-out forwards;
}

/* 進度條樣式：極細且精緻 */
.loading-info {
  margin-top: 50px;
  width: 280px;              /* 稍微加寬一點點比較大器 */
  margin-left: auto;         /* 靠這兩行達成置中 */
  margin-right: auto;
}

.progress-container {
  width: 100%;
  height: 1px; /* 極細線條 */
  background: var(--light-gray);
  position: relative;
}

#progress-line {
  position: absolute;
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.number-wrapper {
  margin-top: 15px;
  display: flex;
  justify-content: center; /* 改為置中 */
  align-items: center;
}

/* 動畫定義 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 載入完成後的消失類別 */
.loaded #preloader {
  opacity: 0;
  visibility: hidden;
}


/*==================================================================
[ Form ]*/

.contact100-form {
  width: 100%;
}

.contact100-form-title {
  display: block;
  font-size: 30px;
  color: #403866;
}

.contact100-form2 {
  width: 100%;
  margin-top: 0px;
}

.contact100-form2-title {
  display: block;
  font-size: 30px;
  color: #403866;
}



/*---------------------------------------------*/
button {
  outline: none !important;
  border: none;
  background: transparent;
}

button:hover {
  cursor: pointer;
}

iframe {
  border: none !important;
}


/*---------------------------------------------*/

/*------------------------------------------------*/

.container-contact100 {
  width: 100%;  
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
}

.wrap-contact100 {
  width: 65%;
  background: transparent;
}

.wrap-contact1002 {
  width: 85%;
  background: transparent;
}

.wrap-input100-gender {
    width: 100%;               /* 寬度設為父容器的 100% */
    max-width: 588px;          /* 確保與鄉政市區下拉選單一致的寬度 (根據實際需求調整此值) */
}


.wrap-input100-gender label {
    font-size: 16px; /* 文字大小 */
    margin-right: 15px; /* 與按鈕的距離 */
}

.wrap-input1002-gender {
    width: 100%;               /* 寬度設為父容器的 100% */
    max-width: 588px;          /* 確保與鄉政市區下拉選單一致的寬度 (根據實際需求調整此值) */
}


.wrap-input1002-gender label {
    font-size: 16px; /* 文字大小 */
    margin-right: 15px; /* 與按鈕的距離 */
}


/* 外層容器 */
.form-container {
    display: flex;               /* 使用 Flexbox 排列 */
    justify-content: space-between; /* 將內容推到兩側 */
    align-items: flex-start;     /* 讓選單和標籤靠齊頂部 */
    width: 100%;                /* 設定容器寬度 */
    margin: 0;                  /* 移除容器的外邊距 */
    padding: 0;                 /* 移除容器的內邊距 */
    gap: 70px;                  /* 兩個選單之間的間隔 */
    flex-wrap: wrap;              /* 當容器寬度不足時，讓元素換行 */
}

/* 外層容器 */
.form-container2 {
    align-items: flex-start;     /* 讓選單和標籤靠齊頂部 */
    width: 100%;                /* 設定容器寬度 */
    margin: 0;                  /* 移除容器的外邊距 */
    padding: 0;                 /* 移除容器的內邊距 */
    flex-wrap: wrap;              /* 當容器寬度不足時，讓元素換行 */
}

/* 單個選單區塊 */
.form-group {
    display: flex;
    flex-direction: column;      /* 讓標籤與輸入框垂直排列 */
    flex: 1;                     /* 每個區塊的寬度均分 */
    word-wrap: break-word;       /* 讓長文字自動換行 */

}



/* 選單樣式 */
.input100 {
    width: 100%;                /* 讓選單寬度佔滿區塊 */
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.BOXXX {
    display: flex;
    flex-direction: column;
    /* 1. 將寬度設為 100% 填滿容器 */
    width: 100%; 
    /* 2. 移除或加大 max-width */
    max-width: 100%; 
    /* 3. 確保 flex 不會限制寬度 */
    flex: none; 
    
    word-wrap: break-word;
    text-align: left;
    line-height: 1.6;
    overflow-wrap: break-word;
    /* 增加一點上方間距，避免跟欄位黏在一起 */
    margin-top: 20px; 
}

.BOXXX2 {
    display: flex;
    flex-direction: column;       /* 垂直排列標籤 */
    flex: 1;                      /* 讓每個區塊寬度均分 */
    word-wrap: break-word;        /* 讓文字自動換行 */
    max-width: 100%;               /* 設定最大寬度限制，保持適當的比例 */
    text-align: left;             /* 文字靠左對齊 */
    line-height: 1.6;             /* 行高，讓文字間隔稍微寬一些 */
    overflow-wrap: break-word;    /* 確保長單詞也會換行 */
}



/*------------------------------------------------------------------
[ Input ]*/

.wrap-input100 {
  width: 100%;
  margin-bottom: 16px;
  position: relative;
}

.input100 {
  position: relative;
  display: block;
  width: 100%;
  background: #fff;
  font-family: 'Noto Sans TC';
  font-size: 18px;
  color: #333;
  line-height: 1.2;
}


.link-btn{
  background-color: transparent;
  position: fixed;
  right: 10px;
  bottom: 0;
  width: 45px;
  text-align: center;
  z-index: 100;
}

.link-btn.hide{
  display: none;
}

.link-btn ul{
  padding: 20px 0;
}

.link-btn ul li{
  display: block;
}

.linkbtn{
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  width: 55px;
  height: 55px;
  background-color: transparent;
  border-radius: 3px;
  z-index: 1;
  margin:0 0 0 -10px;
}

button.linkbtn.icon1{

  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

button.linkbtn.icon2{

  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}


button.linkbtn.icon3{

  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}


/*---------------------------------------------*/

/*--------------輸入欄打的字-------------------*/
input.input100 {
  font-family: 'Noto Sans TC', serif;
  padding: 10px 0 10px 9px;
  border: 0.5px solid;
  border-color: #C9C9CA;
  color: #595757;
  /*border-radius: 5px;*/
}

textarea.input100-area {
  font-family: 'Noto Sans TC', serif;
  padding: 10px 0 160px 9px;
  border: 0.5px solid;
  border-color: #C9C9CA;
  color: #595757;
  /*border-radius: 5px;*/
  position: relative;
}

textarea.input100 {
  min-height: 120px;
  padding: 19px 35px 0 35px;

}

textarea.input100 a{
  min-height: 200px;
  padding: 19px 35px 0 35px;
}

.input100-area{
  position: relative;
  display: block;
  width: 100%;
  min-height: 15vh;
  font-size: 15px;
  line-height: 1.2;
  box-sizing: border-box;
}


  .g-recaptcha{
    z-index: 4;
    padding-top: 20px;
    width: 100%;
  }

.contact100-form-btn,.contact100-form-btn2{
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  min-width: 100%;
  height: 55px;
  background-color: transparent;
  border-radius: 31px;

  font-family: 'Noto Sans TC';
  font-size: 20px;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 1px;

  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
  position: relative;
  z-index: 1;
}

.contact100-form-btn::before,.contact100-form-btn2::before{
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #804f21;
  pointer-events: none;
/*  border: 2px solid #000000;*/
  
  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  transition: all 0.4s;
}

/*.contact100-form-btn:hover:before,.contact100-form-btn2:hover:before{
  background-color: #e9422c;
  width: calc(100% + 20px);
}

*/


/*img{
    max-width: 100%;
    height: auto;
}
*/
/*------------------------------------------------------------------
[ Button ]*/
.container-contact100-form-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}


/*------------------------------------------------------------------
[ Alert validate ]以下為電腦版圖片*/

.page01 {
    margin: 0;
    background: url(https://ar3d.idv.tw/case/shinruenn2025/img2/BG01.jpg) center center no-repeat;
    background-size: contain;       /* 根據需求改為 cover */
    width: 100%; /* 改用 100% 會自動扣除滾動條寬度 */
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.page01logo {
    position: relative; /* 或者直接移除 position 屬性 */
    width: 100%;
    margin: 0 auto;    /* 確保水平置中 */
}

.page01logo img {
    display: block;
    margin: 0 auto; /* 強制圖片在容器內水平置中 */
    max-width: 100%;
}


/*------------------------------------------------------------------
以下為電腦版動畫圖片*/



/* --- 電腦版 16:9 多層動態修正 --- */

/* 1. 容器：鎖定比例 */
.content.pp1.t1-dynamic-show.hidden-xs {
    width: 100% !important;
    height: 0 !important;
    padding-top: 56.25% !important; /* 核心修正：16:9 比例 */
    position: relative !important;
    overflow: hidden !important;
    background-color: #eeeeef; /* 預防載入前的底色 */
}

/* 2. 內容包裝層：撐滿容器 */
.t1-dynamic-show .page01logo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}


/* 3. 底圖：確保完全覆蓋 */
.t1-dynamic-show .lotus-base {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important; /* 確保圖片不變形地填滿 */
    z-index: 1 !important;
}

/* 4. 動態層（蓮花與標題）：居中對齊 */
.t1-dynamic-show .lotus-ani {
    position: absolute !important;
    height: 100% !important; /* 如果你的 PNG 是 1920x1080，這裡設 100% */
    width: auto !important;
    max-width: none !important;  /* 核心修正：防止寬度被強制壓縮到 100% */
    left: 50% !important;
    top: 0 !important; /* 因為高度已經 100%，直接貼頂即可 */
    transform: translateX(-50%);
}

/* --- 2. 標題：單獨設定縮小 --- */
.t1-dynamic-show .ppp-img-desktop {
    position: absolute !important;
    width: 43% !important;   /* 只有這裡會變小 */
    height: auto !important;
    left: 71% !important;
    
    /* 調整 top 可以改變標題的高低位置，例如 45% 會偏上一點 */
    top: 40% !important; 
    
    /* 標題通常不浮動，所以這裡可以用 !important 鎖死置中 */
    transform: translate(-50%, -50%) !important; 
    z-index: 20 !important;
}

/* 6. 蓮花各層動畫：確保 translate(-50%, -50%) 起始位置正確 */
#lotus-pp-1 { z-index: 6; animation: t1-float-1 4s ease-in-out infinite alternate; }
#lotus-pp-2 { z-index: 5; animation: t1-float-2 6s ease-in-out infinite alternate-reverse; }
#lotus-pp-3 { z-index: 4; animation: t1-float-3 5s ease-in-out infinite alternate; }
#lotus-pp-4 { z-index: 3; animation: t1-float-4 8s ease-in-out infinite alternate-reverse; }
#lotus-pp-5 { z-index: 2; animation: t1-float-5 7s ease-in-out infinite alternate; }

/* 修正 Keyframes：必須包含 -50% 的位移，否則圖片會跳走 */
@keyframes t1-float-1 { 
    from { transform: translateX(-60%); } 
    to { transform: translateX(-57%); } 
}
@keyframes t1-float-2 { 
    from { transform: translateX(-50%); } 
    to { transform: translateX(-47%); } 
}

@keyframes t1-float-3 { 
    from { transform: translateX(-50%); } 
    to { transform: translateX(-40%); } /* 向下移動 1.5% */
}

@keyframes t1-float-4 { 
    from { transform: translateX(-50%); } 
    to { transform: translateX(-50%); } /* 向下移動 2.5% */
}

@keyframes t1-float-5 { 
    from { transform: translateX(-50%); } 
    to { transform: translateX(-50%); } /* 向下移動 2.5% */
}

/*------------------------------------------------------------------
以下為電腦版動畫圖片*/





.page03 {
    margin: 0;
    background: url(https://ar3d.idv.tw/case/shinruenn2025/img2/BG01.jpg) center center no-repeat;
    background-size: contain;       /* 根據需求改為 cover */
    width: 100vw;
    height: auto;
    aspect-ratio: 1920 / 1485;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 16;
}

.page03logo {
    position: absolute;               /* 絕對定位，控制位置 */
    width: 100%;                      /* 寬度滿版 */
    height: auto;                     /* 高度自適應 */
    text-align: center;               /* 保持內容居中 */
    z-index: 1;                       /* 確保 logo 在最上層 */
}

.page03logo img {
    width: 100%;                      /* 圖片寬度滿版 */
    height: auto;                     /* 保持圖片比例 */
    object-fit: cover;                /* 如果圖片比例與容器不同，可使用 cover 填滿 */
}

.page04 {
    margin: 0;
    background: url(https://ar3d.idv.tw/case/shinruenn2025/img2/BG01.jpg) center center no-repeat;
    background-size: contain;       /* 根據需求改為 cover */
    width: 100vw;
    height: auto;
    aspect-ratio: 1920 / 1200;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 17;
}

.page04logo {
    position: absolute;               /* 絕對定位，控制位置 */
    width: 100%;                      /* 寬度滿版 */
    height: auto;                     /* 高度自適應 */
    text-align: center;               /* 保持內容居中 */
    z-index: 1;                       /* 確保 logo 在最上層 */
}

.page04logo img {
    width: 100%;                      /* 圖片寬度滿版 */
    height: auto;                     /* 保持圖片比例 */
    object-fit: cover;                /* 如果圖片比例與容器不同，可使用 cover 填滿 */
}



.page14 {
    margin: 0;           /* 取消負邊距，避免壓到上方圖片 */
    padding-top: 50px;   /* 改用內距來留白 */
    width: 100%;
    height: auto;        /* 讓高度隨內容撐開 */
    z-index: 1;
    position: relative;
}

.page14logo {
    position: absolute;              /* 絕對定位，控制居中 */
    top: 13%;                        /* 從頂部偏移 50% */
    text-align: center;
    width: 20%;                       /* 調整寬度，增大整個容器 */
    z-index: 1;                      /* 確保 S01logo 在最上層 */
}

.page14logo img {
    width: 100%;
    height: auto;
}



/*------------------------------------------------------------------
[ Alert validate ]以下為手機版圖片*/


.S01 {
    width: 100vw;
    height: auto;          /* 讓高度自動 */
    aspect-ratio: auto;    /* 移除強制的比例 */
    display: block;        /* 改回塊級元素 */
}

.S01logo {
    position: relative;    /* 改回相對定位，讓圖片能撐開容器 */
    width: 100%;
}

.S01logo img {
    width: 100%;
    height: auto;
}

/* --- 修正後的手機版 V1 動態層：確保比例與 V2/V3 一致 --- */

.title-img{
    position:absolute !important;
    left:48% !important;
    top:24% !important;
    transform:translateX(-50%) !important;
    width:75% !important;
    z-index:20;
}

.content.S01.v1-dynamic.visible-xs {
    width: 100vw !important;
    height: 0 !important;
    padding-top: 169.5% !important;   /* ← 改這裡 */
    position: relative !important;
    overflow: hidden !important;
}

.v1-dynamic .S01logo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* 修正圖片大小：確保 1456x900 的圖片按比例縮放且置中 */
.v1-dynamic .S01logo img {
    position: absolute;
    width: 138%;
    height: auto;
    left: 30%;
    top: 55%;
    transform: translate(-50%, -50%);
}

/* 底圖 (v1-1) 必須剛好鋪滿 1356x800 的容器範圍 */
.v1-dynamic .S01logo img.lotus-base {
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    z-index: 1 !important;
}

/* 蓮花層級 */
.v1-dynamic .S01logo img.lotus-ani {
    z-index: 2 !important;
}

/* 蓮花層級重新分配 */
#lotus-layer-1 { /* v1-2 */
    z-index: 4 !important; /* 最大，疊在最上面 */
    animation: v1-float-1 8s ease-in-out infinite alternate !important;
}

#lotus-layer-2 { /* v1-3 */
    z-index: 5 !important;
    animation: v1-float-2 12s ease-in-out infinite alternate-reverse !important;
}


@keyframes v1-float-1 { 
    from { transform: translate(-50%, -49%); } 
    to { transform: translate(-35%, -49%); } /* 向下移動 2% */
}

@keyframes v1-float-2 { 
    from { transform: translate(-20%, -50%); } 
    to { transform: translate(-0%, -50%); } /* 向下移動 3% */
}

/*------------------------------------------------------------------
[*/

/* 容器確保不溢出 */
.t-dynamic-show {
    width: 100% !important; /* 改為 100%，不再使用 100vw */
    position: relative !important;
    line-height: 0;
    overflow: hidden; /* 關鍵：確保底圖變大時不會撐破螢幕 */
}



/* 容器確保不溢出 */
.v-dynamic-show {
    width: 100vw !important;
    position: relative !important;
    line-height: 0;
    overflow: hidden; /* 關鍵：確保底圖變大時不會撐破螢幕 */
}

.v-dynamic-show .S01logo {
    position: relative !important;
    width: 100% !important;
}

/* 1. 底圖縮放：從 1.15 倍縮回 1 倍 */
.v-zoom-out {
    animation-name: zoomOutCustom;
    width: 100% !important;
    height: auto !important;
    display: block;
}

@keyframes zoomOutCustom {
    from { 
        transform: scale(1.2); /* 初始比例，可以從 1.15 或 1.2 開始 */
        opacity: 0;            /* 一開始透明度為 0 */
    }
    to { 
        transform: scale(1);   /* 回到原始大小 */
        opacity: 1;            /* 透明度變為 1 (100%) */
    }
}



/* 2. 文字遮色片容器 */
.mask-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; /* 調整文字寬度 */
    z-index: 10;
    line-height: 0;
}

/* 讓 v3 專用的容器繼承基礎樣式，並修改位置 */
.mask-layer-v3 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 49%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 80%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 16% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-v3 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-v4 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 49%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 75%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 55% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-v4 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-v6 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 49%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 48%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 17% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-v6 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-v7 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 49%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 55%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 60% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-v7 .overlay-img {
    width: 100%;
    height: auto;
}



.mask-layer-v9 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 49%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 65%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 16% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-v9 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-v10 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 49%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 70%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 16% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-v10 .overlay-img {
    width: 100%;
    height: auto;
}

.mask-layer-v11 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 49%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 58%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 18% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-v11 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-v12 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 49%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 61%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 21% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-v12 .overlay-img {
    width: 100%;
    height: auto;
}

.mask-layer-t2 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 80%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 20%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 43% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t2 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-t3 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 87%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 15%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 40% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t3 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-t4 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 18%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 21%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 41% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t4 .overlay-img {
    width: 100%;
    height: auto;
}



.mask-layer-t5 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 87.5%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 13%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 40% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t5 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-t6 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 87.5%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 12%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 40% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t6 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-t7 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 58%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 7%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 33% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t7 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-t8 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 80%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 20%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 40% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t8 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-t9 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 90.5%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 1.8%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 45% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t9 .overlay-img {
    width: 100%;
    height: auto;
}


.mask-layer-t10 {
    /* 複製原本 mask-layer 的基礎屬性 */
    position: absolute;
    left: 27%;
    transform: translate(-50%, -50%); /* 這裡維持 -50% 確保定位基準正確 */
    width: 18%; 
    z-index: 10;
    line-height: 0;

    /* 這裡就是您可以自由調整的高度處 */
    top: 47% !important; /* 例如改為 45% 或您要的數值，!important 確保覆蓋 */
}

/* 也要記得讓內部的圖片寬度正常 */
.mask-layer-t10 .overlay-img {
    width: 100%;
    height: auto;
}





.mask-layer .overlay-img {
    width: 100%;
    height: auto;
}

/* 3. 遮色片動畫：由上而下漸變出現 */
.v-mask-down {
    animation-name: maskDown;
    backface-visibility: hidden;
}

@keyframes maskDown {
    from {
        /* 使用 clip-path 做出從上往下的遮色片效果 */
        clip-path: inset(0 0 100% 0); /* 底部縮進 100%，表示全隱藏 */
        opacity: 0;
        transform: translate(-50%, -55%); /* 稍微帶點由下往上的位移，增加秀感 */
    }
    to {
        clip-path: inset(0 0 0 0); /* 全部顯示 */
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}



.S02 {
    margin: 0;
    border-style: dashed;
    border-top: none;
    background: url(https://ar3d.idv.tw/case/shinruenn2025/img2/SG01.jpg) center center no-repeat;
    background-size: contain;        /* 等比例顯示背景 */
    width: 100vw;                    /* 全寬 */
    height: auto;                    /* 高度根據內容調整 */
    aspect-ratio: 800 / 1000;          /* 根據圖片的實際比例 */
    position: relative;              /* 讓內部元素可以絕對定位 */
    display: flex;                   /* Flexbox 布局 */
    justify-content: center;         /* 水平居中 */
    align-items: center;             /* 垂直居中 */
}

.S02logo {
    position: absolute;              /* 絕對定位，控制居中 */
    text-align: center;
    width: 100%;                       /* 調整寬度，增大整個容器 */
    z-index: 1;                      /* 確保 S01logo 在最上層 */
}

.S02logo img {
    width: 100%;
    height: auto;
}


/* 滾動區域 */
.scrollable-content {
  display: flex;
  overflow-x: auto; /* 啟用橫向滾動 */
  scroll-behavior: smooth; /* 滑動平滑效果 */
  white-space: nowrap; /* 禁止換行 */
  width: 100%; /* 填滿容器寬度 */
  height: 77%; /* 高度為背景的2/3 */
  position: absolute; /* 絕對定位於背景區域內 */
  top: 0; /* 貼齊頂部 */
}


/* 箭頭樣式 */
.arrow {
  position: absolute;
  top: 38%; /* 垂直置中 */
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  color: white; /* 箭頭文字顏色 */
  border: none;
  padding: 8px 13px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Arial', sans-serif; /* 使用 Arial 字體 */
}


/* 左右箭頭位置 */
.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* 隱藏滾動條 */
.scrollable-content::-webkit-scrollbar {
  display: none; /* 隱藏 Webkit 滑動條 */
}



.S03 {
  margin: 0;
  border-style: dashed;
  border-top: none;
  background: url(https://ar3d.idv.tw/case/shinruenn2025/img2/v3.jpg) center center no-repeat;
  background-size: contain;        /* 等比例顯示背景 */
  width: 100vw; /* 全寬 */
  height: auto;                    /* 高度根據內容調整 */
  aspect-ratio: 59 / 100;          /* 根據圖片的實際比例 */
  position: relative; /* 讓內部元素可以絕對定位 */
  display: flex; /* Flexbox 布局 */
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  overflow: hidden; /* 隱藏超出部分 */
}


.S14 {
    margin: 0;           /* 取消原本的 -50% 負邊距 */
    padding-top: 20px;   /* 根據需要給一點上方的呼吸空間 */
    width: 100%;
    height: auto;        /* 讓高度自動撐開，不要鎖死 1000px */
    position: relative;
    z-index: 1;
}

.S14logo {
    position: absolute;              /* 絕對定位，控制居中 */
    top: 13%;                        /* 從頂部偏移 50% */
    text-align: center;
    width: 60%;                       /* 調整寬度，增大整個容器 */
    z-index: 1;                      /* 確保 S01logo 在最上層 */
}

.S14logo img {
    width: 100%;
    height: auto;
}

/* 影片容器樣式 */
.video-container {
    width: 100%;
    overflow: hidden;
    line-height: 0; /* 消除影片下方的微小間隙 */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}


.footer-info {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #666;
    padding: 30px 15px;
    line-height: 2;         /* 稍微增加行高，垂直排列時才不會太擠 */
    margin-top: 40px;
    border-top: 1px solid #eee;
}

/* 電腦版：讓 span 之間有間距 */
.footer-info span {
    display: inline-block;  /* 預設橫向排列 */
    margin: 0 10px;         /* 左右留一點間距 */
}

/* 手機版 (螢幕寬度小於 768px) */
@media (max-width: 768px) {
    .footer-info span {
        display: block;      /* 強制每個 span 單獨佔據一行 */
        margin: 5px 0;       /* 上下留一點間距，左右歸零 */
        font-size: 12px;     /* 手機版字體稍微再縮小一點點 */
    }
}

.disclaimer-text {
    font-size: 16px;           /* 縮小字體，營造精緻感 */
    color: #666;            /* 使用中灰色，減少視覺負擔 */
    font-weight: 300;          /* 設定為細體 (前提是字體庫有支援) */
    line-height: 1.6;          /* 增加行高，讓文字呼吸 */
    margin-top: 10px;          /* 與上方的勾選框保持一點距離 */
    text-align: justify;       /* 文字左右對齊，看起來更整齊 */
    letter-spacing: 0.5px;     /* 微調字距 */
    opacity: 0.85;             /* 稍微增加透明度，讓視覺更輕盈 */
}

/* 如果是手機版，字體可以微調 */
@media (max-width: 768px) {
    .disclaimer-text {
        font-size: 11px;
        line-height: 1.6;
    }
}



.map-container {
    width: 100%;
    margin-bottom: 30px; /* 與下方姓名欄位的距離 */
    border-radius: 10px;  /* 讓地圖轉角圓滑一點，看起來更精緻 */
    overflow: hidden;    /* 配合圓角使用 */
    line-height: 0;      /* 消除 iframe 下方可能的微小縫隙 */
}

.map-container iframe {
    width: 100% !important; /* 強制寬度 100% */
    display: block;
}

/* 手機版微調 */
@media (max-width: 768px) {
    .map-container {
        height: 250px;    /* 手機版可以稍微矮一點 */
        margin-bottom: 20px;
    }
    .map-container iframe {
        height: 250px;
    }
}

/*------------------------------------------------------------------
[ Alert validate ]*/



/*-----------------------------------------------------------------*/

.validate-input {
  position: relative;
}

.alert-validate::before {
  content: attr(data-validate);
  position: absolute;
  z-index: 1000;
  max-width: 100%;
  background-color: #fff;
  border: 1px solid #c80000;
  border-radius: 14px;
  padding: 4px 25px 4px 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 10px;
  pointer-events: none;

  font-family: 'Noto Sans TC';
  color: #c80000;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;

/*  visibility: hidden;
  opacity: 0;*/

  -webkit-transition: opacity 0.4s;
  -o-transition: opacity 0.4s;
  -moz-transition: opacity 0.4s;
  transition: opacity 0.4s;
}

.alert-validate::after {
  content: "\f06a";
  font-family: FontAwesome;
  display: block;
  position: absolute;
  z-index: 1100;
  color: #c80000;
  font-size: 16px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 16px;
}

.alert-validate:hover:before {
  visibility: visible;
  opacity: 1;
}

/*-----------------------------------------------------/*
/* 地圖容器質感升級 */
.map-container {
    width: 100%;
    margin-bottom: 40px; 
    border-radius: 15px;      /* 圓角加大更親和 */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* 極輕微的陰影 */
    border: 1px solid #ffffff; /* 白色邊框營造精品感 */
}

/* 輸入框質感升級 */
input.input100, textarea.input100 {
    font-family: 'GenYoGothicTW', sans-serif;
    padding: 15px 20px;       /* 加大內距，讓文字不擁擠 */
    border: 1px solid #e0e0e0; /* 顏色調淺 */
    background-color: #ffffff;
    border-radius: 8px;       /* 增加一點圓角 */
    color: #333;
    transition: all 0.3s ease; /* 增加過渡動畫 */
}

/* 輸入框聚焦時的效果 */
input.input100:focus, textarea.input100:focus {
    border-color: #138594;    /* 變成建案的主題色 */
    box-shadow: 0 0 0 3px rgba(19, 133, 148, 0.1); /* 淡淡的外光暈 */
    outline: none;
}

/* 欄位間距加大 */
.wrap-input100 {
    margin-bottom: 25px; 
}

/* 標籤字體優化 */
.wrap-input100 label, .wrap-input100-gender label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 8px;      /* 標籤與輸入框的距離 */
    letter-spacing: 1px;
}

/* 姓名性別選單排版 */
.wrap-input100-gender {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;               /* 讓先生小姐之間有固定間距 */
}

.wrap-contact100 {
    width: 65%;
    background: rgba(255, 255, 255, 0.4); /* 降低透明度，讓背景更輕盈 */
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 增加細邊框提升精緻度 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.wrap-contact1002 {
    width: 85%;
    background: rgba(255, 255, 255, 0.4); /* 降低透明度，讓背景更輕盈 */
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 增加細邊框提升精緻度 */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* 姓名性別選單容器優化 */
.wrap-input100-gender {
    display: flex;             /* 確保使用 flex 佈局 */
    align-items: center;       /* 核心：讓容器內所有元素垂直置中 */
    flex-wrap: wrap;           /* 避免手機版擠壓 */
    gap: 10px;                 /* 設定元素間的固定間距 */
    margin-bottom: 20px;
}

/* 針對單選鈕圈圈的微調 */
.wrap-input100-gender input[type="radio"] {
    margin: 0;                 /* 清除瀏覽器預設的外邊距 */
    cursor: pointer;
    width: 18px;               /* 稍微加大圈圈更好點擊 */
    height: 18px;
    vertical-align: middle;    /* 雙重保險：垂直對齊 */
}

/* 針對標籤文字的微調 */
.wrap-input100-gender label {
    margin: 0 20px 0 -5px;      /* 設定文字與圈圈、以及下一組選單的間距 */
    font-size: 16px;
    line-height: 1;            /* 讓行高不影響置中 */
    cursor: pointer;
    display: flex;
    align-items: center;       /* 確保文字內部的對齊也是置中的 */
}

/*@media (max-width: 990px) {
  .alert-validate::before {
    visibility: visible;
    opacity: 1;
  }
  .wrap-contact100{
    width: 45%;
  }
  input.input100{
    height: 40px;
  }
  .input100{
    font-size: 16px;
  }
  .contact100-form-btn,.contact100-form-btn2{
    font-size: 17px;
  }
  .map{
  	padding: 0px 20px 20px 20px;
  }
}

@media (max-width: 550px) {
  .wrap-contact100{
    width: 90%;
  }
  input.input100{
    height: 40px;
  }
  .input100{
    font-size: 16px;
  }
  .contact100-form-btn,.contact100-form-btn2{
    font-size: 16px;
  }
}*/

input[type="radio"] {
   accent-color: #000;
  }

input[type="checkbox"] {
   accent-color: #000;
  }


/*-----------------------------------------------------------*/
/* 基本樣式 */


/* 1440px 以下，頁面縮放至 75% */
@media (max-width: 1440px) {

}

/* 1024px 以下，頁面縮放至 53.33% */
@media (max-width: 1024px) {

}

/* 1024px 以下，頁面縮放至 53.33% */
/*@media (max-width: 768px) {

.contact100-form{
  width: 100%;
  display:grid;
  place-content: center;
}

  .page14{
    margin:-3% 0 0 0;
    width: 100%;
    height: 850px;
}

  .page14logo img{
    margin-top:12%;
    width: 60%;
}
*/




/*------------------------------------------------------------