@charset "utf-8";

/*====================================================
SETTINGS
====================================================*/
/* Font Size
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) > * {
	font-size: clamp(15px, 17 / 1440 * 100vw, 17px);
	font-weight: normal;
}

/* 要素間のマージン
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .wp-block-post-content, .l-BlockContent) > * + * {
	margin-top: 1.7em;
}
:is(.mce-content-body, .editor-styles-wrapper, .wp-block-post-content, .l-BlockContent) > * {
	margin-bottom: 1.4em;
}

/* img svg
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) :is(img, svg) {
	width: auto;
	max-width: 100%;
}

/* iframe
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) iframe {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16/9;
}

/* クラシックエディター用設定
----------------------------------------------- */
.mce-content-body {
	padding: 10px;
}

/* ページタイトル
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) h1 {
	font-weight: bold;
	font-size: 30px;
}

/*====================================================
H2
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) h2 {
	position: relative;
	font-weight: bold;
}

/*====================================================
H3
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) h3 {
	position: relative;
	font-weight: bold;
}

/*====================================================
H4
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) h4 {
	position: relative;
	font-weight: bold;
}
/*====================================================
p
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) p {
	line-height: 2.6;
}

/*====================================================
UL
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) ul > li {
	position: relative;
	padding-left: 1em;
}
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) ul > li::before {
	content: "・";
	position: absolute;
	top: 0;
	left: 0;
	font-size: 1em;
}

/*====================================================
OL
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) ol {
	position: relative;
	counter-reset: number 0;
}

:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) ol > li {
	position: relative;
	padding-left: 1.5em;
}
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) ol > li::before {
	position: absolute;
	top: 0;
	left: 0;
	counter-increment: number 1;
	content: counter(number) ".";
	width: 1.5em;
	text-align: right;
}

/*====================================================
A
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) a:not([class]) {
	text-decoration: underline;
	transition: all 0.3s ease;
	transition-property: opacity;
}

:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) a:not([class]):focus-visible {
	opacity: 0.8;
}
@media (any-hover: hover) {
	:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) a:not([class]):hover {
		opacity: 0.8;
	}
}

/*====================================================
TABLE
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) table {
	position: relative;
}

/*====================================================
IMG
====================================================*/
/* left
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) img.alignleft {
	margin-right: auto;
}

/* center
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) img.aligncenter {
	margin-inline: auto;
}

/* right
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) img.alignright {
	margin-left: auto;
}

/*====================================================
figcaption
====================================================*/
:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) figcaption {
	font-weight: 300;
	font-size: 12px;
}

@media screen and (max-width: 768px) {
	:is(.mce-content-body, .editor-styles-wrapper, .l-BlockContent) figcaption {
		font-size: 10px;
	}
}

/*====================================================
デフォルトスタイルの調整
====================================================*/
/* 「区切り」の幅調整 */
.wp-block-separator {
	border-width: 1px;
	border-bottom: none;
}
