/**
 * TOP — 事業内容 Solution 円形カード（フロント）
 */

.top-solution-item {
	--top-solution-card-gradient: linear-gradient(
		180deg,
		#1c42b4 7.01%,
		#1e73be 29%,
		#2078c1 30%,
		#359fdc 42%,
		#43bbef 53%,
		#4cccfa 62%,
		#50d2ff 69%,
		#b5f1ff 93.99%
	);
}

#front_page_contents .top-solution-item {
	margin: 0 auto 30px !important;
}

/* 4列 → 1024pxで2列 → 640pxで1列（フロントのみ・中央揃え） */
.post_content .top-solution-item.uagb-is-root-container {
	display: grid !important;
	grid-template-columns: repeat(4, 200px);
	justify-content: center;
	justify-items: center;
	align-items: start;
	gap: 20px;
	width: 100% !important;
	max-width: 860px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	flex-direction: unset !important;
	flex-wrap: unset !important;
}

@media screen and (max-width: 1024px) {
	.post_content .top-solution-item.uagb-is-root-container {
		grid-template-columns: repeat(2, 200px);
	}
}

@media screen and (max-width: 640px) {
	.post_content .top-solution-item.uagb-is-root-container {
		grid-template-columns: 200px;
		justify-content: center;
	}
}

.post_content .top-solution-item > .wp-block-uagb-container {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	gap: 8px !important;
	width: 200px !important;
	min-width: 200px !important;
	max-width: 200px !important;
	height: 200px !important;
	min-height: 200px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: none !important;
	box-sizing: border-box;
	overflow: visible;
	transition: background-color 0.35s ease;
	cursor: pointer;
}

.post_content .top-solution-item > .wp-block-uagb-container .spectra-container-link-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100% !important;
	border-radius: 50%;
	color: inherit;
	text-decoration: none;
}

.post_content .top-solution-item > .wp-block-uagb-container::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	padding: 10px;
	background: var(--top-solution-card-gradient);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask-composite: exclude;
	pointer-events: none;
	transition: transform 0.45s ease;
}

@media (hover: hover) {
	.post_content .top-solution-item > .wp-block-uagb-container:hover {
		background: #ECFAFF !important;
	}

	.post_content .top-solution-item > .wp-block-uagb-container:hover::before {
		transform: rotate(-45deg);
	}

	.post_content .top-solution-item > .wp-block-uagb-container:hover .uagb-heading-text {
		font-weight: 700 !important;
	}
}

.post_content .top-solution-item > .wp-block-uagb-container > *:not(.spectra-container-link-overlay) {
	position: relative;
	z-index: 1;
}

.post_content .top-solution-item .wp-block-uagb-advanced-heading {
	padding: 0 !important;
	margin: 0 !important;
}

.post_content .top-solution-item .uagb-heading-text {
	margin: 0;
	color: #1e73be !important;
	text-align: center;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 500 !important;
	line-height: 1.6;
}

.post_content .top-solution-item .gb-text {
	margin: 0;
	color: #1e73be !important;
	text-align: center;
	font-family: 'Roboto Condensed', roboto condensed, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	text-decoration: none !important;
}
