@charset "utf-8";

/* 載入思源黑、明體 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&display=swap');

:root {
	--color1: #ffcef5;
	--color2: #044055;
	--color3: #e677cf;
	--color-light: #fff;
	--color-dark: #000;
}

html {
	background: url("../images/bg-color1.jpg") top center repeat;
	scroll-behavior: smooth;
}

body {
	background-color: transparent !important;
}

.container {
	padding-bottom: 1px;
	background: url("../images/side-deco.png")top center repeat-y;

}


@media screen and (max-width: 991px) {
	html {
		background-size: 20%;
	}

	.container {
		padding-bottom: 0;
		background: none;
	}
}


/* 針對架構工具調整 */
.blk_head,
.blk_body,
.blk_item {
	padding: 0;
	background-color: transparent !important;
}

@media screen and (max-width: 991px) {

	.blk_pre .tips a {
		padding: calc(var(--bs-gutter-x) * 0.2);
	}

	.blk_bas .blk_body>* {
		margin-top: 1vw;
		margin-bottom: 1vw;
	}
}


/*主視覺動畫*/
.kv-bg {
	width: 100%;
}

.kvitem {
	position: absolute;
}

.kv-tt {
	width: calc((666 / 1920)* 100%);
	top: calc((251 / 1920) * 100%);
	left: calc((626 / 1920) * 100%);
	-webkit-animation: bounce-in-bck 1.1s both;
	animation: bounce-in-bck 1.1s both;
}

@keyframes bounce-in-bck {
	0% {
		-webkit-transform: scale(7);
		transform: scale(7);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
		opacity: 0;
	}

	38% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
		opacity: 1;
	}

	55% {
		-webkit-transform: scale(1.5);
		transform: scale(1.5);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	72% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	81% {
		-webkit-transform: scale(1.24);
		transform: scale(1.24);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	89% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}

	95% {
		-webkit-transform: scale(1.04);
		transform: scale(1.04);
		-webkit-animation-timing-function: ease-in;
		animation-timing-function: ease-in;
	}

	100% {
		-webkit-transform: scale(1);
		transform: scale(1);
		-webkit-animation-timing-function: ease-out;
		animation-timing-function: ease-out;
	}
}


/* 版身動畫 */
.WRAPPER::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1;
	width: calc((50 / 1920) * 100vw);
	height: calc(100vh + (12.5 * (50 / 1920) * 100vw));
	background: url("../images/bg-scroll.png") top left repeat-y;
	background-size: 100% auto;
	animation: scroll2 5s -1s linear infinite;
	pointer-events: none;
	will-change: transform;
}

.WRAPPER::after {
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	z-index: 1;
	width: calc((50 / 1920) * 100vw);
	height: calc(100vh + (12.5 * (50 / 1920) * 100vw));
	background: url("../images/bg-scroll.png") top right repeat-y;
	background-size: 100% auto;
	animation: scroll1 5s -1s linear infinite;
	pointer-events: none;
	will-change: transform;
}

@keyframes scroll1 {
	0% {
		transform: translate3d(0, 0, 0);
	}

	100% {
		/* 位移 12.5 倍寬度 = 精確位移 1 個圖片原始週期高度 */
		transform: translate3d(0, calc(-12.5 * (50 / 1920) * 100vw), 0);
	}
}

@keyframes scroll2 {
	0% {
		transform: translate3d(0, calc(-12.5 * (50 / 1920) * 100vw), 0);
	}

	100% {
		transform: translate3d(0, 0, 0);
	}
}


/* 區塊 */
.blk_bas {
	position: relative;
	max-width: 1230px;
	margin: 60px auto 120px;
	padding: 0 0 20px;
	outline: 2px solid var(--color-dark);
	background: url("../images/bg-color2.jpg");
}

.blk_bas::after {
	display: flex;
	width: 100%;
	height: 58px;
	position: relative;
	top: 46px;
	left: 360px;
	margin: -30px auto 0;
	background: url("../images/blk-af.png")center top no-repeat;
	background-size: contain;
	pointer-events: none;
	content: '';
}

@media screen and (max-width: 991px) {
	.blk_bas {
		margin: 8vw auto 11vw;
		padding: 0 0 2vw;
		background-size: 20%;
		outline: 1px solid var(--color-dark);

	}

	.blk_bas::after {
		height: 6vw;
		top: 4vw;
		left: 26vw;
		margin: -3vw auto 0;
	}
}


/* 無區塊 */
.block_other.blk_bas {
	margin: 60px auto 0;
	padding: 0 0 50px;
	background: none;
	outline: none;
}

.block_other.blk_bas::before,
.block_other.blk_bas::after {
	display: none;
}

@media screen and (max-width: 991px) {
	.block_other.blk_bas {
		margin: 4vw auto 6vw;
		padding: 0;
	}
}


/* 文字標題 */
.btt,
.stt,
.menustyle2 ul li a,
.keywordA,
.special_5p_1 .stt-sp h3 {
	font-family: 'Noto Sans TC';
}

