/* =========================================================
   Maruwa テーマ
   値は Emanon Pro / Emanon Business で表示されていたものに合わせている。
   画面幅の区切り：スマホ 〜599px / タブレット 600〜959px / PC 960px〜
   ========================================================= */

:root {
	--c-main: #1e83de;
	--c-sub: #cce7ff;
	--c-text: #3f3f3f;
	--c-strong: #303030;
	--c-meta: #484848;
	--c-link: #1e83de;
	--c-link-hover: #75c0e3;
	--c-bg: #f8f8f8;
	--c-border: #e5e7e8;
	--c-accent: #ffb200;
	--c-footer-bg: #0e69a5;
	--c-footer-text: #d6d6d6;
	--c-cta-bg: #75c0e3;
	--c-cta-box: #1e83de;
	--c-nav-sep: #adc7dd;
	--c-nav-current: #94bbdd;
	--c-hamburger: #9b8d77;

	--fs-s4: 0.66667rem;
	--fs-s3: 0.72727rem;
	--fs-s2: 0.8rem;
	--fs-s1: 0.88889rem;
	--fs-l1: 1.14286rem;
	--fs-l2: 1.33333rem;
	--fs-l3: 1.6rem;
	--fs-l4: 2rem;

	--header-h: 60px;
	--logo-h: 24px;
}

@media (min-width: 768px) {
	:root {
		--header-h: 96px;
		--logo-h: 40px;
	}
}

/* ---------- 基本 ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Arial, Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
	background-color: var(--c-bg);
	overflow-wrap: break-word;
}

body.is-drawer-open {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

img,
video {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
	vertical-align: bottom;
}

textarea {
	overflow: auto;
	vertical-align: top;
}

a {
	color: var(--c-link);
	text-decoration: none;
	transition: color 0.2s, opacity 0.2s;
}

a:hover {
	color: var(--c-link-hover);
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

small {
	font-size: var(--fs-s3);
}

.icon {
	display: inline-block;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 8px 16px;
	clip: auto;
	background: #fff;
	color: var(--c-strong);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* 中身の幅は Emanon と同じく画面幅ごとの固定値（768px〜：736px、960px〜：928px、1200px〜：1180px） */
.l-content,
.l-section {
	width: calc(100% - 32px);
	margin-inline: auto;
}

@media (min-width: 768px) {
	.l-content {
		width: 736px;
	}
}

@media (min-width: 960px) {
	.l-content {
		width: 928px;
	}
}

/* トップの各セクションは 1200px までは画面いっぱい（左右 16px） */
@media (min-width: 1200px) {
	.l-content,
	.l-section {
		width: 1180px;
	}
}

/* ---------- ヘッダー ---------- */

.site-header {
	position: relative;
	z-index: 200;
}

@media (max-width: 959px) {
	.site-header {
		position: sticky;
		top: 0;
	}

	.admin-bar .site-header {
		top: 46px;
	}

	[id] {
		scroll-margin-top: 150px;
	}
}

@media (max-width: 599px) {
	.admin-bar .site-header {
		top: 0;
	}
}

@media (min-width: 783px) and (max-width: 959px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

.top-bar {
	background-color: var(--c-bg);
}

.site-description {
	font-size: var(--fs-s3);
	font-weight: 400;
	line-height: 2;
	letter-spacing: 0.04em;
	color: var(--c-strong);
}

.header-main {
	background-color: #fff;
	border-bottom: 1px solid #e6e6e6;
}

.header-main__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
}

.site-logo a {
	display: block;
	line-height: 0;
}

.site-logo__img {
	width: auto;
	height: var(--logo-h);
}

.site-logo__text {
	font-size: var(--fs-l2);
	font-weight: 700;
	line-height: 1.4;
	color: var(--c-strong);
}

.header-widget {
	display: none;
}

