/* 学校TOP: ページヘッダー下の余白調整 */
body.page-id-689 .l-contents > .c-page-header {
	margin-bottom: 0;
}

body.page-id-689 .l-contents__body,
body.page-id-689 .l-contents__container,
body.page-id-689 .l-contents__inner {
	margin-top: 0;
	padding-top: 0;
}

/* フロントページ: 本文セクション上の余白調整 */
.c-section.p-section-front-page-content {
	padding-top: 0;
}

/* 見出しブロック: コーポレート向けH2スタイル */
.wp-block-heading.is-style-horiemon-corporate-heading {
	position: relative;
	display: block;
	box-sizing: border-box;
	border: 0;
	background: transparent;
	color: #25272B;
	text-align: left;
	letter-spacing: 0;
	line-height: 1.45;
}

h2.wp-block-heading.is-style-horiemon-corporate-heading {
	margin-right: 0;
	margin-left: 0;
	padding: 0 0 0 26px;
	font-size: clamp(1.5rem, 2.1vw, 2rem);
	font-weight: 800;
}

.wp-block-heading.is-style-horiemon-corporate-heading::before {
	position: absolute;
	top: 50%;
	left: 0;
	display: block;
	width: 14px;
	height: 1px;
	background: #2865E7;
	content: "";
	transform: translateY(-50%);
}

.wp-block-heading.is-style-horiemon-corporate-heading::after {
	content: none;
}

@media (max-width: 639.98px) {
	h2.wp-block-heading.is-style-horiemon-corporate-heading {
		padding-left: 22px;
		font-size: 1.45rem;
	}
}

/* 学校TOPメインビジュアル: CTAボタンの立体表現 */
.front-main-visual__buttons .smb-btn,
.sp-main-visual__buttons .smb-btn {
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 18px rgba(37, 39, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.42);
	font-weight: 700;
}

.front-main-visual__buttons .smb-btn::after,
.sp-main-visual__buttons .smb-btn::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 36%;
	background: rgba(37, 39, 43, 0.08);
	content: "";
	pointer-events: none;
}