big {
	color: var(--color3);
}

.btt {
	width: fit-content;
	height: 184px;
	position: relative;
	margin: -96px auto 20px;
	padding: 76px 20px 0;
	text-align: center;
	background: url("../images/btt-bg.png");
	background-position: top center;
	background-repeat: repeat-x;
	background-size: contain;
	color: var(--color-light);
	font-size: 3.6rem;
	font-weight: 900;
	letter-spacing: 2px;
}

.btt::before {
	display: block;
	width: 100%;
	height: 184px;
	position: absolute;
	top: 0;
	left: 1px;
	background-image: url("../images/btt-be.png");
	background-position: right center;
	background-repeat: no-repeat;
	background-size: contain;
	-webkit-transform: translateX(-100%);
	transform: translateX(-100%);
	content: "";
}

.btt::after {
	display: block;
	width: 100%;
	height: 184px;
	position: absolute;
	top: 0;
	right: 1px;
	background-image: url("../images/btt-af.png");
	background-position: left center;
	background-repeat: no-repeat;
	background-size: contain;
	-webkit-transform: translateX(100%);
	transform: translateX(100%);
	content: "";
}

@media screen and (max-width: 991px) {
	.btt {
		width: 100%;
		height: 15vw;
		margin: -10vw auto 2vw;
		padding: 3.4vw 12vw 0 0;
		background: url("../images/btt-bgm.png")top center no-repeat;
		background-size: contain;
		font-size: 1.8rem;
		letter-spacing: 0;
	}

	.btt::before,
	.btt::after {
		display: none;
	}

	.block3 .btt {
		padding: 4vw 12vw 0 0;
		font-size: 1.6rem;
	}
}

.notice {
	/* color: #fff; */
	letter-spacing: 0.5px;
}

@media screen and (max-width: 991px) {
	.notice {
		padding: .5em 2rem;
	}
}


/*元件調整*/
.keywordA li {
	padding: 5px 20px 10px;
	border: solid 4px var(--color2);
	background: #fff;
	box-shadow: none;
	border-radius: 99em;
}

.keywordA a {
	font-size: 2.4rem;
	font-weight: 900;
	color: var(--color-dark);
}

.keywordA li:hover {
	background: var(--color1);
}

.quotes li:nth-child(odd),
.alternate ul:nth-child(odd) li:first-child {
	background: url("../images/bg-color3.jpg");
}

.quotes li:nth-child(even),
.alternate ul:nth-child(even) li:last-child {
	background: url("../images/bg-color4.jpg");
}

.quotes .font p {
	color: var(--color-light);
}

.quotes .font h4,
.alternate ul:nth-child(odd) li:first-child .font h4,
.alternate ul:nth-child(even) li:last-child .font h4 {
	color: var(--color1);
}

.alternate .font h4,
.rectangle_3p .font h4 {
	color: var(--color3);
}

.special_5p_1 {
	background: url("../images/h5psp-bg.png")top center no-repeat;
}

.special_5p_1 .stt-sp h3 {
	padding: 14px 0 0 260px;
	color: var(--color-light);
	font-weight: 900;
}

.special_5p_1 .hightlight_5p ul li h4,
.hightlight .font h4 {
	background: var(--color2);
}

.recommend_2p li {
	background: var(--color1);
}

ul.crosswise_3p_for2p {
	background: url("../images/crosswise-bg.png")top center no-repeat;
}

.go_btn a {
	font-size: 2.4rem;
	color: #fff;
	background: var(--color-dark);
}

.go_btn a:hover {
	color: var(--color3);
}

@media screen and (max-width: 991px) {

	.banner {
		padding: 0 3vw;
	}

	.keywordA li {
		padding: 3vw 4vw 2vw;
		border: solid 2px var(--color2);
	}

	.keywordA a {
		font-size: 2rem;
	}

	.quotes li:nth-child(odd),
	.alternate ul:nth-child(odd) li:first-child {
		background-size: 20%;
	}

	.quotes li:nth-child(even),
	.alternate ul:nth-child(even) li:last-child {
		background-size: 20%;
	}


	.special_5p_1 {
		background: none;
	}

	.special_5p_1 .stt-sp h3 {
		height: 12vw;
		margin: 2vw auto;
		padding: 0;
		text-align: center;
		background: url("../images/stt-bg.png") top center no-repeat;
		background-size: contain;
	}

	.special_5p_1 .hightlight_5p ul li:first-child h4 {
		color: var(--color3);
	}

	ul.crosswise_3p_for2p {
		background: none;
	}

	.go_btn a {
		font-size: 2rem;
	}
}


/* 八品加背景 */
.h8psp {
	background: url("../images/8p-bg.png")top center no-repeat;
}

.h8psp .hightlight_5p li:nth-child(3) {
	margin-left: 204px;
}

