@font-face {
	font-family: mincho;
	src: url("assets/font/HGRGY.TTC");
}
@font-face {
	font-family: gothic;
	src: url("assets/font/HGRKK.TTC");
}
:root {
	--red: #a91f29;
	--ink: #181715;
	--paper: #f4efe5;
	--gold: #c0a15d;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: gothic, "Yu Gothic", sans-serif;
	-webkit-user-select: none;
	user-select: none;
}
body *:not(input):not(textarea) {
	-webkit-user-select: none;
	user-select: none;
}
input,
textarea {
	-webkit-user-select: text;
	user-select: text;
}
img {
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}
html.dialog-open,
html.dialog-open body {
	overflow: hidden;
	overscroll-behavior: none;
}
body:before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	opacity: 0.14;
	background: url("assets/image/bg.png") center no-repeat content-box;
	mix-blend-mode: multiply;
}
a {
	color: inherit;
}
button,
input {
	font: inherit;
}
header {
	position: fixed;
	z-index: 20;
	inset: 0 0 auto;
	height: 88px;
	padding: 0 40px;
	display: flex;
	align-items: center;
	color: #fff;
	border-bottom: 1px solid #ffffff30;
	background: #171513ee;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	line-height: 1.05;
}
.brand img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	filter: grayscale(1) brightness(0) invert(1);
	opacity: 0.95;
}
.brand b {
	font:
		20px mincho,
		serif;
}
nav {
	margin-left: auto;
	display: flex;
	height: 100%;
}
nav a {
	display: grid;
	place-items: center;
	padding: 0 17px;
	text-decoration: none;
	border-left: 1px solid #ffffff24;
	font-size: 13px;
}
.fanart-home {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
	align-items: end;
	gap: 7vw;
	background: #e6dfd1;
}
.fanart-home-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	min-height: 170px;
	padding: 35px;
	border: 1px solid #a98d55;
	background: #f8f4ebaa;
	text-decoration: none;
}
.fanart-home-link span {
	display: grid;
	gap: 12px;
}
.fanart-home-link b {
	font: clamp(25px, 3vw, 40px) mincho, serif;
}
.fanart-home-link small {
	color: #746a58;
}
.fanart-home-link strong {
	font-size: 36px;
}
@media (min-width: 901px) and (max-width: 1180px) {
	nav a {
		padding-inline: 10px;
		font-size: 12px;
	}
}
.menu {
	display: none;
}
.hero {
	min-height: 100svh;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding: 125px 7vw 75px;
	color: #fff;
	background:
		radial-gradient(circle at 70% 40%, #682b30, transparent 32%),
		linear-gradient(115deg, #111 0, #29221e 60%, #170c0d);
}
.hero-emaki {
	position: absolute;
	z-index: 0;
	inset: 88px auto 0 0;
	display: flex;
	width: max-content;
	height: auto;
	animation: emaki-scroll 120s linear infinite;
	will-change: transform;
}
.hero-emaki img {
	display: block;
	flex: none;
	width: auto;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.hero:after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			#090807f2 0%,
			#090807df 28%,
			#090807ad 46%,
			#0908074d 66%,
			transparent 82%
		),
		repeating-linear-gradient(90deg, transparent 0 119px, #ffffff08 120px);
	pointer-events: none;
}
@keyframes emaki-scroll {
	to {
		transform: translateX(-50%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.hero-emaki {
		animation-play-state: paused;
	}
}
.ink {
	position: absolute;
	z-index: 2;
	left: 22%;
	top: 1%;
	font:
		clamp(360px, 40vw, 720px) / 1 mincho,
		serif;
	letter-spacing: -0.12em;
	white-space: nowrap;
	color: #c0a15d1f;
	-webkit-text-stroke: 2px #d5b76f99;
	text-shadow: 0 0 24px #0008;
	transform: rotate(-7deg);
}
.hero-copy {
	z-index: 3;
	max-width: 620px;
	text-shadow: 0 2px 8px #000, 0 1px 2px #000;
}
.en,
.title > span {
	font: bold 11px sans-serif;
	letter-spacing: 0.22em;
	color: #d5b76f;
}
.hero h1 {
	font:
		clamp(48px, 6vw, 88px) / 1.2 mincho,
		serif;
	margin: 28px 0;
}
.hero h1 small {
	display: block;
	font-size: 0.58em;
}
.hero-copy > p:not(.en) {
	line-height: 2;
	max-width: 520px;
}
.button {
	display: inline-block;
	margin-top: 25px;
	padding: 17px 23px;
	border: 1px solid var(--gold);
	text-decoration: none;
}
.about-people {
	position: relative;
	width: 100%;
	aspect-ratio: 1.42 / 1;
	margin-top: clamp(18px, 2vw, 30px);
}
.about-people img {
	position: absolute;
	top: 8%;
	width: 42%;
	height: auto;
	object-fit: cover;
	background: #fff;
	border: 1px solid #bcae9066;
	box-shadow: 0 16px 35px #59492824;
}
.about-people img:nth-child(1) {
	left: 7%;
	transform: rotate(-12deg);
}
.about-people img:nth-child(2) {
	z-index: 3;
	top: 0;
	left: 29%;
	width: 42%;
}
.about-people img:nth-child(3) {
	z-index: 4;
	right: 2%;
	transform: rotate(12deg);
}
img.image-loading {
	background-color: #ded7c9;
	background-image: linear-gradient(
		110deg,
		transparent 25%,
		#ffffff99 45%,
		transparent 65%
	);
	background-size: 240% 100%;
	animation: image-loading-shimmer 1.15s linear infinite;
}
img.image-loaded {
	animation: image-loading-reveal 0.3s ease-out;
}
img.image-load-error {
	background: #ded7c9;
}
@keyframes image-loading-shimmer {
	to {
		background-position: -240% 0;
	}
}
@keyframes image-loading-reveal {
	from {
		opacity: 0.35;
	}
}
@media (prefers-reduced-motion: reduce) {
	img.image-loading,
	img.image-loaded {
		animation: none;
	}
}
.section {
	position: relative;
	padding: 115px max(6vw, 25px);
}
.split {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 4vw;
}
.title h2 {
	font:
		clamp(38px, 5vw, 68px) / 1.25 mincho,
		serif;
	margin: 17px 0;
}
.title > p {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.9;
}
.copy {
	padding-top: 30px;
}
.copy h3 {
	font:
		clamp(24px, 3vw, 39px) / 1.4 mincho,
		serif;
}
.copy p {
	line-height: 2;
}
.copy dl {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid #0003;
	margin-top: 45px;
}
.copy dl div {
	padding: 25px 5px;
	border-right: 1px solid #0003;
}
.copy dt {
	font: 43px mincho;
	color: var(--red);
}
.copy dd {
	margin: 4px 0;
	font-size: 12px;
}
.dark {
	background: #1b1917;
	color: #f8f2e7;
}
.filters {
	display: grid;
	grid-template-columns: minmax(220px, 0.5fr) 1fr;
	gap: 30px;
	margin-top: 45px;
	padding: 26px;
	border: 1px solid #555;
}
.filters label {
	display: grid;
	gap: 10px;
	font-size: 12px;
	color: #bbb;
}
.filters input {
	padding: 13px;
	background: #0f0f0e;
	color: #fff;
	border: 1px solid #666;
}
.filters b {
	font-size: 12px;
	color: #bbb;
}
#strokes {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 10px;
}
#strokes button {
	padding: 8px 11px;
	background: none;
	color: #ddd;
	border: 1px solid #666;
	cursor: pointer;
}
#strokes button.active {
	background: var(--red);
	border-color: var(--red);
}
#count {
	margin: 34px 0 15px;
	font-size: 12px;
	letter-spacing: 0.12em;
}
#grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.card {
	position: relative;
	aspect-ratio: 0.72;
	overflow: hidden;
	padding: 0;
	border: 0;
	background: #292521;
	color: #fff;
	text-align: left;
	cursor: pointer;
}
.card img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: 0.4s;
}
.card:hover img {
	transform: scale(1.05);
}
.card:after {
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(transparent, #000e);
}
.card > span {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	background: var(--red);
	padding: 7px 9px;
	font-size: 11px;
}
.card strong {
	position: absolute;
	z-index: 2;
	left: 18px;
	bottom: 18px;
	font: 28px mincho;
}
.card strong small {
	display: block;
	color: var(--gold);
	font: 9px sans-serif;
	letter-spacing: 0.12em;
	margin-bottom: 7px;
}
#more {
	display: block;
	margin: 40px auto 0;
	padding: 14px 23px;
	background: none;
	color: #fff;
	border: 1px solid #777;
	cursor: pointer;
}
#more[hidden] {
	display: none;
}
.event {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	margin-top: 42px;
	background: #fff;
	box-shadow: 0 20px 60px #59492820;
}
.event > img {
	width: 100%;
	height: 100%;
	min-height: 450px;
	object-fit: contain;
}
.event > div {
	padding: clamp(35px, 5vw, 70px);
}
.event h3,
.schedule h3 {
	font: clamp(30px, 4vw, 52px) / 1.35 mincho;
	margin: 18px 0;
}
.event p {
	line-height: 2;
}
.red {
	color: var(--red);
}
.schedule {
	display: grid;
	grid-template-columns: 100px 1fr auto;
	align-items: center;
	gap: 25px;
	border: 1px solid #59534b;
	padding: 32px;
	margin-top: 40px;
}
.schedule i {
	display: grid;
	place-items: center;
	border: 1px solid var(--red);
	color: #e55b64;
	border-radius: 50%;
	width: 70px;
	height: 70px;
	font-style: normal;
}
.schedule b {
	font: 11px sans-serif;
	color: var(--gold);
	letter-spacing: 0.18em;
}
.schedule h3 {
	font-size: 28px;
}
.schedule a {
	color: #d3b86d;
}
.content-grid {
	display: grid;
	gap: 28px 22px;
	margin-top: 42px;
}
.event-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.topic-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.content-card {
	min-width: 0;
	border-bottom: 1px solid #bcae903d;
}
.content-card a {
	display: block;
	height: 100%;
	padding-bottom: 22px;
	color: inherit;
	text-decoration: none;
}
.content-card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: #eee7d9;
	box-shadow: 0 12px 28px #493e2a1c;
}
.content-card h2,
.content-card h3 {
	margin: 13px 0 10px;
	font: 20px / 1.65 mincho;
}
.content-card > a > p:not(.content-meta):not(.content-tags) {
	font-size: 13px;
	line-height: 1.8;
}
.content-badge {
	display: inline-block;
	margin-top: 13px;
	padding: 5px 9px;
	background: #f2e7bc;
	color: #6f5814;
	font-size: 11px;
}
.content-meta {
	margin: 12px 0 0;
	color: #a58c4a;
	font-size: 11px;
}
.content-meta span {
	color: var(--red);
}
.content-card dl {
	margin: 12px 0 0;
	font-size: 11px;
}
.content-card dl div {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 8px;
	margin-top: 8px;
}
.content-card dt {
	color: #a58c4a;
}
.content-card dd {
	margin: 0;
}
.content-tags {
	color: #806d36;
	font-size: 11px;
	line-height: 1.7;
}
.dark .content-tags,
.dark .content-meta {
	color: #d3b86d;
}
.content-more {
	display: block;
	width: fit-content;
	margin: 34px 0 0 auto;
	padding: 12px 0;
	color: inherit;
	text-decoration: none;
	font-family: mincho;
}
.content-empty {
	grid-column: 1 / -1;
	padding: 34px;
	border: 1px dashed currentColor;
	text-align: center;
	opacity: 0.65;
}
.relationship-section {
	background: #ece5d7;
}
.diagram-card {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
	align-items: stretch;
	width: 100%;
	margin-top: 42px;
	padding: 0;
	overflow: hidden;
	border: 1px solid #bcae90;
	background: #171513;
	color: #fff;
	text-align: left;
	cursor: pointer;
}
.diagram-card img {
	width: 100%;
	height: clamp(300px, 42vw, 560px);
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s ease;
}
.diagram-card:hover img {
	transform: scale(1.025);
}
.diagram-card span {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: clamp(30px, 5vw, 70px);
}
.diagram-card b {
	font: clamp(26px, 3vw, 42px) mincho;
}
.diagram-card small {
	color: var(--gold);
	font-size: 11px;
}
#diagram-dialog {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #0d0c0b;
	color: #fff;
}
#diagram-dialog::backdrop {
	background: #000e;
}
.diagram-shell {
	display: grid;
	grid-template-rows: auto auto auto minmax(0, 1fr);
	width: 100%;
	height: 100%;
	background: #0d0c0b;
}
.diagram-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 22px;
	border-bottom: 1px solid #4b4438;
}
.diagram-header small {
	color: var(--gold);
	font-size: 9px;
	letter-spacing: 0.2em;
}
.diagram-header h2 {
	margin: 4px 0 0;
	font: 22px mincho;
}
.diagram-header button {
	width: 44px;
	height: 44px;
	border: 1px solid #777;
	background: transparent;
	color: #fff;
	font-size: 26px;
	cursor: pointer;
}
.diagram-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	background: #191714;
}
.diagram-toolbar button,
.diagram-toolbar output {
	min-width: 48px;
	padding: 8px 12px;
	border: 1px solid #5f584d;
	background: #27231e;
	color: #fff;
	text-align: center;
}
.diagram-toolbar button {
	cursor: pointer;
}
.diagram-toolbar button:hover {
	border-color: var(--gold);
	color: var(--gold);
}
.diagram-help {
	margin: 0;
	padding: 7px 16px;
	background: #100f0d;
	color: #aaa092;
	font-size: 11px;
	text-align: center;
}
.diagram-viewport {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background: #d8d4cc;
	cursor: grab;
	touch-action: none;
	overscroll-behavior: none;
}
.diagram-viewport:active {
	cursor: grabbing;
}
.diagram-viewport img {
	position: absolute;
	top: 0;
	left: 0;
	max-width: none;
	transform-origin: 0 0;
	will-change: transform;
	pointer-events: none;
}
.links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid #0003;
}
.links a {
	min-height: 115px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-right: 1px solid #0003;
	border-bottom: 1px solid #0003;
	text-decoration: none;
	font: 27px mincho;
}
.links small {
	font: 11px gothic;
	color: var(--red);
}
footer {
	position: relative;
	padding: 55px;
	text-align: center;
	background: #111;
	color: #aaa;
}
footer img {
	width: 60px;
	filter: grayscale(1) brightness(0) invert(1);
	opacity: 0.9;
}
footer p {
	color: #fff;
	font-family: mincho;
}
dialog {
	padding: 0;
	width: min(900px, 90vw);
	border: 1px solid var(--gold);
	background: #171513;
	color: #fff;
}
dialog::backdrop {
	background: #000c;
}
.close {
	position: absolute;
	z-index: 2;
	right: 12px;
	top: 12px;
	width: 42px;
	height: 42px;
	background: #171513;
	color: #fff;
	border: 1px solid #fff;
	font-size: 24px;
}
#detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
#detail > img {
	width: 100%;
	height: 100%;
	max-height: 75vh;
	object-fit: contain;
}
#detail > div {
	padding: 50px 38px;
}
#detail h3 {
	font: 50px mincho;
	margin: 10px 0 28px;
}
#detail section {
	line-height: 2;
}
#detail a {
	color: var(--gold);
}
@media (max-width: 900px) {
	header {
		height: 70px;
		padding: 0 17px;
		background: #171513ee;
	}
	.hero-emaki {
		inset-block-start: 70px;
	}
	.brand img {
		width: 40px;
		height: 40px;
	}
	.brand span {
		font-size: 10px;
	}
	.brand b {
		font-size: 15px;
	}
	.menu {
		display: block;
		margin-left: auto;
		background: none;
		border: 0;
		color: #fff;
		font-size: 25px;
	}
	nav {
		position: fixed;
		inset: 70px 0 0;
		display: flex;
		flex-direction: column;
		background: #171513;
		padding: 25px;
		transform: translateX(100%);
		transition: 0.3s;
	}
	.nav-open nav {
		transform: none;
	}
	nav a {
		height: auto;
		padding: 20px;
		border-left: 0;
		border-bottom: 1px solid #444;
		display: block;
		font-size: 18px;
	}
	.hero {
		padding: 110px 22px 70px;
		align-items: flex-start;
	}
	.hero-copy {
		padding-top: 7vh;
	}
	.hero h1 {
		font-size: 46px;
	}
	.split {
		grid-template-columns: 1fr;
	}
	.fanart-home {
		grid-template-columns: 1fr;
		align-items: stretch;
	}
	.filters {
		grid-template-columns: 1fr;
	}
	#grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.event-grid,
	.topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.diagram-card {
		grid-template-columns: 1fr;
	}
	.diagram-card img {
		height: 360px;
	}
	.diagram-card span {
		padding: 28px;
	}
	.event {
		grid-template-columns: 1fr;
	}
	.event > img {
		min-height: 260px;
	}
	.schedule {
		grid-template-columns: 80px 1fr;
	}
	.schedule > a {
		grid-column: 2;
	}
	.links {
		grid-template-columns: 1fr;
	}
	#detail {
		grid-template-columns: 1fr;
	}
	#detail > img {
		height: 42vh;
	}
	#detail > div {
		padding: 28px 23px;
	}
}
@media (max-width: 480px) {
	.section {
		padding: 80px 18px;
	}
	#grid {
		gap: 9px;
	}
	.event-grid,
	.topic-grid {
		grid-template-columns: 1fr;
	}
	.diagram-toolbar {
		justify-content: flex-start;
		overflow-x: auto;
	}
	.diagram-toolbar button,
	.diagram-toolbar output {
		flex: 0 0 auto;
	}
	.diagram-help {
		font-size: 10px;
	}
	.card strong {
		font-size: 21px;
		left: 11px;
		bottom: 11px;
	}
	.copy dl {
		grid-template-columns: 1fr;
	}
	.schedule {
		grid-template-columns: 1fr;
	}
	.schedule > a {
		grid-column: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
