/* Thankyou Page Display Styles */

#donation-thankyou-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Impact Message */
.impact-message {
	font-size: 20px;
	color: #ff4444;
	font-weight: bold;
	line-height: 1.6;
}

.highlight-number {
	font-size: 32px;
	color: #ff4444;
	font-weight: bold;
	display: inline-block;
}

/* Books Carousel Section */
.donated-books-section {
	margin: 50px auto;
	position: relative;
	max-width: 720px;
	padding: 0 60px; /* ナビゲーションボタンのスペースを確保 */
}

/* Swiper用のスタイル */
.books-swiper {
	position: relative;
	width: 100%;
	max-width: 580px;
	margin: 0 auto;
	overflow: hidden;
}

.book-item {
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s;
	width: 100%; /* Swiperスライド内で100%幅使用 */
}

.book-item:hover {
	transform: translateY(-5px);
}

.book-thumbnail {
	width: 115px; /* サムネイル幅を少し小さくして余裕を確保 */
	height: 155px;
	margin: 0 auto 10px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	background: #f5f5f5;
}

.book-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.book-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.book-placeholder::after {
	content: "📚";
	font-size: 48px;
	opacity: 0.5;
}

.book-info {
	padding: 5px;
}

.book-count {
	background: #50c3d3;
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	display: inline-block;
	margin-bottom: 5px;
}

.book-title {
	font-size: 13px;
	font-weight: bold;
	color: #333;
	line-height: 1.3;
	margin-bottom: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.book-author {
	font-size: 11px;
	color: #666;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Swiper Navigation */
.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	border: 2px solid #50c3d3;
	color: #50c3d3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-nav:hover:not(.swiper-button-disabled) {
	background: #50c3d3;
	color: white;
}

.carousel-nav.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.carousel-prev {
	left: -50px;
}

.carousel-next {
	right: -50px;
}

/* Progress Section */
.donation-progress-section {
	background: #f0f0f0;
	border-radius: 30px;
	padding: 50px 30px 15px 30px;
	margin: 50px 0;
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
}

.progress-header {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
}

.progress-label {
	background: #50c3d3;
	color: white;
	padding: 12px 30px;
	border-radius: 25px;
	font-size: 16px;
	font-weight: bold;
	display: inline-block;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-numbers {
	font-size: 64px;
	font-weight: bold;
	color: #333;
	margin: 30px 0;
	font-family: "Courier New", monospace;
}

.current-number {
	color: #333;
}

.separator {
	color: #333;
	font-size: 45px;
}

.goal-number {
	color: #333;
	font-size: 45px;
}

/* Responsive Design */
@media (max-width: 768px) {
	#donation-thankyou-container {
		padding: 20px 15px;
	}

	.impact-message {
		font-size: 18px;
	}

	.highlight-number {
		font-size: 28px;
	}

	.donated-books-section {
		max-width: 500px;
		padding: 0 50px; /* モバイル用のパディング調整 */
	}

	.books-swiper {
		max-width: 460px; /* タブレット用サイズ */
	}

	.carousel-nav {
		width: 35px;
		height: 35px;
		font-size: 18px;
	}

	.carousel-prev {
		left: -40px;
	}

	.carousel-next {
		right: -40px;
	}

	.book-thumbnail {
		width: 90px;
		height: 120px;
	}

	.progress-numbers {
		font-size: 48px;
	}

	.donation-progress-section {
		padding: 50px 20px 30px 20px;
		border-radius: 25px;
	}

	.progress-header {
		top: -15px;
	}
}

@media (max-width: 480px) {
	.progress-numbers {
		font-size: 36px;
	}

	.donated-books-section {
		max-width: 380px;
		padding: 0 40px; /* 最小画面用のパディング調整 */
	}

	.books-swiper {
		max-width: 320px; /* モバイル用サイズ */
	}

	.carousel-nav {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}

	.carousel-prev {
		left: -35px;
	}

	.carousel-next {
		right: -35px;
	}

	.progress-label {
		padding: 10px 25px;
		font-size: 14px;
	}

	.donation-progress-section {
		padding: 40px 15px 25px 15px;
		border-radius: 20px;
	}

	.progress-header {
		top: -12px;
	}

	.progress-label {
		padding: 10px 20px;
		font-size: 13px;
	}
}
