:root {
	--tg-ink: #424242;
	--tg-muted: #666666;
	--tg-line: #e7e7e7;
	--tg-paper: #ffffff;
	--tg-soft: #f7f7f7;
	--tg-orange: #ff7a1a;
	--tg-deep-orange: #e85f00;
	--tg-black: #424242;
}

body.home,
body.front-page {
	background: transparent;
	color: var(--tg-ink);
}

.toolgarage-front {
	background: transparent;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow: hidden;
}

.toolgarage-front a {
	text-decoration: none;
}

.tg-shell {
	margin: 0 auto;
	max-width: 1160px;
	padding: 0 22px;
}

.tg-hero {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 247, 247, 0.9) 100%),
		linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
	border-bottom: 1px solid var(--tg-line);
	padding: 72px 0 44px;
}

.tg-home-hero {
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.tg-home-hero::before,
.tg-home-hero::after {
	content: "";
	filter: blur(34px);
	inset: auto;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.tg-home-hero::before {
	animation: tgHomeGlowA 18s ease-in-out infinite alternate;
	background:
		radial-gradient(circle at 18% 26%, rgba(245, 158, 11, 0.24) 0 15%, transparent 38%),
		radial-gradient(circle at 48% 18%, rgba(250, 204, 21, 0.2) 0 14%, transparent 36%),
		radial-gradient(circle at 86% 36%, rgba(34, 197, 94, 0.16) 0 16%, transparent 38%);
	height: 620px;
	left: -12%;
	top: -210px;
	width: 124%;
}

.tg-home-hero::after {
	animation: tgHomeGlowB 22s ease-in-out infinite alternate;
	background:
		radial-gradient(circle at 30% 78%, rgba(229, 231, 235, 0.86) 0 16%, transparent 38%),
		radial-gradient(circle at 62% 72%, rgba(245, 158, 11, 0.15) 0 14%, transparent 34%),
		radial-gradient(circle at 86% 82%, rgba(34, 197, 94, 0.12) 0 15%, transparent 36%);
	bottom: -230px;
	height: 560px;
	left: -8%;
	width: 116%;
}

.tg-hero__grid {
	align-items: center;
	display: grid;
	gap: 42px;
	grid-template-columns: minmax(0, 1.1fr) 390px;
	position: relative;
	z-index: 1;
}

.tg-kicker {
	color: var(--tg-deep-orange);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.tg-hero h1 {
	font-size: clamp(36px, 4.2vw, 54px);
	letter-spacing: 0;
	line-height: 1.1;
	margin: 0;
	max-width: 780px;
	white-space: nowrap;
}

.tg-hero__lead {
	color: var(--tg-muted);
	font-size: 18px;
	line-height: 1.9;
	margin: 22px 0 0;
	max-width: 680px;
}

.tg-search {
	background: var(--tg-paper);
	border: 1px solid var(--tg-line);
	box-shadow: 0 16px 40px rgba(20, 42, 49, 0.09);
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr auto;
	margin-top: 30px;
	max-width: 680px;
	padding: 10px;
}

.tg-search input {
	background: transparent;
	border: 0;
	color: var(--tg-ink);
	font-size: 16px;
	min-height: 48px;
	outline: 0;
	padding: 0 14px;
	width: 100%;
}

.tg-search button {
	background: var(--tg-black);
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	padding: 0 18px;
}

.tg-hero__panel {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--tg-line);
	box-shadow: 0 22px 60px rgba(20, 42, 49, 0.1);
	padding: 24px;
}

@keyframes tgHomeGlowA {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	100% {
		transform: translate3d(28px, 18px, 0) scale(1.04);
	}
}

@keyframes tgHomeGlowB {
	0% {
		transform: translate3d(0, 0, 0) scale(1.02);
	}

	100% {
		transform: translate3d(-24px, -18px, 0) scale(1);
	}
}

.tg-panel__head {
	border-bottom: 1px solid var(--tg-line);
	display: grid;
	gap: 4px;
	padding-bottom: 18px;
}

.tg-panel__head span {
	color: var(--tg-deep-orange);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.tg-panel__head strong {
	font-size: 20px;
}

.tg-mini-list {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.tg-mini-tool {
	align-items: center;
	color: var(--tg-ink);
	display: grid;
	gap: 12px;
	grid-template-columns: 46px 1fr;
	padding: 10px;
	transition: background-color 160ms ease, transform 160ms ease;
}

.tg-mini-tool:hover,
.tg-mini-tool:focus-visible {
	background: var(--tg-soft);
	transform: translateX(3px);
}

.tg-mini-tool__icon {
	align-items: center;
	background: var(--tg-orange);
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.tg-mini-tool strong,
.tg-mini-tool small {
	display: block;
}

.tg-mini-tool small {
	color: var(--tg-muted);
	margin-top: 3px;
}

.tg-section {
	padding-bottom: 66px;
	padding-top: 66px;
}

.tg-section__head {
	align-items: end;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 24px;
}

.tg-section__head h2 {
	font-size: clamp(26px, 4vw, 40px);
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}

.tg-tool-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-tool-card {
	background: #fff;
	border: 1px solid var(--tg-line);
	color: var(--tg-ink);
	display: grid;
	gap: 12px;
	min-height: 224px;
	padding: 22px;
	position: relative;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tg-tool-card:hover,
.tg-tool-card:focus-visible {
	border-color: rgba(255, 122, 26, 0.64);
	box-shadow: 0 18px 42px rgba(20, 42, 49, 0.1);
	transform: translateY(-3px);
}

.tg-tool-card__badge {
	color: var(--tg-deep-orange);
	font-size: 12px;
	font-weight: 800;
}

.tg-tool-card__icon {
	align-items: center;
	background: #fff0e6;
	display: inline-flex;
	height: 54px;
	justify-content: center;
	width: 54px;
}

.tg-tool-card__icon::before {
	color: var(--tg-deep-orange);
	font-size: 24px;
	font-weight: 800;
}

.tg-icon--key::before { content: "#"; }
.tg-icon--text::before { content: "T"; }
.tg-icon--image::before { content: "□"; }
.tg-icon--code::before { content: "</>"; font-size: 18px; }
.tg-icon--yen::before { content: "¥"; }
.tg-icon--calendar::before { content: "31"; font-size: 18px; }

.tg-tool-card strong {
	font-size: 20px;
}

.tg-tool-card small {
	color: var(--tg-muted);
	font-size: 14px;
	line-height: 1.7;
}

.tg-empty {
	background: #fff;
	border: 1px solid var(--tg-line);
	color: var(--tg-muted);
	margin: 18px 0 0;
	padding: 18px;
	text-align: center;
}

.tg-category-section {
	padding-top: 0;
}

.tg-category-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tg-category {
	background: #fff;
	border: 1px solid var(--tg-line);
	padding: 20px;
}

.tg-category h3 {
	border-bottom: 2px solid var(--tg-orange);
	font-size: 18px;
	letter-spacing: 0;
	margin: 0 0 12px;
	padding-bottom: 10px;
}

.tg-category ul {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tg-category a {
	color: var(--tg-ink);
	display: block;
	font-size: 14px;
	line-height: 1.5;
	padding: 6px 0;
}

.tg-category a:hover,
.tg-category a:focus-visible {
	color: var(--tg-deep-orange);
}

[data-tool-card][hidden] {
	display: none;
}

@media (max-width: 980px) {
	.tg-hero__grid,
	.tg-tool-grid {
		grid-template-columns: 1fr;
	}

	.tg-hero__panel {
		max-width: 620px;
	}

	.tg-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tg-shell {
		padding: 0 16px;
	}

	.tg-hero {
		padding-top: 44px;
	}

	.tg-home-hero::before {
		background:
			radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18) 0 18%, transparent 42%),
			radial-gradient(circle at 82% 30%, rgba(250, 204, 21, 0.15) 0 17%, transparent 42%),
			radial-gradient(circle at 70% 78%, rgba(34, 197, 94, 0.11) 0 18%, transparent 42%);
		filter: blur(28px);
		height: 520px;
		top: -170px;
	}

	.tg-home-hero::after {
		opacity: 0.7;
	}

	.tg-search {
		grid-template-columns: 1fr;
	}

	.tg-search button {
		min-height: 44px;
	}

	.tg-hero h1 {
		font-size: clamp(28px, 8.2vw, 42px);
	}

	.tg-category-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tg-home-hero::before,
	.tg-home-hero::after {
		animation: none;
	}
}
