/**
 * common.css
 * Generated from the former monolithic theme stylesheet.
 */

@media (min-width: 1200px) {
	.ast-plain-container.ast-no-sidebar #primary {
		margin: 0 auto;
	}
}

/* Shared site header ---------------------------------------------------- */
#masthead {
	display: none;
}

.sy-header {
	position: relative;
	z-index: 20;
	width: 100%;
	height: 90px;
	background:
		radial-gradient(ellipse 420px 105px at 205px -44px, transparent 67%, rgba(217, 242, 249, 0.72) 68%, rgba(217, 242, 249, 0.72) 76%, transparent 77%),
		radial-gradient(ellipse 230px 170px at 100% 100%, transparent 70%, rgba(217, 242, 249, 0.72) 71%, rgba(217, 242, 249, 0.72) 78%, transparent 79%),
		#fff;
}

.sy-header__inner {
	display: flex;
	width: min(1260px, calc(100% - 48px));
	height: 100%;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.sy-header__logo,
.sy-header__logo img {
	display: block;
	width: 268px;
	height: 71px;
}

.sy-header__navigation {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 28px;
}

.sy-header__menu,
.sy-header__menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.sy-header__menu {
	display: flex;
	align-items: center;
	gap: 28px;
}

.sy-header__menu>li {
	position: relative;
}

.sy-header__menu a {
	display: block;
	padding: 33px 0;
	color: #231815;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s ease;
}

.sy-header__menu a:hover,
.sy-header__menu a:focus-visible,
.sy-header__menu .current-menu-item>a,
.sy-header__menu .current-menu-ancestor>a {
	color: #0077bd;
}

.sy-header__menu .sub-menu {
	position: absolute;
	top: calc(100% - 10px);
	left: 50%;
	z-index: 30;
	min-width: 180px;
	padding: 10px 0;
	visibility: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(35, 24, 21, 0.14);
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.sy-header__menu .sub-menu a {
	padding: 9px 18px;
	font-size: 14px;
}

.sy-header__menu li:hover>.sub-menu,
.sy-header__menu li:focus-within>.sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 0);
}

