
@import url(../css/style_reset.css);         /* 消除瀏覽器預設樣式。 */
@import url(../css/style_components.css);    /* 首頁+內頁都需要的 UI 元件 */
@import url(../css/style_variables.css);     /* 存放全域變數（如顏色、字體大小、間距）*/




/* ========================================================= */
/* Section 0：副功能外連 .header_topBar                      */
/* ========================================================= */

.header_topBar {
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

.header_topBar_list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	background-color: var(--primary_color);
	/* font-size: clamp(0.909rem, 0.546rem + 0.59vw, 1.25rem); */
	/* font-size: clamp(0.909rem, 0.83vw, 1rem); */
	border-bottom-left-radius: clamp(0.163rem, 0.002rem + 0.26vw, 0.313rem);
	border-bottom-right-radius:clamp(0.163rem, 0.002rem + 0.26vw, 0.313rem);
	font-size: calc(1rem * 0.7);
}

.header_topBar_list li {
	display: flex;
	align-items: center;
}

.header_topBar_list li:not(:first-child)::before {
	content: '｜';
	color: rgba(255, 255, 255, 0.95);
	font-size: calc(0.75rem * 1.5);
	line-height: 1;
}

.header_topBar_list a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-size: inherit;
	padding: 0.375rem 0.75rem;
	white-space: nowrap;
	transition: var(--transition-data);
	line-height: 1.1;
}
.header_topBar_list li:first-of-type a {
	/* border-bottom-left-radius: clamp(0.909rem, 0.546rem + 0.59vw, 1.25rem); */
}
.header_topBar_list li:last-of-type a {
	/* border-bottom-right-radius: clamp(0.909rem, 0.546rem + 0.59vw, 1.25rem); */
}
.header_topBar_list a:hover {
	opacity: 0.75;
	text-decoration: none;
}



/* 在螢幕寬度大於991時，套用這裡的特定樣式 */
@media screen and (min-width: 990.1px){

	.header_topBar.pc {
		position: absolute;
		z-index: 9;
		top: 0;
	}

	.header_topBar.mobile {
		display: none;
	}
	
	.header.fixed .header_topBar.pc {
		display: none;
	}


}



@media (max-width: 990px) {

	.header_topBar {
		width: 100%;
		justify-content: flex-start;
		background-color: var(--primary_color);
	}

	.header_topBar.pc {
		position: absolute;
		right: calc(2.1875rem + 1rem);
		top: 50%;
		transform: translateY(-50%);
		width: auto;
		justify-content: unset;
		background-color: transparent;		
	}
	.header_topBar.pc li:not(.language) {
		display: none;
	}
		.header_topBar.pc .header_topBar_list{
			padding: 0;
			background-color: transparent;
		}
			.header_topBar.pc .header_topBar_list li{
				padding: 0;
			}





	.header_topBar.mobile .header_topBar_list {
		flex-wrap: wrap;
		width: 100%;
		border-radius: clamp(0.163rem, 0.002rem + 0.26vw, 0.313rem);
	}
		.header_topBar.mobile .header_topBar_list li{
			width: 50%;
		}

	.header_topBar.mobile .header_topBar_list li:not(:first-child)::before {
		display: none;
	}

	.header_topBar_list a {
		width: 100%;
        text-align: center;
		padding: 0.625rem 1.25rem;
		font-size: 0.875rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}
}


/* ========================================================= */
/* Section 1：版頭容器 .header                               */
/* ========================================================= */

.header {
	position: fixed;
	top: 0;
	z-index: 999;
	width: 100%;
	transition: var(--transition-data);
	background-color: #fff;
}

/* 滾動後陰影 */
.header.fixed {
	box-shadow: 0px 0px 20px -1px rgba(0,0,0,0.3);
	transition: var(--transition-data);
	padding: 0px;
	background-color: #fff;
}

.header > .wrap {
	position: relative;
}

@media (min-width: 990.1px) {
	.header > .wrap {
		display: flex;
		align-items: stretch;
		justify-content: space-between;
		max-width: 107.8125rem; /*1725*/
		/* width: 95%; */
	}
}




/* ========================================================= */
/* Section 2：手機 menu 按鍵 .menu_btn                       */
/* ========================================================= */

