@charset "UTF-8";

:is(#tinymce) * {
	line-height: 2.4;
	margin-top: 1.6rem;

	@media (width > 767px) {
		font-size: 1.4rem;
		margin-inline: 4.8rem;
	}
	@media (width <= 767px) {
		font-size: 1rem;
		margin-inline: 3rem;
	}

	&:first-child {
		margin-top: 0;
	}
}

:is(#tinymce) h2 {
	background-color: #e8e5df;
	position: relative;
	letter-spacing: 0.1em;
	font-weight: var(--text-fw-ja);

	@media (width > 767px) {
		padding: 0.8rem 2rem;
		font-size: 1.8rem;
		margin-top: 6.4rem;
	}
	@media (width <= 767px) {
		padding: 0.8rem 1.2rem;
		font-size: 1.4rem;
		line-height: 2;
		margin-top: 4rem;
	}

	&::before,
	&::after {
		content: "";
		display: block;
		position: absolute;
		width: 1px;
		background-color: var(--cc-line-A);
		top: 50%;
		transform: translateY(-50%);

		@media (width > 767px) {
			height: 2.7rem;
		}
		@media (width <= 767px) {
			height: 2.2rem;
		}
	}

	&::before {
		left: 0;
	}

	&::after {
		right: 0;
	}
}

:is(#tinymce) h3 {
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--cc-line-A);
	letter-spacing: 0.1em;
	font-weight: var(--text-fw-ja);

	@media (width > 767px) {
		font-size: 1.7rem;
		margin-top: 3.2rem;
	}
	@media (width <= 767px) {
		font-size: 1.3rem;
		line-height: 2;
		margin-top: 2.4rem;
	}
}

:is(#tinymce) h4 {
	letter-spacing: 0.1em;
	font-weight: var(--text-fw-ja);

	@media (width > 767px) {
		font-size: 1.6rem;
		margin-top: 3.8rem;
	}
	@media (width <= 767px) {
		font-size: 1.2rem;
		line-height: 2;
		margin-top: 2.4rem;
	}
}

:is(#tinymce) h2 + p {
	@media (width > 767px) {
		margin-top: 3.2rem;
	}
	@media (width <= 767px) {
		margin-top: 2.4rem;
	}
}

:is(#tinymce) h3 + p {
	margin-top: 2.4rem;
}

:is(#tinymce) p + p {
	margin-top: 1.2rem;
}

:is(#tinymce) p:has(a) + p {
	@media (width > 767px) {
		margin-top: 3.2rem;
	}
	@media (width <= 767px) {
		margin-top: 2.4rem;
	}
}

:is(#tinymce) p strong {
	font-weight: 700;
	color: var(--cc-icon-A);
	margin-inline: 0;
}

:is(#tinymce) p a {
	text-decoration: underline;
	font-weight: 500;
	color: var(--cc-pinkgold);
	margin-inline: 0;
}

:is(#tinymce) div a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	border: 0.1rem solid var(--cc-pinkgold);
	border-radius: 3rem;
	background: transparent;
	color: var(--cc-pinkgold);
	background-color: #FBFAF6;
	text-decoration: none;
	letter-spacing: 0.3em;
	line-height: 1.4;
	transition: all 0.2s ease;
	font-weight: 400;
	margin-inline: auto;

	@media (width > 767px) {
		min-width: 26rem;
		height: 5rem;
		padding-inline: 5rem;
		font-size: 1.4rem;
		padding-block: 0;
	}
	@media (width <= 767px) {
		min-width: 20rem;
		height: 4.2rem;
		padding-inline: 4rem;
		font-size: 1.2rem;
	}

	&::after {
		content: "";
		position: absolute;
		background-image: url("/assets/img/icon-arrow-pg.svg");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 0.9rem 0.7rem;
		transition: all 0.3s ease-out;

		@media (width > 767px) {
			inset-inline-end: 2.9rem;
			width: 1.6rem;
			height: 1.4rem;
		}
		@media (width <= 767px) {
			inset-inline-end: 2rem;
			width: 1.4rem;
			height: 1.2rem;
		}
	}

	@media (hover) {
		&:hover::after {
			transform: translateX(0.8rem);
		}
	}
}

:is(#tinymce) p:has(img) {
	@media (width > 767px) {
		margin-top: 6rem;
		margin-inline: 0;
	}
	@media (width <= 767px) {
		margin-top: 4rem;
		margin-inline: 1rem;
	}
}

:is(#tinymce) img {
	display: block;
	width: 100%;
	height: auto;
	margin-inline: 0;
}

:is(#tinymce) ol {
	counter-reset: number 0;
}

:is(#tinymce) ul li,
:is(#tinymce) ol li {
	margin-inline: 0;
	position: relative;

	@media (width > 767px) {
		padding-left: 5rem;
	}
	@media (width <= 767px) {
		padding-left: 4rem;
	}

	&:not(:first-child) {
		margin-top: 0.4rem;
	}
}

:is(#tinymce) ul li {
	&::before {
		content: "";
		display: block;
		height: 1px;
		background-color: var(--cc-icon-A);
		position: absolute;

		@media (width > 767px) {
			width: 0.6rem;
			top: 1.7rem;
			left: 3rem;
		}
		@media (width <= 767px) {
			width: 0.4rem;
			top: 1.2rem;
			left: 2.6rem;
		}
	}
}

:is(#tinymce) ol li {
	counter-increment: number 1;

	&::before {
		content: counter(number) ".";
		display: block;
		font-family: var(--ff-loniki);
		font-weight: var(--text-fw-en);
		line-height: var(--text-a-lh);
		color: var(--cc-icon-A);
		letter-spacing: 0.12em;
		font-size: 1.5rem;
		text-align: right;
		position: absolute;
		left: 0;

		@media (width > 767px) {
			width: 3.6rem;
			top: 0.9rem;
		}
		@media (width <= 767px) {
			width: 3rem;
			top: 0.3rem;
		}
	}
}

:is(#tinymce) .layout-column_wrap {
	@media (width > 767px) {
		margin-top: 6rem;
		margin-inline: 0;
	}
	@media (width <= 767px) {
		margin-top: 4rem;
		margin-inline: 1rem;
	}
}

:is(#tinymce) h2 + .layout-column_wrap,
:is(#tinymce) h3 + .layout-column_wrap {
	@media (width > 767px) {
		margin-top: 3.2rem;
	}
	@media (width <= 767px) {
		margin-top: 2.4rem;
	}
}

:is(#tinymce) h4 + .layout-column_wrap {
	@media (width > 767px) {
		margin-top: 2.4rem;
	}
	@media (width <= 767px) {
		margin-top: 1.6rem;
	}
}

:is(#tinymce) .layout-column {
	margin-inline: 0;
}

:is(#tinymce) .layout-column {
	margin-inline: 0;
}

:is(#tinymce) .layout-column-item {
	margin-inline: 0;
}

:is(#tinymce) .layout-column-item-img {
	margin-inline: 0;
}

:is(#tinymce) .layout-link {
	@media (width > 767px) {
		padding-bottom: 1.6rem;
	}
	@media (width <= 767px) {
		padding-bottom: 0.8rem;
	}
}

:is(#tinymce) * {
	.-no-inline-margin & {
		margin-inline: 0;
	}
}

span.u-break,
span.u-break_pc,
span.u-break_sp {
	margin-top: 0;
}

