:root {
	--color-background-light: #F8F9FA;
	--color-text: #333333;
	--color-primary-gold: #D4AF37;
	--color-secondary-gold: #EACD69;
	--color-dark-bg: #1A1A1A;
	--color-footer-text: #a0a0a0;
	--color-light-text-on-dark: #E0E0E0;
	--font-serif: 'Noto Serif TC', serif;
	--font-sans: 'Noto Sans TC', sans-serif;
}

html,
body {
	overflow-x: hidden;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

body {
	font-family: var(--font-sans);
	background-color: white;
	color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-serif);
	color: var(--color-text);
}

/* --- 【英雄區塊 - 統一風格版】 --- */
.hero-about {
	position: relative;
	height: 100vh;
	min-height: 700px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.hero-about .hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(10, 10, 10, 0.98) 100%),
		url('/assets/images/bn00.webp');
	background-size: cover;
	background-position: center;
	transform: scale(1.05);
	animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-about::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(2px 2px at 20% 30%, rgba(197, 160, 101, 0.3), transparent),
		radial-gradient(2px 2px at 80% 20%, rgba(197, 160, 101, 0.2), transparent),
		radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.15), transparent),
		radial-gradient(1px 1px at 60% 50%, rgba(197, 160, 101, 0.25), transparent),
		radial-gradient(2px 2px at 90% 80%, rgba(255, 255, 255, 0.1), transparent);
	background-size: 300px 300px;
	animation: sparkle 8s linear infinite;
	z-index: 1;
	pointer-events: none;
}

@keyframes sparkle {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(-300px);
	}
}

@keyframes heroZoom {
	0% {
		transform: scale(1.05);
	}

	100% {
		transform: scale(1);
	}
}

.hero-about .hero-content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	padding: 0 24px;
}

.hero-about .hero-eyebrow {
	font-size: clamp(0.85rem, 1.5vw, 1rem);
	color: #C5A065;
	letter-spacing: 0.3em;
	margin-bottom: 20px;
	font-weight: 400;
}

.hero-about .hero-content h1 {
	font-family: 'Playfair Display', 'Crimson Text', serif;
	font-size: clamp(3rem, 8vw, 6rem);
	font-weight: 400;
	color: #FFFFFF;
	margin: 0 0 10px 0;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.hero-about .hero-content h1 em {
	font-family: 'Playfair Display', 'Crimson Text', serif;
	font-style: italic;
	font-weight: 400;
	color: #C5A065;
	display: block;
	font-size: 0.85em;
	margin-top: 5px;
}

.hero-about .hero-subtitle {
	font-size: clamp(0.95rem, 1.8vw, 1.15rem);
	color: rgba(255, 255, 255, 0.8);
	max-width: 600px;
	margin: 25px auto 35px;
	line-height: 1.9;
	font-weight: 300;
}

.hero-about .hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	color: #C5A065;
	border: 1px solid #C5A065;
	padding: 14px 35px;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-about .hero-cta:hover {
	background: #C5A065;
	color: #000;
	transform: translateY(-2px);
	box-shadow: 0 15px 40px rgba(197, 160, 101, 0.3);
}

.hero-about .hero-cta span {
	transition: transform 0.3s ease;
}

.hero-about .hero-cta:hover span {
	transform: translateX(5px);
}

.hero-about .scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.hero-about .scroll-indicator span {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.hero-about .scroll-line {
	width: 1px;
	height: 60px;
	background: linear-gradient(to bottom, rgba(197, 160, 101, 0.8), transparent);
	animation: float 2s ease-in-out infinite;
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0);
		opacity: 1;
	}

	50% {
		transform: translateY(10px);
		opacity: 0.5;
	}
}

@media (max-width: 768px) {
	.hero-about {
		min-height: 100vh;
	}

	.hero-about .hero-content h1 {
		font-size: clamp(2.5rem, 12vw, 4rem);
	}

	.hero-about .hero-content h1 em {
		font-size: 0.8em;
	}

	.hero-about .hero-subtitle {
		font-size: 0.95rem;
		padding: 0 10px;
	}

	.hero-about .scroll-indicator {
		bottom: 25px;
	}

	.hero-about .scroll-line {
		height: 40px;
	}
}

/* --- 【團隊卡片樣式】 --- */
.team-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transition: all 0.4s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
}

.team-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-card img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.team-card:hover img {
	transform: scale(1.05);
}

.team-card .card-content {
	padding: 2rem;
	flex-grow: 1;
	/* 讓內容區塊自動填滿剩餘空間 */
	position: relative;
}

