.vg-block-content.post_content > :is(p, h2, h3, h4, ul, ol, figure):not([class*="swell-block-"]) {
	margin-bottom: 0;
}
.vg-block-content.post_content > :is(h2, h3, h4):not([class*="is-style-"])::before,
.vg-block-content.post_content > :is(h2, h3, h4):not([class*="is-style-"])::after {
	content: none;
}
.vg-block-content.post_content > :is(h2, h3, h4):not([class*="is-style-"]) {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	margin-inline: 0;
}
.vgn-body.post_content > h2:not([class*="is-style-"]) {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--vgf-line);
	color: var(--vgf-ink);
}
.vg-block-content :is(.wp-block-columns, .wp-block-gallery, .swell-block-columns) { max-width: 100%; }
.vg-block-content .wp-block-column { min-width: 0; }

:is(.vg-block-content, .editor-styles-wrapper) {
	--vg-block-blue: #00377f;
	--vg-block-dark: #002a61;
	--vg-block-tint: #e6eef8;
	--vg-block-soft: #f2f5f7;
	--vg-block-line: #dce5ee;
	--vg-block-text: #1c2530;
	--vg-block-muted: #49535f;
}

:is(.vg-block-content, .editor-styles-wrapper) .wp-block-file {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding: 20px 24px;
	border: 1px solid var(--vg-block-line);
	border-radius: 4px;
	background: #fff;
}
:is(.vg-block-content, .editor-styles-wrapper) .wp-block-file > a:not(.wp-block-file__button) {
	flex: 1 1 220px;
	min-width: 0;
	color: var(--vg-block-blue);
	font-weight: 700;
	overflow-wrap: anywhere;
	text-decoration: none;
}
:is(.vg-block-content, .editor-styles-wrapper) .wp-block-file > a:not(.wp-block-file__button):hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
:is(.vg-block-content, .editor-styles-wrapper) a.wp-block-file__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 48px;
	min-height: 48px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--vg-block-blue);
	border-radius: 4px;
	background: var(--vg-block-blue);
	color: #fff;
	text-decoration: none;
	line-height: 1.5;
	transition: background-color .2s, border-color .2s;
}
:is(.vg-block-content, .editor-styles-wrapper) .wp-block-file__button::before { margin-right: 0; }
:is(.vg-block-content, .editor-styles-wrapper) .wp-block-file__button:not(:empty)::before { margin-right: 8px; }
:is(.vg-block-content, .editor-styles-wrapper) a.wp-block-file__button:hover {
	border-color: var(--vg-block-dark);
	background: var(--vg-block-dark);
	color: #fff;
}