.front-main-visual__buttons .smb-btn-wrapper.is-style-ghost .smb-btn,
.sp-main-visual__buttons .smb-btn-wrapper:first-child .smb-btn {
	background: linear-gradient(180deg, #fff 0%, #fff 58%, #F7FAFF 100%);
	box-shadow: 0 10px 18px rgba(37, 39, 43, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.front-main-visual__buttons .smb-btn-wrapper:not(.is-style-ghost) .smb-btn,
.sp-main-visual__buttons .smb-btn-wrapper:nth-child(2) .smb-btn {
	background: linear-gradient(180deg, #FF934B 0%, #FF8334 58%, #F46F22 100%);
	box-shadow: 0 12px 20px rgba(255, 138, 61, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* 学校TOPメインビジュアル: スマホ表示 */
@media (max-width: 639.98px) {
	.front-main-visual {
		display: none;
	}

	.sp-main-visual {
		position: relative;
		width: 100vw !important;
		max-width: 100vw !important;
		margin-right: calc(50% - 50vw) !important;
		margin-left: calc(50% - 50vw) !important;
		box-sizing: border-box;
		overflow: hidden;
		padding: 0;
	}

	.sp-main-visual__image {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0;
		line-height: 0;
	}

	.sp-main-visual__image img {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
	}

	.sp-main-visual__buttons,
	.sp-main-visual__buttons.smb-buttons,
	.sp-main-visual .sp-main-visual__buttons.is-layout-flex {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 4;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin: 0;
		padding: 10px;
		background: #2865E7;
		box-sizing: border-box;
	}

	.sp-main-visual__buttons > *,
	.sp-main-visual__buttons .smb-btn-wrapper {
		width: 100%;
		margin: 0;
	}

	.sp-main-visual__buttons .smb-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 52px;
		padding: 8px 12px;
		border-radius: 6px;
		font-size: 13px;
		line-height: 1.35;
		text-align: center;
	}

	.sp-main-visual__buttons .smb-btn-wrapper:first-child .smb-btn {
		border: 2px solid #FF8A3D;
		background: #fff;
		color: #FF8A3D;
	}

	.sp-main-visual__buttons .smb-btn-wrapper:nth-child(2) .smb-btn {
		border: 2px solid #FF8A3D;
		background: #FF8A3D;
		color: #fff;
	}

	body.horiemon-lp-page .sp-main-visual__buttons:has(> .smb-btn-wrapper:only-child),
	body.horiemon-lp-page .sp-main-visual__buttons.smb-buttons:has(> .smb-btn-wrapper:only-child),
	body.horiemon-lp-page .sp-main-visual .sp-main-visual__buttons.is-layout-flex:has(> .smb-btn-wrapper:only-child) {
		grid-template-columns: minmax(0, 1fr);
	}

	body.horiemon-lp-page .sp-main-visual__buttons .smb-btn-wrapper:first-child .smb-btn {
		border: 2px solid #FF8A3D;
		background: #FF8A3D;
		color: #fff;
		box-shadow: 0 12px 20px rgba(255, 138, 61, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	}

	.sp-main-visual__buttons .smb-btn__label,
	.sp-main-visual__buttons .smb-btn__label .sme-font-size,
	.sp-main-visual__buttons .smb-btn__label .has-sm-l-font-size {
		font-size: 13px !important;
		line-height: 1.35;
		white-space: normal;
	}
}

/* 学校TOPメインビジュアル: タブレット表示 */
@media (min-width: 640px) and (max-width: 1023.98px) {
	.front-main-visual {
		position: relative;
		min-height: clamp(390px, 58vw, 520px);
		overflow: hidden;
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
		--front-main-visual-tablet-width: min(960px, calc(100vw - 32px));
		--front-main-visual-tablet-left: max(16px, calc((100vw - 960px) / 2 + 24px));
	}

	.front-main-visual .smb-section__inner,
	.front-main-visual > .smb-section__inner,
	.front-main-visual > .c-container {
		min-height: clamp(390px, 58vw, 520px);
	}

	.front-main-visual .c-container {
		max-width: none;
		padding-right: 0;
		padding-left: 0;
	}

	.front-main-visual__inner {
		position: relative;
		width: var(--front-main-visual-tablet-width);
		max-width: var(--front-main-visual-tablet-width);
		min-height: clamp(390px, 58vw, 520px);
		margin-inline: auto;
	}

	.front-main-visual__copy {
		position: absolute;
		top: clamp(12px, 2vw, 20px);
		left: 16px;
		z-index: 2;
		width: min(620px, 58vw);
		margin: 0;
	}

	.front-main-visual__copy img,
	.front-main-visual__model img {
		display: block;
		width: 100%;
		height: auto;
	}

	.front-main-visual__model {
		position: absolute;
		right: 0;
		bottom: 0;
		z-index: 3;
		width: min(330px, 31vw);
		margin: 0;
	}

	.front-main-visual__buttons,
	.front-main-visual__buttons.smb-buttons,
	.front-main-visual .front-main-visual__buttons.is-layout-flex {
		position: absolute;
		left: var(--front-main-visual-tablet-left);
		bottom: clamp(18px, 3vw, 28px);
		z-index: 4;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		width: min(560px, 56vw);
		margin: 0;
	}

	.front-main-visual__buttons > *,
	.front-main-visual__buttons .smb-btn-wrapper {
		width: 100%;
		margin: 0;
	}

	.front-main-visual__buttons .smb-btn,
	.front-main-visual__buttons .wp-block-button,
	.front-main-visual__buttons .wp-block-button__link {
		width: 100%;
	}

	.front-main-visual__buttons .smb-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: clamp(52px, 7vw, 64px);
		padding-right: 10px;
		padding-left: 10px;
	}

	.front-main-visual__buttons .smb-btn__label,
	.front-main-visual__buttons .smb-btn__label .sme-font-size,
	.front-main-visual__buttons .smb-btn__label .has-sm-l-font-size {
		font-size: clamp(11px, 1.45vw, 15px) !important;
		line-height: 1.35;
		white-space: nowrap;
	}
}

/* 学校TOPメインビジュアル: PC表示 */
@media (min-width: 1024px) {
	.front-main-visual {
		position: relative;
		min-height: 640px;
		overflow: hidden;
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
		--front-main-visual-width: min(1200px, calc(100vw - 48px));
		--front-main-visual-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
	}

	.front-main-visual .smb-section__inner,
	.front-main-visual > .smb-section__inner,
	.front-main-visual > .c-container {
		min-height: 640px;
	}

	.front-main-visual .c-container {
		max-width: none;
		padding-right: 0;
		padding-left: 0;
	}

	.front-main-visual__inner {
		position: relative;
		width: var(--front-main-visual-width);
		max-width: var(--front-main-visual-width);
		min-height: 640px;
		margin-inline: auto;
	}

	.front-main-visual__copy {
		position: absolute;
		top: 24px;
		left: 24px;
		z-index: 2;
		width: min(760px, 61vw);
		margin: 0;
	}

	.front-main-visual__copy img {
		display: block;
		width: 100%;
		height: auto;
	}

	.front-main-visual__model {
		position: absolute;
		right: 0;
		bottom: 0;
		z-index: 3;
		width: min(399px, 31vw);
		margin: 0;
	}

	.front-main-visual__model img {
		display: block;
		width: 100%;
		height: auto;
	}

	.front-main-visual__buttons,
	.front-main-visual__buttons.smb-buttons,
	.front-main-visual .front-main-visual__buttons.is-layout-flex {
		position: absolute;
		left: var(--front-main-visual-left);
		bottom: 36px;
		z-index: 4;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		width: min(650px, 52vw);
		margin: 0;
	}

	.front-main-visual__buttons > *,
	.front-main-visual__buttons .smb-btn-wrapper {
		width: 100%;
		margin: 0;
	}

	.front-main-visual__buttons .smb-btn,
	.front-main-visual__buttons .wp-block-button,
	.front-main-visual__buttons .wp-block-button__link {
		width: 100%;
	}

	.front-main-visual__buttons .smb-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 70px;
		padding-right: 22px;
		padding-left: 22px;
	}

	/* ヘッダー: PCグローバルナビの通常メニュー */
	.p-global-nav .c-navbar__item:not(.menu-item-1625):not(.menu-item-1624) > a {
		font-size: clamp(0.95rem, 0.9vw, 1.05rem);
		font-weight: 700;
	}

	/* ヘッダー: ドロップダウンメニューの矢印表示 */
	.p-global-nav .c-navbar__item.menu-item-has-children > a {
		background: transparent;
		transition: color 0.18s ease;
	}

	.p-global-nav .c-navbar__item.menu-item-has-children > a > span {
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	.p-global-nav .c-navbar__item.menu-item-has-children > a > span::after {
		content: "";
		display: inline-block;
		width: 0;
		height: 0;
		border-inline: 4px solid transparent;
		border-top: 5px solid currentColor;
		opacity: 0.55;
		transform: translateY(1px);
		transition: opacity 0.18s ease;
	}

	.p-global-nav .c-navbar__item.menu-item-has-children:hover > a,
	.p-global-nav .c-navbar__item.menu-item-has-children:focus-within > a {
		color: inherit;
	}

	.p-global-nav .c-navbar__item.menu-item-has-children:hover > a > span::after,
	.p-global-nav .c-navbar__item.menu-item-has-children:focus-within > a > span::after {
		opacity: 1;
	}
}

/* スマホ固定フッターメニュー */
@media (max-width: 1023.98px) {
	#footer-sticky-nav.p-footer-sticky-nav {
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -6px 18px rgba(37, 39, 43, 0.12);
	}

	#footer-sticky-nav .c-navbar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		padding: 0;
	}

	#footer-sticky-nav .c-navbar__item {
		width: 100%;
	}

	#footer-sticky-nav .c-navbar__item > a {
		display: grid;
		place-items: center;
		min-height: 48px;
		padding: 8px 10px;
		border-radius: 6px;
		color: #fff;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.25;
		text-align: center;
		text-decoration: none;
	}

	#footer-sticky-nav .c-navbar__item:first-child > a {
		background: #2865E7;
	}

	#footer-sticky-nav .c-navbar__item:last-child > a {
		background: #FF8A3D;
	}
}

