@charset "utf-8";

/*====================================================
SETTINGS
====================================================*/
/* Font Size
----------------------------------------------- */
.mce-content-body > *,
.editor-styles-wrapper > *,
.l-BlockContent > * {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.875;
	letter-spacing: 0.03em;
}

@media screen and (max-width: 768px) {
	.mce-content-body > *,
	.editor-styles-wrapper > *,
	.l-BlockContent > * {
		font-size: calc(15 * var(--width-ratio));
	}
}

/* 要素間のマージン
----------------------------------------------- */
.mce-content-body > * + *,
.editor-styles-wrapper > * + *,
.wp-block-post-content > * + *, /*管理画面エディター用*/
.l-BlockContent > * + * {
	margin-top: 1.7em;
}
.mce-content-body > * ,
.editor-styles-wrapper > * ,
.wp-block-post-content > * , /*管理画面エディター用*/
.l-BlockContent > * {
	margin-bottom: 1.4em;
}

/* img svg
----------------------------------------------- */
.mce-content-body img,
.mce-content-body svg,
.editor-styles-wrapper img,
.editor-styles-wrapper svg,
.l-BlockContent img,
.l-BlockContent svg {
	width: auto;
	max-width: 100%;
}

/* iframe
----------------------------------------------- */
.mce-content-body iframe,
.editor-styles-wrapper iframe,
.l-BlockContent iframe {
	width: 100%;
	aspect-ratio: 16/9;
}

/* クラシックエディター用設定
----------------------------------------------- */
.mce-content-body {
	padding: 10px;
}

/* ページタイトル
----------------------------------------------- */
.mce-content-body h1,
.editor-styles-wrapper h1,
.l-BlockContent h1 {
	font-weight: bold;
	font-size: 36px;
}

@media screen and (max-width: 767px) {
	.mce-content-body h1,
	.editor-styles-wrapper h1,
	.l-BlockContent h1 {
		font-size: clamp(24px, 28 / 1440 * 100vw, 36px);
	}
}

/*====================================================
H2
====================================================*/
.mce-content-body h2,
.editor-styles-wrapper h2,
.l-BlockContent h2 {
	--lineSize: 112px;
	position: relative;
	font-weight: bold;
	line-height: 1.3;
	font-size: clamp(22px, 28 / 1366 * 100vw, 28px);
	padding-bottom: 30px;
}

@media screen and (max-width: 767px) {
	.mce-content-body h2,
	.editor-styles-wrapper h2,
	.l-BlockContent h2 {
		--lineSize: 60px;
		line-height: 1.6;
		font-size: clamp(22px, 22 / 375 * 100vw, 28px);
		padding-bottom: 12px;
	}
}

.mce-content-body h2::before,
.editor-styles-wrapper h2::before,
.l-BlockContent h2::before,
.mce-content-body h2::after,
.editor-styles-wrapper h2::after,
.l-BlockContent h2::after {
	content: "";
	position: absolute;
	height: 6px;
	bottom: 0;
	left: 0;
}

@media screen and (max-width: 767px) {
	.mce-content-body h2::before,
	.editor-styles-wrapper h2::before,
	.l-BlockContent h2::before,
	.mce-content-body h2::after,
	.editor-styles-wrapper h2::after,
	.l-BlockContent h2::after {
		height: 3px;
	}
}

.mce-content-body h2::before,
.editor-styles-wrapper h2::before,
.l-BlockContent h2::before {
	z-index: 1;
	background-color: #f7f7f7;
	width: 100%;
}

.mce-content-body h2::after,
.editor-styles-wrapper h2::after,
.l-BlockContent h2::after {
	z-index: 2;
	background-color: var(--color-primary);
	width: var(--lineSize);
}

/*====================================================
H3
====================================================*/
.mce-content-body h3,
.editor-styles-wrapper h3,
.l-BlockContent h3 {
	position: relative;
	font-weight: bold;
	line-height: 1.4;
	font-size: clamp(15px, 25 / 1366 * 100vw, 25px);
	padding-left: 0.75em;
}

/*====================================================
H4
====================================================*/
.mce-content-body h4,
.editor-styles-wrapper h4,
.l-BlockContent h4 {
	position: relative;
	font-weight: bold;
	line-height: 1.5;
	font-size: clamp(14px, 20 / 1366 * 100vw, 20px);
}
/*====================================================
p
====================================================*/
.mce-content-body p,
.editor-styles-wrapper p,
.l-BlockContent p {
	line-height: 2;
}

/*====================================================
UL
====================================================*/
.mce-content-body ul > li,
.editor-styles-wrapper ul > li,
.l-BlockContent ul > li {
	position: relative;
	padding-left: 1em;
}
.mce-content-body ul > li::before,
.editor-styles-wrapper ul > li::before,
.l-BlockContent ul > li::before {
	content: "・";
	position: absolute;
	top: 0;
	left: 0;
	font-size: 1em;
}

/*====================================================
OL
====================================================*/
.mce-content-body ol,
.editor-styles-wrapper ol,
.l-BlockContent ol {
	position: relative;
	counter-reset: number 0;
}

.mce-content-body ol > li,
.editor-styles-wrapper ol > li,
.l-BlockContent ol > li {
	position: relative;
	padding-left: 1.5em;
}
.mce-content-body ol > li::before,
.editor-styles-wrapper ol > li::before,
.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
====================================================*/
.mce-content-body a:not([class]),
.editor-styles-wrapper a:not([class]),
.l-BlockContent a:not([class]) {
	text-decoration: underline;
	transition: all 0.3s ease;
	transition-property: opacity;
}

.mce-content-body a:not([class]):focus-visible,
.editor-styles-wrapper a:not([class]):focus-visible,
.l-BlockContent a:not([class]):focus-visible {
	opacity: 0.8;
}
@media (any-hover: hover) {
	.mce-content-body a:not([class]):hover,
	.editor-styles-wrapper a:not([class]):hover,
	.l-BlockContent a:not([class]):hover {
		opacity: 0.8;
	}
}

/*====================================================
IMG
====================================================*/
/* left
----------------------------------------------- */
.mce-content-body img.alignleft,
.editor-styles-wrapper img.alignleft,
.l-BlockContent img.alignleft {
	margin-right: auto;
}

/* center
----------------------------------------------- */
.mce-content-body img.aligncenter,
.editor-styles-wrapper img.aligncenter,
.l-BlockContent img.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* right
----------------------------------------------- */
.mce-content-body img.alignright,
.editor-styles-wrapper img.alignright,
.l-BlockContent img.alignright {
	margin-left: auto;
}

/*====================================================
figcaption
====================================================*/
.mce-content-body figcaption,
.editor-styles-wrapper figcaption,
.l-BlockContent figcaption {
	font-weight: 300;
	font-size: 12px;
}

@media screen and (max-width: 767px) {
	.mce-content-body figcaption,
	.editor-styles-wrapper figcaption,
	.l-BlockContent figcaption {
		font-size: 10px;
	}
}

/*====================================================
デフォルトスタイルの調整
====================================================*/
/* 「区切り」の幅調整 */
.wp-block-separator {
	border-width: 1px;
	border-bottom: none;
}
