
/*========================================================*/
/*-------首頁內容--------*/
/*========================================================*/









/*/////////////////////////////////////////////////////////*/
/*-------共用區塊--------*/
/*/////////////////////////////////////////////////////////*/


/*首頁內容區塊*/	
.mainContent{
	padding: 50px 0px;
	padding-bottom: 0;
}



	/*----- 首頁標題1 -----*/
	.index_title {
		font-size: 30px;
		font-weight: bold;
		color: #777;
		line-height: 1.3;
		text-align: center;
		margin-bottom: 20px;
	}	
		.index_title strong{	
			font-size: inherit;
			line-height: initial;
			padding: 0;
			margin: 0;
			display: inline-block;
			font-weight: inherit;
		}	
	





	
@media (max-width: 990px){
	
	.mainContent{	
		padding: 25px 0px;	
	}	



		/*----- 首頁標題1 -----*/
		.index_title{
			font-size: 25px;
			line-height: 1.2;
		}
		

}


/*/////////////////////////////////////////////////////////*/
/*------- Banner --------*/
/*/////////////////////////////////////////////////////////*/

.banner_center{
	/* 使用 SVG 圖檔作為遮罩 */
	-webkit-mask-image: url('../index/images/mask.svg');
	mask-image: url('../index/images/mask.svg');
	
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.banner::before{
	content: '';
	position: absolute;
	bottom: 0;
    left: 0;
    transform: translateX(50%) translateY(0);
	width: 100%;
	max-width: clamp(6.25rem, -0.417rem + 10.76vw, 12.5rem);
	height: auto;
	aspect-ratio: 1.28 / 1;
	background-image: url(../index/images/swiper_before.webp);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none; /* 避免裝飾物阻擋點擊 */
	z-index: 5;
}
.banner::after{
	content: '';
	position: absolute;
	bottom: 0;
    right: 0;
    transform: translateX(-40%) translateY(0);
	width: 100%;
	max-width: clamp(6.25rem, -0.417rem + 10.76vw, 12.5rem);
	height: auto;
	aspect-ratio: 1.28 / 1;
	background-image: url(../index/images/swiper_after.webp);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none; /* 避免裝飾物阻擋點擊 */
	z-index: 5;
}


/* 輪播圖片 */
.swiper-slide a {
    display: block;
	position: relative;
	padding-top: 40%;
}

.swiper-slide a img {
    width:100%;
	height:auto;
	transition: all 0.3s ease-out;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	float: none;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: all 0.3s ease-out;

}


@media (max-width: 990px){

	.banner_center {
		-webkit-mask-image: unset;
		mask-image: unset;
	}

	.swiper-slide a {
		display: block;
		position: relative;
		padding-top: 130%;
	}
}

@media (max-width: 900px){

	.banner::before{
		transform: translateX(5%) translateY(20%);
	}
	.banner::after{
		transform: translateX(-5%) translateY(15%);
	}
}


/*/////////////////////////////////////////////////////////*/
/*------- 中間連結區塊 --------*/
/*/////////////////////////////////////////////////////////*/

/* 外層容器：電腦版平行排列，RWD（768px以下）自動轉為上下排列 */
.index_link_area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  /* max-width: 1200px; */
  /* margin: 0 auto; */
  padding: 20px;
  box-sizing: border-box;
}

/* 個別卡片區塊 */
.after_school_care_area,
.preschool_area {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 連結本體：設定背景圖與卡片比例 */
.after_school_care_center,
.preschool_center {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 將文字定位在下方彩帶區域 */
  width: 100%;
  /* max-width: 500px; */
  aspect-ratio: 5 / 3; /* 依圖片寬高比調整，避免變形 */
  text-decoration: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.after_school_care_center:hover,
.preschool_center:hover {
  text-decoration: none;
}

/* 滑鼠懸停效果 (Hover) */
.after_school_care_center:hover,
.preschool_center:hover {
  transform: translateY(-5px);
  filter: brightness(1.03);
}

/* 背景圖片設定 (請換成您的圖片路徑) */
.after_school_care_center {
  background-image: url('../index/images/link_area_bg01.webp');
}

.preschool_center {
  background-image: url('../index/images/link_area_bg02.webp');
}

/* 文字與圖示樣式 */
.title_text {

	margin: 0;
	padding: 0;
	line-height: normal;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding-bottom: 17%; /* 微調文字在彩帶上的垂直位置 */
	color: #ffffff;
	font-weight: bold;
	/* font-size: clamp(1.125rem, 0.992rem + 0.22vw, 1.25rem); */
	font-size: clamp(1.125rem, 0.192rem + 1.51vw, 2rem);
	text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);
}

/* 右側箭頭圖示微調 */
.title_text .bi {
	font-size: 1.2em;
	transition: transform 0.3s ease;
}

/* 滑鼠懸停時箭頭稍微往右移 */
.after_school_care_center:hover .title_text .bi,
.preschool_center:hover .title_text .bi {
	transform: translateX(4px);
}

/* RWD 響應式：手機與平板直立模式轉為單欄上下排列 */

@media (max-width: 768px) {
	.title_text {
		font-size: clamp(1.25rem, 0.983rem + 0.43vw, 1.5rem);
	}

	.index_link_area {
		flex-direction: column-reverse;
		gap: 16px;
	}
}
@media (max-width: 420px) {
	.index_link_area {
		padding: 0;
	}

	.title_text {
		gap: 5px;
		font-size: clamp(1rem, 0.733rem + 0.43vw, 1.25rem);
	}
}