/* フッター: 黒背景と白ロゴ */
.l-footer {
	background: #0B0D12;
	color: rgba(255, 255, 255, 0.82);
}

.l-footer .l-footer__body,
.l-footer .l-footer__footer {
	background: transparent;
}

.l-footer a,
.l-footer .wp-block-paragraph,
.l-footer .wp-block-list,
.l-footer .wp-block-list li,
.l-footer .c-copyright {
	color: inherit;
}

.l-footer a,
.l-footer a:hover,
.l-footer a:focus {
	text-decoration: none;
}

.l-footer .custom-logo {
	filter: brightness(0) invert(1);
}

@media (max-width: 639.98px) {
	.l-footer .custom-logo {
		width: 200px;
		max-width: 100%;
	}
}

.l-footer .p-social-nav .c-navbar {
	gap: 8px;
}

.l-footer .p-social-nav .c-navbar__item > a {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

.l-footer .p-social-nav .c-navbar__item > a :where(i, svg) {
	color: #fff;
	fill: currentColor;
}

.l-footer__footer {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* 漫画モーダル: CTAカード */
.manga-modal-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 12px;
	padding: 18px 20px;
	border: 1px solid #DDE3EA;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.manga-modal-cta__lead {
	width: 100%;
	margin: 0;
	color: #25272B;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.manga-modal-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 6px;
	background: #2865E7;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.manga-modal-cta__button:hover,
.manga-modal-cta__button:focus-visible {
	background: #1f55c8;
	color: #fff;
}

.manga-modal-cta__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 4px 10px;
	border-radius: 9999px;
	background: #FF8A3D;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.manga-modal-cta--with-image {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	align-items: center;
	gap: 18px;
	max-width: 760px;
	min-height: 150px;
	margin-inline: auto;
	padding: 16px 22px;
	text-align: left;
}

.manga-modal-cta--with-image .manga-modal-cta__lead {
	width: auto;
	margin-bottom: 10px;
	text-align: left;
}

.manga-modal-cta__text {
	min-width: 0;
}

.manga-modal-cta__image {
	margin: 0;
}

.manga-modal-cta__image img {
	display: block;
	width: 100%;
	max-height: 118px;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
}

/* 漫画モーダル: サムネイル付きCTAカード */
.manga-modal-cta--card {
	display: grid;
	gap: 16px;
	max-width: 500px;
	margin-inline: auto;
	padding: 18px;
	overflow: hidden;
	border: 1px solid rgba(40, 101, 231, 0.16);
	border-radius: 10px;
	background:
		linear-gradient(135deg, rgba(40, 101, 231, 0.08), rgba(255, 255, 255, 0) 46%),
		#fff;
	box-shadow: 0 18px 44px rgba(37, 39, 43, 0.12);
	text-align: left;
}

.manga-modal-cta--card .manga-modal-cta__image {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 18px 18px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.78);
}

