:root {
	--bg-1: #0f172a;
	--bg-2: #0b1220;
	--card: rgba(255, 255, 255, 0.04);
	--glass: rgba(255, 255, 255, 0.03);
	--accent: #60a5fa;
	--accent-2: #7c3aed;
	--text: #e6eef8;
	--muted: #b9c6d8;
	--radius: 14px;
	--shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
}

*,
*::before,
*::after {
	box-sizing: border-box
}

html,
body {
	height: 100%
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 24px;
}

h1 {
	margin: 0 0 28px 0;
	font-size: clamp(24px, 4vw, 40px);
	letter-spacing: -0.02em;
	text-align: center;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tools {
	width: 100%;
	max-width: 980px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.tools a {
	text-decoration: none;
	outline: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
	height: 100%;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--text);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 240ms cubic-bezier(.2, .9, .2, 1), box-shadow 240ms, background 240ms;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.03);
	text-align: center;
}

.tools a:hover,
.tools a:focus {
	transform: translateY(-6px) scale(1.01);
	box-shadow: 0 16px 40px rgba(12, 22, 48, 0.6), 0 2px 6px rgba(124, 58, 237, 0.12);
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(124, 58, 237, 0.06));
	border-color: rgba(96, 165, 250, 0.18);
}

.tools a:focus-visible {
	box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14), 0 12px 30px rgba(2, 6, 23, 0.5);
}

.tools a p {
	margin: 8px 12px 0 12px;
	color: var(--muted);
	font-size: 0.95rem;
}

@media(min-width:900px) {
	.tools a {
		padding: 36px 24px;
		font-size: 1.25rem;
	}
}

@media(max-width:420px) {
	body {
		padding: 28px 12px
	}

	h1 {
		font-size: 22px
	}

	.tools {
		gap: 14px
	}

	.tools a {
		padding: 18px
	}
}

@media (prefers-reduced-motion: reduce) {
	.tools a,
	.tools a:hover {
		transition: none;
		transform: none;
	}
}

.center {
	display: flex;
	align-items: center;
	justify-content: center
}
