/* =============================================================================
   トップ｜hero
   角丸のフレームを余白の中に置く。写真の上に、白のロゴとコピー。
   ============================================================================= */

.hts-hero {
	/* 上は 0。ヘッダー下の余白と重なると、左右の縁より厚く見える */
	padding: 0 28px 40px;
}

/* トップ｜できること
   面の塗りはやめて、太めの枠で箱にする。名称は本文と同じ黒。
   「ご家庭で」「企業・店舗・施設で」は文ではなく小さなラベル。 */

.hts-front-services .hts-service-cards {
	gap: 12px;
}

.hts-front-services .hts-service-card {
	gap: 22px;
	padding: 28px;
	background: var(--hts-bg);
	border: 2px solid var(--hts-accent);
}

.hts-front-services .hts-service-card:hover,
.hts-front-services .hts-service-card:focus-visible {
	background: color-mix(in srgb, var(--hts-accent) 8%, var(--hts-bg));
	border-color: var(--hts-accent);
}

.hts-front-services .hts-service-card__icon {
	color: var(--hts-bg);
	background: color-mix(in srgb, var(--hts-accent) 62%, white);
}

.hts-front-services .hts-service-card__icon svg {
	stroke-width: 2.25;
}

.hts-front-services .hts-service-card__name {
	color: var(--hts-ink);
	font-family: var(--hts-font-heading);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

.hts-front-services .hts-service-card__body {
	gap: 10px;
	padding-right: 8px;
}

.hts-front-services .hts-service-card__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--hts-ink);
	font-size: 14px;
	line-height: 1.6;
}

.hts-front-services .hts-service-card__who {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 2px 8px;
	color: var(--hts-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.5;
	white-space: nowrap;
	background: var(--hts-surface-tint);
	border-radius: var(--hts-radius-pill);
}

.hts-front-services .hts-service-card__ex {
	min-width: 0;
	color: var(--hts-ink);
	font-size: 14px;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.hts-front-services .hts-service-card {
		gap: 36px;
		padding: 34px 48px;
	}

	.hts-front-services .hts-service-card__body {
		padding-right: 28px;
	}
}

/* 広い画面は2列。1列のまま幅いっぱいに伸ばすと、箱がぼてっとする。
   5枚目は左列の幅のまま。横いっぱいに引き伸ばさない。 */
@media (min-width: 1000px) {
	.hts-front-services .hts-service-cards {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
		gap: 16px;
	}

	.hts-front-services .hts-service-cards > li {
		display: flex;
		min-width: 0;
	}

	/* 右列の2枚だけ下げる。余白では下げない。行が伸びてカードのあいだが空く。 */
	.hts-front-services .hts-service-cards > li:nth-child(2),
	.hts-front-services .hts-service-cards > li:nth-child(4) {
		transform: translateY(48px);
	}

	.hts-front-services .hts-service-card {
		flex: 1;
		width: 100%;
		gap: 18px;
		padding: 28px 24px;
	}

	.hts-front-services .hts-service-card__body {
		padding-right: 4px;
	}
}

/* トップ｜ヒーローの下
   できること・資格は事業ページの行を使う。ここは流れと会社を知るだけ。 */

.hts-front-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 clamp(28px, 3vw, 40px);
	padding: 0;
	list-style: none;
	text-align: left;
}

.hts-front-steps li {
	margin: 0;
	padding: 18px 16px;
	background: var(--hts-bg);
	border-radius: var(--hts-radius-md);
}

.hts-front-steps__no {
	display: block;
	margin-bottom: 8px;
	color: var(--hts-accent-text);
	font-family: var(--hts-font-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
}

.hts-front-steps__name {
	display: block;
	color: var(--hts-ink);
	font-family: var(--hts-font-heading);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.5;
}

.hts-front-know {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hts-front-know li {
	display: flex;
}

.hts-front-know a {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	color: inherit;
	text-decoration: none;
	background: var(--hts-surface-tint);
	border-radius: var(--hts-radius-md);
	transition: background var(--hts-transition);
}

.hts-front-know a:hover,
.hts-front-know a:focus-visible {
	background: color-mix(in srgb, var(--hts-accent) 8%, var(--hts-surface-tint));
}

.hts-front-know__label {
	color: var(--hts-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1;
}

.hts-front-know__title {
	color: var(--hts-ink);
	font-family: var(--hts-font-heading);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.5;
}

.hts-front-know__text {
	color: var(--hts-ink);
	font-size: 14px;
	line-height: 1.8;
}

.hts-front-more {
	margin: 24px 0 0;
}

.hts-front-more a {
	color: var(--hts-accent-text);
	font-size: 14px;
	text-decoration: none;
}

.hts-front-more a:hover,
.hts-front-more a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (max-width: 767px) {
	.hts-front-steps,
	.hts-front-know {
		grid-template-columns: 1fr;
	}
}

.hts-hero__frame {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: calc(10px + 0.4vw);
	height: 60vh;
	background: var(--hts-dark);
}

/* 写真の層。角丸は各層が自分で持つ。
   切り替えの合成で親の切り抜きが一瞬外れても、四角い角を出さないため */
.hts-hero__slides,
.hts-hero__slide {
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.hts-hero__slide {
	opacity: 0;
	transition: opacity 1.2s;
	/* 合成の層をはじめから持たせ、切り替えのたびの作り直しをなくす */
	will-change: opacity;
}

.hts-hero__slide.is-active {
	opacity: 1;
}

.hts-hero__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
	object-position: 50% 50%;
}

/* トップ｜hero の膜。写真の明るさは残し、色だけロゴの水色へ寄せる
   角丸は自分でも持つ。親の切り抜きが一瞬外れても四角い角を出さないため */
.hts-hero__frame::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	pointer-events: none;
	background: var(--hts-accent);
	mix-blend-mode: color;
	opacity: 0.38;
}

/* トップ｜hero の膜。白文字のまわりだけ、締め色で少し沈める */
.hts-hero__frame::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	pointer-events: none;
	background-image: radial-gradient(ellipse at center, rgba(41, 53, 66, .42) 0%, rgba(41, 53, 66, .16) 42%, rgba(41, 53, 66, 0) 70%);
}

.hts-hero__body {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px;
	text-align: center;
}

.hts-hero__title {
	margin: 0;
}

.hts-hero__logo {
	display: block;
	color: var(--hts-bg);
}

.hts-hero__logo .hts-logo-full,
.hts-hero__logo .hts-logo-full__svg {
	width: min(260px, 72vw);
	max-width: 100%;
	height: auto;
}

.hts-hero__copy {
	margin: 40px 0 0;
	color: var(--hts-bg);
	font-family: var(--hts-font-heading);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.8;
}

@media (max-width: 999px) {
	.hts-hero {
		padding: 0 16px 24px;
	}

	.hts-hero__body {
		padding: 24px;
	}

	.hts-hero__copy {
		margin-top: 28px;
		font-size: 17px;
	}
}