/*手機menu按鍵*/
.menu_btn {
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	height: auto;
	position:absolute;
	/* width: calc(2.8125rem * 0.8); */
	width: 2.1875rem;
	top: 50%;
	right: 0;
	cursor:pointer;
	display:none;
	z-index: 99;
	-webkit-transform: translateX(0%) translateY(-50%);
	transform: translateX(0%) translateY(-50%);
	border-radius: 100%;
	border: var(--primary_color) 2px solid;
	aspect-ratio: 1;
}

	.menu_btn span {
		position: absolute;
		top: 1.5rem;
		left: 50%;
		top: calc(50% - (0.125rem * -2));
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%) translateY(-50%);
		/* width: calc(1.625rem * 0.7); */
		width: 1.25rem;
		height: 0.125rem;
		/* background-color: var(
		--primary_color); */
		-webkit-transition: all 0.5s;
		transition: all 0.5s
	}

	.menu_btn span:after,
	.menu_btn span:before {
		content: "";
		position: absolute;
		left: 0;
		width: 100%;
		height: 0.125rem;
		background-color: var(--primary_color);
		-webkit-transition: all 0.5s;
		transition: all 0.5s;
	}
	.menu_btn span:before {
		top: -0.4375rem;
	}

	/*點擊*/
	.menu_btn.active span{
		background-color: transparent;
		/* top: 1.3125rem */
		top:1rem;

	}
	.menu_btn.active span:before {
		top: 0;
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg)
	}
	.menu_btn.active span:after {
		bottom: 0;
		-webkit-transform: rotate(-45deg);
		transform: rotate(-45deg)
	}




@media (max-width: 990px) {
	.menu_btn {
		display: block;
	}
}




/* ========================================================= */
/* Section 3：Logo                                           */
/* ========================================================= */

.logo {
	/* width: clamp(9.375rem, -1.626rem + 17.76vw, 19.688rem); */
	margin: 0;
	transition: var(--transition-data);
	box-sizing: border-box;
	animation-name: bounceIn;
	animation-duration: 1.2s;
	animation-fill-mode: both;
	visibility: visible;
	/* padding: clamp(0.625rem, -0.375rem + 1.61vw, 1.563rem) 0; */
	width:clamp(8.065rem, 13.02vw, 15.625rem);
	min-width:clamp(8.065rem, 13.02vw, 15.625rem);
	padding: 0 0;
	padding-bottom: clamp(0.806rem, 1.3vw, 1.563rem);
	display: flex;
	align-items: center;
	/* width: clamp(9.678rem, 15.62vw, 18.75rem); */
	width: clamp(11.25rem, 15.62vw, 18.75rem);
}

	.logo a {
		display: block;
		transition: var(--transition-data);
	}
		.logo h1 {
			margin: 0;
			padding: 0;
			font-size: inherit;
			font-weight: inherit;
			line-height: inherit;
		}
		.logo img {
			width: 100%;
			height: auto;
		}

		/* hover */
		.logo a:hover {
			transform: scale(0.9);
			animation: bounceIn;
		}



/* 在螢幕寬度大於990時，套用這裡的特定樣式 */
@media screen and (min-width: 990.1px) {

	.header.fixed .logo {
		/* min-width: calc(clamp(9.678rem, 15.62vw, 18.75rem) * 0.7);
		width: calc(clamp(9.678rem, 15.62vw, 18.75rem) * 0.7); */
		transition: var(--transition-data);
		padding: 0.625rem 0;
	}

	.header:not(.fixed) .logo {
		padding: 0;
		/* transform: translateY(calc((clamp(0.806rem, 1.3vw, 1.563rem)) * -1)); */
		/* transform: translateY(calc(0.625rem * -1)); */
		/* transform: translateY(calc(clamp(0.742rem, 1.2vw, 1.438rem) * -0.5)); */
		margin-bottom: calc(clamp(0.742rem, 1.2vw, 1.438rem) * 0.5);
	}

}

/* 在螢幕寬度990-1280時，套用這裡的特定樣式 */
@media screen and (min-width: 990.1px) and (max-width: 1280px) {

	.header:not(.fixed) .logo {
		transform: translateY(calc(0.9375rem * -1));
	}
	
}


@media (max-width: 990px) {
	.logo {
		transition: var(--transition-data);
		width: 9.375rem;
		padding: .625rem 0;
		float: none;
		margin: 0;
	}
}

@media (max-width: 350px) {
	.logo {
		width: 8.125rem;
	}
}



/* ========================================================= */
/* Section 4：版頭整體排版 .header_inArea                   */
/* ========================================================= */

.header_inArea {
	display: flex;
	/* align-items: center; */
	align-items: stretch;
	justify-content: space-between;
	width: 100%;
	/* position: relative; */
}






/* 在螢幕寬度大於990時，套用這裡的特定樣式 */
@media screen and (min-width: 990.1px) {

	.header:not(.fixed) .header_inArea {
		position: relative;
		/* padding-top: 2.625rem; */
		/* padding-top: 1.25rem; */
		padding-top: .9375rem;

		transition: position ease 0.1s , padding-top ease 0.1s;
		/* column-gap: 0.3125rem; */
	}
	
	.header_inArea {
		column-gap: 0.3125rem;
	}
}



/* 在螢幕寬度990-1280時，套用這裡的特定樣式 */
@media screen and (min-width: 990.1px) and (max-width: 1280px) {

	.header:not(.fixed) .header_inArea {
		padding-top: 1.875rem;
	}
	
}











