/*============================================================*/
/* コラム本文の基本装飾 + エディタ付与クラス */
/* (フロント #news-content / ビジュアルエディタ .mce-content-body 共用) */
/*============================================================*/

/* ============ 基本装飾 ============ */

:is(#news-content, .mce-content-body) a {
	text-decoration: underline;
}
:is(#news-content, .mce-content-body) a:hover {
	text-decoration: none;
}
:is(#news-content, .mce-content-body) a:not([class]) {
	color: var(--main);
	text-decoration: none;
	text-underline-offset: 3px;
}
:is(#news-content, .mce-content-body) a:not([class]):hover {
	text-decoration: none;
}
:is(#news-content, .mce-content-body) strong {
	font-weight: bold;
}
:is(#news-content, .mce-content-body) a.wp-element-button {
	text-decoration: none;
}
:is(#news-content, .mce-content-body) a.wp-element-button:hover {
	background: var(--sub);
	color: #fff;
}
:is(#news-content, .mce-content-body) ul:not(#toc_container ul),
:is(#news-content, .mce-content-body) ol:not(#toc_container ol) {
	margin: 0 auto 1em;
	padding: 20px;
	border: 2px solid #e8e8e8;
	list-style: none;
}
:is(#news-content, .mce-content-body) ul:not(#toc_container ul) li,
:is(#news-content, .mce-content-body) ol:not(#toc_container ol) li {
	position: relative;
	margin: 0;
	padding: 0.3em 0 0.3em 1.5em;
	line-height: 1.7;
}
:is(#news-content, .mce-content-body) ul:not(#toc_container ul) li:last-child,
:is(#news-content, .mce-content-body) ol:not(#toc_container ol) li:last-child {
	border-bottom: none;
}
:is(#news-content, .mce-content-body) ul:not(#toc_container ul) > li::before {
	content: "";
	position: absolute;
	top: 0.9em;
	left: 0.3em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--main);
}
:is(#news-content, .mce-content-body) ol:not(#toc_container ol) {
	counter-reset: news-ol;
	padding: 20px;
	border: 2px solid #e8e8e8;
}
:is(#news-content, .mce-content-body) ol:not(#toc_container ol) > li {
	counter-increment: news-ol;
	padding-left: 1.5em;
}
:is(#news-content, .mce-content-body) ol:not(#toc_container ol) > li::before {
	content: counter(news-ol) ".";
	position: absolute;
	top: 0.2em;
	left: 0;
	min-width: 1.6em;
	color: var(--main);
	font-weight: bold;
}
:is(#news-content, .mce-content-body) li > ul:not(#toc_container ul),
:is(#news-content, .mce-content-body) li > ol:not(#toc_container ol) {
	margin: 0.5em 0 0;
}
:is(#news-content, .mce-content-body) table {
	width: 100%;
	margin: 0 auto 1em;
	border-collapse: collapse;
	border: 1px solid #ddd;
	font-size: 0.95em;
}
:is(#news-content, .mce-content-body) th,
:is(#news-content, .mce-content-body) td {
	padding: 12px 16px;
	border: 1px solid #ddd;
	line-height: 1.7;
	text-align: left;
	vertical-align: top;
}
:is(#news-content, .mce-content-body) th {
	background: #f8f9fa;
	font-weight: bold;
	white-space: nowrap;
}
:is(#news-content, .mce-content-body) thead th {
	background: var(--main);
	border-color: var(--main);
	color: #fff;
	border-right-color: #fff;
}
:is(#news-content, .mce-content-body) thead th:last-of-type {
	border-right: none;
}
:is(#news-content, .mce-content-body) .wp-block-table {
	margin: 0 auto 1em;
}
:is(#news-content, .mce-content-body) .wp-block-table table {
	margin: 0;
}
:is(#news-content, .mce-content-body) .table-scroll-wrap {
	max-width: 100%;
	margin: 0 auto 1em;
}
:is(#news-content, .mce-content-body) .table-scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
:is(#news-content, .mce-content-body) .table-scroll > table {
	margin: 0;
}
:is(#news-content, .mce-content-body) .table-scroll-wrap.is-scrollable::before {
	content: "スクロールできます";
	display: block;
	width: fit-content;
	margin: 0 0 6px auto;
	padding: 2px 0 2px 26px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M3 12h18'/%3E%3C/svg%3E") no-repeat left center / 20px;
	color: #888;
	font-size: 12px;
	line-height: 20px;
}
:is(#news-content, .mce-content-body) blockquote {
	margin: 0 auto 1em;
	padding: 16px 20px;
	border-left: 4px solid #ddd;
	background: #f9f9f9;
	color: #555;
}
:is(#news-content, .mce-content-body) blockquote p:last-child {
	margin-bottom: 0;
}
:is(#news-content, .mce-content-body) hr {
	margin: 2em 0;
	border: none;
	border-top: 1px dotted #ccc;
}
:is(#news-content, .mce-content-body) img {
	max-width: 100%;
	height: auto;
}
:is(#news-content, .mce-content-body) .is-marker {
	background: linear-gradient(transparent 60%, #ffec99 60%);
}
:is(#news-content, .mce-content-body) .is-red {
	color: #d9363e;
	font-weight: bold;
}
:is(#news-content, .mce-content-body) .is-ul-red,
:is(#news-content, .mce-content-body) .is-ul-pink,
:is(#news-content, .mce-content-body) .is-ul-yellow,
:is(#news-content, .mce-content-body) .is-ul-blue,
:is(#news-content, .mce-content-body) .is-ul-green {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
:is(#news-content, .mce-content-body) .is-ul-red {
	background: linear-gradient(transparent 70%, #ff8a8a 70%);
}
:is(#news-content, .mce-content-body) .is-ul-pink {
	background: linear-gradient(transparent 70%, #ffb3d1 70%);
}
:is(#news-content, .mce-content-body) .is-ul-yellow {
	background: linear-gradient(transparent 70%, #ffe066 70%);
}
:is(#news-content, .mce-content-body) .is-ul-blue {
	background: linear-gradient(transparent 70%, #8ec9ff 70%);
}
:is(#news-content, .mce-content-body) .is-ul-green {
	background: linear-gradient(transparent 70%, #9be3a8 70%);
}
:is(#news-content, .mce-content-body) .c-box {
	margin: 0 auto 1em;
	padding: 20px 24px;
	border: 1px solid #ddd;
	background: #f9f9f9;
}
:is(#news-content, .mce-content-body) .c-caution {
	margin: 0 auto 1em;
	padding: 20px 24px;
	border-left: 4px solid #d9363e;
	background: #fff5f5;
}
:is(#news-content, .mce-content-body) .c-box > :last-child,
:is(#news-content, .mce-content-body) .c-caution > :last-child {
	margin-bottom: 0;
}
:is(#news-content, .mce-content-body) table.c-table-striped tbody tr:nth-child(even) td {
	background: #f8f9fa;
}
:is(#news-content, .mce-content-body) .c-space {
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}
:is(#news-content, .mce-content-body) .c-space-10 {
	height: 10px;
}
:is(#news-content, .mce-content-body) .c-space-20 {
	height: 20px;
}
:is(#news-content, .mce-content-body) .c-space-30 {
	height: 30px;
}
:is(#news-content, .mce-content-body) .c-space-40 {
	height: 40px;
}
:is(#news-content, .mce-content-body) .c-space-50 {
	height: 50px;
}
:is(#news-content, .mce-content-body) .c-space-100 {
	height: 100px;
}
.mce-content-body .c-space {
	outline: 1px dashed #ccc;
}
:is(#news-content, .mce-content-body) .cBtn {
	display: flex;
	justify-content: flex-start;
	align-content: center;
	gap: 10px;
}
:is(#news-content, .mce-content-body) .cBtn a[href] {
	display: inline-block;
	padding: 14px 32px;
	background-color: var(--main);
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	transition: var(--ease);
}
:is(#news-content, .mce-content-body) .cBtn a[href]:hover {
	background-color: var(--sub);
	transition: var(--ease);
}
@media screen and (max-width: 768px) {
	:is(#news-content, .mce-content-body) ul:not(#toc_container ul),
	:is(#news-content, .mce-content-body) ol:not(#toc_container ol) {
		padding: 15px;
	}
	:is(#news-content, .mce-content-body) .wp-block-table {
		overflow-x: auto;
	}
	:is(#news-content, .mce-content-body) table {
		min-width: 560px;
		font-size: 0.9em;
	}
	:is(#news-content, .mce-content-body) th,
	:is(#news-content, .mce-content-body) td {
		padding: 10px 12px;
	}
	:is(#news-content, .mce-content-body) blockquote {
		padding: 14px 16px;
	}
	:is(#news-content, .mce-content-body) .c-box,
	:is(#news-content, .mce-content-body) .c-caution {
		padding: 14px 16px;
	}
	:is(#news-content, .mce-content-body) .c-space-40 {
		height: 30px;
	}
	:is(#news-content, .mce-content-body) .c-space-50 {
		height: 36px;
	}
	:is(#news-content, .mce-content-body) .c-space-100 {
		height: 60px;
	}
	:is(#news-content, .mce-content-body) .cBtn {
		flex-wrap: wrap;
	}
	:is(#news-content, .mce-content-body) .cBtn a[href] {
		padding: 12px 24px;
	}
}
@media screen and (max-width: 375px) {
	:is(#news-content, .mce-content-body) ul:not(#toc_container ul),
	:is(#news-content, .mce-content-body) ol:not(#toc_container ol) {
		padding: 12px;
	}
	:is(#news-content, .mce-content-body) ul:not(#toc_container ul) li,
	:is(#news-content, .mce-content-body) ol:not(#toc_container ol) li {
		padding-top: 0.4em;
		padding-bottom: 0.4em;
	}
	:is(#news-content, .mce-content-body) ul:not(#toc_container ul) > li::before {
		top: 1.1em;
	}
	:is(#news-content, .mce-content-body) ol:not(#toc_container ol) > li::before {
		top: 0.4em;
	}
	:is(#news-content, .mce-content-body) table {
		min-width: 480px;
	}
	:is(#news-content, .mce-content-body) .c-space-50 {
		height: 30px;
	}
	:is(#news-content, .mce-content-body) .c-space-100 {
		height: 50px;
	}
	:is(#news-content, .mce-content-body) .cBtn {
		flex-direction: column;
	}
	:is(#news-content, .mce-content-body) .cBtn a[href] {
		text-align: center;
	}
}