:is(.vg-block-content, .editor-styles-wrapper) .c-balloon { --vg-balloon-fill: #e6eef8; }
:is(.vg-block-content, .editor-styles-wrapper) .c-balloon.-bln-right { --vg-balloon-fill: #f2f5f7; }
:is(.vg-block-content, .editor-styles-wrapper) .c-balloon[data-col] .c-balloon__text {
	padding: 18px 20px;
	border-color: var(--vg-block-line);
	border-radius: 4px;
	background: var(--vg-balloon-fill);
	color: var(--vg-block-text);
	line-height: 1.85;
}
:is(.vg-block-content, .editor-styles-wrapper) .c-balloon[data-col] .c-balloon__before { border-right-color: var(--vg-balloon-fill); }
:is(.vg-block-content, .editor-styles-wrapper) .c-balloon[data-col] .c-balloon__after { border-right-color: var(--vg-block-line); }
:is(.vg-block-content, .editor-styles-wrapper) .c-balloon[data-col] .-thinking :is(.c-balloon__before, .c-balloon__after) { background: var(--vg-balloon-fill); }
:is(.vg-block-content, .editor-styles-wrapper) .c-balloon .c-balloon__iconImg { border-color: var(--vg-block-line); }
:is(.vg-block-content, .editor-styles-wrapper) .c-balloon__iconName { color: var(--vg-block-muted); line-height: 1.5; opacity: 1; padding-top: 6px; }

/* SWELL のカードには、本文のリストの印やリンクの下線を継がせない */
:is(.vg-block-content, .editor-styles-wrapper) ul.p-postList {
	padding: 0;
	background: none;
	list-style: none;
}
:is(.vg-block-content, .editor-styles-wrapper) .p-postList > .p-postList__item {
	min-width: 0;
	margin-top: 0;
	padding-block: 0;
	list-style: none;
}
:is(.vg-block-content, .editor-styles-wrapper) .p-postList__item::before { content: none; }
:is(.vg-block-content, .editor-styles-wrapper) a.p-postList__link {
	color: var(--vg-block-text);
	text-decoration: none;
	transform: none;
	box-shadow: none;
}
:is(.vg-block-content, .editor-styles-wrapper) a.p-postList__link:hover {
	color: var(--vg-block-text);
	transform: none;
	opacity: 1;
}
:is(.vg-block-content, .editor-styles-wrapper) .p-postList.-type-card .p-postList__thumb {
	border-radius: 4px;
	box-shadow: none;
}
:is(.vg-block-content, .editor-styles-wrapper) .p-postList.-type-card .c-postThumb__figure {
	margin: 0;
	aspect-ratio: 16 / 9;
	border-radius: 4px;
	overflow: hidden;
}
:is(.vg-block-content, .editor-styles-wrapper) .p-postList.-type-card .c-postThumb__figure::before { content: none; }
:is(.vg-block-content, .editor-styles-wrapper) .p-postList.-type-card .c-postThumb__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important; /* LazySizes が画像に高さを直接書き込むため */
	object-fit: cover;
	transform: none;
}
:is(.vg-block-content, .editor-styles-wrapper) .p-postList .c-postThumb__cat {
	top: 10px;
	right: 10px;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--vg-block-blue);
	color: #fff;
	font-size: 11px;
	line-height: 1.5;
}
:is(.vg-block-content, .editor-styles-wrapper) .p-postList.-type-card .p-postList__body { padding: 14px 0 0; }
:is(.vg-block-content, .editor-styles-wrapper) .p-postList .p-postList__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vg-block-text);
	font-size: 16px;
	line-height: 1.7;
	letter-spacing: 0;
}
:is(.vg-block-content, .editor-styles-wrapper) .p-postList__title::before,
:is(.vg-block-content, .editor-styles-wrapper) .p-postList__title::after { content: none; }
:is(.vg-block-content, .editor-styles-wrapper) .p-postList__link:is(:hover, :focus-visible) .p-postList__title { color: var(--vg-block-blue); text-decoration: underline; text-underline-offset: 4px; }
:is(.vg-block-content, .editor-styles-wrapper) .p-postList__excerpt { margin-top: 8px; color: var(--vg-block-muted); font-size: 13px; line-height: 1.8; }
:is(.vg-block-content, .editor-styles-wrapper) .p-postList__meta { margin-top: 10px; color: var(--vg-block-muted); font-size: 12px; }

:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: 100%;
	padding: 28px;
	border: 1px solid var(--vg-block-line);
	border-radius: 4px;
	background: #fff;
	color: var(--vg-block-text);
	box-shadow: none;
}
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__inner > :is(.swell-block-review__title, .swell-block-review__image, .swell-block-review__rating) { grid-column: 1 / -1; margin: 0; }
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__title { justify-content: flex-start; color: var(--vg-block-blue); font-size: 18px; }
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__inner > figure.swell-block-review__image { width: min(100%, 360px); max-width: 100%; margin-inline: auto; }
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__image .__img { width: 100%; height: auto; border-radius: 4px; }
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__rating { padding-block: 16px; border-block: 1px solid var(--vg-block-line); }
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__rating .__label { padding: 0; background: none; color: var(--vg-block-muted); font-size: 13px; }
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review .c-reviewStars { --color-review_star: #00377f; letter-spacing: 0; }
:is(.vg-block-content, .editor-styles-wrapper) :is(.swell-block-review__merits, .swell-block-review__demerits) { min-width: 0; margin: 0; --color_list_good: #00377f; --color_list_bad: #49535f; }
:is(.vg-block-content, .editor-styles-wrapper) :is(.swell-block-review__merits, .swell-block-review__demerits) .__label { margin-bottom: 12px; padding: 6px 12px; border-radius: 4px; background: var(--vg-block-tint); color: var(--vg-block-blue); font-size: 13px; font-weight: 700; line-height: 1.6; }
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__demerits .__label { background: var(--vg-block-soft); color: var(--vg-block-muted); }
:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review .__list { padding: 0; background: none; color: var(--vg-block-text); font-size: 14px; line-height: 1.8; }

:is(.vg-block-content, .editor-styles-wrapper) :is(.is-style-big_icon_point, .is-style-big_icon_check) {
	--the-color: #00377f;
	padding: 24px 24px 24px 60px;
	border: 1px solid var(--vg-block-line);
	border-radius: 4px;
	background: var(--vg-block-soft);
	color: var(--vg-block-text);
}
:is(.vg-block-content, .editor-styles-wrapper) :is(.is-style-big_icon_point, .is-style-big_icon_check)::before {
	top: 24px;
	left: 18px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--vg-block-blue);
	font-size: 17px;
	transform: none;
}
@media (max-width: 599px) {
	:is(.vg-block-content, .editor-styles-wrapper) .wp-block-file { padding: 16px; gap: 12px; }
	:is(.vg-block-content, .editor-styles-wrapper) .c-balloon__body { min-width: 0; padding-inline: 14px; }
	:is(.vg-block-content, .editor-styles-wrapper) .c-balloon[data-col] .c-balloon__text { padding: 14px; overflow-wrap: anywhere; }
	:is(.vg-block-content, .editor-styles-wrapper) .swell-block-review__inner { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }
	:is(.vg-block-content, .editor-styles-wrapper) :is(.is-style-big_icon_point, .is-style-big_icon_check) { padding: 20px 16px 20px 54px; }
	:is(.vg-block-content, .editor-styles-wrapper) :is(.is-style-big_icon_point, .is-style-big_icon_check)::before { top: 20px; left: 14px; }
}

.vg-block-content .wp-block-table {
	margin-block: 2.2em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.vg-block-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.8;
	color: var(--vg-block-text);
}
.vg-block-content .wp-block-table :is(th, td) {
	padding: 12px 14px;
	border: 1px solid var(--vg-block-line);
	text-align: left;
	vertical-align: top;
	word-break: normal;
	overflow-wrap: anywhere;
}
.vg-block-content .wp-block-table th {
	background: #f7f9fa;
	font-weight: 700;
	color: var(--vg-block-text);
}
.vg-block-content .wp-block-table thead th {
	background: var(--vg-block-tint);
	color: var(--vg-block-blue);
	white-space: nowrap;
}
.vg-block-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f7f9fa; }
.vg-block-content .wp-block-table.is-style-stripes :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--vg-block-line);
}
.vg-block-content .wp-block-table figcaption { margin-top: 10px; text-align: left; }