@media (min-width: 960px) {
	.header-widget {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	/* 中身が縦に並ぶグループのとき、ヘッダーの高さに収まるよう間隔を詰める */
	.header-widget .wp-block-group.is-vertical {
		gap: 12px;
	}

	.header-widget p {
		line-height: 1.6;
	}
}

/* ハンバーガー（PC では出さない） */
.hamburger {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.hamburger__lines {
	position: relative;
	display: inline-block;
	width: 26px;
	height: 18px;
}

.hamburger__lines span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 3px;
	background-color: var(--c-hamburger);
}

.hamburger__lines span:nth-child(1) {
	top: 0;
}

.hamburger__lines span:nth-child(2) {
	top: 8px;
}

.hamburger__lines span:nth-child(3) {
	bottom: 0;
}

.hamburger__label {
	margin-top: 6px;
	font-size: var(--fs-s3);
	line-height: 1;
	letter-spacing: 0;
	color: var(--c-strong);
	transform: scale(0.9);
}

@media (min-width: 960px) {
	.hamburger {
		display: none;
	}
}

/* グローバルメニュー（PC のみ） */
.gnav {
	display: none;
}

@media (min-width: 960px) {
	.gnav {
		display: block;
		background-color: var(--c-main);
		border-bottom: 1px solid var(--c-main);
	}

	.gnav__list {
		display: flex;
		align-items: center;
		height: 60px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.gnav__list > li {
		position: relative;
		display: flex;
		flex: 1 1 auto;
		justify-content: center;
		height: 100%;
	}

	.gnav__list > li + li::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 0;
		height: 24px;
		border-left: 1px solid var(--c-nav-sep);
		transform: translateY(-50%);
	}

	.gnav__list a {
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: 100%;
		height: 100%;
		padding: 0 24px;
		font-size: var(--fs-s1);
		letter-spacing: 0.04em;
		text-align: center;
		color: #fff;
	}

	.gnav__list a:hover,
	.gnav__list .current-menu-item > a,
	.gnav__list .current-menu-ancestor > a,
	.gnav__list .current-page-ancestor > a {
		color: var(--c-nav-current);
	}
}

/* ---------- ドロワーメニュー（スマホ・タブレット） ---------- */

.drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 998;
	width: 90vw;
	padding: 12px 16px 24px;
	overflow-y: auto;
	background-color: #fff;
	visibility: hidden;
	transform: translateX(-100%);
	transition: transform 0.3s ease, visibility 0.3s;
}

@media (min-width: 600px) {
	.drawer {
		width: 368px;
		padding: 32px 24px;
	}
}

.is-drawer-open .drawer {
	visibility: visible;
	transform: none;
}

.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 997;
	background-color: rgb(0 0 0 / 0.6);
	cursor: pointer;
}

.drawer__close {
	display: block;
	width: 32px;
	height: 32px;
	margin: 0 auto 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-hamburger);
	cursor: pointer;
}

.drawer__close .icon {
	width: 32px;
	height: 32px;
	stroke-width: 1;
}

.drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.drawer__list li {
	position: relative;
}

.drawer__list > li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 2px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: #c8c8c8;
	transform: translateY(-50%);
}

.drawer__list a {
	display: block;
	padding-left: 14px;
	line-height: 2.5;
	color: var(--c-text);
}

.drawer__list .sub-menu {
	margin: 0;
	padding-left: 16px;
	list-style: none;
}

.drawer__widget {
	margin-top: 0;
}

/* ---------- トップページ ---------- */

.front {
	flex: 1;
}

/* メイン画像：枠は 750px（768px〜は 500px）。スマホ（〜599px）は画像を枠の 80% の高さで置く（Emanon と同じで下に余白が残る） */
.hero {
	height: 750px;
	overflow: hidden;
	background-color: #fff;
}

.hero picture {
	display: block;
	height: 80%;
}

@media (min-width: 600px) {
	.hero picture {
		height: 100%;
	}
}

@media (min-width: 768px) {
	.hero {
		height: 500px;
	}
}

.hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.info-section {
	background-color: var(--c-bg);
}

.info-section__inner {
	padding: 49px 0;
}

.info-header {
	margin: 0 auto 56px;
	text-align: center;
}

.section-title {
	margin: 20px 0;
	font-size: var(--fs-l4);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
	color: var(--c-main);
}

@media (min-width: 768px) {
	.info-section__inner {
		display: flex;
		padding: 50px 0 48px;
	}

	.info-header {
		flex: 0 1 350px;
	}

	.info-content {
		flex: 0 1 738px;
		min-width: 0;
		margin-left: 32px;
	}
}