.team-card h3 {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.team-card .position {
	color: var(--color-primary-gold);
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 1.5rem;
}

.team-card .description {
	color: var(--color-text);
	line-height: 1.7;
	font-size: 0.95rem;
}

/* --- 【JLPT 認證徽章】 --- */
.jlpt-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: linear-gradient(135deg, #C5A065 0%, #D4AF37 100%);
	color: white;
	padding: 8px 16px;
	border-radius: 25px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	box-shadow: 0 4px 15px rgba(197, 160, 101, 0.4);
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 10;
	animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {

	0%,
	100% {
		box-shadow: 0 4px 15px rgba(197, 160, 101, 0.4);
	}

	50% {
		box-shadow: 0 4px 25px rgba(197, 160, 101, 0.7);
	}
}

.jlpt-badge i {
	font-size: 0.9rem;
}

/* --- 【金澤貴族標記】 --- */
.kanazawa-heritage {
	position: relative;
	padding-left: 35px;
	margin-top: 1rem;
}

.kanazawa-heritage::before {
	content: '✦';
	position: absolute;
	left: 0;
	top: 0;
	font-size: 1.5rem;
	color: #C5A065;
	animation: sparkleRotate 4s linear infinite;
}

@keyframes sparkleRotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.kanazawa-heritage .heritage-tag {
	display: inline-block;
	background: linear-gradient(135deg, rgba(197, 160, 101, 0.1), rgba(212, 175, 55, 0.15));
	color: #C5A065;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid rgba(197, 160, 101, 0.3);
	margin-bottom: 0.8rem;
	letter-spacing: 0.05em;
}

.kanazawa-highlight {
	background: linear-gradient(135deg, rgba(197, 160, 101, 0.08), rgba(212, 175, 55, 0.12));
	border-left: 3px solid #C5A065;
	padding: 1.2rem;
	border-radius: 8px;
	margin-top: 1rem;
}

.kanazawa-highlight strong {
	color: #C5A065;
	font-weight: 700;
}

/* --- 【服務優勢區塊】 --- */
.service-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--color-primary-gold), var(--color-secondary-gold));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem auto;
	transition: transform 0.3s ease;
}

.service-icon:hover {
	transform: scale(1.1);
}

.service-icon svg {
	width: 40px;
	height: 40px;
	color: white;
}

/* --- 【聯絡區塊】 --- */
/* 修改點 1：將背景樣式應用到整個 section */
#contact {
	background: var(--color-dark-bg);
	background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/images/bg.webp');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	color: white;
	padding: 5rem 0;
}

/* 修改點 2：移除 .contact-cta 的背景和邊框，讓它變為透明的內容容器 */
.contact-cta {
	text-align: center;
}

.contact-cta h2 {
	color: white;
	margin-bottom: 1rem;
}

.contact-cta p a {
	color: white;
}

.contact-cta .btn {
	background: linear-gradient(45deg, #34e89e, #03a5c1);
	border: none;
	color: white;
	padding: 12px 30px;
	font-weight: 600;
	border-radius: 50px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}

.contact-cta .btn:hover {
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
	background: linear-gradient(45deg, #42f9b2, #03b7d6);
}

.qr-code-icon:hover {
	color: var(--color-secondary-gold) !important;
}

/* --- 【響應式設計】 --- */
@media (max-width: 767.98px) {
	.hero-about h1 {
		font-size: 2.5rem;
	}

	.hero-about .lead {
		font-size: 1.1rem;
	}

	/* Staggered Grid Effect */
	.row>div:nth-child(even) {
		margin-top: 2rem;
	}

	.team-card {
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
		/* Softer shadow */
	}

	.team-card img {
		height: 200px;
		/* Reduced height */
	}

	.team-card .card-content {
		padding: 1rem;
	}

	.team-card h3 {
		font-size: 1.2rem;
		margin-bottom: 0.25rem;
	}

	.team-card .position {
		font-size: 0.8rem;
		margin-bottom: 0.5rem;
	}

	.team-card .description {
		font-size: 0.8rem;
		line-height: 1.5;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.jlpt-badge {
		top: 10px;
		right: 10px;
		padding: 4px 10px;
		font-size: 0.65rem;
	}

	.kanazawa-heritage {
		padding-left: 0;
		margin-top: 0.5rem;
	}

	.kanazawa-heritage::before {
		display: none;
		/* Simplify for mobile */
	}

	.kanazawa-heritage .heritage-tag {
		font-size: 0.7rem;
		padding: 4px 10px;
	}

	.kanazawa-highlight {
		padding: 0.8rem;
		margin-top: 0.5rem;
	}

	#contact {
		padding: 4rem 0;
	}

	/* --- 手機版內容區間距 --- */
	#about .container {
		padding: 3rem 1rem !important;
	}

	#about h2 {
		font-size: 1.8rem !important;
	}

	#services {
		padding: 3rem 0 !important;
	}

	#services h2 {
		font-size: 1.8rem !important;
		margin-bottom: 0.75rem !important;
	}

	#services .col-md-3 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}