@charset "UTF-8";

:root {
	--color-body-1: #fff;
	--color-theme-1: #ad002d;
	--color-theme-1-1: rgba(173, 0, 45, 0.5);
	--color-gray-1: #6d6d6d;
	--color-gray-2: #c7c7c7;
	--color-gray-3: #c1c1c1;
	--color-gray-4: #a0a0a0;

	--gothic: "Noto Sans JP", sans-serif;
	--en: "Montserrat", "Noto Sans JP", sans-serif;
	--fw: 300;
	--lh: 1.8;
	--op: 0.6;
	--ts: 0.3s;

	--content-w: 1080px;
	--container: var(--content-w);
	--padding: 20px;
	--stack: 50px;
}

* {
	--font-size: calc((var(--fs) / 16) * 1rem);
	font-size: var(--font-size);
}

:where(b, strong, span, i, em, ::before, ::after):where(.editor-styles-wrapper *) {
	--font-size: calc((var(--fs) / 16) * 1rem);
	font-size: inherit;
}

.editor-styles-wrapper {
	background: #2d2d2d;
	color: var(--color-body-1);
	font-size: var(--font-size);
	font-family: var(--gothic);
	font-weight: var(--fw);
	a {
		color: var(--color-body-1);
	}
	.wp-block-list li a,
	p a {
		align-items: baseline;
		color: var(--color-gray-4);
		text-decoration: underline;
		&::after {
			--mask: url(img/icon-up-right.svg);
			aspect-ratio: 1;
			background: #ff104e;
			content: "";
			display: inline-block;
			height: auto;
			-webkit-mask: var(--mask) no-repeat center/contain;
			mask: var(--mask) no-repeat center/contain;
			margin-left: 0.5em;
			width: 11px;
		}
		&[target="_blank"]::after {
			--mask: url(img/icon-divide.svg);
		}
	}
	figure.wp-block-flexible-table-block-table > table tr {
		:is(th, td) {
			background: none;
			border: none;
		}
	}
}

:where(.editor-styles-wrapper .wp-block-column),
:where(.editor-styles-wrapper .wp-block-group) {
	border: 1px dashed gray;
}

:is(.wp-block-group, .wp-block-column) :first-child {
	margin-top: 0;
}

:is(.wp-block-group, .wp-block-column) :last-child {
	margin-bottom: 0;
}

h2:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])) {
	--fs: 32;
	align-items: baseline;
	display: flex;
	font-size: var(--font-size);
	font-weight: 700;
	gap: 0.5em;
	line-height: 1.5;
	margin-block: 80px 30px;
	&::before {
		--fs: 36;
		content: "#";
		color: var(--color-theme-1);
		font-size: var(--font-size);
		font-family: var(--en);
		flex: none;
	}
	&:first-child {
		margin-top: 0;
	}
	@media (max-width: 991px) {
		--fs: 24;
		&::before {
			--fs: 21;
		}
	}
}

h3:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])) {
	--fs: 24;
	background: #1f1f1f;
	color: #e3e3e3;
	font-size: var(--font-size);
	font-weight: 500;
	line-height: 1.5;
	padding-inline: 12px;
	margin-block: 60px 24px;
	&:first-child {
		margin-top: 0;
	}
	@media(max-width:991px) {
		--fs: 20;
	}
}

