/* Front: Services — matched to totop-site-main final editorial list */

body.totop-front-page .totop-front .services.totop-section {
	padding: 96px 0;
	background: transparent;
}

body.totop-front-page .totop-front .service-list {
	border-top: 1px solid var(--totop-ink);
}

body.totop-front-page .totop-front .service-row {
	display: grid;
	grid-template-columns: 90px 300px 1fr 48px;
	align-items: center;
	gap: 32px;
	padding: 44px 8px;
	border-bottom: 1px solid var(--totop-line);
	position: relative;
	text-decoration: none;
	color: inherit;
	transition: none;
}

body.totop-front-page .totop-front .service-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	bottom: -1px;
	width: 0;
	background: var(--totop-teal-pale);
	transition: width 0.4s var(--totop-ease);
	z-index: -1;
}

body.totop-front-page .totop-front .service-row:hover::before {
	width: 100%;
}

body.totop-front-page .totop-front .service-row:hover {
	padding-left: 8px;
}

body.totop-front-page .totop-front .service-row:hover .sr-head h3 {
	color: var(--totop-teal-ink);
}

body.totop-front-page .totop-front .sr-num,
body.totop-front-page .totop-front .sr-head,
body.totop-front-page .totop-front .sr-desc {
	transition: transform 0.35s var(--totop-ease);
}

body.totop-front-page .totop-front .service-row:hover .sr-num,
body.totop-front-page .totop-front .service-row:hover .sr-head,
body.totop-front-page .totop-front .service-row:hover .sr-desc {
	transform: translateX(12px);
}

body.totop-front-page .totop-front .sr-num {
	font-family: var(--totop-logo);
	font-weight: 500;
	font-size: clamp(28px, 3.2vw, 40px);
	color: var(--totop-teal);
	line-height: 1;
}

body.totop-front-page .totop-front .sr-en {
	display: block;
	font-family: var(--totop-logo);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: none;
	color: var(--totop-gray);
	margin-bottom: 6px;
}

body.totop-front-page .totop-front .sr-head h3 {
	font-family: var(--totop-head);
	font-weight: 700;
	font-size: clamp(20px, 2.4vw, 26px);
	letter-spacing: 0.03em;
	line-height: 1.4;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	word-break: auto-phrase;
	transition: color 0.3s ease;
}

body.totop-front-page .totop-front .sr-head h3::after,
body.totop-front-page .totop-front .sr-head h3:after {
	content: none;
	display: none;
}

body.totop-front-page .totop-front .sr-logo-head {
	line-height: 1;
	padding: 4px 0 6px;
}

body.totop-front-page .totop-front .sr-logo-head img {
	height: 36px;
	width: auto;
	display: block;
}

body.totop-front-page .totop-front .sr-logo {
	height: 24px;
	width: auto;
	margin-top: 12px;
	display: block;
}

body.totop-front-page .totop-front .sr-desc {
	margin: 0;
	font-size: 14px;
	color: var(--totop-ink-soft);
	line-height: 1.9;
}

body.totop-front-page .totop-front .sr-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0;
	margin-left: 10px;
	vertical-align: middle;
}

body.totop-front-page .totop-front .sr-tags span {
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--totop-teal-ink);
}

body.totop-front-page .totop-front .sr-tags span + span::before {
	content: "／";
	color: var(--totop-teal-light);
	font-weight: 400;
	margin: 0 7px;
}

body.totop-front-page .totop-front .sr-arrow {
	width: 46px;
	height: 46px;
	border: 1px solid #d8d4cd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	color: var(--totop-gray);
	justify-self: end;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--totop-ease);
}

body.totop-front-page .totop-front .service-row:hover .sr-arrow {
	background: var(--totop-teal);
	border-color: var(--totop-teal);
	color: #fff;
	transform: translateX(4px);
}

@media (max-width: 900px) {
	body.totop-front-page .totop-front .service-row {
		grid-template-columns: auto 1fr 40px;
		grid-template-areas:
			"num head arrow"
			"desc desc desc";
		gap: 6px 14px;
		align-items: start;
		padding: 28px 2px;
	}

	body.totop-front-page .totop-front .service-row:hover {
		padding-left: 2px;
	}

	body.totop-front-page .totop-front .service-row:hover .sr-num,
	body.totop-front-page .totop-front .service-row:hover .sr-head,
	body.totop-front-page .totop-front .service-row:hover .sr-desc {
		transform: none;
	}

	body.totop-front-page .totop-front .sr-num {
		grid-area: num;
		font-size: 19px;
		padding-top: 5px;
	}

	body.totop-front-page .totop-front .sr-head {
		grid-area: head;
	}

	body.totop-front-page .totop-front .sr-desc {
		grid-area: desc;
		margin-top: 6px;
	}

	body.totop-front-page .totop-front .sr-arrow {
		grid-area: arrow;
		display: flex;
		width: 38px;
		height: 38px;
		font-size: 15px;
		justify-self: end;
		margin-top: 0;
	}

	body.totop-front-page .totop-front .sr-tags {
		display: flex;
		margin-left: 0;
		margin-top: 10px;
	}

	body.totop-front-page .totop-front .sr-logo-head img {
		height: 28px;
	}

	body.totop-front-page .totop-front .sr-logo {
		height: 20px;
	}
}

@media (max-width: 767px) {
	body.totop-front-page .totop-front .services.totop-section {
		padding: 68px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.totop-front-page .totop-front .sr-num,
	body.totop-front-page .totop-front .sr-head,
	body.totop-front-page .totop-front .sr-desc {
		transition: none;
	}

	body.totop-front-page .totop-front .service-row:hover .sr-num,
	body.totop-front-page .totop-front .service-row:hover .sr-head,
	body.totop-front-page .totop-front .service-row:hover .sr-desc {
		transform: none;
	}
}
