/* 首頁地圖區圖示
================================================== */
.index_mapicon {right: 10%; margin-top: 20px; position: absolute;}
@media (max-width: 576px) {
	.index_mapicon {display: none;}
}

/* 最上層menu網站導覽
================================================== */
#sitemap-none {display: block;}
@media (max-width: 576px) {
	#sitemap-none {display: none;}
}

/* 回到頂端按鈕：電腦版預設完全隱藏 */
#backToTop {
	display: none;         /* 電腦版不顯示 */
	position: fixed;
	bottom: 20px;          /* 距離底部距離 */
	right: 20px;           /* 距離右側距離 */
	z-index: 999;          /* 確保在最上層不被蓋住 */
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;    /* 圓形按鈕 */
	background-color: #54a703;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	opacity: 0;            /* 尚未往下捲動前先透明隱藏 */
	visibility: hidden;
	transition: all 0.3s ease;
	align-items: center;
	justify-content: center;
}

/* 捲動後顯示的狀態 */
#backToTop.show {
	opacity: 1;
	visibility: visible;
}

/* 只有手機版（螢幕寬度小於等於 767px）才啟用這顆按鈕 */
@media (max-width: 767px) {
	#backToTop {
		display: flex;
	}
}

/* 按鈕
================================================== */
.btn-dark {font-size: 1.25rem;}
.btn-danger {font-size: 1.25rem;}
.btn-success {font-size: 1.25rem;}

/* 內容頁縮圖
================================================== */
.sp00 {width: 350px; max-height: 620px; height: auto; margin: 15px; border-bottom: 1px solid #54a703;}
/* .list-group-item2 { min-height: 290px;} */
@media (max-width: 768px){
  .sp00 {width: 100%; max-height: 600px; height: auto; padding: 10px; margin: 0;}
  .sp0 {position: relative; top: 0px; left: 0px; width: 100%; height: 300px; }
  .sp { width: 100%; height: 300px; overflow: hidden;}  
  .dp00 {width: 450px; margin-bottom: 20px; }
  .dp0 {position: relative; top: 0px; left: 0px; width: 450px; height: 310px; }
  .dp {position: absolute; left: 0px; top: 0px; width: 450px; height: 310px; overflow: hidden;}  
  /* .list-group-item2 {height: auto;} */
}

/* match1_detail 水平線
================================================== */
/* .hr_pc {display: block; margin: 0;}
.hr_phone {display: none;}
@media (max-width: 576px) {
	.hr_pc {display: none;}
	.hr_phone {display: block;}
} */

/* "其他供樹案件"區
================================================== */
.detailmore_btn { position: absolute; right: 10%; margin: 20px 0;}
@media (max-width: 576px) {.detailmore_btn { position: relative; left: 5%; margin: 0;}}
.detailmore_pic { width: 220px; height: 220px; float: left;}
@media (max-width: 576px) {.detailmore_pic { width: 100%; height: 320px; float: left;}}

/* 需樹內容頁
================================================== */
/* #match2_detail_tabT {font-weight: 900; font-size: 1.56rem; color: #000; padding: 20px 0;display: block;}
@media (max-width: 576px) {#match2_detail_tabT {display: none;}} */

/* 媒合資料查詢
================================================== */
.txt_padding th {width:18%;}
.txt_padding th , .txt_padding td {padding: 20px;}
@media (max-width: 576px) {.txt_padding th {width:35% !important;} .txt_padding th , .txt_padding td {padding: 10px !important;}}

/* 首頁 手機 banner區
================================================== */
#banner_button1 {display: none; }
#banner_button2 {display: block; }
@media (min-width: 1400px) {
  #banner_button1 {    display: block;  }
  #banner_button2 {    display: none;  }
}

.index_banner2026_m {margin: 0 0 0 50px; background: url('../img/C_banner1.png') no-repeat bottom; background-size: 100%; width: 100%; height: 550px;}
.index_banner2026_m #left_btn {width: 220px; float: left; left: 0px; top: 60px; position: relative;}
.index_banner2026_m #right_btn {width: 200px; float: left; left: 0px; top: 100px; position: relative;}
@media (min-width: 577px) and (max-width: 1401px) {
  	.index_banner2026_m {margin: 200px 0 0 -50px; background: url('../img/C_banner1.png') no-repeat bottom; background-size: 120%; width: 100%; height: 550px;}
	.index_banner2026_m #left_btn {width: 220px; float: left; left: 0px; top: 60px; position: relative;}
	.index_banner2026_m #right_btn {width: 200px; float: left; left: 120px; top: 90px; position: relative;}
}


/* 首頁地圖下方的tag區
================================================== */
/* 修正所有尺寸下「供樹/需樹資料」標籤並排與寬度均分 */
.nav-tabs {
  display: flex;
  flex-wrap: nowrap; /* 強制維持同一行，絕對不換行重疊 */
  width: 100%;
  padding: 0 !important; /* 移除上下內距，讓標籤緊貼下方灰色細線 */
}
.nav-tabs .nav-item {
  flex: 1; /* 讓兩個標籤自動 50% / 50% 均分整行寬度 */
  text-align: center;
}
.nav-tabs #index_tag,
.nav-tabs .nav-link-d,
.nav-tabs .nav-link-s {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem !important; /* 取消過大的左右留白，改由 flex 自動置中撐開 */
  font-size: 1.3rem;
}

#tree_line {margin-bottom: 80px; box-shadow: 0px 35px 50px rgba(27, 31, 49, 0.1); width: 49%; margin-right: 10px; padding: 20px;}
@media (min-width: 577px) and (max-width: 1401px) {
  #tree_line{ width: 49%; margin-right: 5px;}
}
@media (max-width: 468px) {
  .nav-tabs .nav-link-d, .nav-tabs .nav-link-s {    width: 48%;   }
  #tree_line{border-bottom: 2px solid #5c5c5c;margin-bottom: 10px; width: 100%; margin-right: 0px; box-shadow: 0px 35px 50px rgba(27, 31, 49, 0.0);}
}

.list_txt {float: left; margin-left: 20px; width: 50%;}
#bgpic {width: 46%; height: auto; float: left;}
@media (max-width: 1401px) {
.list_txt {float: left; margin: 0; width: 100%;}
#bgpic {width: 100%; height: auto; float: left; margin-bottom: 10px;}
}
.list_txt .unit_s {color: #fff; background-color: #54a703;border-radius:5px; padding: 10px; margin-bottom: 5px; font-size: 1.4em; width: 100%;}
.list_txt .unit_d {color: #fff; background-color: #fc643b;border-radius:5px; padding: 10px; margin-bottom: 5px; font-size: 1.4em; width: 100%;}
.list_txt .address {color: #fff; background-color: #1f1e23;border-radius:5px; padding: 10px; font-size: 1.4em;}
.list_txt .con {line-height: 30px; margin: 5px 10px; font-size: 1.4em; height: 100px;}
.list_txt .more {margin: 5px 10px; font-size: 1.4em; text-align: right; height: 40px;}
.news_year {color: #fc643b; font-size: 1.6em; font-weight: 800; text-align: center;} 

/* 
================================================== */
@media (min-width: 1400px) {
}
  .container2_index {   
	width: 100%;
	background-size: cover !important;         
	background-position: center bottom !important; 
	background-repeat: no-repeat;  
	}
@media (max-width: 468px) {
  .container2_index { background-size: 400% !important; background-position: left bottom !important; background-repeat: no-repeat !important;}
}




@media (max-width: 468px) {}
@media (min-width: 577px) and (max-width: 1401px) {}
/* 
================================================== */