@media (min-width: 960px) {
	.info-section__inner {
		padding: 49px 0 52px;
	}
}

.info-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.info-list__item + .info-list__item {
	margin-top: 16px;
}

.info-list__link {
	display: flex;
	color: var(--c-strong);
}

.info-list__link:hover {
	color: #c6aa5b;
}

/* タイトルが長いときは日付が折り返して幅を譲る（Emanon と同じ） */
.info-list__date {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	margin-right: 12px;
	padding-right: 12px;
	border-right: 1px solid var(--c-border);
	font-size: var(--fs-s2);
}

.info-more {
	margin-top: 40px;
	text-align: center;
}

.info-more .pill-button {
	min-width: 50%;
}

@media (min-width: 768px) {
	.info-more {
		text-align: right;
	}

	.info-more .pill-button {
		min-width: 0;
	}
}

.pill-button {
	display: inline-block;
	padding: 6px 32px;
	border-radius: 25px;
	font-size: var(--fs-s1);
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-align: center;
	color: #fff;
}

.pill-button:hover {
	color: #fff;
	opacity: 0.8;
}

.pill-button--main {
	background-color: var(--c-main);
}

.pill-button--accent {
	background-color: var(--c-accent);
}

.front-content {
	padding: 51px 0 48px;
	background-color: #fff;
}

@media (min-width: 768px) {
	.front-content {
		padding: 50px 0 80px;
	}
}

@media (min-width: 960px) {
	.front-content {
		padding: 52px 0;
	}
}

.front-cta {
	padding: 50px 0 49px;
	background-color: var(--c-cta-bg);
}

@media (min-width: 768px) {
	.front-cta {
		padding: 50px 0;
	}
}

@media (min-width: 960px) {
	.front-cta {
		padding: 49px 0;
	}
}

.front-cta__inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	column-gap: 32px;
}

@media (min-width: 600px) {
	.front-cta__inner {
		flex-direction: row;
	}
}

.front-cta__box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 16px;
	border: 1px solid #e2e5e8;
	border-radius: 4px;
	background-color: var(--c-cta-box);
	text-align: center;
	color: #fff;
}

.front-cta__box + .front-cta__box {
	margin-top: 32px;
}

@media (min-width: 600px) {
	.front-cta__box {
		width: 50%;
		padding: 32px;
	}

	.front-cta__box + .front-cta__box {
		margin-top: 0;
	}
}

.front-cta__title {
	margin: 20px 0 16px;
	font-size: var(--fs-l2);
	font-weight: 700;
	line-height: 1.6;
}

.front-cta__title .icon {
	width: 1em;
	height: 0.85em;
	margin-right: 6px;
	vertical-align: -0.1em;
}

@media (min-width: 768px) {
	.front-cta__title {
		font-size: var(--fs-l3);
	}
}

.front-cta__tel {
	font-size: var(--fs-l3);
	font-weight: 700;
	line-height: 1.6;
}

.front-cta__tel a {
	color: #fff;
}

.front-cta__hours {
	font-size: var(--fs-s1);
}

/* 下の 7px は Emanon でボタンの行の下にできていた隙間 */
.front-cta__button {
	margin-top: 24px;
	padding-bottom: 7px;
	text-align: center;
}

.front-cta__button .pill-button {
	width: 80%;
	font-size: 1rem;
}

@media (min-width: 768px) {
	.front-cta__button .pill-button {
		width: 60%;
	}
}

/* ---------- 下層ページ共通 ---------- */

.l-contents {
	flex: 1;
	margin: 16px 0 40px;
}

@media (min-width: 600px) {
	.l-contents {
		margin: 40px 0 64px;
	}
}

.breadcrumb {
	margin: 10px 0;
	font-size: var(--fs-s3);
	line-height: 1.6;
	color: var(--c-meta);
}