.vg-block-content blockquote:where(:not([class*="swell-block-"] *)) {
	margin-block: 2em;
	padding: 20px 24px;
	border: 0;
	border-left: 3px solid var(--vg-block-blue);
	border-radius: 0 8px 8px 0;
	background: #f7f9fa;
	font-size: 15px;
	color: var(--vg-block-muted);
}
.vg-block-content blockquote:where(:not([class*="swell-block-"] *)) > :first-child { margin-top: 0; }
.vg-block-content blockquote:where(:not([class*="swell-block-"] *))::before,
.vg-block-content blockquote:where(:not([class*="swell-block-"] *))::after { content: none; }
.vg-block-content blockquote cite {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-style: normal;
	color: var(--vg-block-muted);
}

.vg-block-content hr,
.vg-block-content .wp-block-separator:not(.is-style-dots) {
	width: 100%;
	max-width: none;
	margin-block: 2.4em;
	border: 0;
	border-top: 1px solid var(--vg-block-line);
	opacity: 1;
}

.vg-block-content ol:where(:not([class*="swell-block-"] *)) {
	margin-block: 0;
	padding-left: 1.5em;
	list-style: decimal;
}
.vg-block-content ol:where(:not([class*="swell-block-"] *)) li + li { margin-top: .6em; }
.vg-block-content ol:where(:not([class*="swell-block-"] *)) ::marker {
	color: var(--vg-block-blue);
	font-weight: 700;
}

.vg-block-content .wp-block-buttons {
	display: flex; flex-wrap: wrap; gap: 12px;
	margin-block: 2em;
}
.vg-block-content .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 28px;
	border: 1px solid var(--vg-block-blue); border-radius: 4px;
	background: var(--vg-block-blue);
	font-size: 15px; font-weight: 700; color: #fff;
	text-decoration: none;
	transition: background-color .2s, border-color .2s;
}
.vg-block-content .wp-block-button__link:hover {
	background: var(--vg-block-dark); border-color: var(--vg-block-dark); color: #fff;
}
.vg-block-content .is-style-outline .wp-block-button__link {
	background: #fff; color: var(--vg-block-blue);
}

.vg-block-content .wp-block-columns {
	display: flex; flex-wrap: wrap; gap: 24px;
	margin-block: 2em;
}
.vg-block-content .wp-block-column { flex: 1 1 240px; min-width: 0; }

.vg-block-content :not(pre) > code {
	padding: .15em .45em; border-radius: 3px;
	background: var(--vg-block-soft);
	font-size: .92em;
}
.vg-block-content pre {
	margin-block: 2em; padding: 18px 20px;
	border-radius: 8px;
	background: var(--vg-block-soft);
	font-size: 14px; line-height: 1.8;
	overflow-x: auto;
}

.vg-block-content .wp-block-embed { max-width: 100%; margin-block: 2em; }
.vg-block-content .wp-block-embed iframe { max-width: 100%; }

@media (max-width: 720px) {
	.vg-block-content .wp-block-table table { font-size: 14px; }
	.vg-block-content .wp-block-table :is(th, td) { padding: 10px 12px; }
	.vg-block-content .wp-block-columns { gap: 16px; }
}
