/*
 * おせち部 冒頭ヒーロー
 * All visual rules are scoped to .ochh-hero.
 */

.ochh-hero {
	--ochh-accent: #e95058;
	--ochh-yellow: #f4b31e;
	--ochh-cream: #fff5d5;
	--ochh-ink: #292826;
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: none !important;
	min-height: 410px;
	margin: 0 0 34px !important;
	padding: 34px 22px 62px;
	overflow: hidden;
	color: var(--ochh-ink);
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	line-height: 1.75;
}

.ochh-hero *,
.ochh-hero *::before,
.ochh-hero *::after {
	box-sizing: border-box;
}

.ochh-hero::after {
	position: absolute;
	right: -12%;
	bottom: -50px;
	left: -12%;
	z-index: -1;
	height: 115px;
	border-radius: 50% 50% 0 0;
	background: var(--ochh-cream);
	content: "";
}

.ochh-hero .ochh-hero__inner {
	position: relative;
	z-index: 1;
	align-items: center;
	gap: clamp(16px, 2.5vw, 28px);
	margin: 0 !important;
}

.ochh-hero .wp-block-column,
.ochh-hero .wp-block-image,
.ochh-hero p {
	margin-top: 0;
}

.ochh-hero__copy,
.ochh-hero__visual {
	min-width: 0;
}

.ochh-hero .ochh-hero__kicker {
	display: inline-block;
	margin-bottom: 15px;
	padding-bottom: 3px;
	border-bottom: 3px solid var(--ochh-yellow);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .035em;
}

.ochh-hero .ochh-hero__title {
	margin-bottom: 15px;
	padding: 0;
	border: 0;
	color: var(--ochh-ink);
	background: transparent;
	font-size: clamp(2rem, 2.8vw, 2.55rem);
	font-weight: 800;
	line-height: 1.42;
	letter-spacing: .02em;
}

.ochh-hero .ochh-hero__title::before,
.ochh-hero .ochh-hero__title::after {
	display: none;
}

.ochh-hero .ochh-hero__title mark {
	padding: 0;
	color: var(--ochh-accent) !important;
	background: transparent !important;
}

.ochh-hero .ochh-hero__lead {
	margin-bottom: 18px;
	font-size: .9rem;
	font-weight: 600;
}

.ochh-hero .ochh-hero__button .wp-block-button__link {
	min-height: 48px;
	padding: 10px 22px;
	border: 3px solid var(--ochh-yellow);
	border-radius: 999px;
	color: #4d3903;
	background: #fff;
	font-size: .9rem;
	font-weight: 800;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease;
}

.ochh-hero .ochh-hero__button .wp-block-button__link:hover {
	border-color: var(--ochh-accent);
	color: #fff;
	background: var(--ochh-accent);
	transform: translateY(-2px);
}

.ochh-hero a:focus-visible {
	outline: 3px solid var(--ochh-yellow);
	outline-offset: 4px;
}

.ochh-hero__visual {
	position: relative;
}

.ochh-hero__visual::before {
	position: absolute;
	top: -17px;
	right: 16%;
	z-index: 2;
	width: 62px;
	height: 23px;
	border-top: 4px solid var(--ochh-yellow);
	border-radius: 50%;
	content: "";
	transform: rotate(-12deg);
}

.ochh-hero .ochh-hero__image {
	margin-bottom: 0;
}

.ochh-hero .ochh-hero__image img {
	display: block;
	width: 100%;
	max-width: 330px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	object-position: 58% center;
	box-shadow: 0 20px 42px rgba(70, 54, 20, .13);
}

.ochh-hero .ochh-hero__badge {
	position: absolute;
	right: -8px;
	bottom: 8px;
	z-index: 3;
	width: 138px;
	margin: 0;
	padding: 12px 13px;
	border-radius: 50%;
	color: #fff;
	background: var(--ochh-accent);
	font-size: .78rem;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
	transform: rotate(3deg);
}

/*
 * When the new hero is inserted immediately before the current slider,
 * keep that slider in the editor/database but hide it on the public home page.
 */
body.home .ochh-hero + .pc,
body.home .ochh-hero + .pc + .sp {
	display: none !important;
}

@media (max-width: 781px) {
	.ochh-hero {
		min-height: 0;
		padding: 30px 20px 62px;
	}

	.ochh-hero .ochh-hero__inner {
		flex-direction: column;
		gap: 26px;
	}

	.ochh-hero .ochh-hero__copy,
	.ochh-hero .ochh-hero__visual {
		flex-basis: 100% !important;
		width: 100%;
	}

	.ochh-hero__copy {
		text-align: center;
	}

	.ochh-hero .wp-block-buttons {
		justify-content: center;
	}

	.ochh-hero .ochh-hero__lead {
		max-width: 34em;
		margin-right: auto;
		margin-left: auto;
	}

	.ochh-hero .ochh-hero__image img {
		max-width: 340px;
	}

	.ochh-hero .ochh-hero__badge {
		right: max(0px, calc(50% - 190px));
	}
}

@media (max-width: 480px) {
	.ochh-hero {
		margin-bottom: 24px !important;
		padding: 26px 16px 54px;
	}

	.ochh-hero .ochh-hero__title {
		font-size: 2rem;
	}

	.ochh-hero .ochh-hero__lead {
		font-size: .88rem;
	}

	.ochh-hero .ochh-hero__image img {
		max-width: 280px;
	}

	.ochh-hero .ochh-hero__badge {
		right: 0;
		bottom: 3px;
		width: 126px;
		font-size: .72rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ochh-hero *,
	.ochh-hero *::before,
	.ochh-hero *::after {
		transition-duration: .01ms !important;
	}
}