/* 長いときは 1 行のまま末尾を「…」で省略（Emanon と同じ） */
.breadcrumb__list {
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.breadcrumb__item {
	display: inline;
}

.breadcrumb__home {
	margin-right: 3px;
	color: var(--c-main);
}

.breadcrumb__sep {
	margin: 0 5px;
	color: #b0b0b0;
}

.article {
	padding: 24px 0;
	border: 1px solid var(--c-border);
	border-radius: 4px;
	background-color: #fff;
}

.article-header {
	padding: 0 12px;
}

.article-body {
	padding: 16px 12px 0;
}

@media (min-width: 768px) {
	.article-header {
		padding: 0 24px;
	}

	.article-body {
		padding: 24px 24px 0;
	}
}

.article-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.6;
	color: var(--c-text);
}

.article-title--post {
	font-size: var(--fs-l1);
	line-height: 1.4;
	letter-spacing: 0.04em;
}

@media (min-width: 768px) {
	.article-title--post {
		font-size: var(--fs-l2);
	}
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-top: 24px;
	font-size: var(--fs-s3);
	line-height: 1.75;
	letter-spacing: 0.04em;
	color: var(--c-meta);
}

/* アイキャッチ：記事の枠いっぱいの幅（Emanon の「ワイド」表示と同じ） */
.article-thumbnail {
	margin-top: 16px;
}

.article-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

/* 前後の記事 */
.post-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 16px;
	margin-top: 48px;
}

.post-nav__item {
	position: relative;
	flex: 1 1 100%;
}

@media (min-width: 600px) {
	.post-nav__item {
		flex: 0 1 calc(50% - 8px);
	}

	.post-nav__item--next {
		margin-left: auto;
	}
}

.post-nav__label {
	position: absolute;
	top: -20px;
	left: 16px;
	display: flex;
	align-items: center;
	font-size: var(--fs-s3);
	font-weight: 700;
	line-height: 1;
	color: var(--c-strong);
}

.post-nav__item--next .post-nav__label {
	right: 16px;
	left: auto;
}

.post-nav__link {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 92px;
	padding: 0 16px;
	border: 1px solid var(--c-border);
	border-radius: 3px;
	background-color: #fff;
	color: var(--c-strong);
}

.post-nav__thumb {
	flex: 0 0 60px;
	height: 60px;
	overflow: hidden;
}