.manga-modal-cta--card .manga-modal-cta__image img {
	width: auto;
	max-width: 100%;
	max-height: 340px;
	border-radius: 3px;
	filter: drop-shadow(0 18px 22px rgba(37, 39, 43, 0.18));
	object-fit: contain;
}

.manga-modal-cta--card .manga-modal-cta__text {
	padding: 0 4px 2px;
}

.manga-modal-cta--card .manga-modal-cta__lead {
	width: auto;
	margin: 0 0 7px;
	color: #25272B;
	font-size: 18px;
	letter-spacing: 0;
	line-height: 1.45;
	text-align: center;
}

.manga-modal-cta__description {
	margin: 0 0 14px;
	color: #596274;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
}

.manga-modal-cta--card .manga-modal-cta__button {
	width: 100%;
	min-height: 46px;
	border-radius: 7px;
	box-shadow: 0 10px 22px rgba(40, 101, 231, 0.24);
}

.manga-modal-cta--card .manga-modal-cta__button::after {
	content: "";
	width: 0.42em;
	height: 0.42em;
	margin-left: 9px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* 漫画モーダル: オーバーレイとダイアログ */
.horiemon-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	width: 100vw;
	max-width: none;
	margin: 0;
	padding: 32px 20px;
	visibility: visible;
}

.horiemon-modal[aria-hidden="true"] {
	pointer-events: none;
	visibility: hidden;
}

.horiemon-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(37, 39, 43, 0.72);
	opacity: 1;
	transition: opacity 0.18s ease;
}

.horiemon-modal[aria-hidden="true"] .horiemon-modal__overlay {
	opacity: 0;
}

.horiemon-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: min(86vh, 920px);
	overflow: auto;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(37, 39, 43, 0.24);
	transform: translateY(0);
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.horiemon-modal[aria-hidden="true"] .horiemon-modal__dialog {
	opacity: 0;
	transform: translateY(12px);
}

