*{
	font-family: Arial, Helvetica, "微軟正黑體";
	box-sizing: border-box;
}
img, video {
	max-width: 100%;
	height: auto;
  }
  
/* google font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@100;200;300;400;500;600;700&family=Libre+Franklin:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500&family=Noto+Sans+TC:wght@100;200;300;400;500;600;700;800;900&family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap');

/* 隱藏大法 */
h1, h2, .hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


.bg {
	background-color: #2c2927;
	background-image: url(../images/bg.png);
	max-width: 100%;
	width: 100%;
	position:relative;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
}

/*-----------------------------------TOP區塊 start*/
.fb-like{
	display:none;
}

@media (min-width: 992px) {
	.fb-like{
		display: block;
		right:45px;
		top:50px;
		width:130px;
		height:20px;
	}
}

.top_layout{
	margin-bottom: 0;
	height: 60px;
	background: #fff;
	position: relative;
}


.top_logo{
	width: 90px;
	height: 40px;
	margin-top: 10px;
	margin-left: 22px;
	float: left;
	cursor: pointer;
}


.top_layout:after{
	content: '';
	display: block;
	clear: both;
}

.top_nav{
	float: right;
	font-family: 'Airal',"微軟正黑體";
}

.top_nav .option{
	font-size: 1rem;
	color: #999;
	line-height: 60px;
	float: left;
	padding: 0 10px;
}

.top_nav .option.hideinmobile{
	display: none;
}

.top_nav .option a{
	color: #999;
	text-decoration: none;
}

.top_nav .option+span{
	/* display: inline-block; */
	width: 1px;
	height: 14px;
	margin-top: 23px;
	background: #cccccc;
	float: left;
}

.top_nav .option.hideinmobile+span{
	display: none;
}

@media (min-width: 768px) {
	.top_layout{
		margin-bottom: 0;
		height: 80px;
		background: #fff;
		position: relative;
	}

	.top_logo{
		width: 112px;
		height: 50px;
		margin-top: 15px;
		margin-left: 32px;
		float: left;
		cursor: pointer;
	}

	.top_nav{
		margin-right: 24px;
	}

	.top_nav .option{
		font-size: 1.5rem;
		color: #999;
		line-height: 80px;
		float: left;
		padding: 0 20px;
	}

	.top_nav .option+span{
		width: 1px;
		height: 18px;
		margin-top: 32px;
		background: #666666;
		float: left;
	}
}

@media (min-width: 992px) {
	.top_layout{
		width: 100%;
		height: 90px;
		margin: 0 auto;
		max-width: 1280px;
	}
	.top_layout_wrap{
		width: 100%;
		background-color: #fff;
	}

	.top_logo{
		width: 134px;
		height: 60px;
		margin-top: calc((90px - 60px)/2);
	}

	.top_nav{
		position: absolute;
		right: 24px;
    	top: 10px;
	}

	.top_nav .option{
		font-size: 12px;
		line-height: 20px;
		padding: 0 10px;
	}

	.top_nav .option+span{
		height: 10px;
		margin-top: 5px;
		background: #cccccc;
	}

	.top_nav .option a:hover{
		text-decoration: underline;
		color: #333;
	}

	.top_nav .option.hideinmobile{
		display: block;
	}

	.top_nav .option.hideinmobile+span{
		display: block;
	}
}

/*--------------------------------------------------TOP區塊 end*/



/*footer區塊 start*/
.CopyRights{
	font-size: 0.8rem;
	line-height: 1.5rem;
	color: #565656;
	padding: 0 2rem;
	padding-top: 5vh;
	padding-bottom: calc(10vh + 30px);
	background-color: #fff;
	/* max-width: 1280px; */
}


@media (min-width: 768px) {
	.CopyRights{
		padding: 0 32px;
		padding-top: 5vh;
		padding-bottom: calc(10vh + 40px);
	}
}

@media (min-width: 1366px) {
	.CopyRights{
		margin: 0 auto;
		padding: 0 32px;
		padding-top: 5vh;
		padding-bottom: calc(10vh + 40px);
	}
	.CopyRights span{
		max-width: 1280px;
	}
}

