/*
 * おせち部トップページ（パターン1）
 * Every selector is scoped to .ochp-home or .ochp-page.
 */

.ochp-page .ochp-page-template,
.ochp-page .ochp-main,
.ochp-page .ochp-main > article,
.ochp-page .ochp-main .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.ochp-home {
	--ochp-accent: #ec555c;
	--ochp-secondary: #f5b924;
	--ochp-cream: #fff6da;
	--ochp-ink: #282725;
	--ochp-muted: #716c63;
	--ochp-line: #f0e7d0;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	color: var(--ochp-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
}

.ochp-home *,
.ochp-home *::before,
.ochp-home *::after {
	box-sizing: border-box;
}

.ochp-home .wp-block-columns,
.ochp-home .wp-block-image,
.ochp-home p,
.ochp-home h1,
.ochp-home h2,
.ochp-home h3 {
	margin-top: 0;
}

.ochp-home mark {
	padding: 0;
	color: var(--ochp-accent);
	background: transparent;
}

.ochp-home a:focus-visible {
	outline: 3px solid var(--ochp-secondary);
	outline-offset: 4px;
}

.ochp-hero {
	position: relative;
	min-height: 650px;
	padding: clamp(48px, 7vw, 92px) 24px 120px;
	overflow: hidden;
	background: linear-gradient(#fff 0 79%, var(--ochp-cream) 79%);
}

.ochp-hero::after {
	position: absolute;
	right: -8%;
	bottom: 38px;
	left: -8%;
	height: 150px;
	border-radius: 50% 50% 0 0;
	background: var(--ochp-cream);
	content: "";
}

.ochp-hero__inner {
	position: relative;
	z-index: 1;
	gap: clamp(32px, 5vw, 70px);
	width: min(1160px, 100%);
	margin: 0 auto;
}

.ochp-kicker {
	display: inline-block;
	margin-bottom: 16px;
	padding-bottom: 4px;
	border-bottom: 3px solid var(--ochp-secondary);
	font-size: .9rem;
	font-weight: 800;
	letter-spacing: .08em;
}

.ochp-home .ochp-hero__title {
	margin-bottom: 18px;
	font-size: clamp(2.25rem, 4.2vw, 4.2rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: .035em;
}

.ochp-hero__lead {
	max-width: 31em;
	margin-bottom: 20px;
	font-weight: 600;
}

.ochp-hero__visual {
	position: relative;
	min-width: 0;
}

.ochp-hero__visual::before {
	position: absolute;
	top: -24px;
	right: 16%;
	z-index: 2;
	width: 78px;
	height: 28px;
	border-top: 4px solid var(--ochp-secondary);
	border-radius: 50%;
	content: "";
	transform: rotate(-12deg);
}

.ochp-home .ochp-hero__image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 54% 46% 48% 52% / 40% 54% 46% 60%;
	box-shadow: 0 26px 60px rgba(70, 54, 20, .14);
}

.ochp-hero__note {
	position: absolute;
	right: -20px;
	bottom: 16px;
	z-index: 3;
	width: 170px;
	margin: 0;
	padding: 16px 18px;
	border-radius: 48% 52% 48% 52%;
	color: #fff;
	background: var(--ochp-accent);
	font-weight: 800;
	line-height: 1.55;
	text-align: center;
	transform: rotate(3deg);
}

.ochp-home .ochp-button .wp-block-button__link {
	min-width: 210px;
	padding: 13px 24px;
	border: 3px solid var(--ochp-secondary);
	border-radius: 999px;
	color: #4e3a05;
	background: #fff;
	font-weight: 800;
	transition: .2s ease;
}

.ochp-home .ochp-button .wp-block-button__link:hover {
	border-color: var(--ochp-accent);
	color: #fff;
	background: var(--ochp-accent);
	transform: translateY(-2px);
}

.ochp-section {
	width: min(1120px, calc(100% - 40px));
	max-width: 1120px !important;
	margin: 0 auto;
	padding: clamp(66px, 8vw, 96px) 0;
}

.ochp-home .ochp-section__title {
	margin-bottom: 8px;
	font-size: clamp(1.85rem, 3vw, 2.8rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: .04em;
}

.ochp-section__lead {
	margin-bottom: 40px !important;
	color: var(--ochp-muted);
}

.ochp-way-grid {
	gap: 18px;
}

.ochp-way-grid > .wp-block-column {
	display: flex;
}

.ochp-way {
	width: 100%;
	min-height: 255px;
	padding: 27px 18px 24px;
	border: 2px solid var(--ochp-line);
	border-radius: 28px;
	background: #fffefa;
	transition: .2s ease;
}

.ochp-way:hover {
	border-color: var(--ochp-secondary);
	box-shadow: 0 14px 28px rgba(85, 67, 19, .1);
	transform: translateY(-5px);
}

.ochp-way .ochp-way__badge {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 14px;
	border-radius: 50%;
	color: #fff;
	background: var(--ochp-accent);
	font-weight: 800;
}

.ochp-way h3 {
	margin-bottom: 4px;
	font-size: 1.12rem;
}

.ochp-way p:not(.ochp-way__badge) {
	margin-bottom: 14px;
	color: var(--ochp-muted);
	font-size: .88rem;
}

.ochp-home .ochp-card-button .wp-block-button__link {
	padding: 7px 15px;
	border: 2px solid var(--ochp-secondary);
	border-radius: 999px;
	color: #5c450c;
	background: transparent;
	font-size: .84rem;
	font-weight: 800;
}

.ochp-home .ochp-card-button .wp-block-button__link:hover {
	color: #fff;
	background: var(--ochp-accent);
	border-color: var(--ochp-accent);
}

.ochp-feature-bg {
	background: var(--ochp-cream);
}

.ochp-feature-grid {
	gap: 32px;
}

.ochp-feature-card {
	height: 100%;
	overflow: hidden;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(80, 61, 18, .08);
}

.ochp-feature-card > .wp-block-image img {
	width: 100%;
	height: 265px;
	object-fit: cover;
}

.ochp-feature-card__copy {
	padding: 26px 28px 30px;
}

.ochp-label {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 12px;
	border-radius: 999px;
	color: #fff;
	background: var(--ochp-accent);
	font-size: .78rem;
	font-weight: 800;
}

.ochp-feature-card h3 {
	margin-bottom: 8px;
	font-size: 1.4rem;
	line-height: 1.5;
}

.ochp-guide-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ochp-guide {
	padding: 20px 22px;
	border: 2px solid var(--ochp-line);
	border-radius: 18px;
	background: #fff;
}

.ochp-guide > *:last-child {
	margin-bottom: 0;
}

.ochp-guide__tag {
	margin-bottom: 2px;
	color: var(--ochp-accent);
	font-size: .78rem;
	font-weight: 800;
}

.ochp-guide h3 {
	margin-bottom: 2px;
	font-size: 1.1rem;
}

.ochp-guide p:not(.ochp-guide__tag) {
	margin-bottom: 8px;
	color: var(--ochp-muted);
	font-size: .88rem;
}

.ochp-guide--split {
	margin-top: auto;
}

.ochp-about .wp-block-columns {
	gap: clamp(32px, 5vw, 58px);
}

.ochp-home .ochp-about__image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 44% 56% 48% 52% / 55% 38% 62% 45%;
}

.ochp-home .ochp-about__title {
	margin-bottom: 14px;
	font-size: clamp(1.85rem, 3vw, 2.6rem);
	font-weight: 800;
	line-height: 1.5;
}

.ochp-trust {
	gap: 10px;
	margin: 20px 0 6px;
}

.ochp-trust p {
	margin: 0;
	padding: 8px 14px;
	border-radius: 999px;
	color: #a22c35;
	background: #fff0ef;
	font-size: .88rem;
	font-weight: 800;
}

.ochp-latest-bg {
	background: #fff8f2;
}

.ochp-latest-query .wp-block-post-template {
	gap: 20px;
}

.ochp-post-card {
	height: 100%;
	padding: 0 0 24px;
	overflow: hidden;
	border: 1px solid #eadfd5;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 26px rgba(58, 45, 27, .07);
}

.ochp-post-card > *:not(.wp-block-post-featured-image) {
	margin-right: 22px;
	margin-left: 22px;
}

.ochp-post-card .wp-block-post-featured-image img {
	width: 100%;
	object-fit: cover;
}

.ochp-post-card .wp-block-post-date {
	margin-top: 18px;
	margin-bottom: 7px;
	color: var(--ochp-muted);
	font-size: .78rem;
}

.ochp-post-card .wp-block-post-title {
	margin-bottom: 10px;
	font-size: 1.08rem;
	line-height: 1.55;
}

.ochp-post-card .wp-block-post-excerpt {
	font-size: .9rem;
}

.ochp-post-card .wp-block-post-excerpt__more-link {
	color: var(--ochp-accent);
	font-weight: 800;
}

@media (max-width: 920px) {
	.ochp-hero {
		min-height: auto;
		padding-bottom: 125px;
	}

	.ochp-hero__inner,
	.ochp-feature-grid,
	.ochp-about > .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.ochp-hero__inner > .wp-block-column,
	.ochp-feature-grid > .wp-block-column,
	.ochp-about > .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

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

	.ochp-hero__copy .wp-block-buttons {
		justify-content: center;
	}

	.ochp-hero__lead {
		margin-right: auto;
		margin-left: auto;
	}

	.ochp-way-grid {
		flex-wrap: wrap !important;
	}

	.ochp-way-grid > .wp-block-column {
		flex-basis: calc(50% - 10px) !important;
	}

	.ochp-latest-query .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ochp-home {
		font-size: 16px;
	}

	.ochp-hero {
		padding: 42px 20px 110px;
	}

	.ochp-home .ochp-hero__title {
		font-size: 2.05rem;
	}

	.ochp-hero__note {
		right: 0;
		bottom: -10px;
		width: 140px;
		font-size: .82rem;
	}

	.ochp-section {
		width: min(100% - 32px, 1120px);
	}

	.ochp-way-grid > .wp-block-column {
		flex-basis: 100% !important;
	}

	.ochp-way {
		min-height: 0;
		border-radius: 22px;
	}

	.ochp-feature-card > .wp-block-image img {
		height: 210px;
	}

	.ochp-feature-card__copy {
		padding: 23px 20px 26px;
	}

	.ochp-guide--split .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.ochp-latest-query .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

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

/* MERILの自動目次は、このトップページ用テンプレートでのみ非表示にする。 */
body.ochp-page .p-toc,
body.ochp-page #mokuji,
body.ochp-page .js_toc_outer_height {
	display: none !important;
}
