/**
 * WTE Business Card — Scroll Animation (IntersectionObserver)
 */
'use strict';
document.addEventListener('DOMContentLoaded', function() {
	if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
	const targets = document.querySelectorAll('.wte-section, .wte-service-card, .wte-appeal-card, .wte-business-detail, .wte-faq__item');
	targets.forEach(function(el) { el.classList.add('wte-fade-in'); });
	const observer = new IntersectionObserver(function(entries) {
		entries.forEach(function(entry) {
			if (entry.isIntersecting) {
				entry.target.classList.add('is-visible');
				observer.unobserve(entry.target);
			}
		});
	}, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' });
	targets.forEach(function(el) { observer.observe(el); });
});