.post-nav__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-nav__title {
	align-self: center;
	height: 60px;
	display: -webkit-box;
	overflow: hidden;
	font-size: var(--fs-s1);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* 関連記事：スマホは画像が上のカードを横スクロール、600px〜は 3 列、960px〜は横長カードの 2 列（Emanon と同じ） */
.related-posts {
	margin-top: 48px;
	overflow: hidden;
}

.related-posts__title {
	margin: 20px 0 8px;
	font-size: var(--fs-l1);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.1em;
}

.related-posts__list {
	display: flex;
	flex-wrap: nowrap;
	margin: 0;
	padding: 16px 0 16px 24px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
}

.related-posts__list::after {
	content: "";
	min-width: 8px;
}

.related-posts__item {
	flex: 0 0 auto;
	width: 260px;
	margin-right: 16px;
	scroll-snap-align: center;
}

.related-posts__item:last-child {
	margin-right: 0;
}

.related-posts__item a {
	position: relative;
	display: block;
	height: 100%;
	border: 1px solid var(--c-border);
	border-radius: 3px;
	background-color: #fff;
	color: var(--c-strong);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-posts__item a:hover {
	color: var(--c-strong);
	box-shadow: 0 1px 12px 0 rgb(0 0 0 / 0.1);
	transform: translateY(-3px);
}

.related-posts__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 3px 3px 0 0;
}

.related-posts__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-posts__thumb .no-image {
	font-size: 2.7rem;
}

.related-posts__body {
	display: block;
	padding: 16px 8px;
}

.related-posts__date {
	position: absolute;
	top: 8px;
	left: 8px;
	height: 16px;
	padding: 0 8px;
	border-radius: 25px;
	background-color: rgb(0 0 0 / 0.4);
	font-size: var(--fs-s3);
	line-height: 16px;
	letter-spacing: 0.04em;
	color: #fff;
}

.related-posts__name {
	display: block;
	margin: 20px 0;
	font-size: var(--fs-s1);
	font-weight: 700;
	line-height: 1.4;
}

@media (min-width: 600px) {
	.related-posts__list {
		flex-wrap: wrap;
		margin-right: -24px;
		padding: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.related-posts__list::after {
		display: none;
	}

	.related-posts__item,
	.related-posts__item:last-child {
		width: calc(33.333% - 24px);
		margin: 0 24px 24px 0;
	}
}

@media (min-width: 960px) {
	.related-posts__item,
	.related-posts__item:last-child {
		width: calc(50% - 24px);
		height: 80px;
	}

	.related-posts__item a {
		display: flex;
	}

	.related-posts__thumb {
		flex: 0 0 78px;
		height: 78px;
		aspect-ratio: auto;
		border-radius: 0;
	}

	.related-posts__thumb .no-image {
		font-size: 0.625rem;
	}

	.related-posts__body {
		padding: 8px;
		overflow: hidden;
	}

	/* 本番はここにも上下 20px の余白があり、2 行のタイトルが枠の下で切れていたので詰める */
	.related-posts__name {
		margin: 0;
	}

	.related-posts__date {
		position: static;
		display: block;
		height: auto;
		margin-bottom: 4px;
		padding: 0;
		border-radius: 0;
		background: none;
		line-height: 1.6;
		color: var(--c-meta);
	}
}

.title-lock {
	margin-right: 4px;
	vertical-align: -0.1em;
}

/* 画像が無いときの枠 */
.no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: #dcdcdc;
	font-size: 0.625rem;
	color: #fff;
}

/* ---------- 一覧 ---------- */

.archive-title {
	margin: 17px 0 16px;
	padding: 0 8px;
	font-size: var(--fs-l1);
	font-weight: 700;
	line-height: 1.6;
	color: var(--c-text);
}

@media (min-width: 768px) {
	.archive-title {
		margin-top: 0;
		padding: 0;
	}
}

.archive-card {
	margin-bottom: 32px;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: 0 1px 3px 1px rgb(0 0 0 / 0.08);
	transition: box-shadow 0.3s;
}

.archive-card:hover {
	box-shadow: 0 4px 14px 2px rgb(0 0 0 / 0.12);
}

.archive-card__link {
	display: block;
	color: var(--c-strong);
}

.archive-card__link:hover {
	color: var(--c-strong);
}

.archive-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.archive-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.archive-card__thumb .no-image {
	font-size: 3.2rem;
}

.archive-card__cat {
	position: absolute;
	top: 0;
	left: 0;
	padding: 2px 4px;
	min-width: 80px;
	background-color: #161410;
	font-size: var(--fs-s2);
	text-align: center;
	color: #fff;
}

.archive-card__body {
	position: relative;
	display: block;
	padding: 16px 16px 56px;
}

.archive-card__title {
	display: block;
	margin: 20px 0 16px;
	font-size: var(--fs-l1);
	font-weight: 700;
	line-height: 1.4;
}

.archive-card__excerpt {
	display: block;
	font-size: var(--fs-s1);
	line-height: 1.6;
}

.archive-card__date {
	position: absolute;
	bottom: 16px;
	left: 16px;
	font-size: var(--fs-s3);
	letter-spacing: 0.04em;
	color: var(--c-meta);
}

@media (min-width: 600px) {
	.archive-card {
		padding: 16px;
	}

	.archive-card__link {
		display: flex;
	}

	.archive-card__thumb {
		flex: 0 0 300px;
	}

	.archive-card__thumb .no-image {
		font-size: 3.2rem;
	}

	.archive-card__body {
		flex: 1;
		padding: 0 0 32px 16px;
	}

	.archive-card__date {
		right: 0;
		bottom: 0;
		left: auto;
	}
}

@media (max-width: 599px) {
	.archive-card__thumb .no-image {
		font-size: 3.6rem;
	}
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border: 1px solid var(--c-border);
	border-radius: 3px;
	background-color: #fff;
	color: var(--c-strong);
}

.pagination .page-numbers.current {
	border-color: var(--c-main);
	background-color: var(--c-main);
	color: #fff;
}

/* 404 */
.not-found {
	margin-bottom: 8px;
	font-size: var(--fs-l2);
	line-height: 1.6;
	letter-spacing: 0.04em;
}

.not-found__body p {
	line-height: 2;
}

/* ---------- 本文（ブロックエディタの中身） ---------- */

.entry-content > * + * {
	margin-block-start: 2.5rem;
}

.entry-content > p {
	line-height: 1.9;
}

.entry-content .wp-block-columns {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--c-text);
}

