/* おしごとパレットと共通の見出しマスコット */
.p-kodomo-page .c-heading-deco {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	flex-shrink: 0;
}

.p-kodomo-page .c-heading-deco__dots {
	display: block;
	width: 35px;
	height: 23px;
	flex-shrink: 0;
	animation: decoPopBounce 2.4s ease-in-out infinite;
}

.p-kodomo-page .c-heading-deco__dots--flip {
	transform: rotate(180deg) scaleY(-1);
	animation-name: decoPopBounceFlip;
	animation-delay: 0.8s;
}

.p-kodomo-page .c-heading-deco__emoji {
	display: inline-grid;
	grid-template: max-content / max-content;
	transform: rotate(-171deg) scaleY(-1);
	animation: decoPopBounceEmoji 2.4s ease-in-out 0.4s infinite;
}

.p-kodomo-page .c-heading-deco__leaf {
	grid-area: 1 / 1;
	display: block;
	width: 71px;
	height: 39px;
}

.p-kodomo-page .c-heading-deco__faces {
	grid-area: 1 / 1;
	display: inline-grid;
	grid-template: max-content / max-content;
	margin-top: 11px;
	margin-left: 9.3px;
}

.p-kodomo-page .c-heading-deco__face {
	display: block;
}

.p-kodomo-page .c-heading-deco__face--1 {
	grid-area: 1 / 1;
	width: 17px;
	height: 18px;
	margin-top: 1.3px;
	margin-left: 33px;
}

.p-kodomo-page .c-heading-deco__face--2 {
	grid-area: 1 / 1;
	width: 18px;
	height: 19px;
}

.p-kodomo-features__heading > .c-heading-deco,
.p-kodomo-map__heading > .c-heading-deco,
.c-service-section-heading > .c-heading-deco,
.c-service-news__header--oshigoto > .c-heading-deco,
.p-access__heading-wrap--oshigoto > .c-heading-deco {
	position: relative;
	z-index: 1;
	margin-right: auto;
	margin-left: auto;
}

.p-kodomo-features__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: max-content;
	max-width: 100%;
}

.c-service-news__header--oshigoto {
	gap: var(--sp-sm);
}

.c-service-news__heading {
	margin: 0;
	color: #382710;
	font-size: 31px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.6;
}

.p-access__heading-wrap--oshigoto {
	gap: var(--sp-sm);
}

@keyframes decoPopBounce {
	0%, 100% { transform: translateY(0) scale(1); }
	15% { transform: translateY(-6px) scale(1.1, 0.9); }
	30% { transform: translateY(2px) scale(0.95, 1.05); }
	45% { transform: translateY(-2px) scale(1.03, 0.97); }
	60% { transform: translateY(0) scale(1); }
}

@keyframes decoPopBounceFlip {
	0%, 100% { transform: rotate(180deg) scaleY(-1) translateY(0) scale(1); }
	15% { transform: rotate(180deg) scaleY(-1) translateY(-6px) scale(1.1, 0.9); }
	30% { transform: rotate(180deg) scaleY(-1) translateY(2px) scale(0.95, 1.05); }
	45% { transform: rotate(180deg) scaleY(-1) translateY(-2px) scale(1.03, 0.97); }
	60% { transform: rotate(180deg) scaleY(-1) translateY(0) scale(1); }
}

@keyframes decoPopBounceEmoji {
	0%, 100% { transform: rotate(-171deg) scaleY(-1) translateY(0) scale(1); }
	15% { transform: rotate(-171deg) scaleY(-1) translateY(-8px) scale(1.12, 0.88); }
	30% { transform: rotate(-171deg) scaleY(-1) translateY(3px) scale(0.94, 1.06); }
	45% { transform: rotate(-171deg) scaleY(-1) translateY(-3px) scale(1.04, 0.96); }
	60% { transform: rotate(-171deg) scaleY(-1) translateY(0) scale(1); }
}

@media (max-width: 767px) {
	.p-kodomo-page .c-heading-deco {
		scale: 75%;
	}

	.p-kodomo-page .c-heading-deco__leaf {
		width: 50px;
		height: 28px;
	}

	.p-kodomo-page .c-heading-deco__faces {
		margin-top: 7.75px;
		margin-left: 6.5px;
	}

	.p-kodomo-page .c-heading-deco__face--1 {
		width: 12px;
		height: 13px;
		margin-top: 1px;
		margin-left: 23.4px;
	}

	.p-kodomo-page .c-heading-deco__face--2 {
		width: 13px;
		height: 13.5px;
	}

	.c-service-news__header--oshigoto,
	.p-access__heading-wrap--oshigoto {
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.p-kodomo-page .c-heading-deco__dots,
	.p-kodomo-page .c-heading-deco__emoji {
		animation: none;
	}
}