/* 警語 */
.Warning{
	width:100%;
	height: auto; min-height: 10vh;
	background:#2e2e2e;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index:99999;
	padding: 10px;
	box-sizing: border-box;
}
.text-warning {
	color: #ccc;
	width: 100%;
	font-family: 'IBM Plex Sans JP', sans-serif;
	font-size: 1.5rem;
	font-weight: 300;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
.text-warning span{
	display: block;
}
@media (min-width: 768px) {
	.Warning{
		  display: flex;
		  justify-content: center;
		  align-items: center;
		  overflow: hidden;
	}
	.text-warning {
		  width: 100%;
		  color: #ccc;
		  line-height:40px;
		  font-weight: 100;
		  letter-spacing: 10px;	  
		  margin:0 auto;
	}
	.text-warning span {
		  display: inline-block;
		  white-space:nowrap;
		  margin-top: 5px;
	}

}

@media (min-width: 992px) {

	.text-warning {
		  width: 1023px;
		  color: #ccc;
		  font-size: 30px;
		  font-weight: 100;
		  letter-spacing: 10px;
		  margin:0 auto;
	}

}
/*footer區塊 end*/

/*back top btn*/

#mylist{
	display: none;
}

#mylist_mobile{
	width: 100px;
	height: 100px;
	background-color: #f3f4f5;
	border-radius: 50%;
	position: fixed;
	right: 3%;
	bottom: 12%;
	box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
	z-index: 999999;
	cursor: pointer;
}

#mylist_mobile a {
	width: 100%;
	height: 100%;
	display: block;
	background-image: url(../images/mylist_mobile.png);
	background-size: cover;
	background-repeat: no-repeat;
}

#back-top{
	display: none;
}

@media (min-width: 992px) {

#mylist_mobile{
	display: none;
}

#back-top {
	display: block;
    position: fixed;
    bottom: 100px;
    margin-left: 85%;
    z-index: 99;
}

#back-top a {
    width: 50px;
    display: block;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #97b292;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    transition: 1s;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 100%;
}

#back-top span {
    width: 50px;
    height: 50px;
    display: block;
    margin-bottom: 7px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
    border-radius: 25px;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    transition: 1s;
    background-image: url('../images/top.png');
    background-repeat: no-repeat;
    background-position: center center;
}

#back-top a:hover {
    color: #97b292;
}

#back-top a:hover span {
    background-color: #97b292;
}

#mylist {
	display: block;
    position: fixed;
    bottom: 200px;
    margin-left: 85%;
    z-index: 99;
}

#mylist a {
	width: 50px;
    height: 50px;
    display: block;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    transition: 1s;
    margin-bottom: 0;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;
    border-radius: 25px;
    background-color: #ddd;
}

#mylist span {
    width: 80%;
    margin: 10%;
	height: 50px;
    display: block;
    position: relative;
    left: -1%;
    font-family: "微軟正黑體";
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #000000;
}

#mylist a:hover {
	background-color: #ec6941;
}		
	#mylist a:hover span {
		color: #ffffff;
	}
	
}


/* EDM內容開始-------------------------- */
body {
	margin: 0;
	padding: 0;
	font-family: 'Noto Sans TC', sans-serif;
	background-color: #EFE8DE;
	line-height: 1.6;
}
.EDMbox {
	position: relative;
	width: 100%;
	max-width: 1280px;
	height: auto;
	margin: 0 auto;
	background-color:#EFE8DE;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.main-visual-wrapper {
	width: 100%;
	height: auto;
	position: relative;
}
.EDMbox_animation{
	width: 100%;
	height: 100%; /* 要有高度才能上下置中 */
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center; /* 加這一行就會上下置中 */
	z-index: 1;
}
@keyframes fadeIn {
	from {
		opacity: 0;
		visibility: hidden;
	}
	to {
		opacity: 1;
		visibility: visible;
	}
}
.EDMbox_animation_img{
	width: 90%;
	height: auto;
	display: block;
	margin: 0 auto;
	opacity: 0;
	visibility: hidden;
	animation: fadeIn 2s ease-in-out .5s both;
	will-change: opacity;
}
.preface{
	width: 90%;
	max-width: 1280px;
	height: auto;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	background-color:#383532;
	padding: 10px;
	font-size: 2rem;
	letter-spacing: 0.02rem;
	line-height: 3rem;
	text-align: justify;
	color: #bcbcbc;
}
.preface_line {
	margin: 0 auto;
	padding: 2rem;
	border:#e4bc2b 1px solid;
	font-size: 1.2rem;
	line-height: 2rem;
}
.highlight {
	color: #e4bc2b;
	font-weight: bold;
}

h3 {
	width: 90%;
	font-size: 2.5rem;
	font-weight: bold;
	line-height: 3rem;
	text-align: center;
	margin: 1.5rem auto 2rem;
	color: #5C3A21;
}

/* ---------- 橫向進度條 ---------- */
.progress-bar {
	width: 90%;
	max-width: 960px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 auto 32px;
	padding: 0 50px;
	position: relative;
}

.progress-bar::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 80px;
	right: 80px;
	height: 4px;
	background-color: #D8C3A5;
	z-index: 0;
	transform: translateY(-50%);
}