.entry-content h2 {
	line-height: 1.6;
}

.entry-content h3 {
	line-height: 1.33333;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
	line-height: 1.14286;
}

/* 本文に直接置いた見出しは大きめ（段組みの中の見出しは 16px のまま。Emanon と同じ） */
.entry-content > h2 {
	font-size: var(--fs-l2);
}

.entry-content > h3,
.entry-content > h4 {
	font-size: var(--fs-l1);
}

/* 見出しの装飾はブロックの見出しだけ（フォームの中の見出しなどには付けない） */
.entry-content h2.wp-block-heading {
	padding: 8px 0 8px 12px;
	border-left: 4px solid var(--c-main);
	background-color: var(--c-sub);
}

.entry-content h3.wp-block-heading {
	position: relative;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--c-sub);
}

.entry-content h3.wp-block-heading::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	z-index: 2;
	width: 20%;
	height: 2px;
	background-color: var(--c-main);
}

.entry-content h4.wp-block-heading {
	position: relative;
	padding: 8px 16px;
	border-radius: 4px;
	background-color: var(--c-main);
	color: #fff;
}

.entry-content h4.wp-block-heading::after {
	content: "";
	position: absolute;
	top: calc(100% - 8px);
	left: 30px;
	width: 16px;
	height: 16px;
	background-color: var(--c-main);
	transform: rotate(45deg);
}

:where(.entry-content) :is(ul, ol) {
	margin-block: 0;
}

.entry-content ul,
.entry-content ol {
	padding: 0 24px;
	line-height: 1.8;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 8px;
	border: 1px solid var(--c-text);
	vertical-align: middle;
}

.entry-content th {
	font-weight: 700;
	background-color: var(--c-bg);
}

.entry-content .wp-block-separator {
	margin-block: 0.44rem;
	border: 0;
	border-top: 2px solid;
	color: #808080;
	opacity: 1;
}

.entry-content .wp-block-separator:not(.is-style-dots):not(.is-style-wide):not(.alignwide) {
	max-width: 215px;
	margin-inline: auto;
}

.entry-content > .wp-block-separator {
	margin-block: 2.5rem 0;
}

.entry-content .wp-block-list:not([class*="is-style-item"]) {
	padding: 0 0 0 1.25em;
}

/* 画像は枠の中で中央に置く（Emanon と同じ） */
.entry-content .wp-block-image {
	margin-bottom: 0;
	text-align: center;
}

.entry-content .wp-block-image::after {
	content: "";
	display: block;
	clear: both;
}

.entry-content .wp-block-image.alignleft {
	float: left;
	margin: 0.5em 1em 0.5em 0;
}

.entry-content .wp-block-image.alignright {
	float: right;
	margin: 0.5em 0 0.5em 1em;
}

.entry-content .wp-block-image.aligncenter {
	margin-inline: auto;
}

.entry-content figcaption {
	margin-top: 4px;
	margin-bottom: 0;
	font-size: var(--fs-s3);
	text-align: center;
	color: var(--c-meta);
}

/* 引用 */
.entry-content blockquote {
	position: relative;
	margin-inline: 8px;
	padding: 24px 32px;
	border-radius: 3px;
	background-color: var(--c-bg);
	font-size: var(--fs-s1);
	line-height: 1.8;
}

@media (min-width: 768px) {
	.entry-content blockquote {
		margin-inline: 16px;
	}
}

.entry-content blockquote::before {
	content: "\201C";
	position: absolute;
	top: 6px;
	left: 12px;
	font-size: 2em;
	line-height: 1;
	color: #828990;
}

.entry-content blockquote p {
	line-height: 1.8;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: var(--fs-s3);
	font-style: normal;
	color: var(--c-meta);
}

/* ボタン：色は theme.json（Emanon の初期値 #ffb200）。サイトの「追加 CSS」がそれを上書きする */
.wp-block-button__link {
	transition: opacity 0.2s;
}