.sy-header__search {
	position: relative;
	display: block;
	width: 27px;
	height: 27px;
	flex: 0 0 27px;
	color: #111;
	z-index: 35;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.sy-header__search-toggle {
	position: relative;
	z-index: 2;
	display: grid;
	width: 27px;
	height: 27px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	place-items: center;
	box-shadow: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sy-header__search-toggle:hover {
	background-color: transparent;
	border-color: transparent;
	color: #333;
	box-shadow: none;
}

.sy-header__search-toggle svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.sy-header__search-form {
	position: absolute;
	top: 50%;
	right: 0;
	display: flex;
	width: clamp(320px, 32vw, 520px);
	height: 54px;
	align-items: center;
	visibility: hidden;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(35, 24, 21, 0.12);
	opacity: 0;
	transform: scaleX(0.72) translateY(-50%);
	transform-origin: right center;
	transition: opacity 0.25s ease, transform 0.35s ease, visibility 0.35s ease;
}

.sy-header__search.is-open .sy-header__search-form {
	visibility: visible;
	opacity: 1;
	transform: scaleX(1) translateY(-50%);
}

.sy-header__search.is-open .sy-header__search-toggle {
	visibility: hidden;
	opacity: 0;
}

.sy-header__search-form-icon {
	display: grid;
	width: 24px;
	height: 24px;
	margin-left: 20px;
	flex: 0 0 24px;
	color: #777;
	place-items: center;
}

.sy-header__search-form-icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.sy-header__search-form input {
	min-width: 0;
	height: 100%;
	padding: 0 24px 0 12px;
	flex: 1 1 auto;
	border: 0;
	outline: 0;
	background: transparent;
	color: #231815;
	font-size: 14px;
}

.sy-header__search-form input::placeholder {
	color: #a39d9a;
}

.sy-header__toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 9px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sy-header__toggle span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px 0;
	background: #231815;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.sy-hero__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 34px;
	flex: 0 0 auto;
	min-width: 238px;
	margin-top: 0;
	padding: 12px 22px 12px 30px;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 20px !important;
	line-height: 32px;
	letter-spacing: 0.08em;
	color: #231815;
	text-decoration: none;
	transition: color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.sy-hero__button::before {
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 0;
	width: 10px;
	background: #111;
	content: "";
	transition: width 0.42s cubic-bezier(0.65, 0, 0.35, 1);
}

.sy-hero__button span {
	position: relative;
	z-index: 1;
}

.sy-hero__button-arrow {
	font-size: 20px;
	line-height: 0;
	transition: transform 0.35s ease;
}

.sy-hero__button:hover,
.sy-hero__button:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
}

.sy-hero__button:hover::before,
.sy-hero__button:focus-visible::before {
	width: 100%;
}

.sy-hero__button:hover .sy-hero__button-arrow,
.sy-hero__button:focus-visible .sy-hero__button-arrow {
	transform: translateX(4px);
}

.sy-hero__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

/* Shared site CTA -------------------------------------------------------- */
.sy-site-cta {
	display: flex;
	width: 100%;
	height: 278px;
	min-height: 278px;
	align-items: center;
	background: #555 url("/wp-content/uploads/CTA.png") center / cover no-repeat;
	color: #fff;
}

.sy-site-cta__inner {
	display: flex;
	width: min(1098px, calc(100% - 96px));
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

.sy-site-cta__copy p {
	margin: 0 0 22px;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 24px;
	line-height: 32px;
	text-align: left;
	letter-spacing: 0.08em;
	color: #FFFFFF;
}

.sy-site-cta__copy h2 {
	margin: 0;
	color: #fff;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 40px;
	line-height: 48px;
	color: #FFFFFF;
}

.sy-site-cta__button {
	min-width: 239px;
	font-size: 16px;
}

/* Custom footer --------------------------------------------------------- */
.site-footer {
	display: none;
}

.sy-footer {
	width: 100%;
	color: #231815;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.sy-footer__main {
	height: 330px;
	background: #fff url("../../uploads/Footer_bg.png") center bottom / 100% 100% no-repeat;
}

.sy-footer__inner {
	display: grid;
	width: min(1276px, calc(100% - 80px));
	height: 100%;
	padding-top: 52px;
	margin: 0 auto;
	grid-template-columns: 390px minmax(0, 1fr);
	gap: 46px;
}

.sy-footer__identity {
	height: 241px;
	padding-right: 38px;
	border-right: 1px solid #cfc9c6;
}

.sy-footer__brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.sy-footer__logo,
.sy-footer__logo img {
	display: block;
	width: 240px;
	height: auto;
}

.sy-footer__social {
	display: flex;
	align-items: center;
	gap: 18px;
}

.sy-footer__social span,
.sy-footer__social a,
.sy-footer__social img {
	display: block;
	width: 31px;
	height: 31px;
}

.sy-footer__contact {
	margin-top: 34px;
	font-style: normal;
}

.sy-footer__contact p {
	display: flex;
	margin: 0 0 13px;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.035em;
	line-height: 1.35;
}

.sy-footer__contact p span,
.sy-footer__contact p>img {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	object-fit: contain;
	font-size: 17px;
}

.sy-footer__contact a {
	color: inherit;
	text-decoration: none;
}

.sy-footer__nav-group h2 a {
	color: inherit;
	text-decoration: none;
}

.sy-footer__information {
	min-width: 0;
}

.sy-footer__nav {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 12px;
}

.sy-footer__nav-group h2 {
	position: relative;
	padding: 0 0 4px;
	margin: 0 0 8px;
	border-bottom: 1px solid #d8d4d2;
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 12px;
	letter-spacing: 0.08em;
	color: #231815;
	white-space: nowrap;
}

.sy-footer__nav-group h2::after {
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: #231815;
	content: "";
	transition: width 0.3s ease;
}

.sy-footer__nav-group h2:hover::after,
.sy-footer__nav-group h2:focus-within::after {
	width: 100%;
}

.sy-footer__nav-group ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.sy-footer__nav-group li {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.3;
}

.sy-footer__nav-group a {
	color: #231815;
	text-decoration: none;
	transition: color 0.25s ease;
}

.sy-footer__nav-group li a:hover,
.sy-footer__nav-group li a:focus-visible {
	color: #231815;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sy-footer__location {
	display: grid;
	margin-top: 10px;
	grid-template-columns: 184px minmax(0, 1fr);
	gap: 18px;
}

.sy-footer__qrs {
	display: flex;
	align-items: center;
	gap: 22px;
}

.sy-footer__qrs img {
	display: block;
	width: 75px;
	height: 75px;
}

.sy-footer__map-link,
.sy-footer__map-link iframe {
	display: block;
	width: 100%;
	height: 84px;
	overflow: hidden;
	border: 0;
}

.sy-footer__copyright {
	display: flex;
	height: 54px;
	border-top: 1px solid #d8d4d2;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.sy-footer__copyright p {
	margin: 0;
	font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.35em;
	line-height: 1.4;
	text-align: center;
}

.sy-footer__copyright span {
	margin: 0 10px;
}

.sy-footer__copyright a {
	color: inherit;
	text-decoration: none;
}

.sy-footer__copyright a:hover,
.sy-footer__copyright a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 921px) {
	.sy-header {
		height: 88px;
	}

	.sy-header__inner {
		width: calc(100% - 40px);
	}

	.sy-header__logo,
	.sy-header__logo img {
		width: 220px;
		height: auto;
	}

	.sy-header__toggle {
		display: block;
	}

	.sy-header__toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.sy-header__toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.sy-header__toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.sy-header__navigation {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 18px 24px 24px;
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 12px 24px rgba(35, 24, 21, 0.12);
	}

	.sy-header__navigation.is-open {
		display: flex;
	}

	.sy-header__nav,
	.sy-header__menu {
		width: 100%;
	}

	.sy-header__menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.sy-header__menu a {
		padding: 11px 4px;
	}

	.sy-header__menu .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 18px;
		visibility: visible;
		box-shadow: none;
		opacity: 1;
		transform: none;
	}

	.sy-header__search {
		display: flex;
		width: 100%;
		height: 42px;
		align-self: stretch;
		align-items: center;
		justify-content: flex-start;
		flex: 0 0 auto;
		flex-direction: row;
		gap: 10px;
	}

	.sy-header__search-form {
		position: static;
		width: 0;
		height: 42px;
		border-radius: 999px;
		box-shadow: 0 6px 20px rgba(35, 24, 21, 0.1);
		opacity: 0;
		transform: translateX(12px);
		transform-origin: left center;
		transition: width 0.35s ease, opacity 0.25s ease, transform 0.35s ease, visibility 0.35s ease;
	}

	.sy-header__search.is-open .sy-header__search-form {
		width: 100%;
		opacity: 1;
		transform: translateX(0);
	}

	.sy-header__search-form-icon {
		margin-left: 15px;
	}

	.sy-site-cta__inner {
		width: calc(100% - 96px);
		gap: 36px;
	}

	.sy-site-cta__copy p {
		font-size: 17px;
	}

	.sy-footer__main {
		height: auto;
		min-height: 0;
		background-size: cover;
	}

	.sy-footer__inner {
		display: block;
		width: calc(100% - 96px);
		padding: 56px 0 70px;
	}

	.sy-footer__identity {
		height: auto;
		padding: 0 0 42px;
		border-right: 0;
		border-bottom: 1px solid #cfc9c6;
	}

	.sy-footer__nav {
		margin-top: 42px;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.sy-footer__location {
		margin-top: 36px;
		grid-template-columns: 184px minmax(0, 1fr);
	}

	.sy-footer__copyright {
		height: auto;
		min-height: 64px;
		padding: 18px 32px;
	}
}

@media (max-width: 544px) {
	.sy-hero__button {
		min-width: 218px;
	}

	.sy-site-cta {
		height: auto;
		min-height: 278px;
		padding: 48px 20px;
	}

	.sy-site-cta__inner {
		width: 100%;
		align-items: flex-start;
		flex-direction: column;
		gap: 32px;
	}

	.sy-site-cta__copy p {
		margin-bottom: 16px;
		font-size: 14px;
	}

	.sy-site-cta__copy h2 {
		font-size: 28px;
	}

	.sy-site-cta__button {
		align-self: center;
	}

	.sy-footer__inner {
		width: calc(100% - 40px);
		padding: 48px 0 58px;
	}

	.sy-footer__brand-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.sy-footer__logo,
	.sy-footer__logo img {
		width: min(268px, 100%);
	}

	.sy-footer__contact p {
		align-items: flex-start;
		font-size: 13px;
	}

	.sy-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sy-footer__location {
		display: block;
	}

	.sy-footer__qrs {
		margin-bottom: 28px;
	}

	.sy-footer__map-link,
	.sy-footer__map-link iframe {
		height: 170px;
	}

	.sy-footer__copyright p {
		font-size: 9px;
		letter-spacing: 0.2em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sy-header__search-form,
	.sy-header__menu a,
	.sy-header__menu .sub-menu,
	.sy-header__toggle span,

	.sy-hero__button,
	.sy-hero__button::before,
	.sy-hero__button-arrow,
	.sy-projects__main-image,
	.sy-projects__thumb,
	.sy-projects__arrow,
	.sy-media__item,
	.sy-media__item::before,
	.sy-media__item img,
	.sy-media__item span {
		transition: none;
	}

	.sy-footer__nav-group a {
		transition: none;
	}
}