/* ========================================================= */
/* Section 5：手機選單面板 .header_right_bg                 */
/* ========================================================= */

.header_right_bg {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

@media (max-width: 990px) {
	.header_right_bg {
		position: fixed;
		top: 0;
		right: -16.25rem;
		width: 16.25rem;
		height: 100%;
		background: #fff;
		/* box-shadow: -0.125rem 0 0.625rem rgba(0, 0, 0, 0.15); */
		transition: 0.3s ease right;
		overflow-y: auto;
		z-index: 50;
		flex-direction: column;
		align-items: flex-start;
		/* padding: 1rem 0; */
		padding: 0;
	}
	.header_right_bg.active {
		right: 0;
	}
}




/* ========================================================= */
/* Section 6：主導航 .navbar / .nav / .navTitle / 下拉選單  */
/* ========================================================= */

/* --- navbar 容器 --- */
.navbar_bg{

}

.navbar {
	margin: 0;
	padding: 0;
	list-style-type : none;
	/* display: block; */
	display: flex;
	align-items: center;
	/* flex-grow: 1; */
	font-size: clamp(1rem, 0.6rem + 0.65vw, 1.375rem);
	/* column-gap: calc(clamp(0.313rem, -0.554rem + 1.4vw, 1.125rem) * 2); */
	font-size: 1rem;
	/* column-gap: clamp(1.29rem, 2.08vw, 2.5rem); */
	column-gap: clamp(0.625rem, -1.375rem + 3.23vw, 2.5rem);
}

/* --- nav 項目 --- */
.nav {
	margin: 0;
	padding: 0;
	list-style-type : none;
	display: block;
	/* float: none; */
	position: relative;
	/* display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	height: 100%; */
}

/* --- navTitle（連結 + 展開箭頭）--- */
.navTitle {
	/* display: flex;
	align-items: center;
	justify-content: center;
	flex-grow: 1; 
	height: 100%;*/
}

.navTitle a {
	display: block;
	text-decoration: none;
	color: var(--dark_color);
	color: var(--dark_color_sec);
	font-size: inherit;
	padding: 0;
	white-space: nowrap;
	transition: var(--transition-data);
	line-height: 1.3;
	height: 100%;
	/* display: flex;
	align-items: center;
	justify-content: center;
	flex-grow: 1; */
}

	.navTitle a:hover {
		color: var(--primary_color);
		text-decoration: none;
	}

/* 展開箭頭按鍵 */
.arrow_down {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--dark_color);
	font-size: 0.875rem;
	padding: 0.25rem 0.375rem;
	line-height: 1;
	transition: var(--transition-data);
	min-width: 50px;
	/* height: 100%; */
}

	.arrow_down:hover {
		color: var(--primary_color);
	}

/* --- 下拉選單面板 --- */
.navOpen {	
	display: none;
}
.navOpen.pc {
	position: absolute;
	left: 50%;
	width: auto;
	min-width: 8rem;
	transform: translateX(-50%);
	z-index: 2;
	top: calc(100% - 0.125rem);
}
/* PC：hover 展開 */
.nav:hover .navOpen.pc {
	display: block;
}

.navOpenBg {
	position: relative;
}

/* 手機：JS slideDown 控制，初始隱藏 */
.navOpen.mobile {
	display: none;
	opacity: 0;
	z-index: -999999;
	transform: unset;
	padding: 0;
	position: absolute;
}

/* PC 下拉箭頭三角形 */
.navOpen.pc .navOpenBg::before {
	position: absolute;
	/* content: ''; */
	border-bottom: solid 8px rgba(0, 0, 0, 0.65);
	border-left: solid 12px transparent;
	border-right: solid 12px transparent;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
}

/* 下拉項目 */
.navOpenList a {
	text-align: center;
	font-size: inherit;
	font-size: calc(clamp(1rem, 0.6rem + 0.65vw, 1.375rem) * 0.85);
	color: #fff;
	line-height: 1.5;
	padding: 0.4375rem 0.875rem;
	background: var(--primary_color);
	display: block;
	transition: var(--transition-data);
	text-decoration: none;
	white-space: nowrap;
	font-size: 0.938rem;
}

	.navOpenList a:hover {
		background:var(--third_color);
	}