.wp-block-button__link:hover {
	opacity: 0.8;
}

.entry-content .is-style-outline > .wp-block-button__link {
	padding: 0.44rem;
	border: 2px solid;
}

/* 本文で使われているアイコン（Emanon のアイコンフォントの代わり） */
.icon-users,
.icon-user,
.icon-office,
.icon-file,
.icon-file-text,
.icon-check-circle {
	--icon: none;
}

.icon-users::before,
.icon-user::before,
.icon-office::before,
.icon-file::before,
.icon-file-text::before,
.icon-check-circle::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.15em;
	vertical-align: -0.15em;
	background-color: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}

.icon-users {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon-user {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.icon-office {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='1'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3Cpath d='M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E");
}

.icon-file {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpolyline points='13 2 13 9 20 9'/%3E%3C/svg%3E");
}

.icon-file-text {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
}

.icon-check-circle {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

/* フォーム（Contact Form 7・パスワード保護・検索） */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content input[type="password"],
.entry-content textarea,
.search-form .search-field {
	max-width: 100%;
	padding: 6px 12px;
	border: 1px solid var(--c-border);
	border-radius: 3px;
	background-color: #fff;
	letter-spacing: 0.04em;
	color: #000;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content select,
.entry-content textarea {
	width: 100%;
}

.entry-content select {
	height: 32px;
	padding: 0 8px;
	border: 1px solid var(--c-border);
	border-radius: 1px;
	background-color: #fff;
	letter-spacing: 0.04em;
	color: #000;
}

@media (min-width: 768px) {
	.entry-content input[type="text"],
	.entry-content input[type="email"],
	.entry-content input[type="tel"],
	.entry-content input[type="url"],
	.entry-content input[type="number"],
	.entry-content input[type="date"],
	.entry-content select {
		width: 70%;
	}
}

.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus {
	border-color: var(--c-link-hover);
	outline: 2px solid rgb(117 192 227 / 0.35);
	outline-offset: 0;
}

.wpcf7-spinner {
	display: block;
	margin: 8px auto;
}

.wpcf7 form .wpcf7-response-output {
	margin: 8px auto;
	padding: 8px;
	text-align: center;
}

span.wpcf7-not-valid-tip {
	margin: 8px 0;
}

.entry-content input[type="submit"],
.search-form .search-submit {
	margin: 16px 0;
	padding: 6px 32px;
	border: 0;
	border-radius: 25px;
	background-color: var(--c-accent);
	font-size: var(--fs-s1);
	letter-spacing: 0.04em;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s;
}

.entry-content input[type="submit"]:hover,
.search-form .search-submit:hover {
	opacity: 0.8;
}

.entry-content .wpcf7-list-item {
	margin: 0 0 0 16px;
}

.entry-content .wpcf7-list-item input {
	margin-right: 8px;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.search-form label {
	flex: 1 1 240px;
}

.search-form .search-field {
	width: 100%;
}

.search-form .search-submit {
	margin: 0;
}

.post-password-form input[type="password"] {
	width: auto;
}

/* ---------- フッター ---------- */

.site-footer {
	padding: 16px 0;
	background-color: var(--c-footer-bg);
	text-align: center;
	color: var(--c-footer-text);
}

.site-footer a {
	color: var(--c-footer-text);
}

.site-footer a:hover {
	color: #fff;
}

.pagetop {
	display: none;
	margin: 16px 0;
	font-size: var(--fs-s3);
	line-height: 1.6;
}

@media (min-width: 600px) {
	.pagetop {
		display: block;
	}
}

.pagetop a {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
}

.pagetop .icon {
	height: 1.6em;
}

.footer-nav__list {
	margin: 0;
	padding: 16px 16px 0;
	list-style: none;
	font-size: 0;
}

.footer-nav__list li {
	display: inline-block;
	padding: 0 16px;
	border-right: 1px solid #757575;
	font-size: var(--fs-s3);
	line-height: 1.6;
}

.footer-nav__list li:last-child {
	border-right: 0;
}

.copyright {
	padding-top: 16px;
	letter-spacing: 0.04em;
}

.copyright small {
	font-size: var(--fs-s3);
}
