/**
 * Services & Design（トップ）— ポップアート風レイアウト
 */

.site-main--front .front-section.front-section--services.front-section--band-a {
	align-items: flex-start;
	overflow-x: clip;
	background-color: #f4f0ea;
	background-image: radial-gradient( #d5d1cb 2px, transparent 2px );
	background-size: 30px 30px;
	color: #111111;
	padding: clamp( 3rem, 8vw, 6.25rem ) clamp( 1.25rem, 4vw, 2rem );
}

.front-section--services .front-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp( 2.5rem, 5vw, 3.75rem );
	max-width: 1200px;
}

@media ( min-width: 992px ) {
	.front-section--services .front-section__grid {
		grid-template-columns: 45% 55%;
		align-items: center;
	}
}

.front-section--services .front-section__header {
	position: relative;
	z-index: 10;
}

.front-section--services .front-section__title {
	font-size: clamp( 3rem, 6vw, 5rem );
	font-family: 'Outfit', sans-serif;
	font-weight: 900;
	line-height: 0.9;
	margin: 0 0 1.5rem;
	text-transform: uppercase;
	color: #ffd600;
	-webkit-text-stroke: 3px #111111;
	text-shadow: 6px 6px 0 #111111;
	transform: rotate( -2deg );
}

.front-section--services .front-services__lead {
	font-size: 1.1rem;
	line-height: 1.8;
	font-weight: 700;
	background: #fff;
	border: 3px solid #111111;
	padding: 1.5rem;
	box-shadow: 6px 6px 0 #111111;
	transform: rotate( 1deg );
	margin: 0 0 2rem;
	color: #111111;
	max-width: none;
}

.front-section--services .front-section__media {
	margin: 0;
	background: #ff3366;
	border: 4px solid #111111;
	border-radius: 50% 20% / 10% 40%;
	height: 350px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 10px 10px 0 #111111;
	position: relative;
	transform: rotate( -3deg );
	z-index: 1;
	overflow: hidden;
}

.front-section--services .front-section__media::after {
	content: 'JAM!';
	position: absolute;
	top: -20px;
	right: -20px;
	background: #ffd600;
	color: #111111;
	padding: 10px 20px;
	border: 3px solid #111111;
	border-radius: 50px;
	transform: rotate( 15deg );
	font-family: 'Outfit', sans-serif;
	font-weight: 900;
	font-size: 1rem;
	z-index: 2;
	pointer-events: none;
}

.front-section--services .front-section__img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center 42%;
}

.front-section--services .front-services__list {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.front-section--services .front-services__item--featured {
	grid-column: span 2;
}

@media ( max-width: 767px ) {
	.front-section--services .front-services__item--featured {
		grid-column: span 1;
	}
}

.front-section--services .front-services__item:nth-child( 1 ) {
	transform: rotate( -2deg );
}

.front-section--services .front-services__item:nth-child( 2 ) {
	transform: rotate( 3deg );
}

.front-section--services .front-services__item:nth-child( 3 ) {
	transform: rotate( -1deg );
}

.front-section--services .front-services__item:nth-child( 4 ) {
	transform: rotate( 2deg );
}

.front-section--services .front-services__item:nth-child( 5 ) {
	transform: rotate( -1.5deg );
}

.front-section--services .front-services__item--featured .front-services__card {
	padding: clamp( 1.5rem, 3vw, 2rem );
	font-size: clamp( 1.1rem, 2.2vw, 1.35rem );
	min-height: 5.5rem;
}

.front-section--services .front-services__card {
	box-sizing: border-box;
	width: 100%;
	padding: 1.5rem;
	background-color: #fff;
	border: 3px solid #111111;
	font-weight: 900;
	font-size: 1.1rem;
	text-decoration: none;
	color: #111111;
	box-shadow: 6px 6px 0 #111111;
	transition: all 0.15s ease-out;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}

.front-section--services a.front-services__card--link {
	cursor: pointer;
}

@media ( prefers-reduced-motion: no-preference ) {
	.front-section--services a.front-services__card--link:hover,
	.front-section--services a.front-services__card--link:focus-visible {
		transform: translate( 6px, 6px );
		box-shadow: 0 0 0 #111111;
		background-color: #111111;
		color: #ffd600;
	}
}

.front-section--services a.front-services__card--link::after {
	content: '→';
	font-family: 'Outfit', sans-serif;
	font-size: 1.5rem;
	transition: transform 0.2s ease;
}

.front-section--services a.front-services__card--external::after {
	content: none;
}

.front-section--services .front-services__card-label {
	flex: 1 1 auto;
	min-width: 0;
}

.front-section--services .front-services__card-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-left: 0.75rem;
	transition: transform 0.2s ease;
}

.front-section--services .front-services__card-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media ( prefers-reduced-motion: no-preference ) {
	.front-section--services a.front-services__card--link:hover::after,
	.front-section--services a.front-services__card--link:focus-visible::after {
		transform: translateX( 5px );
	}

	.front-section--services a.front-services__card--external:hover .front-services__card-icon,
	.front-section--services a.front-services__card--external:focus-visible .front-services__card-icon {
		transform: translate( 2px, -2px );
	}
}

.front-section--services .front-section__link--primary {
	display: inline-block;
	margin-top: 4rem;
	padding: 1.2rem 3rem;
	background-color: #ff3366;
	color: #111111;
	border: 4px solid #111111;
	text-decoration: none;
	font-family: 'Outfit', sans-serif;
	font-weight: 900;
	font-size: 1.5rem;
	text-transform: uppercase;
	box-shadow: 8px 8px 0 #111111;
	transition: all 0.15s ease-out;
	transform: rotate( -1deg );
	filter: none;
}

@media ( prefers-reduced-motion: no-preference ) {
	.front-section--services .front-section__link--primary:hover,
	.front-section--services .front-section__link--primary:focus-visible {
		transform: translate( 8px, 8px ) rotate( 0deg );
		box-shadow: 0 0 0 #111111;
		background-color: #ffd600;
		color: #111111;
	}
}
