@charset "UTF-8";
/* Site-wide base. Design: Figma PC_w1920 (1920 wide) and SP (393 wide).
   Type sizes interpolate between the SP and PC sizes: clamp(SP, …, PC). */

/*-----------
variables
-----------*/
:root {
	--text: #292424;
	--blue: #7aceff;
	--blue-pale: #d8f1ff;
	--pink: #ff9dcc;
	--pink-pale: #ffd6ea;
	--lavender: #d7c7ff;
	--accent: #28c3ff;
	--grid-line: rgba(146, 102, 255, .08);
	--grid-cell: clamp(40px, 4.17vw, 80px);
	--grid: linear-gradient(var(--grid-line) 2px, transparent 2px), linear-gradient(90deg, var(--grid-line) 2px, transparent 2px);
	/* height of the MV (its aspect ratio): the page grid starts below it */
	--mv-h: calc(106.302vw + max(0px, 119px - 7.19vw)); /* + the MV's shift under the header tab (layout.css) */
	--gradient: linear-gradient(90deg, var(--blue) 0%, var(--lavender) 50%, var(--pink) 100%);
	--font: "M PLUS Rounded 1c", sans-serif;
	--font-display: "Modak", "M PLUS Rounded 1c", sans-serif;
	--header-h: 70px;
}
@media screen and (max-width: 1100px) {
	:root { --mv-h: 106.302vw; }
}
@media screen and (max-width: 768px) {
	:root { --header-h: 48px; --mv-h: 216.794vw; }
}

/*-----------
reset / base
-----------*/
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	font-family: var(--font);
	font-weight: 700;
	color: var(--text);
	/* white page with the faint lavender grid (design: 80px squares) */
	background-color: #fff;
	/* offset half a square so the grid starts mid-cell under the MV, not with a line on its edge */
	background-image: var(--grid);
	background-size: var(--grid-cell) var(--grid-cell);
	background-position: 0 calc(var(--mv-h) + var(--grid-cell) / 2);
	line-height: 1.6;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/*-----------
parts
-----------*/
.inner { width: min(1620px, calc(100% - 40px)); margin: 0 auto; }

/* section titles: Modak with the blue → lavender → pink gradient */
.en-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(28px, 2.358vw + 18.73px, 64px);
	line-height: 1.17;
	text-align: center;
	/* box as wide as the words, so short titles get the whole blue → pink gradient too */
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	background: var(--gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* character names in Modak: coloured outer outline (the element's own text), white inner
   outline (::before) and the gradient fill (::after) stacked on top. The two layers are drawn
   from data-text, which holds the same words as the element. */
.name-title {
	--c1: var(--blue);
	--c2: var(--blue-pale);
	--glow: rgba(51, 132, 178, .6);
	position: relative;
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	color: var(--c1);
	-webkit-text-stroke: .17em var(--c1);
	text-shadow: 0 0 .17em var(--glow);
}
.name-title.is-pink { --c1: var(--pink); --c2: var(--pink-pale); --glow: rgba(190, 49, 117, .6); }
.name-title::before,
.name-title::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	text-shadow: none;
}
.name-title::before { color: #fff; -webkit-text-stroke: .09em #fff; }
.name-title::after {
	-webkit-text-stroke: 0;
	color: transparent;
	background: linear-gradient(180deg, var(--c1) 15%, var(--c2) 90%);
	-webkit-background-clip: text;
	background-clip: text;
}

/* buttons: blue with a white inner ring */
.btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 115px;
	padding: 14px 72px;
	border-radius: 20px;
	background: var(--accent);
	box-shadow: inset 0 0 0 6px #fff, 0 0 0 6px var(--accent);
	color: #fff;
	font-size: clamp(16px, 0.524vw + 13.94px, 24px);
	line-height: 1.3;
	letter-spacing: -.03em;
	text-align: center;
	text-decoration: none;
	transition: filter .2s;
}
.btn::after {
	content: "";
	position: absolute;
	right: 26px;
	top: 50%;
	width: 24px;
	height: 24px;
	transform: translateY(-50%);
	background: url("../images/icon_arrow.svg") center / contain no-repeat;
}
.btn:hover { filter: brightness(1.08); }
@media screen and (max-width: 768px) {
	.btn { min-height: 56px; padding: 8px 48px; border-radius: 10px; box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px var(--accent); }
	.btn::after { right: 16px; }
}

/* reveal on scroll (final.js adds .scrollin) */
.fadein { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.fadein.scrollin { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.fadein { opacity: 1; transform: none; transition: none; }
}

/*-----------
loader
-----------*/
/* as on nendoroidfuns_202612: covers the page (header too) until the images and fonts are in; the
   inline script in page.html fades it out. The animation is the fallback: it goes away by itself
   after 5s if the script never runs. */
.loader {
	position: fixed;
	inset: 0;
	z-index: 101; /* above the header (100) */
	display: grid;
	place-items: center;
	background: linear-gradient(90deg, var(--blue) 0%, var(--lavender) 50%, var(--pink) 100%); /* as the footer */
	animation: loader-out .4s 5s forwards;
}
.loader::after {
	content: "";
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	border: 4px solid rgba(255, 255, 255, .4); /* white on the gradient */
	border-top-color: #fff;
	border-radius: 50%;
	animation: loader-spin .8s linear infinite;
}
.is-loaded .loader { opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes loader-spin { to { rotate: 360deg; } }
