@charset "utf-8";

/*******************************************************************
管理画面用ブロックエディターSETTINGS
********************************************************************/
/* コンテンツ幅を設定
----------------------------------------------- */
.editor-styles-wrapper {
	padding: 20px;
}

.editor-styles-wrapper :where(.wp-block) {
	max-width: 1100px;
	margin-inline: auto;
}
/*******************************************************************
クラシック/ブロック共通SETTINGS
********************************************************************/
/* Font Size
----------------------------------------------- */
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) > * {
	font-size: clamp(14px, 17 / 1440 * 100vw, 17px);
	line-height: 1.9;
	letter-spacing: 0.06em;
}

/* 要素間のマージン
----------------------------------------------- */
:is(.mce-content-body, .editor-styles-wrapper, .wp-block-post-content, .l-BlockContent, .l-wysiwyg) > * + * {
	margin-top: 2.5em;
}
:is(.mce-content-body, .editor-styles-wrapper, .wp-block-post-content, .l-BlockContent, .l-wysiwyg) > * {
	margin-bottom: 2em;
}

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

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

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

/*====================================================
p
====================================================*/
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) p {
	line-height: 2;
}

/*====================================================
A
====================================================*/
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) a:not([class]) {
	line-height: 1.8;
	position: relative;
	transition: all 0.3s ease;
	transition-property: opacity;
	color: var(--color-primary);
	padding-bottom: 4px;
}

:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) a:not([class])::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: var(--color-primary);
}

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

/* 外部リンク
----------------------------------------------- */
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) a:not([class])[target="_blank"]::after {
	content: "";
	display: inline-block;
	aspect-ratio: 1;
	width: 12px;
	mask-position: center center;
	mask-repeat: no-repeat;
	mask-size: contain;
	mask-image: url("../img/icon/icon_external.svg");
	background-color: var(--color-primary);
	line-height: 1.8;
	margin-right: 4px;
	margin-left: 4px;
}

/*====================================================
UL
====================================================*/
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ul {
	position: relative;
}

:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ul > li {
	--iconSize: 11px;
	position: relative;
	padding-left: 1.5em;
	display: grid;
	grid-template-columns: var(--iconSize) 1fr;
	column-gap: 28px;
	line-height: 2;
	padding: 22px 24px 18px 13px;
}
@media screen and (max-width: 768px) {
	:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ul > li {
		line-height: 1.8;
		padding: 10px 14px 13px;
	}
}

:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ul > li:nth-of-type(odd) {
	background-color: var(--color-white);
}
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ul > li:nth-of-type(even) {
	background-color: var(--color-bg-gray);
}

:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ul > li::before {
	content: "";
	position: relative;
	top: 0.7em;
	aspect-ratio: 1;
	mask-position: center center;
	mask-repeat: no-repeat;
	mask-size: contain;
	mask-image: url(../img/icon/icon_arrow_right.svg);
	background-color: var(--color-primary);
}

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

:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ol > li {
	position: relative;
	padding-left: 1.5em;
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 15px;
	line-height: 2;
	padding: 17px 24px 18px 13px;
}
@media screen and (max-width: 768px) {
	:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ol > li {
		line-height: 1.8;
		padding: 10px 14px 13px;
	}
}

:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ol > li:nth-of-type(odd) {
	background-color: var(--color-white);
}
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ol > li:nth-of-type(even) {
	background-color: var(--color-bg-gray);
}

:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) ol > li::before {
	position: relative;
	top: 4px;
	font-family: oswald, sans-serif;
	min-width: 28px;
	counter-increment: number 1;
	content: counter(number, decimal-leading-zero);
	font-weight: bold;
	line-height: 1;
	color: #97abb3;
	letter-spacing: 0.06em;
	font-size: clamp(22px, 24 / 1400 * 100vw, 24px);
}

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

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

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

/*====================================================
TABLE
====================================================*/
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) table {
	position: relative;
}

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

/* center
----------------------------------------------- */
:where(.mce-content-body, .editor-styles-wrapper, .l-BlockContent, .l-wysiwyg) img.aligncenter {
	margin-inline: auto;
}

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

/*******************************************************************
ブロックエディター用スタイル
********************************************************************/
/*====================================================
H2
====================================================*/
:where(.editor-styles-wrapper, .l-BlockContent) h2 {
	position: relative;
	font-weight: bold;
	line-height: 1.5;
	font-size: clamp(20px, 28 / 1400 * 100vw, 28px);
	padding-bottom: 17px;
}

:where(.editor-styles-wrapper, .l-BlockContent) h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-image: var(--color-gradation-1);
}

@media screen and (max-width: 768px) {
	:where(.editor-styles-wrapper, .l-BlockContent) h2 {
		font-size: clamp(10px, 20 / 375 * 100vw, 28px);
		letter-spacing: 0.06em;
	}
}

/*====================================================
H3
====================================================*/
:where(.editor-styles-wrapper, .l-BlockContent) h3 {
	--lineWidth: 18px;
	--columnGap: 15px;
	position: relative;
	font-weight: bold;
	line-height: 1.5;
	font-size: clamp(18px, 24 / 1400 * 100vw, 24px);
	letter-spacing: 0.1em;
	padding-left: calc(var(--lineWidth) + var(--columnGap));
}

:where(.editor-styles-wrapper, .l-BlockContent) h3::after {
	content: "";
	position: absolute;
	top: 0.75em;
	left: 0;
	width: var(--lineWidth);
	height: 4px;
	background-image: var(--color-gradation-1);
}

@media screen and (max-width: 768px) {
	:where(.editor-styles-wrapper, .l-BlockContent) h3 {
		--lineWidth: 16px;
		--columnGap: 14px;
		font-size: clamp(10px, 18 / 375 * 100vw, 24px);
		letter-spacing: 0.05em;
	}
}

/*====================================================
H4
====================================================*/
:where(.editor-styles-wrapper, .l-BlockContent) h4 {
	position: relative;
	line-height: 1.5;
	color: var(--color-primary);
	font-weight: bold;
	letter-spacing: 0.06em;
	font-size: clamp(16px, 20 / 1400 * 100vw, 20px);
}

@media screen and (max-width: 768px) {
	:where(.editor-styles-wrapper, .l-BlockContent) h4 {
		font-size: clamp(10px, 16 / 375 * 100vw, 20px);
	}
}

/*******************************************************************
クラシックエディター用スタイル
********************************************************************/
/*====================================================
strong
====================================================*/
:is(.mce-content-body, .l-wysiwyg) strong {
	font-weight: bold;
}
/*====================================================
b
====================================================*/
:is(.mce-content-body, .l-wysiwyg) b {
	font-weight: bold;
}
/*====================================================
管理画面のエディタースタイル
====================================================*/
.mce-content-body {
	padding: 15px;
}
/*====================================================
横並びカラムブロック
====================================================*/
:where(.mce-content-body, .l-wysiwyg) .c-row {
	display: flex;
	align-items: start;
	column-gap: clamp(20px, 70 / 1400 * 100vw, 70px);
	row-gap: 30px;
}

@media screen and (max-width: 768px) {
	:where(.mce-content-body, .l-wysiwyg) .c-row {
		flex-direction: column;
	}
}
:where(.mce-content-body, .l-wysiwyg) .c-row > *:nth-child(1) {
	width: 40%;
}
:where(.mce-content-body, .l-wysiwyg) .c-row > *:nth-child(2) {
	flex: 1;
}
