/* --- エコファンLP用スタイル --- */

/* 汎用ユーティリティ */
.number {
	font-size: 1.8rem;
	font-weight: bold;
	padding: 6px 8px;
	background: #000;
	color: #fff;
	border-radius: 3px;
	display: inline-block;
	line-height: 1;
	margin-bottom: 5px;
}
body, html {
	font-family: 'Noto Sans JP', sans-serif;
	scroll-behavior: smooth;
	color: #333;
	height: 100%;
	min-height: 100vh;
}

/* カラー系ユーティリティ */
.eco-green { background-color: #2ca75e; }
.eco-green-text { color: #2ca75e; }
.eco-light-green { background-color: #e8f7ed; }
.eco-yellow { background-color: #f8e58c; }

/* 背景・装飾 */
.leaf-bg {
	background-image: url('https://cdn.jsdelivr.net/gh/fxamacker/images@master/leaf_pattern_light.svg');
	background-size: 200px;
	background-repeat: repeat;
}

/* カード・アニメーション */
.project-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}
.pulse {
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}
.coin-container {
	position: relative;
	transition: transform 0.3s ease;
}
.coin-container:hover {
	transform: scale(1.1) rotate(5deg);
}
.rotating {
	animation: rotate 20s linear infinite;
}
@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
.wave {
	animation: wave 3s ease-in-out infinite;
}
@keyframes wave {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-15px); }
}

/* プログレスバー・カウントアップ */
.progress-bar {
	transition: width 1.5s ease-in-out;
}
.count-up {
	transition: all 2s ease;
}

/* モーダル・ボタン */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
}
.modal-content {
	position: relative;
	background-color: #fff;
	margin: 15% auto;
	padding: 20px;
	width: 80%;
	max-width: 500px;
	border-radius: 8px;
	text-align: center;
}
.modal-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}
.cancel-button, .submit-button, .close-button {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.cancel-button {
	background-color: #ccc;
	color: #333;
}
.submit-button, .close-button {
	background-color: #4CAF50;
	color: white;
}
.close-button { margin-top: 20px; }
.cancel-button:hover { background-color: #999; }
.submit-button:hover, .close-button:hover { background-color: #45a049; }

/* モーダル表示制御 */
#thankYouModal.hidden { display: none !important; }
#thankYouModal {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
} 

.result-popup {
	backdrop-filter: blur(8px);
	animation: fadeIn 0.5s ease-out;
}
.result-popup-content {
	animation: slideUp 0.6s ease-out;
	max-height: 90vh;
	overflow-y: auto;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes slideUp {
	from { 
		transform: translateY(30px);
		opacity: 0;
	}
	to { 
		transform: translateY(0);
		opacity: 1;
	}
}
.confetti {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #f39c12;
	animation: confetti-fall 3s linear infinite;
}
.confetti:nth-child(odd) {
	background: #e74c3c;
	animation-delay: -0.5s;
}
.confetti:nth-child(3n) {
	background: #3498db;
	animation-delay: -1s;
}
.confetti:nth-child(4n) {
	background: #2ecc71;
	animation-delay: -1.5s;
}
@keyframes confetti-fall {
	0% {
		transform: translateY(-100vh) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translateY(100vh) rotate(720deg);
		opacity: 0;
	}
}
.winner-badge {
	background: linear-gradient(45deg, #ffd700, #ffed4e);
	animation: pulse 2s infinite;
}