body {
	margin: 0;
	background: #0f172a;
	color: #e2e8f0;
	font-family: "Segoe UI", sans-serif;
}

footer {
	margin-top: 60px;
	padding: 25px 0;
	text-align: center;
	color: #64748b;
	font-size: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	position: relative;
}

footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 1px;
	background: linear-gradient(to right, transparent, #3b82f6, transparent);
}

footer p {
	margin: 0;
	letter-spacing: 0.5px;
}

footer strong {
	color: #3b82f6;
}

footer:hover {
	color: #94a3b8;
	transition: 0.3s;
}

.wrapper {
	width: 90%;
	max-width: 900px;
	margin: auto;
	padding: 40px 0;
}

header {
	text-align: center;
	margin-bottom: 40px;
}

h1 {
	font-size: 40px;
	margin: 0;
}

.subtitle {
	color: #64748b;
}

.card {
	background: #1e293b;
	padding: 25px;
	border-radius: 14px;
	margin-bottom: 20px;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.latest {
	border: 1px solid #3b82f6;
	box-shadow: 0 0 15px #3b82f6;
	position: relative;
}

.latest::after {
	content: "Available";
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 11px;
	background: rgba(59, 130, 246, 0.15);
	color: #3b82f6;
	padding: 3px 8px;
	border-radius: 6px;
	border: 1px solid rgba(59, 130, 246, 0.4);
	letter-spacing: 0.5px;
}

.version {
	font-size: 22px;
	font-weight: bold;
}

.date {
	color: #94a3b8;
	margin-bottom: 10px;
}

.notes {
	margin: 15px 0;
}

.notes li {
	margin-bottom: 5px;
}

/* モーダル */
.modal {
	padding: 20px;
	overflow-y: auto;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: 0.2s;
	z-index: 999;
}

.modal.show {
	opacity: 1;
	pointer-events: auto;
}

.modal-box {
	max-height: 80vh;
	overflow-y: auto;
	background: #1e293b;
	padding: 30px;
	border-radius: 16px;
	width: 90%;
	max-width: 400px;
	text-align: center;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 15px;
}

.modal-text {
	color: #94a3b8;
	margin-bottom: 25px;
	word-break: break-all;
}

.modal-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.modal-actions button {
	padding: 8px 16px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: 0.2s;
}

.modal-cancel {
	background: #334155;
	color: #e2e8f0;
}

.modal-cancel:hover {
	background: #475569;
}

.modal-ok {
	background: #3b82f6;
	color: white;
}

.modal-ok:hover {
	background: #2563eb;
	transform: scale(1.05);
}

/* ダウンロードエリア */
.download-area {
	margin-top: 30px;
	text-align: center;
}

.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	padding: 16px 40px;
	border-radius: 14px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: white;
	border: none;
	cursor: pointer;
	position: relative;
	transition: all 0.25s ease;
}

.download-btn::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 16px;
	background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
	opacity: 0.4;
	filter: blur(12px);
	z-index: -1;
	animation: glow 2s ease-in-out infinite alternate;
}

.download-btn:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

/* 数字部分 */
.dl-count {
	background: rgba(0,0,0,0.25);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: bold;
}

@keyframes glow {
	from {
		opacity: 0.3;
	}
	to {
		opacity: 0.7;
	}
}

/* GitHub */
.official-source {
	margin-top: 12px;
	font-size: 14px;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.official-source a,
.official-source a:visited,
.official-source a:active {
	color: #94a3b8;
	text-decoration: none;
	border-bottom: 1px dotted rgba(148, 163, 184, 0.4);
}

.official-source a:hover {
	color: #cbd5e1;
	border-bottom: 1px solid #cbd5e1;
}

/* プレビュー */
.app-preview {
	margin-top: 40px;
	text-align: center;
}

.preview-box {
	margin-top: 20px;
	padding: 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: inline-block;
}

.preview-image {
	width: 100%;
	max-width: 800px;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.preview-desc {
	margin-top: 16px;
	text-align: left;
	display: inline-block;
}

.preview-desc p {
	margin: 6px 0;
	color: #cbd5e1;
	font-size: 14px;
}

/* 履歴 */
.history h2 {
	margin-bottom: 20px;
}

.history .card {
	background: #1e293b;
	padding: 18px 22px;
	border-radius: 12px;
	margin-bottom: 15px;
	border-left: 4px solid #3b82f6;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

/* アプリについて */
.app-info-link {
	margin-top: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: #cbd5e1;
	cursor: pointer;
	font-size: 14px;
	transition: 0.2s;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.app-info-link:hover {
	background: rgba(59, 130, 246, 0.15);
	color: #e2e8f0;
	transform: translateY(-1px);
	border-color: rgba(59, 130, 246, 0.5);
	box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* 説明文 */
.info-text {
	text-align: left;
	line-height: 1.7;
}
.info-text ul {
	padding-left: 18px;
	margin-top: 10px;
}
.info-text li {
	margin-bottom: 6px;
	color: #cbd5e1;
}

/* 説明欄 */
.security-note {
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.6;
	background: rgba(255, 255, 255, 0.04);
	padding: 12px;
	border-radius: 8px;
	margin-top: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}
/* 区切り線 */
.info-text hr {
	border: none;
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	margin: 14px 0;
}

/* アプリ情報 */
.app-meta {
	background: rgba(255, 255, 255, 0.03);
	padding: 14px 16px;
	border-radius: 10px;
	margin-bottom: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}
.app-meta p {
	margin: 6px 0;
	font-size: 14px;
	color: #cbd5e1;
}
.app-meta strong {
	color: #93c5fd;
	font-weight: 500;
}


/* リストのデザイン */
.feature-list {
	padding-left: 18px;
	margin: 12px 0;
}

.feature-list li {
	margin-bottom: 6px;
	font-size: 14px;
	color: #e2e8f0;
}

.info-modal {
	max-width: 520px;
}

/* ページトップへ戻るボタン */
.scroll-top-btn {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 48px;
	height: 48px;
	background: #3b82f6;
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 998;
}

.scroll-top-btn.show {
	opacity: 1;
	visibility: visible;
}