@charset "utf-8";

/*  ===============================
		RE:IGNITION の説明（ABOUT のモーダル）
	開閉は assets/js/modules/modal.js。<dialog> の showModal() を使う（前面固定・背面の操作不可・Esc で閉じる）
	※ 見た目は仮。文章（日本語・英語）は 2026-10-21 の原稿。文章のデザインが届いたら差し替える（開閉と JP / EN の切り替えはそのまま使える）
===============================*/

.aboutModal {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: clamp(16px, 4vw, 40px);
	border: 0;
	background: transparent;
	color: var(--textColor);
	overflow: hidden;
}
.aboutModal[open] {
	display: grid;
	place-items: center;
}
.aboutModal::backdrop {
	background: rgba(3, 2, 12, 0.45);
}
.aboutModal[open]::backdrop {
	animation: modalFade 0.6s ease both;
}
.aboutModal.is-closing::backdrop {
	animation: modalFade 0.45s ease reverse both;
}

/* パネルはスクロールさせない（四隅の鉤・JP / EN・閉じる・マーク・ENTER は常に見える）。本文だけがスクロールする */
.aboutModal_panel {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(860px, 100%);
	max-height: min(86svh, 760px);
	overflow: visible;
	padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 64px) clamp(24px, 3.5vw, 40px);
	background: linear-gradient(180deg, rgba(16, 12, 46, 0.84), rgba(6, 5, 20, 0.92));
	border: 1px solid rgba(127, 122, 255, 0.5);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.04),
		0 30px 120px rgba(40, 20, 140, 0.45);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	text-align: center;
}

/* 四隅の鉤（ABOUT の箱の色） */
.aboutModal_panel::before,
.aboutModal_panel::after {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	border: 2px solid var(--aboutColor);
	pointer-events: none;
}
.aboutModal_panel::before {
	left: -1px;
	top: -1px;
	border-right: 0;
	border-bottom: 0;
}
.aboutModal_panel::after {
	right: -1px;
	bottom: -1px;
	border-left: 0;
	border-top: 0;
}

.aboutModal[open] .aboutModal_panel {
	animation: modalIn 0.9s var(--easeExpo) both;
}
.aboutModal.is-closing .aboutModal_panel {
	animation: modalOut 0.45s var(--easeInOut) both;
}

/* 中身（マークは固定・本文だけスクロール） */
.aboutModal_body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
}

/* 見出し: RE:IGNITION のマーク（渦巻き＋文字。ローディングと同じ SVG） */
.aboutModal_ttl {
	flex: none;
	width: clamp(110px, 16vw, 160px);
	margin: 0 auto clamp(20px, 3vw, 32px);
	color: #fff;
}
.aboutModal_ttl svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	filter: drop-shadow(0 0 10px rgba(150, 130, 255, 0.6));
}
.aboutModal[open] .aboutModal_ttl .mk-spiral_spin {
	animation: spin 14s linear infinite;
}

/* 本文（左揃え・読みやすい幅）。ここだけがスクロールする。上下の端は少しぼかして、続きがあることを見せる */
.aboutModal_text {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	max-width: calc(36em + 16px);
	margin: 0 auto;
	padding: 10px 16px 18px 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	font-size: 14px;
	line-height: 2;
	letter-spacing: 0.04em;
	text-align: left;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
	scrollbar-width: thin;
	scrollbar-color: rgba(127, 122, 255, 0.6) transparent;
}
.aboutModal_text::-webkit-scrollbar {
	width: 4px;
}
.aboutModal_text::-webkit-scrollbar-thumb {
	border-radius: 2px;
	background: rgba(127, 122, 255, 0.6);
}
.aboutModal_text[lang="en"] {
	line-height: 1.8;
	letter-spacing: 0.01em;
}
.aboutModal_text p {
	margin: 0 0 1.2em;
}
.aboutModal_text .aboutModal_note {
	margin-top: 1.8em;
	padding-top: 1.2em;
	border-top: 1px solid rgba(127, 122, 255, 0.35);
	color: var(--grayColor);
	font-size: 0.92em;
}
.aboutModal_text.is-in {
	animation: langIn 0.5s var(--easeExpo) both;
}

/* JP / EN の切り替え（左上） */
.aboutModal_lang {
	position: absolute;
	left: 14px;
	top: 14px;
	display: flex;
	border: 1px solid rgba(127, 122, 255, 0.55);
}
.aboutModal_langBtn {
	min-width: 44px;
	padding: 8px 10px;
	border: 0;
	color: var(--grayColor);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}
.aboutModal_langBtn[aria-pressed="true"] {
	background-color: var(--aboutColor);
	color: #05040f;
}
.aboutModal_langBtn:not([aria-pressed="true"]):hover {
	color: #fff;
}

/* 下のボタン（押すとトップへ。初回はここから点火） */
.aboutModal_enter {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: clamp(14px, 2.5vw, 28px);
	padding: 12px 28px;
	border: 0;
	color: #fff;
	font-family: var(--mono);
	font-size: clamp(14px, 1.6vw, 17px);
	letter-spacing: 0.3em;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.aboutModal_enterLabel {
	padding-left: 0.3em;
	text-shadow: 0 0 14px rgba(150, 130, 255, 0.9);
	animation: enterBlink 2.2s var(--easeInOut) infinite;
}
.aboutModal_enterArrow {
	width: 14px;
	height: 14px;
	border-right: 2px solid var(--lineColor);
	border-bottom: 2px solid var(--lineColor);
	transform: rotate(45deg);
	animation: enterArrow 1.6s var(--easeInOut) infinite;
}
.aboutModal_enter:hover .aboutModal_enterLabel,
.aboutModal_enter:focus-visible .aboutModal_enterLabel {
	animation: none;
	color: #fff;
	text-shadow: 0 0 20px rgba(170, 150, 255, 1);
}

/* 閉じる（右上の ×） */
.aboutModal_close {
	position: absolute;
	right: 10px;
	top: 10px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	cursor: pointer;
}
.aboutModal_close::before,
.aboutModal_close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 1.5px;
	background: #fff;
	translate: -50% -50%;
	transition: rotate 0.4s var(--easeBack);
}
.aboutModal_close::before {
	rotate: 45deg;
}
.aboutModal_close::after {
	rotate: -45deg;
}
.aboutModal_close:hover::before {
	rotate: 135deg;
}
.aboutModal_close:hover::after {
	rotate: 45deg;
}

@keyframes modalFade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes modalIn {
	0% {
		opacity: 0;
		transform: translateY(24px) scale(0.96);
		filter: blur(10px);
		clip-path: inset(48% 0 48% 0);
	}
	55% {
		clip-path: inset(0 0 0 0);
	}
	100% {
		opacity: 1;
		transform: none;
		filter: blur(0);
		clip-path: inset(0 0 0 0);
	}
}
@keyframes modalOut {
	0% {
		opacity: 1;
		transform: none;
		filter: blur(0);
		clip-path: inset(0 0 0 0);
	}
	100% {
		opacity: 0;
		transform: scale(0.98);
		filter: blur(8px);
		clip-path: inset(50% 0 50% 0);
	}
}
@keyframes langIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes enterBlink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.55;
	}
}
@keyframes enterArrow {
	0%,
	100% {
		translate: 0 -3px;
		opacity: 0.6;
	}
	50% {
		translate: 0 4px;
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aboutModal *,
	.aboutModal::backdrop {
		animation: none !important;
	}
}

.aboutModal_panel:focus {
	outline: none;
}