.step-circle {
	background-color: #A67C5D;
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	font-weight: bold;
	z-index: 1;
	position: relative;
}

/* ---------- 卡片區塊 ---------- */
.cards-container {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 16px;
	max-width: 1100px;
	margin: 0 auto;
}

.card {
	position: relative;
	background-color: #F5F5DC;
	flex: 0 1 calc(25% - 16px);
	box-sizing: border-box;
	border: 1px solid #A67C5D;
	border-radius: 12px;
	padding: 0.5rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease-in-out;
	overflow: visible;
	margin-bottom: 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;

}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}


/* 內容容器：行動裝置才會用 ???*/
.card-text {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.step-img{
	width: 80px;
}

.card img.step-img {
	height: 80px;
	object-fit: contain;
	margin: 10px 0;
	opacity: 0.7;
}

.card h4 {
	position: relative;
	z-index: 1;
	margin: 0.5rem 0 0.5rem 0;
	color: #5C3A21;
	font-size: 1.6rem;
	letter-spacing: 0.2rem;
	padding-left: 10px;
	padding-right: 10px;
}

.card h4::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -6px;
	transform: translateY(-50%);
	width: calc(100% + 6px);
	height: 48px;
	background: linear-gradient(to right, #F5F5DC, #E0CDB1, #F5F5DC);
	/* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); */
	z-index: -1;
	pointer-events: none;
}

.card::before {
	content: attr(data-step);
	position: absolute;
	top: -16px;
	left: -16px;
	background: #8a5f41;
	color: white;
	font-weight: bold;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.9rem;
}
.card p {
	color: #956848;

}

.arrow-icon {
	position: absolute;
	top: 50%;
	right: -20px;
	transform: translateY(-50%);
	width: 32px;
	height: auto;
	z-index: 2;
	animation: floatArrow 1.5s ease-in-out infinite alternate;
}

@keyframes floatArrow {
	0% {
		transform: translateY(-50%) translateX(0) rotate(0deg);
	}
	100% {
		transform: translateY(-60%) translateX(3px) rotate(0deg);
	}
}

.card.no-arrow .arrow-icon {
	display: none;
}

/* 洽詢按鈕 */
.inquiry-wrapper {
	width: 100%;
	height: 296px;
	padding-bottom: 32px;
	text-align: center;
	background-image: url(../images/EDM_bottom.png);
	background-size: fill;
	background-repeat: no-repeat;
}
.inquiry-wrapper p {
	font-size: 1.5rem;
	color: #5C3A21;
	margin-bottom: 32px;
}

.inquiry-button {
    margin: 0 auto;
	text-decoration: none;
	margin-top: 32px;
	border: none;
	background-color:transparent;
	cursor: pointer;
}
@keyframes float {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-10px);
	}
}
.inquiry-button img {
	width: 150px;
	height: auto;
	display: block;
	margin: 0 auto;
	transition: 0.2s ease;
	animation: float  2s ease-in-out infinite alternate;		
}


.inquiry-button img:hover {
	filter: hue-rotate(25deg) saturate(100%);
	transform: scale(1.05); /* 稍微放大 */
}


/* 行動裝置調整 */
@media (max-width: 768px) {
.cards-container {
	width: 95%;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	/* padding: 16px; */
}
.card {
	flex: 0 1 calc(80% - 16px);
	flex-direction: row;
	align-items: stretch;
	text-align: left;
	padding: 1.5rem;
	gap: 12px;
}


/* 圖片尺寸與間距調整 */
.card img:not(.arrow-icon) {
	width: 30%;
	height: auto;
	margin: 0 15px 0 0;
}


/* 文字容器寬度 */
.card-text {
	width: 70%;
	align-items: flex-start;
}

.card-text h4 {
	margin-top: 0;
	font-size: 1.6rem;
	padding-left: 0.2rem;
	padding-right: 0;
}

.card-text p {
	font-size: 1.2rem;
	margin-top: 0.5rem;
	color: #5C3A21;
}

/* 箭頭位置與動畫 */
.arrow-icon {
	position: absolute;
	bottom: -60px;
	left: 50%;
	right: auto;
	top: auto;
	transform: translateX(-50%) rotate(90deg);
	animation: floatArrowMobile 1.5s ease-in-out infinite alternate;
}

@keyframes floatArrowMobile {
	0% {
	transform: translateX(-50%) translateY(0) rotate(90deg);
	}
	100% {
	transform: translateX(-50%) translateY(4px) rotate(90deg);
	}
}
}

@media (max-width: 480px) {
.card {
	flex: 0 1 100%;
}
.card p {
	color: #956848;

}
.card-text h4 {
	font-size: 1.8rem;
}
}