.horiemon-modal__close {
	position: sticky;
	top: 12px;
	left: calc(100% - 52px);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 12px 12px -52px auto;
	border: 0;
	border-radius: 9999px;
	background: #25272B;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.horiemon-modal__dialog > h2 {
	margin: 0;
	padding: 28px 72px 18px 28px;
	border-bottom: 1px solid #DDE3EA;
	color: #25272B;
	font-size: 22px;
	line-height: 1.4;
}

.horiemon-modal__body {
	padding: 24px;
}

.manga-modal-content {
	display: grid;
	gap: 0;
}

.manga-modal-content figure,
.manga-modal-content .wp-block-image {
	margin: 0;
}

.manga-modal-content img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
}

body.horiemon-modal-open {
	overflow: hidden;
}

/* 漫画モーダル: スマホ表示 */
@media (max-width: 639.98px) {
	.manga-modal-cta {
		padding: 16px;
	}

	.manga-modal-cta--with-image {
		grid-template-columns: 1fr;
		max-width: 340px;
		min-height: 0;
		padding: 16px;
		text-align: center;
	}

	.manga-modal-cta--with-image .manga-modal-cta__lead {
		text-align: center;
	}

	.manga-modal-cta__button {
		width: 100%;
	}

	.manga-modal-cta__image {
		max-width: 180px;
		margin-inline: auto;
	}

	.manga-modal-cta--card {
		max-width: 100%;
		padding: 14px;
	}

	.manga-modal-cta--card .manga-modal-cta__image {
		max-width: none;
		padding: 14px 12px 10px;
	}

	.manga-modal-cta--card .manga-modal-cta__image img {
		max-height: 300px;
	}

	.manga-modal-cta--card .manga-modal-cta__lead,
	.manga-modal-cta--card .manga-modal-cta__description {
		text-align: center;
	}

	.horiemon-modal {
		align-items: end;
		padding: 16px 10px calc(16px + env(safe-area-inset-bottom));
	}

	.horiemon-modal__dialog {
		width: 100%;
		max-height: 88vh;
		border-radius: 8px 8px 0 0;
	}

	.horiemon-modal__dialog > h2 {
		padding: 22px 64px 14px 18px;
		font-size: 18px;
	}

	.horiemon-modal__body {
		padding: 16px;
	}
}

/* ヘッダー: PCグローバルナビのCTAボタン */
.menu-item-1625 > a {
	border-radius: 8px;
	background: #2865E7;
	color: #fff !important;
	line-height: 1.2 !important;
}

.menu-item-1624 > a {
	margin-left: 10px;
	border-radius: 8px;
	background: #FF8A3D;
	color: #fff !important;
	line-height: 1.2 !important;
}

/* ヘッダー: スマホドロワー内のCTAボタン */
.menu-item-1650 {
	padding: 8px 5px;
	border: 1px solid #2865E7;
	border-radius: 8px;
	background: #fff;
	color: #2865E7;
	text-align: center;
}

.menu-item-1649 {
	margin-top: 10px !important;
	padding: 8px 5px;
	border: 1px solid #FF8A3D;
	border-radius: 8px;
	background: #fff;
	color: #FF8A3D;
	text-align: center;
}

.c-drawer {
	background-color: #DDE3EA;
	color: #000;
}

/* ページヘッダー: アイキャッチ背景ありページの高さ調整 */
.c-page-header[data-has-image="true"] {
	max-height: 350px;
}

