/**
 * サンクスページ用CSS
 * セッション認証前後での表示制御
 */

/* デフォルトでコンテンツを非表示 */
body:not(.thanks-page-authorized) .thanks-content {
	display: none;
}

/* 認証後にコンテンツを表示 */
body.thanks-page-authorized .thanks-content {
	display: block;
	animation: fadeIn 0.5s ease-in-out;
}

/* 不正アクセス時のローディング表示 */
body:not(.thanks-page-authorized)::before {
	content: 'ページを読み込んでいます...';
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 18px;
	color: #666;
	z-index: 9999;
}

/* フェードインアニメーション */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* サンクスページのスタイリング */
.thanks-content {
	max-width: 600px;
	margin: 2rem auto;
	padding: 2rem;
	text-align: center;
	background: #f8f9fa;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thanks-title {
	color: #28a745;
	font-size: 24px;
	margin-bottom: 1rem;
}

.thanks-message {
	color: #333;
	line-height: 1.6;
	margin-bottom: 2rem;
}

.back-to-site {
	display: inline-block;
	padding: 0.75rem 2rem;
	background-color: #007bff;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.back-to-site:hover {
	background-color: #0056b3;
	color: white;
	text-decoration: none;
}