h4:where(.wp-block-heading):where(.is-style-default, :not([class*="is-style"])) {
	--fs: 18;
	border-left: 5px solid var(--color-theme-1);
	font-size: var(--font-size);
	font-weight: 700;
	padding-left: 12px;
	margin-block: 40px 16px;
	&:first-child {
		margin-top: 0;
	}
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table {
	> table tr {
		:is(th, td) {
			background: none;
			border: 0;
			font-weight: 700;
			padding: 8px 16px;
		}
		th {
			border-bottom: 1px solid var(--color-theme-1) !important;
			&:first-child {
				width: 200px;
				position: relative;
				&::before {
					border-left: 1px solid var(--color-theme-1);
					bottom: 0;
					content: "";
					display: block;
					left: 0;
					position: absolute;
					top: 0;
				}
			}
		}
		td {
			border-bottom: 1px solid var(--color-gray-4) !important;
		}
		@media (min-width: 992px) {
			&:first-child :is(th, td) {
				padding-top: 0;
			}
			+ tr :is(th, td) {
				padding-top: 24px !important;
			}
			+ tr th:first-child {
				&::before {
					top: 24px;
				}
			}
		}
		@media (max-width: 991px) {
			display: block;
			+ tr {
				margin-top: 30px;
			}
			:is(th, td) {
				display: block;
				padding: 8px 0;
			}
			th:first-child {
				display: inline-block;
				min-width: 120px;
				padding: 0 16px 8px 16px;
				width: unset;
			}
		}
	}
}

.wp-block-buttons {
	--wp--style--block-gap: 30px;
	gap: 24px var(--wp--style--block-gap);
}

.wp-block-button__link {
	--fs: 16;
	/* background: var(--color-theme-1); */
	background: rgba(0, 0, 0, 0.31);
	backdrop-filter: blur(3.5px);
	border: 3px solid var(--color-theme-1);
	border-radius: 0;
	color: #fff;
	position: relative;
	font-size: var(--font-size);
	font-weight: 500;
	line-height: calc(28/16);
	padding: 9px 53px 9px 20px;
	position: relative;
	z-index: 0;
	&:not([class*="has-text-align"]) {
		text-align: left;
	}
	&::before {
		background: linear-gradient(to right, var(--color-theme-1), var(--color-theme-1)) no-repeat 0 100% / 100% 100%;
		bottom: 0;
		content: "";
		left: 0;
		position: absolute;
		right: 0;
		top: 0;
		transition: background-size var(--ts);
		z-index: -1;
	}
	&::after {
		--mask: url(img/icon-up-right.svg) no-repeat center/contain;
		aspect-ratio: 1;
		background: currentColor;
		content: "";
		display: inline-block;
		height: auto;
		-webkit-mask: var(--mask);
		mask: var(--mask);
		width: 13px;
		position: absolute;
		right: 20px;
		top: calc(50% - 7.5px);
	}
	&:hover::before {
		background-position: 100% 100%;
		background-size: 0% 100%;
	}
}

.wp-block-image {
	margin-bottom: 24px;
	:where(figcaption) {
		--fs: 14;
		color: #808080;
		line-height: 1.5;
		margin-block: 16px 24px;
	}
}

.more-button {
	--fs: 28;
	--gap: 32px;
	--icon-size: 55px;
	align-items: end;
	color: inherit;
	display: inline-grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 2px;
	gap: 4px var(--gap);
	font-size: var(--font-size);
	font-family: var(--en);
	font-weight: 600;
	line-height: 1.2;
	&::before {
		background: linear-gradient(to right, var(--color-theme-1), var(--color-theme-1)) no-repeat 100% 100%/0 100%;
		content: "";
		display: block;
		height: 100%;
		transition: background-size var(--ts);
		width: 100%;
		grid-column: 1;
		grid-row: 2;
	}
	&:hover {
		&::before {
			background-position: 0 100%;
			background-size: 100% 100%;
		}
		.more-button-icon::after {
			transform: translate(5px, -5px);
		}
	}
	&:where(.editor-styles-wrapper *) {
		pointer-events: none;
	}
}

.more-button-icon {
	aspect-ratio: 1;
	display: inline-grid;
	height: auto;
	width: var(--icon-size);
	position: relative;
	&::after,
	&::before {
		aspect-ratio: 1;
		content: "";
		display: inline-block;
		grid-area: 1/-1;
		height: auto;
		width: 80%;
	}
	&::before {
		background: var(--color-theme-1);
		place-self: end start;
	}
	&::after {
		--mask: url(img/icon-up-right.svg) no-repeat center/contain;
		background: #fff;
		-webkit-mask: var(--mask);
		mask: var(--mask);
		place-self: start end;
		transition: transform var(--ts);
	}
}

.more-button-sm {
	--fs: 24;
	--gap: 32px;
	--icon-size: 35px;
}

@media (max-width: 991px) {
	.more-button {
		--fs: 24;
		--gap: 24px;
		--icon-size: 41px;
	}
	.more-button-sm {
		--fs: 20;
		--gap: 24px;
		--icon-size: 25px;
	}
}

.cover {
	color: #fff;
	margin-inline: calc(-50vw + 50%);
	max-width: 100vw;
	position: relative;
	z-index: 0;
}

.cover-bg {
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: -1;
	img {
		height: 100%;
		object-fit: cover;
		width: 100%;
	}
}

.cover-content {
	padding: 180px var(--padding) 220px;
	max-width: calc(var(--padding) * 2 + var(--container));
	margin-inline: auto;
	:last-child {
		margin-bottom: 0;
	}
	@media (max-width: 991px) {
		padding-block: 60px 120px;
	}
}

.media-text {
	--w: min(50%, 528px);
	--gap: 72px;
	display: grid;
	gap: var(--gap);
	margin-bottom: 150px;
}

.media-text-left {
	grid-template-columns: 1fr var(--w);
}

.media-text-right {
	grid-template-columns: var(--w) 1fr;
	@media (min-width: 992px) {
		.media-text-media {
			order: 10;
		}
	}
}

.media-text-media {
	--n: min(calc(-50vw + min((var(--container) / 2), (100% + var(--gap) + 8px))), -20px);
	&:is(.media-text-left *) {
		margin-left: var(--n);
		text-align: right;
	}
	&:is(.media-text-right *) {
		margin-right: var(--n);
	}
	img {
		max-width: 100%;
		height: auto;
	}
}

.media-text-content {
	display: grid;
	gap: 30px;
	> * {
		margin: 0;
	}
}

.media-text-text {
	white-space: pre-wrap;
}

.media-text-title-en {
	--fs: 68;
	color: var(--color-theme-1);
	display: inline-block;
	font-size: var(--font-size);
	font-family: var(--en);
	font-weight: 500;
	line-height: 1.2;
	white-space: pre-wrap;
	&::before {
		--fs: 52;
		content: "# ";
		font-size: var(--font-size);
	}
}

.media-text-title {
	--fs: 24;
	font-size: var(--font-size);
	font-weight: 700;
	margin-bottom: 0;
	white-space: pre-wrap;
}

@media (max-width: 991px) {
	.media-text {
		grid-template-columns: unset;
		gap: 20px;
		margin-bottom: 72px;
	}
	.media-text-media img {
		width: 100%;
	}
	.media-text-title-en {
		--fs: 44;
		&::before {
			--fs: 36;
		}
		&:where(.media-text-left *) {
			text-align: right;
		}
	}
	.media-text-title {
		--fs: 22;
		&:where(.media-text-left *) {
			text-align: right;
		}
	}
}

/*		ポリシー（テーマ）		*/
.block-policy {
	position: relative;
	padding-block: 125px 180px;
	&::before {
		content: "";
		width: 100vw;
		height: 100%;
		background: linear-gradient(to bottom, #040000, transparent);
		position: absolute;
		top: 0;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		z-index: -1;
	}
}

.page-body .block-policy {
	margin-top: -60px;
}

.block-policy-title {
	--fs: 32;
	font-size: var(--font-size);
	text-align: center;
	white-space: pre-wrap;
	margin-bottom: 86px;
}

.block-policy-list {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	counter-reset: policy;
	list-style: none;
	padding: 0;
	margin-bottom: 0;
}

.block-policy-item {
	position: relative;
	counter-increment: policy;
	padding: 16px 36px;
	&::before {
		content: "";
		width: 2px;
		height: 100%;
		background: #2d2d2d;
		position: absolute;
		top: 0;
		left: 0;
		transform: translateX(-50%);
	}
	&::after {
		content: "";
		width: 2px;
		height: 100%;
		background: #2d2d2d;
		position: absolute;
		top: 0;
		right: 0;
		transform: translateX(50%);
	}
}

.block-policy-num {
	display: grid;
	justify-content: center;
	--fs: 22;
	font-size: var(--font-size);
	font-family: var(--en);
	font-weight: bold;
	line-height: 1;
	text-align: center;
	color: var(--color-gray-1);
	&::after {
		content: counter(policy, decimal-leading-zero);
		--fs: 75;
		font-size: var(--font-size);
		color: var(--color-theme-1);
		letter-spacing: 0.05em;
	}
}

.block-policy-text {
	--fs: 24;
	font-size: var(--font-size);
	font-weight: bold;
	line-height: 1.2;
	margin-bottom: 0;
}

@media(max-width: 991px) {
	.block-policy {
		padding-block: 70px 90px;
	}
	.page-body .block-policy {
		margin-top: -40px;
	}
	.block-policy-title {
		--fs: 20;
		line-height: 1.8;
		margin-bottom: 60px;
	}
	.block-policy-list {
		grid-template-columns: 1fr;
		max-inline-size: max-content;
		margin-inline: auto;
	}
	.block-policy-item {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 24px;
		padding-inline: 0;
		padding-block: 24px;
		&::before {
			width: 100%;
			height: 2px;
			top: 0;
			left: 50%;
			transform: translate(-50%,-50%);
		}
		&::after {
			width: 100%;
			height: 2px;
			top: auto;
			bottom: 0;
			left: 50%;
			transform: translate(-50%,50%);
		}
	}
	.block-policy-num {
		display: flex;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 8px;
		--fs: 12;
		min-width: 105px;
		margin-bottom: 0;
		&::after {
			--fs: 40;
			letter-spacing: 0;
			margin-top: -5px;
		}
	}
	.block-policy-text {
		--fs: 20;
	}
}	

/*		固定ページコンテンツ01		*/
.block-content01 {
	display: grid;
	align-items: start;
	position: relative;
	--container: 1080px;
	--w: min(50%, 528px);
	--n: min(calc(-50vw + min((var(--container) / 2), (100% + var(--gap) + 8px))), -20px);
	--gap: 72px;
	--bg-color: #2d2d2d;
	gap: 0 var(--gap);
	padding-block: 116px 100px;
	&.has-bg-url {
		grid-template-rows: auto 1fr;
		min-height: 1030px;
		&::after {
			content: "";
			width: 100vw;
			height: 750px;
			background-image: var(--bg-url);
			background-size: cover;
			background-position: center;
			background-repeat: no-repeat;
			position: absolute;
			left: 50%;
			bottom: 0;
			transform: translateX(-50%);
			z-index: -1;
		}
	}
	&::before {
		content: "";
		width: 100vw;
		height: 100%;
		background-color: var(--bg-color);
		position: absolute;
		top: 0;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		z-index: -1;
	}
	&.media-layout-right {
		grid-template-columns: var(--w) 1fr;
		.block-content01-media {
			margin-right: var(--n);
		}
		.block-content01-text {
			order: -1;
		}
		.block-content01-number {
			right: calc((min(1440px, 100vw) - 100%) / -2);
		}
	}
	&.media-layout-left {
		grid-template-columns: 1fr var(--w);
		.block-content01-media {
			margin-left: var(--n);
			text-align: right;
		}
		.block-content01-number {
			left: calc((min(1440px, 100vw) - 100%) / -2);
		}
	}
}

.block-content01-number {
	position: absolute;
	display: block;
	--fs: 320;
	font-size: var(--font-size);
	font-family: var(--en);
	font-weight: bold;
	line-height: 1;
	color: var(--bg-color);
	-webkit-text-stroke: 6px var(--color-theme-1);
	text-stroke: 6px var(--color-theme-1);
	paint-order: stroke fill;
	top: -42px;
	z-index: -1;
}

.block-content01-title {
	--fs: 32;
	font-size: var(--font-size);
	white-space: pre-wrap;
	margin-bottom: 90px;
}

.block-content01-media {
	img {
		max-width: 100%;
	}
}

.block-content01-text {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 30px;
	--fs: 18;
	white-space: pre-wrap;
	z-index: 1;
	&::before {
		content: "";
		width: 60px;
		height: 5px;
		background: var(--color-theme-1);
	}
}

.block-content01.has-bg-url .block-content01-text::after {
	content: "";
	width: calc(100% + 80px);
	height: calc(100% + 15px);
	background: rgba(4, 0, 0, 0.36);
	backdrop-filter: blur(6px);
	position: absolute;
	left: 50%;
	bottom: -15px;
	transform: translateX(-50%);
	z-index: -1;
}

@media(max-width: 991px) {
	.block-content01 {
		padding-block: 96px 60px;
		&.has-bg-url {
			min-height: 1085px;
		}
		&.has-bg-url::after {
			height: 640px;
		}
		&:not(.has-bg-url) {
			gap: 30px;
		}
		&.media-layout-left,
		&.media-layout-right {
			grid-template-columns: 1fr;
			.block-content01-text {
				order: 1;
			}
		}
		&.media-layout-left {
			.block-content01-media {
				text-align: left;
			}
		}
	}
	.block-content01-number {
		--fs: 160;
		top: -22px;
	}
	.block-content01-title {
		--fs: 24;
		margin-bottom: 30px;
	}
	.block-content01-text {
		--fs: 16;
		p {
			margin-bottom: 0!important;
		}
	}
	.block-content01.has-bg-url .block-content01-text::after {
		height: calc(100% + 40px);
		bottom: -40px;
	}
}

.wp-embed-aspect-1-1 iframe {
	aspect-ratio: 1 / 1;
	height: auto;
	width: 100%;
}

.wp-embed-aspect-1-2 iframe {
	aspect-ratio: 1 / 2;
	height: auto;
	width: 100%;
}

.wp-embed-aspect-4-3 iframe {
	aspect-ratio: 4 / 3;
	height: auto;
	width: 100%;
}

.wp-embed-aspect-16-9 iframe {
	aspect-ratio: 16 / 9;
	height: auto;
	width: 100%;
}

.wp-embed-aspect-18-9 iframe {
	aspect-ratio: 18 / 9;
	height: auto;
	width: 100%;
}

.wp-embed-aspect-21-9 iframe {
	aspect-ratio: 21 / 9;
	height: auto;
	width: 100%;
}

/* link list */
.link-list {
	list-style: none;
	padding: 0;
	margin-bottom: 24px;
	display: grid;
	gap: 16px;
	a {
		align-items: baseline;
		display: inline-flex;
		gap: 15px;
		font-weight: 500;
		text-decoration: underline;
		transition: opacity var(--ts);
		&:hover {
			opacity: var(--op);
		}
		&:where(.editor-styles-wrapper *) {
			pointer-events: none;
		}
	}
}

.link-list-icon {
	--icon-size: 17px;
	aspect-ratio: 1;
	display: inline-grid;
	flex: none;
	height: auto;
	width: var(--icon-size);
	position: relative;
	&::after,
	&::before {
		aspect-ratio: 1;
		content: "";
		display: inline-block;
		grid-area: 1/-1;
		height: auto;
		width: 80%;
	}
	&::before {
		background: var(--color-theme-1);
		place-self: end start;
	}
	&::after {
		--mask: url(img/icon-up-right.svg) no-repeat center/contain;
		background: #fff;
		-webkit-mask: var(--mask);
		mask: var(--mask);
		place-self: start end;
		transition: transform var(--ts);
	}
	&:where(a:hover *)::after {
		transform: translate(11%, -11%);
	}
}