@media (min-width: 990.1px) {
	


/* --- navbar 容器 --- */

.navbar_bg{
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex-grow: 1;
	position: relative;
}



.navbar {
	display: flex;
	align-items: stretch;
	flex-grow: 1;
	flex-wrap: wrap;
}

	/* --- nav 項目 --- */
	.nav {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		flex-grow: 1;
		height: 100%;
	}

		/* --- navTitle（連結 + 展開箭頭）--- */
		.navTitle {
			display: flex;
			align-items: center;
			justify-content: center;
			flex-grow: 1;
			height: 100%;
		}

			.navTitle a {
				height: 100%;
				display: flex;
				align-items: center;
				justify-content: center;
				flex-grow: 1;
				padding-top: calc(clamp(0.742rem, 1.2vw, 1.438rem) * 1.5);
				padding-bottom: clamp(0.742rem, 1.2vw, 1.438rem);
			}

			.header.fixed .navTitle a {
				/* padding-top: calc(clamp(0.742rem, 1.2vw, 1.438rem) * 1);
				padding-bottom: clamp(0.742rem, 1.2vw, 1.438rem); */

				padding-top: 0.625rem;
				padding-bottom: 0.625rem;
			}




	/* 展開箭頭按鍵 */
	.arrow_down {
		display: none;
	}


}




@media (max-width: 990px) {

.navbar_bg {
    width: 100%;
}
	.navbar {
		flex-direction: column;
		width: 100%;
	}

	.nav {
		width: 100%;
		border-bottom: 1px solid #eee;
	}
		.navTitle {
			width: 100%;
			display: flex;
			align-items: stretch;
		}
			.navTitle a {
				padding: 0.875rem 1.25rem;
				/* font-size: 0.9375rem; */
				color: var(--dark_color);
				width: 100%;
			}

	/* PC hover 下拉在手機隱藏 */
	.nav:hover .navOpen.pc  ,
	.navOpen.pc {
		display: none !important;
	}

	/* 手機下拉：JS 控制顯示，改為 relative 排版 */
	.navOpen.mobile {
		display: none;
		opacity: 1;
		z-index: 1;
		position: relative;
		transform: unset;
		padding: 0;
	}

	.navOpenBg {
		box-shadow: none;
	}

	.navOpen.mobile .navOpenList a {
		text-align: left;
		color: var(--dark_color_sec);
		padding: 0.75rem 1.25rem 0.75rem 2rem;
		background-color: #e3e3e3;
		border-bottom: 1px solid #eee;
		transition: var(--transition-data);
		font-size: .9375rem;
	}

	.navOpen.mobile .navOpenList a:hover {
		background-color: var(--primary_color);
		color: #fff;
		opacity: 1;
	}

}





/* ========================================================= */
/* Section 7：Google Translate Widget                     */
/* ========================================================= */

.language {
	position: relative;
	padding: 0.375rem 0.75rem;
	padding: clamp(0.065rem, 0.1vw, 0.125rem) 0.75rem;
	padding-left: 0;
	display: flex;
	align-items: center;
	gap: 0.3em;
	background: none;
	border: none;
}

	.language i{
		color: #fff;
		font-weight: normal;
		font-size: 1rem;
	}

	.language .language_title{
		color: #fff;
		font-weight: normal;
		font-size: calc(1rem * 0.7);
	}

.language_btn {
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: inherit;
	padding: 0;
	
	line-height: 1.1;
	white-space: nowrap;
	transition: var(--transition-data);
}

.language_btn:hover {
	opacity: 0.75;
}




.language_btn .language_arrow {
	font-size: 0.65rem;
	transition: transform 0.25s;
}

.language_btn[aria-expanded="true"] .language_arrow {
	transform: rotate(180deg);
}



.language_btn  .skiptranslate.goog-te-gadget  > span{
	/* display: none; */
}
.language_btn  .skiptranslate.goog-te-gadget  > *:not(div){
	/* display: none; */
}

.language_btn  .VIpgJd-ZVi9od-l4eHX-hSRGPd{
	display: none;
}

.language_btn .goog-te-gadget {
    font-size: 0 !important;
}

.language_btn .goog-te-gadget .goog-te-combo {
    /* font-size: 0.875rem !important; */
	margin: 0;
	padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}


.skiptranslate{
}
body > .skiptranslate{
    max-width: 50dvw;
    width: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}





/* 在螢幕放大寬度大於990時，套用這裡的特定樣式 */
@media screen and (min-width: 990.1px){

	.language_btn .goog-te-gadget .goog-te-combo {
		/* font-size: 0.875rem !important; */
		/* max-width: 6.875rem; */
		font-size: calc(1rem * 0.7) !important;
		max-width: 5.5rem;
		padding-top:    calc(0.375rem * 0.7);
        padding-bottom: calc(0.375rem * 0.7);
	}

}

@media (max-width: 990px) {

	.language i{
		display: none;
	}

	.language .language_title{
		display: none;
	}

}

@media (max-width: 990px) {

	.language_btn .goog-te-gadget .goog-te-combo {
		max-width: 6.25rem;
		font-size: clamp(0.625rem, 1.69vw, 0.813rem) !important;
	}

}

@media (max-width: 450px) {

	.language_btn .goog-te-gadget .goog-te-combo {
		max-width: clamp(5.3125rem , 10.1vw, 6.25rem);
	}

}






