/* アーカイブ一覧: サムネイル比率とカード余白 */
.archive .c-entry-summary__figure {
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.horiemon-card-image-16x9 .c-entry-summary__figure,
.horiemon-card-image-16x9 :where(.wp-block-image, figure),
.horiemon-card-image-16x9.wp-block-image,
figure.horiemon-card-image-16x9 {
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.archive .c-entry-summary__figure > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.horiemon-card-image-16x9 .c-entry-summary__figure > img,
.horiemon-card-image-16x9 :where(.wp-block-image, figure) > img,
.horiemon-card-image-16x9.wp-block-image > img,
figure.horiemon-card-image-16x9 > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.archive .c-entry-summary__body {
	padding-top: clamp(12px, 1.5vw, 18px);
	padding-bottom: clamp(12px, 1.5vw, 18px);
}

.archive .c-entry-summary__header {
	margin-bottom: 8px;
}

.archive .c-entry-summary__title {
	margin-bottom: 0;
	line-height: 1.55;
}

.archive .c-entry-summary__meta {
	margin-top: 8px;
	font-size: 0.875rem;
}

/* 学校TOP: セミナー一覧カード画像 */
.page-id-689 .c-entry-summary--type-seminar .c-entry-summary__figure {
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.page-id-689 .c-entry-summary--type-seminar .c-entry-summary__figure > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* 全体: フッター前の下余白 */
.l-contents {
	padding-bottom: clamp(48px, 8vw, 96px);
}

/* 法人・個人プラン: 最終CTAセクションとフッターの余白調整 */
body:is(.page-id-737, .page-id-727) .l-contents {
	padding-bottom: 0;
}

body:is(.page-id-737, .page-id-727) .l-contents__inner:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

body:is(.page-id-737, .page-id-727) .l-contents__main > article,
body:is(.page-id-737, .page-id-727) .l-contents__main > article > .c-entry__body,
body:is(.page-id-737, .page-id-727) .l-contents__main > article > .c-entry__body > *:last-child {
	margin-bottom: 0;
}

/* AI事例: 会社ロゴと会社名プロフィール */
.wp-block-columns.case-company-profile {
	align-items: center;
	flex-wrap: nowrap;
	gap: clamp(24px, 4vw, 40px);
	box-sizing: border-box;
	padding: 0;
	border: none;
	background: transparent;
}

.wp-block-columns.case-company-profile > .wp-block-column {
	box-sizing: border-box;
	margin: 0;
}

.wp-block-columns.case-company-profile > .wp-block-column:first-child {
	flex: 0 0 20%;
	max-width: 180px;
}

.wp-block-columns.case-company-profile > .wp-block-column:first-child .wp-block-image,
.wp-block-columns.case-company-profile > .wp-block-column:first-child figure {
	margin: 0;
}

.wp-block-columns.case-company-profile > .wp-block-column:first-child img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	padding: clamp(12px, 1.8vw, 20px);
	border: 1px solid #DDE3EA;
	background-color: #fff;
}

.wp-block-columns.case-company-profile > .wp-block-column:last-child {
	flex: 1 1 auto;
	min-width: 0;
}

.wp-block-columns.case-company-profile > .wp-block-column:last-child > *:first-child {
	margin-top: 0;
}

.wp-block-columns.case-company-profile > .wp-block-column:last-child > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.wp-block-columns.case-company-profile {
		gap: 18px;
	}

	.wp-block-columns.case-company-profile > .wp-block-column:first-child {
		flex: 0 0 120px !important;
		max-width: 120px;
	}

	.wp-block-columns.case-company-profile > .wp-block-column:first-child img {
		padding: 12px;
	}

	.wp-block-columns.case-company-profile > .wp-block-column:last-child {
		flex: 1 1 auto !important;
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.wp-block-columns.case-company-profile {
		gap: 14px;
	}

	.wp-block-columns.case-company-profile > .wp-block-column:first-child {
		flex-basis: 96px !important;
		max-width: 96px;
	}

	.wp-block-columns.case-company-profile > .wp-block-column:first-child img {
		padding: 10px;
	}
}

/* セミナー・資料請求詳細: フォーム付き2カラムレイアウト */
@media (min-width: 1024px) {
	body:is(.single-seminar, .single-documents) .l-contents__inner {
		max-width: 1240px;
		column-gap: 32px;
		row-gap: 0;
		flex-wrap: nowrap;
	}

	body:is(.single-seminar, .single-documents) .l-contents__main {
		flex: 1 1 auto;
		max-width: calc(100% - 512px);
	}

	body:is(.single-seminar, .single-documents) .l-contents__sidebar {
		flex: 0 0 480px;
		max-width: 480px;
		margin-left: 0;
	}
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
	body:is(.single-seminar, .single-documents) .l-contents__inner {
		column-gap: 28px;
	}

	body:is(.single-seminar, .single-documents) .l-contents__main {
		max-width: calc(100% - 458px);
	}

	body:is(.single-seminar, .single-documents) .l-contents__sidebar {
		flex-basis: 430px;
		max-width: 430px;
	}
}

body:is(.single-seminar, .single-documents) .l-sidebar-widget-area > :where(:not(:first-child)) {
	margin-top: 0;
}

/* 固定ページ・アーカイブ: タイトル下背景画像 */
body.horiemon-page-title-bg .c-page-header {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(140px, 20vw, 220px);
	padding: clamp(32px, 5vw, 56px) 0;
	background-image: url("/wp-content/uploads/2026/08/head-title-bg.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

body.horiemon-page-title-bg .c-page-header__title {
	color: #fff;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.35;
}

/* ボタン: 右側の丸矢印アイコン */
.button-fa-arrow .smb-btn {
	position: relative;
	padding-right: calc(var(--smb-btn--padding-horizontal) + 2.4em);
}

.button-fa-arrow .smb-btn::after {
	position: absolute;
	top: 50%;
	right: var(--smb-btn--padding-horizontal);
	box-sizing: border-box;
	width: 1.45em;
	height: 1.45em;
	border: 1px solid currentColor;
	border-radius: 50%;
	content: "";
	transform: translateY(-50%);
}

.button-fa-arrow .smb-btn::before {
	position: absolute;
	top: 50%;
	right: calc(var(--smb-btn--padding-horizontal) + 0.56em);
	z-index: 1;
	width: 0.36em;
	height: 0.36em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	content: "";
	transform: translateY(-50%) rotate(45deg);
}

/* スクール料金: 特長番号の正円表示 */
.feature-number {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 60px !important;
	width: 60px !important;
	min-width: 60px !important;
	height: 60px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50%;
	background: #2865E7 !important;
	color: #fff !important;
	font-size: 30px !important;
	font-weight: 700;
	line-height: 1 !important;
}

.feature-number .sme-line-height {
	line-height: 1 !important;
}

@media (max-width: 767px) {
	.feature-number {
		flex-basis: 52px !important;
		width: 52px !important;
		min-width: 52px !important;
		height: 52px !important;
		font-size: 26px !important;
	}
}

/* スクール料金: 講座ステップ表 */
.course-step-row {
	align-items: stretch;
}

.course-step-time,
.course-step-result {
	display: flex;
	align-items: center;
}

.course-step-result {
	display: block;
}

@media (min-width: 768px) {
	.course-step-row > * + * {
		border-left: 1px solid #E2E8F0;
	}
}

@media (max-width: 767px) {
	.course-step-row > * + * {
		border-left: none;
	}

	.course-step-name {
		text-align: center;
	}
}

/* 学校TOP: Snow Monkey標準のページタイトルとパンくずを非表示 */
body.page-id-689 .c-page-header,
body.page-id-689 .p-breadcrumbs-wrapper {
	display: none !important;
}

/* LP資料請求完了: Snow Monkey標準のページタイトルとパンくずを非表示 */
body.horiemon-lp-page .c-page-header,
body.horiemon-lp-page .p-breadcrumbs-wrapper,
body.page-id-2097 .c-page-header,
body.page-id-2097 .p-breadcrumbs-wrapper {
	display: none !important;
}

body.horiemon-lp-page .l-contents__inner {
	margin-top: 0;
}

body.horiemon-lp-page .p-header-sub-nav {
	display: none !important;
}

body.horiemon-lp-page .l-footer__body {
	display: none !important;
}

body.horiemon-lp-page #footer-sticky-nav,
body.horiemon-lp-page .p-footer-sticky-nav {
	display: none !important;
}

body.horiemon-lp-page .p-global-nav .c-navbar__item:last-child > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 4px;
	background: #ff8238;
	color: #fff !important;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

body.horiemon-lp-page .p-global-nav .c-navbar__item:last-child > a::after {
	content: none !important;
	display: none !important;
}

body.horiemon-lp-page .p-global-nav .c-navbar__item:last-child > a:hover,
body.horiemon-lp-page .p-global-nav .c-navbar__item:last-child > a:focus-visible {
	background: #f06f24;
	color: #fff !important;
	transform: translateY(-1px);
}

/* 汎用: 中央寄せの料金カード */
.horiemon-centered-card,
.price-plan-card {
	box-sizing: border-box;
	width: min(100%, 640px);
	margin-right: auto;
	margin-left: auto;
	padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
	border: 1px solid #aebbd0;
	background: #fff;
}

.horiemon-centered-card > :where(:first-child),
.price-plan-card > :where(:first-child) {
	margin-top: 0;
}

.horiemon-centered-card > :where(:last-child),
.price-plan-card > :where(:last-child) {
	margin-bottom: 0;
}

@media (max-width: 639.98px) {
	.horiemon-centered-card,
	.price-plan-card {
		width: 100%;
		padding: 28px 18px;
	}
}

/* 汎用: 淡いブルーグレーのセクション背景 */
.horiemon-soft-bg-section,
.school-intro-section {
	background:
		radial-gradient(circle at 16% 18%, rgba(40, 101, 231, 0.10), transparent 26%),
		radial-gradient(circle at 86% 80%, rgba(106, 92, 166, 0.10), transparent 28%),
		linear-gradient(180deg, #F8FAFC 0%, #EEF3FA 100%);
}

/* 汎用: 濃色の説明ボックス */
.horiemon-dark-lead-box,
.school-intro-lead {
	background: linear-gradient(135deg, #25272B 0%, #334155 100%) !important;
}

/* ロゴスライダー */
.logo-slider {
	width: 100vw;
	max-width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	overflow: hidden;
	padding: clamp(10px, 2vw, 18px) 0;
}

.logo-slider__track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: logo-slider-scroll 42s linear infinite;
	will-change: transform;
}

.logo-slider__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	height: clamp(42px, 5.2vw, 64px);
	margin: 0 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.logo-slider__item img {
	display: block;
	width: auto;
	max-width: none;
	height: 100%;
	object-fit: contain;
}

.logo-slider:hover .logo-slider__track {
	animation-play-state: paused;
}

@keyframes logo-slider-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 639.98px) {
	.logo-slider {
		padding: 10px 0;
	}

	.logo-slider__track {
		animation-duration: 34s;
	}

	.logo-slider__item {
		height: 44px;
		margin: 0 10px;
	}
}

/* Googleフォーム埋め込み */
.horiemon-google-form {
	width: min(100%, 760px);
	margin: 0 auto;
}

.horiemon-google-form iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	background: #fff;
}

.horiemon-google-form-unavailable {
	padding: 18px 20px;
	border-radius: 8px;
	background: #F3F6FB;
	color: #25272B;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
}

/* カスタム投稿タイプ月別アーカイブ */
.horiemon-monthly-archives {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.horiemon-monthly-archives__item > a {
	display: block;
	padding: 8px 0;
	color: inherit;
	text-decoration: none;
}

.horiemon-monthly-archives__item > a:hover,
.horiemon-monthly-archives__item > a:focus {
	color: #2865E7;
	text-decoration: none;
}

/* Googleフォーム埋め込み: 1カラム時はフォーム内スクロールを避ける */
@media (max-width: 1023.98px) {
	.horiemon-google-form iframe {
		height: 1200px;
	}
}

@media (max-width: 639.98px) {
	.horiemon-google-form {
		width: 100%;
	}

	.horiemon-google-form iframe {
		height: 1350px;
	}
}

/* 汎用: 背景ありセクション内のテーブル */
.table-on-soft-bg {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-on-soft-bg table {
	width: 100%;
	min-width: 880px;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	border: 0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(37, 39, 43, 0.08);
}

.table-on-soft-bg th {
	background: #F3F6FB;
	color: #25272B;
	font-weight: 700;
}

.table-on-soft-bg th,
.table-on-soft-bg td {
	padding: 16px 18px;
	border: 0;
	border-bottom: 1px solid #DDE3EA;
	vertical-align: middle;
}

.table-on-soft-bg th:nth-child(1),
.table-on-soft-bg td:nth-child(1) {
	width: 20%;
}

.table-on-soft-bg th:nth-child(2),
.table-on-soft-bg td:nth-child(2) {
	width: 22%;
}

.table-on-soft-bg th:nth-child(3),
.table-on-soft-bg td:nth-child(3) {
	width: 34%;
}

.table-on-soft-bg th:nth-child(4),
.table-on-soft-bg td:nth-child(4) {
	width: 24%;
}

.table-on-soft-bg tbody tr:nth-child(even) {
	background: #FAFBFD;
}

.table-on-soft-bg tr:last-child td {
	border-bottom: 0;
}

@media (max-width: 639.98px) {
	.table-on-soft-bg table {
		width: max-content;
		min-width: 880px;
	}

	.table-on-soft-bg th,
	.table-on-soft-bg td {
		padding: 12px 14px;
		white-space: nowrap;
	}
}