.h8psp .hightlight_5p li img {
	width: 192px;
	height: 278px;
	object-fit: contain;
	margin-bottom: 5px;
	margin: 0 auto 5px;
}

.h8psp .hightlight_5p .font h4 {
	background: var(--color2);
}

.h8psp .hightlight_5p .font {
	color: #000;
}

.h8psp .hightlight_5p li:nth-child(odd) {
	margin-top: 50px;
}

.h8psp .hightlight_5p li:nth-child(even) {
	margin-bottom: 50px;
}

.h8psp .hightlight_5p li:nth-child(1),
.h8psp .hightlight_5p li:nth-child(2),
.h8psp .hightlight_5p li:nth-child(3),
.h8psp .hightlight_5p li:nth-child(4) {
	clip-path: polygon(0 0, 100% 0, 100% 97%, 0% 100%);
	padding-bottom: 20px;
}

.h8psp .hightlight_5p2 {
	margin: -110px auto 10px;
}

.h8psp .hightlight_5p2 li:nth-child(1),
.h8psp .hightlight_5p2 li:nth-child(2),
.h8psp .hightlight_5p2 li:nth-child(3),
.h8psp .hightlight_5p2 li:nth-child(4) {
	clip-path: polygon(0 7%, 100% 3.9%, 100% 100%, 0% 100%);
	padding-top: 40px;
	padding-bottom: 10px;
}

@media screen and (max-width: 991px) {

	.h8psp {
		background: none;
		height: auto;
	}

	.h8psp .hightlight_5p2 {
		margin-top: -1vw;
	}

	.h8psp .hightlight_5p ul li:first-child {
		width: 46vw;
		margin: 1vw;
	}

	.h8psp .hightlight_5p ul li:first-child a {
		display: block;
	}

	.hightlight_5p ul li:first-child .font {
		padding: 0;
	}

	.h8psp .hightlight_5p ul li:first-child .font h4 {
		margin: 0 0 5px;
		padding: 1vw;
		color: #fff;
		background: var(--color2);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.h8psp .hightlight_5p li:nth-child(3) {
		margin: 1vw;
	}

	.h8psp .hightlight_5p li:nth-child(odd) {
		margin-top: 0;
	}

	.h8psp .hightlight_5p li:nth-child(even) {
		margin-bottom: 0;
	}

	.h8psp .hightlight_5p li:nth-child(1),
	.h8psp .hightlight_5p li:nth-child(2),
	.h8psp .hightlight_5p li:nth-child(3),
	.h8psp .hightlight_5p li:nth-child(4),
	.h8psp .hightlight_5p2 li:nth-child(1),
	.h8psp .hightlight_5p2 li:nth-child(2),
	.h8psp .hightlight_5p2 li:nth-child(3),
	.h8psp .hightlight_5p2 li:nth-child(4) {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
		margin: 1vw;
		padding: 2vw 1vw 0;
	}

	.h8psp .hightlight_5p li img {
		width: 42vw;
		height: 60vw;
	}
}


/*輪播統一設定*/
.slick-dotted.slick-slider {
	margin-bottom: 0px !important;
}

@media screen and (max-width: 991px) {
	.slider {
		margin: 2vw auto !important;
	}

	.slickbg.slick3item {
		margin-left: -1vw;
		margin-right: -1vw;
	}

	.slick-dotted.slick-slider {
		padding-bottom: 2vw !important;
	}
}


/**--  menu  --**/
.menustyle2 {
	width: 120px;
	border-radius: 99rem;
	border: 2px solid var(--color-dark);
	background: #fff;
}

.menustyle2 .nav>* {
	border-bottom: none;
}

.menustyle2 ul {
	padding: 25px 0;
}

.menustyle2 a {
	font-weight: 700;
	color: var(--color-dark);
}

.menustyle2 .nav-link.active,
.menustyle2 .nav-link:focus,
.menustyle2 .nav-link:hover {
	color: var(--color-dark);
	background: var(--color3);
}


@media screen and (max-width: 991px) {
	.menustyle2 {
		width: 100%;
		padding: 1.5vw 1vw;
		border-radius: 0;
		border: 0px solid var(--color1);
		background: var(--color-dark);
	}

	.menustyle2 .nav>* {
		border-right: none;
	}

	.menustyle2 ul {
		padding: 0;
	}

	.menustyle2 .nav-pills .nav-link {
		border-radius: 99rem;
	}

	.menustyle2 a {
		padding: 0.5rem 1rem;
		font-size: 1rem;
		color: var(--color-light);
	}

	.menustyle2 .nav-link.active,
	.menustyle2 .nav-link:focus,
	.menustyle2 .nav-link:hover {
		color: var(--color-dark);
		background: var(--color3);
	}

}


/*--  錨點微調 --*/
.target-fix {
	display: block;
	position: relative;
	top: -60px;
	height: 0;
	overflow: hidden;
}

@media screen and (max-width: 991px) {
	.target-fix {
		top: -16vw;
	}
}