@charset "utf-8";

/*+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
エディタ
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+*/
.editor-styles-wrapper :where(h1, h2, h3, h4, h5, h6) {
	margin-block: 2em 0.5em;
}

.editor-styles-wrapper :where(h1, h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

.editor-styles-wrapper :where(h2, h3, h4, h5, h6):last-child {
	margin-bottom: 0;
}

.editor-styles-wrapper h1 {
	margin-bottom: 0.8em;
	padding-bottom: 0.8em;
	border-bottom: 2px dotted var(--color_main);
	font-size: 24px;
}

.editor-styles-wrapper h2 {
	padding-left: 0.5em;
	border-left: 5px solid;
	color: var(--color_main);
	font-size: 22px;
}

.editor-styles-wrapper h3 {
	padding-bottom: 0.3em;
	border-bottom: 5px double;
	color: var(--color_main);
	font-size: 21px;
}

.editor-styles-wrapper h4 {
	padding-left: 0.5em;
	border-left: 5px double;
	color: var(--color_main);
	font-size: 20px;
}

.editor-styles-wrapper h5 {
	padding-bottom: 0.3em;
	border-bottom: 2px solid;
	color: var(--color_main);
	font-size: 19px;
}

.editor-styles-wrapper h6 {
	color: var(--color_main);
	font-size: 18px;
}

.editor-styles-wrapper p:not([class]) + p:not([class]) {
	margin-top: 1.5em;
}

.editor-styles-wrapper a {
	color: var(--color_main);
	text-decoration: underline;
}

.editor-styles-wrapper a:hover {
	text-decoration-color: transparent;
}

.editor-styles-wrapper img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 640px;
	margin-inline: auto;
}

.editor-styles-wrapper thead {
	border-bottom: none;
}

.editor-styles-wrapper th {
	padding: 0.8em;
	border: 1px solid var(--color_gray);
	background: var(--color_main_light);
}

.editor-styles-wrapper td {
	padding: 0.8em;
	border: 1px solid var(--color_gray);
	background: #fff;
}

.editor-styles-wrapper video {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 640px;
	margin-inline: auto;
}

.wp-block-list {
	list-style: none;
	margin-block: 1.5em;
	line-height: 1.5;
}

.wp-block-list:first-child {
	margin-top: 0;
}

.wp-block-list:last-child {
	margin-bottom: 0;
}

.wp-block-list > li {
	position: relative;
	margin-bottom: 0.5em;
	padding-left: 1.2em;
}

ol.wp-block-list > li {
	counter-increment: number;
}

.wp-block-list > li:last-child {
	margin-bottom: 0;
}

.wp-block-list > li::before {
	position: absolute;
	inset: 0 auto auto 0;
}

ol.wp-block-list > li::before {
	content: counter(number) ".";
}

ul.wp-block-list > li::before {
	content: "・";
}

.editor-styles-wrapper .wp-post-image,
.wp-block-quote,
.wp-block-table,
.wp-block-image,
.wp-block-gallery,
.wp-block-media-text,
.wp-block-file,
.wp-block-audio,
.wp-block-video,
.wp-block-separator,
.wp-block-embed-youtube {
	margin-block: 2em;
}

.editor-styles-wrapper .wp-post-image:first-child,
.wp-block-quote:first-child,
.wp-block-table:first-child,
.wp-block-image:first-child,
.wp-block-gallery:first-child,
.wp-block-media-text:first-child,
.wp-block-file:first-child,
.wp-block-audio:first-child,
.wp-block-video:first-child,
.wp-block-embed-youtube:first-child {
	margin-top: 0;
}

.editor-styles-wrapper .wp-post-image:last-child,
.wp-block-quote:last-child,
.wp-block-table:last-child,
.wp-block-image:last-child,
.wp-block-gallery:last-child,
.wp-block-media-text:last-child,
.wp-block-file:last-child,
.wp-block-audio:last-child,
.wp-block-video:last-child,
.wp-block-embed-youtube:last-child {
	margin-bottom: 0;
}

.wp-block-quote {
	padding: 30px 30px 20px;
	border-radius: 10px;
	background: url("../img/common/quote.svg") 10px 10px / 40px 32px no-repeat rgb(var(--color_main_rgb), 0.1);
}

.wp-block-quote cite {
	opacity: 0.5;
	margin-top: 1em;
	font-size: 0.9em;
}

.wp-block-quote cite a {
	color: inherit;
}

.wp-block[data-align] .wp-block-image,
.wp-block-image .alignleft,
.wp-block-image .alignright {
	margin: 0 auto;
}

.wp-element-caption {
	width: fit-content;
	margin: 0.8em auto 0;
}

.wp-block-gallery {
	display: flex;
	gap: 0.5em !important;
	flex-flow: wrap;
}

.wp-block-media-text {
	grid-template-columns: none !important;
	gap: 2em 6%;
}

.wp-block-media-text__content {
	padding: 0 !important;
}

.wp-block-file {
	font-size: inherit !important;
}

.wp-block-separator {
	border-top-width: 1px;
}

.wp-block-embed-youtube .wp-block-embed__wrapper::before {
	padding-top: 0 !important;
}

.wp-block-embed-youtube iframe {
	display: block;
	position: revert !important;
	height: auto;
	max-height: 640px;
	margin-inline: auto;
}

.wp-embed-aspect-16-9 iframe {
	width: calc(640px * 16 / 9) !important;
	aspect-ratio: 16 / 9;
}

.wp-embed-aspect-9-16 iframe {
	width: calc(640px * 9 / 16) !important;
	aspect-ratio: 9 / 16;
}

.wp-embed-aspect-4-3 iframe {
	width: calc(640px * 4 / 3) !important;
	aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
.editor-styles-wrapper h1 {
	font-size: 30px;
}

.editor-styles-wrapper h2 {
	font-size: 26px;
}

.editor-styles-wrapper h3 {
	font-size: 24px;
}

.editor-styles-wrapper h4 {
	font-size: 22px;
}

.editor-styles-wrapper h5 {
	font-size: 20px;
}

.wp-block-quote {
	padding: 30px 50px;
	background-size: 50px 40px;
}

.wp-block[data-align="left"] .wp-block-image,
.wp-block-image .alignleft {
	max-width: 47%;
	margin: 0 6% 2em 0;
}

.wp-block[data-align="right"] .wp-block-image,
.wp-block-image .alignright {
	max-width: 47%;
	margin: 0 0 2em 6%;
}

.wp-block-media-text {
	grid-template-columns: 1fr 1fr !important;
}
}

@media (max-width: 767.9px) {
.wp-block[data-align] {
	height: auto;
}

.wp-block[data-align] .wp-block-image,
.wp-block-image .alignleft,
.wp-block-image .alignright {
	float: none;
}

.wp-block-media-text__content {
	grid-row: revert !important;
	grid-column: revert !important;
}
}
