/* Doujin Booth - main stylesheet (mobile first)
   Breakpoints: tablet >= 768px, desktop >= 1024px
   Look: dusk sky over paper. Square corners, hairline rules, mincho headings.
   The hairline motif comes from the rule in the Twilight Creation logo. */

:root {
	--night: #15142c;
	--indigo: #262352;
	--violet: #4b3a6e;
	--rose: #c46f7a;
	--amber: #e8a15f;
	--paper: #f5efe6;
	--sheet: #fbf8f2;
	--ink: #1e1b2e;
	--muted: #6b6580;
	--line: #d6ccbd;
	--line-light: rgba(255, 255, 255, 0.28);
	--on-dark: #f3ecdf;
	--on-dark-muted: rgba(243, 236, 223, 0.72);

	--type-game: #6a5fb8;
	--type-tool: #3f8f8f;
	--type-script: #3d6f96;
	--type-doujin: #c46f7a;
	--type-goods: #c9903a;

	--font-head: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
	--font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	--font-latin: "Cormorant Garamond", "Shippori Mincho", serif;

	--pad: 20px;
	--gap: 64px;
	--rail: 240px;
}

@media (min-width: 768px) {
	:root {
		--pad: 32px;
		--gap: 88px;
	}
}

@media (min-width: 1024px) {
	:root {
		--pad: 56px;
		--gap: 120px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.9;
	font-variant-numeric: lining-nums;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}

body.has-sticky-cta {
	padding-bottom: 80px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
	margin: 0;
	padding: 0;
}

h1,
h2,
h3 {
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: 0.04em;
}

ul {
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}

.container {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: var(--pad);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 16px;
	background: var(--night);
	color: #fff;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* ---------- Buttons: square, hairline, no pills ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8em;
	min-height: 48px;
	padding: 8px 26px;
	border: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn--lg {
	min-height: 56px;
	padding-inline: 40px;
	font-size: 15px;
}

.btn--primary {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-dark);
}

.btn--primary:hover {
	background: var(--violet);
	border-color: var(--violet);
}

.btn--ghost:hover,
.btn--outline-teal:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-dark);
}

.btn--yellow {
	background: var(--amber);
	border-color: var(--amber);
	color: var(--night);
}

.btn--yellow:hover {
	background: var(--on-dark);
	border-color: var(--on-dark);
}

.btn--line-white {
	color: var(--on-dark);
	border-color: var(--line-light);
}

.btn--line-white:hover {
	background: var(--on-dark);
	border-color: var(--on-dark);
	color: var(--night);
}

.more {
	display: inline-block;
	padding-block: 10px;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.1em;
	white-space: nowrap;
	background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
	transition: background-size 0.3s;
}

.more:hover {
	background-size: 40% 1px;
}

/* ---------- Small labels ---------- */

.kicker {
	display: block;
	font-family: var(--font-latin);
	font-style: italic;
	font-weight: 500;
	font-size: 17px;
	letter-spacing: 0.02em;
	line-height: 1.4;
	color: var(--rose);
}

/* Type label: a small square of colour and plain text, not a badge. */
.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.6;
	white-space: nowrap;
	color: inherit;
}

.tag::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--muted);
}

.tag--game::before { background: var(--type-game); }
.tag--tool::before { background: var(--type-tool); }
.tag--script::before { background: var(--type-script); }
.tag--doujin::before { background: var(--type-doujin); }
.tag--goods::before { background: var(--type-goods); }

.tag--new {
	padding: 0 7px;
	border: 1px solid var(--rose);
	color: var(--rose);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 11px;
}

.tag--new::before {
	display: none;
}

.stock {
	font-size: 12px;
	letter-spacing: 0.06em;
	line-height: 1.6;
	white-space: nowrap;
	color: var(--muted);
}

.stock::before {
	content: "/ ";
	opacity: 0.5;
}

.stock--low { color: #a8505c; }
.stock--sold_out { text-decoration: line-through; }

/* ---------- Announcement ---------- */

.announce {
	background: var(--night);
	color: var(--on-dark);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.home .announce {
	background: transparent;
}

.announce__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 40px;
	padding-block: 6px;
	border-bottom: 1px solid var(--line-light);
}

.announce__tag {
	flex: none;
	font-family: var(--font-latin);
	font-style: italic;
	font-size: 15px;
	color: var(--amber);
}

.announce__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.announce__inner:hover .announce__text {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- Header ---------- */

.header {
	position: sticky;
	top: 0;
	z-index: 40;
	color: var(--on-dark);
	background: linear-gradient(100deg, var(--night), var(--indigo) 60%, var(--violet));
	transition: background-color 0.3s;
}

.header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--rose) 30%, var(--amber) 70%, transparent);
}

.home .header:not(.is-stuck) {
	background: transparent;
}

.home .header:not(.is-stuck)::after {
	opacity: 0;
}

.admin-bar .header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .header {
		top: 32px;
	}
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 68px;
}

.header__brand {
	margin-right: auto;
	flex: none;
}

.brand {
	display: block;
	padding-block: 8px;
}

.brand__logo,
.custom-logo {
	width: auto;
	height: 46px;
}

.header__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 6px;
}

.header .btn {
	min-height: 44px;
	padding-inline: 16px;
	color: var(--on-dark);
	border-color: var(--line-light);
	font-size: 13px;
	gap: 0;
	white-space: nowrap;
}

.header .btn:hover {
	background: var(--on-dark);
	border-color: var(--on-dark);
	color: var(--night);
}

.header__biz,
.header__shop-long {
	display: none;
}

.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 7px;
	width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 1px;
	background: currentColor;
	transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle span:nth-child(2) {
	width: 70%;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 4px var(--pad) 28px;
	background: var(--night);
}

.nav.is-open {
	display: block;
}

.nav__list a {
	display: flex;
	align-items: center;
	min-height: 52px;
	border-bottom: 1px solid var(--line-light);
	font-family: var(--font-head);
	font-weight: 500;
	letter-spacing: 0.12em;
}

.nav .nav__biz {
	width: 100%;
	margin-top: 20px;
}

@media (min-width: 768px) {
	.header__biz {
		display: inline-flex;
	}

	.nav .nav__biz {
		display: none;
	}

	.header__shop-long {
		display: inline;
	}
}

@media (min-width: 1024px) {
	.header__inner {
		min-height: 92px;
		gap: 28px;
	}

	.brand__logo,
	.custom-logo {
		height: 60px;
	}

	.nav-toggle {
		display: none;
	}

	.nav {
		display: block;
		position: static;
		padding: 0;
		background: none;
	}

	.nav__list {
		display: flex;
		gap: 26px;
	}

	.nav__list a {
		position: relative;
		min-height: 44px;
		border: 0;
		font-size: 14px;
		white-space: nowrap;
	}

	.nav__list a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 8px;
		height: 1px;
		background: var(--amber);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s;
	}

	.nav__list a:hover::after {
		transform: scaleX(1);
	}

	.header__biz {
		border-color: transparent !important;
		padding-inline: 4px !important;
	}

	.header__biz:hover {
		background: none !important;
		color: var(--amber) !important;
	}
}

/* ---------- Track switcher (mobile only, sits on the sky) ---------- */

.track-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-inline: var(--pad);
	border-bottom: 1px solid var(--line-light);
	color: var(--on-dark);
}

.track-switch__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.1em;
}

.track-switch__tab + .track-switch__tab {
	border-left: 1px solid var(--line-light);
}

@media (min-width: 768px) {
	.track-switch {
		display: none;
	}
}

/* ---------- Hero: the dusk sky ---------- */

.hero {
	position: relative;
	padding-block: 36px 96px;
	color: var(--on-dark);
}

/* Sky. Extends upward behind the transparent header and announcement bar. */
.hero::before {
	content: "";
	position: absolute;
	inset: -320px 0 0;
	z-index: -1;
	background:
		radial-gradient(60% 26% at 68% 84%, rgba(255, 214, 150, 0.55), transparent 70%),
		linear-gradient(
			to bottom,
			var(--night) 0,
			var(--night) 300px,
			#1f1d47 calc(300px + 12%),
			#3a2f66 46%,
			#6f477c 62%,
			#b9677c 75%,
			#e49a6a 85%,
			#f1cfa6 93%,
			var(--paper) 100%
		);
}

/* A few faint stars in the upper sky. */
.hero::after {
	content: "";
	position: absolute;
	inset: -100px 0 55%;
	z-index: -1;
	opacity: 0.7;
	background-image:
		radial-gradient(1px 1px at 12% 30%, #fff, transparent),
		radial-gradient(1px 1px at 27% 62%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 41% 18%, #fff, transparent),
		radial-gradient(1px 1px at 58% 44%, #fff, transparent),
		radial-gradient(1px 1px at 73% 22%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 86% 55%, #fff, transparent),
		radial-gradient(1px 1px at 94% 12%, #fff, transparent);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 36px 20px;
}

.hero__copy {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	writing-mode: vertical-rl;
	animation: drift 11s ease-in-out infinite;
}

.hero__copy-ja {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 30px;
	letter-spacing: 0.32em;
	line-height: 1.3;
	text-shadow: 0 0 24px rgba(21, 20, 44, 0.35);
}

.hero__copy-en {
	font-family: var(--font-latin);
	font-style: italic;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: var(--on-dark-muted);
}

@keyframes drift {
	0%,
	100% { transform: translateY(0); }
	50% { transform: translateY(9px); }
}

.event-card {
	grid-column: 1;
	grid-row: 1;
	align-self: start;
	min-width: 0;
}

.event-card__label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-head);
	font-size: 12px;
	letter-spacing: 0.2em;
	color: var(--amber);
}

.event-card__label::after {
	content: "";
	flex: 0 1 56px;
	height: 1px;
	background: currentColor;
}

.event-card__date {
	margin-top: 10px;
	font-family: var(--font-latin);
	font-weight: 500;
	font-size: 34px;
	letter-spacing: 0.04em;
	line-height: 1.15;
}

.event-card__title {
	margin-top: 8px;
	font-size: 22px;
	line-height: 1.5;
}

.event-card__lead {
	margin-top: 14px;
	color: var(--on-dark-muted);
}

.countdown {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 10px;
	font-family: var(--font-head);
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--on-dark-muted);
}

.countdown__num {
	font-family: var(--font-latin);
	font-size: 26px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--on-dark);
}

.facts {
	display: grid;
	gap: 0;
	margin-top: 22px;
	border-top: 1px solid var(--line-light);
}

.facts > div {
	display: grid;
	grid-template-columns: 4.2em 1fr;
	align-items: baseline;
	gap: 8px;
	padding-block: 9px;
	border-bottom: 1px solid var(--line-light);
}

.facts dt {
	font-size: 11px;
	letter-spacing: 0.16em;
	color: var(--on-dark-muted);
}

.facts dd {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.6;
}

.facts .facts__space {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.event-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.hero .btn {
	color: var(--on-dark);
	border-color: var(--line-light);
}

.hero .btn--primary {
	background: var(--on-dark);
	border-color: var(--on-dark);
	color: var(--night);
}

.hero .btn:hover {
	background: var(--amber);
	border-color: var(--amber);
	color: var(--night);
}

/* Oshinagaki: a sheet of paper, ruled like a menu. */
.menu-panel {
	grid-column: 1 / -1;
	padding: 22px 20px 12px;
	background: var(--sheet);
	color: var(--ink);
	box-shadow: 0 18px 40px -24px rgba(21, 20, 44, 0.6);
}

.menu-panel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 3px double var(--ink);
}

.menu-panel__title {
	font-size: 20px;
	letter-spacing: 0.3em;
}

.menu__item {
	border-bottom: 1px dotted #b9ad9b;
}

.menu__item:last-child {
	border-bottom: 0;
}

.menu__link {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "tags tags" "name price";
	align-items: baseline;
	gap: 0 16px;
	padding-block: 12px;
}

.menu__tags {
	grid-area: tags;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

.menu__name {
	grid-area: name;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.6;
}

.menu__link:hover .menu__name {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.menu__price {
	grid-area: price;
	font-family: var(--font-latin);
	font-weight: 600;
	font-size: 20px;
	white-space: nowrap;
}

.menu__empty {
	padding-block: 14px;
	color: var(--muted);
}

@media (min-width: 768px) {
	.hero {
		padding-block: 56px 130px;
	}

	.hero__grid {
		gap: 48px 40px;
	}

	.hero__copy-ja {
		font-size: 40px;
	}

	.event-card__date {
		font-size: 52px;
	}

	.event-card__title {
		font-size: 28px;
	}

	.menu-panel {
		padding: 30px 32px 18px;
	}
}

@media (min-width: 1024px) {
	.hero {
		padding-block: 72px 140px;
	}

	.hero__grid {
		grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		gap: 0 64px;
	}

	.hero__copy {
		grid-column: 1;
		gap: 16px;
		padding-right: 8px;
	}

	.hero__copy-ja {
		font-size: 54px;
	}

	.hero__copy-en {
		font-size: 17px;
	}

	.event-card {
		grid-column: 2;
		padding-top: 6px;
	}

	.event-card--empty {
		grid-column: 2 / -1;
		max-width: 34em;
	}

	.event-card__date {
		font-size: 64px;
	}

	.event-card__title {
		font-size: 30px;
	}

	.menu-panel {
		grid-column: 3;
		grid-row: 1;
		margin-top: 40px;
	}
}

/* ---------- Top page: one screen, no scrolling on desktop ----------
   The sky is painted on the page itself and everything is sized to the
   viewport height. Phones still scroll: the event and its menu do not fit. */

body.home {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	background:
		radial-gradient(60% 22% at 68% 96%, rgba(255, 214, 150, 0.5), transparent 70%),
		linear-gradient(
			to bottom,
			var(--night) 0,
			#1f1d47 30%,
			#3a2f66 55%,
			#6f477c 72%,
			#b9677c 86%,
			#e49a6a 95%,
			#f1cfa6 100%
		);
}

/* WordPress pushes the page down by the admin bar height when logged in. */
body.home.admin-bar {
	min-height: calc(100vh - 46px);
	min-height: calc(100dvh - 46px);
}

@media (min-width: 783px) {
	body.home.admin-bar {
		min-height: calc(100vh - 32px);
		min-height: calc(100dvh - 32px);
	}
}

.home .main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.home .hero {
	flex: 1;
	display: flex;
	align-items: center;
	padding-block: 28px 32px;
}

.home .hero::before {
	display: none;
}

.home .hero::after {
	inset: 0 0 55%;
}

.home .hero__grid {
	align-items: center;
}

.menu__rest {
	text-align: right;
}

@media (min-width: 1024px) {
	.home .hero {
		padding-block: 2.5vh 3vh;
	}

	.home .hero__copy-ja {
		font-size: clamp(28px, 5.2vh, 54px);
	}

	.home .event-card {
		padding-top: 0;
	}

	.home .event-card__date {
		font-size: clamp(38px, 7.2vh, 64px);
	}

	.home .event-card__title {
		font-size: clamp(22px, 3.6vh, 30px);
	}

	.home .facts {
		margin-top: clamp(10px, 2vh, 22px);
	}

	.home .facts > div {
		padding-block: clamp(5px, 1vh, 9px);
	}

	.home .event-card__actions {
		margin-top: clamp(12px, 2.2vh, 22px);
	}

	.home .menu-panel {
		margin-top: 0;
		padding-block: clamp(14px, 2.6vh, 30px) clamp(6px, 1.2vh, 18px);
	}

	.home .menu__link {
		padding-block: clamp(6px, 1.2vh, 12px);
	}
}

.footer-slim {
	color: var(--ink);
	font-size: 12px;
}

.footer-slim__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 24px;
	min-height: 48px;
}

.footer-slim__shops {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 22px;
	margin-right: auto;
}

.footer-slim__label {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.2em;
}

.footer-slim .footer-slim__shop {
	gap: 5px;
	font-family: var(--font-latin);
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

.footer-slim__shop::after {
	content: "\2197";
	font-family: var(--font-body);
	font-size: 11px;
}

/* Narrow desktops: keep the line to a single row so the page still fits. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.footer-slim small {
		display: none;
	}

	.footer-slim__shops {
		gap: 0 16px;
	}

	.footer-slim .footer-slim__shop {
		font-size: 18px;
	}
}

.shop-band.shop-band--inline {
	margin: 0 0 36px;
}

.footer-slim small {
	font-family: var(--font-latin);
	font-size: 14px;
}

.footer-slim ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.footer-slim a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.footer-slim a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- Sections ---------- */

.section {
	padding-top: var(--gap);
}

.section:last-of-type {
	padding-bottom: var(--gap);
}

.hero + .section {
	padding-top: calc(var(--gap) * 0.5);
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ink);
}

.section__title {
	font-size: 22px;
	line-height: 1.5;
}

.section__lead {
	max-width: 40em;
	margin-bottom: 32px;
}

@media (min-width: 768px) {
	.section__title {
		font-size: 26px;
	}
}

/* Rail layout: heading stays in a left column, like a magazine spread. */
@media (min-width: 1024px) {
	.section--rail > .container {
		display: grid;
		grid-template-columns: var(--rail) minmax(0, 1fr);
		column-gap: 64px;
	}

	.section--rail > .container > * {
		grid-column: 2;
	}

	.section--rail .section__head {
		grid-column: 1;
		grid-row: 1 / span 12;
		align-self: start;
		position: sticky;
		top: 132px;
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		margin: 0;
		padding: 18px 0 0;
		border-bottom: 0;
		border-top: 1px solid currentColor;
	}

	.section__title {
		font-size: 25px;
	}
}

/* Night: the client-facing half of the page. */
.section--night {
	background: var(--night);
	color: var(--on-dark);
	padding-bottom: var(--gap);
}

.section--night + .section--night {
	padding-top: 0;
}

.section--night .section__head {
	border-color: var(--line-light);
}

.section--night .kicker {
	color: var(--amber);
}

.section--night .section__lead {
	color: var(--on-dark-muted);
}

/* ---------- Filter ---------- */

.filter {
	display: flex;
	gap: 0 22px;
	margin: 0 calc(var(--pad) * -1) 24px;
	padding-inline: var(--pad);
	overflow-x: auto;
	scrollbar-width: none;
}

.filter::-webkit-scrollbar {
	display: none;
}

.chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--muted);
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.1em;
	cursor: pointer;
}

.chip:hover {
	color: var(--ink);
}

.chip.is-active {
	color: var(--ink);
	border-bottom-color: var(--ink);
}

@media (min-width: 768px) {
	.filter {
		flex-wrap: wrap;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}
}

/* ---------- Grids and cards (no boxes: image, then text) ---------- */

.grid {
	display: grid;
	gap: 32px 16px;
}

.grid--works {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.grid {
		gap: 44px 28px;
	}

	.grid--works,
	.grid--cases {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.grid--works {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	padding-top: 12px;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
}

.card__title {
	font-weight: 500;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: 0.02em;
}

.card__link:hover .card__title {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.card__price {
	margin-top: auto;
	padding-top: 2px;
	font-family: var(--font-latin);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.4;
}

@media (min-width: 768px) {
	.card__title {
		font-size: 16px;
	}

	.card__price {
		font-size: 22px;
	}
}

.thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	background: linear-gradient(160deg, #2b2757, #6b4c86);
	overflow: hidden;
}

.card--case .thumb,
.work-detail .thumb {
	aspect-ratio: 16 / 9;
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}

.card__link:hover .thumb img {
	transform: scale(1.03);
}

.thumb__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--font-head);
	font-size: 14px;
	letter-spacing: 0.4em;
	color: rgba(255, 255, 255, 0.6);
}

.thumb--game { background: linear-gradient(160deg, #2b2757, #6b4c86); }
.thumb--tool { background: linear-gradient(160deg, #1e3a4a, #5b8a8c); }
.thumb--script { background: linear-gradient(160deg, #1c2a4a, #4a6d96); }
.thumb--doujin { background: linear-gradient(160deg, #4f2f58, #c46f7a); }
.thumb--goods { background: linear-gradient(160deg, #6f4338, #e8a15f); }

.thumb__adult {
	position: absolute;
	top: 0;
	left: 0;
	padding: 2px 8px;
	background: var(--night);
	color: var(--on-dark);
	font-family: var(--font-latin);
	font-size: 13px;
}

/* ---------- Shop links: a ruled line of text, not a banner ---------- */

.shop-band {
	margin-top: var(--gap);
}

.shop-band__inner {
	display: grid;
	gap: 14px;
}

.shop-band__inner > div {
	padding-top: 20px;
	border-top: 1px solid var(--ink);
}

.shop-band__title {
	font-size: 19px;
	line-height: 1.6;
}

.shop-band__text {
	font-size: 13px;
	color: var(--muted);
}

.shop-band__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
}

.shop-band__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-family: var(--font-latin);
	font-weight: 600;
	font-size: 21px;
	border-bottom: 1px solid var(--ink);
	transition: color 0.25s, border-color 0.25s;
}

.shop-band__link::after {
	content: "\2197";
	font-family: var(--font-body);
	font-size: 12px;
}

.shop-band__link:hover {
	color: var(--rose);
	border-color: var(--rose);
}

@media (min-width: 1024px) {
	.shop-band__inner {
		grid-template-columns: var(--rail) minmax(0, 1fr);
		column-gap: 64px;
		align-items: start;
	}

	.shop-band__links {
		padding-top: 20px;
		border-top: 1px solid var(--line);
		gap: 0 44px;
	}

	.shop-band__link {
		font-size: 25px;
	}
}

.shop-band + .section--night {
	margin-top: var(--gap);
}

/* ---------- Business track ---------- */

.grid--services {
	gap: 0;
	border-top: 1px solid var(--line-light);
}

.service {
	padding-block: 24px;
	border-bottom: 1px solid var(--line-light);
}

.service__num {
	font-family: var(--font-latin);
	font-style: italic;
	font-size: 18px;
	color: var(--amber);
}

.service__title {
	margin-top: 2px;
	font-size: 19px;
}

.service__text {
	margin-top: 8px;
	font-size: 14px;
	color: var(--on-dark-muted);
}

.skills {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	margin-top: 12px;
	font-family: var(--font-latin);
	font-size: 16px;
	letter-spacing: 0.02em;
}

.skills li + li::before {
	content: "/ ";
	opacity: 0.45;
}

@media (min-width: 768px) {
	.grid--services {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.service {
		padding: 28px 28px 32px 0;
	}

	.service + .service {
		padding-left: 28px;
		border-left: 1px solid var(--line-light);
	}

	.service:last-child {
		padding-right: 0;
	}
}

.stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 20px;
	margin-top: 40px;
}

.stats > div {
	display: flex;
	flex-direction: column;
}

.stats dd {
	font-family: var(--font-latin);
	font-weight: 500;
	font-size: 44px;
	line-height: 1.1;
}

.stats dt {
	margin-top: 6px;
	font-size: 12px;
	letter-spacing: 0.16em;
	color: var(--on-dark-muted);
}

@media (min-width: 768px) {
	.stats {
		grid-template-columns: repeat(4, 1fr);
		margin-top: 56px;
	}

	.stats dd {
		font-size: 56px;
	}
}

.case-facts {
	display: grid;
	gap: 2px;
	margin-top: 8px;
	font-size: 13px;
}

.case-facts > div {
	display: grid;
	grid-template-columns: 3em 1fr;
	gap: 12px;
}

.case-facts dt {
	letter-spacing: 0.1em;
	opacity: 0.6;
}

.case-facts--box {
	margin-top: 28px;
	padding: 16px 0;
	border-block: 1px solid var(--line);
	font-size: 14px;
}

/* ---------- CTA: the last light before night ---------- */

.cta {
	padding-block: 56px;
	background: linear-gradient(100deg, var(--indigo), var(--violet) 45%, #a35e7d 80%, #d98b6c);
	color: var(--on-dark);
}

.cta__inner {
	display: grid;
	gap: 24px;
}

.cta__title {
	font-size: 24px;
	line-height: 1.6;
}

.cta__text {
	margin-top: 8px;
	color: var(--on-dark-muted);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.cta__legal {
	padding-block: 10px;
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 4px;
	color: var(--on-dark-muted);
}

@media (min-width: 1024px) {
	.cta {
		padding-block: 88px;
	}

	.cta__inner {
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 48px;
	}

	.cta__title {
		font-size: 32px;
	}
}

/* ---------- Circle + news ---------- */

.circle-grid {
	display: grid;
	gap: var(--gap);
}

@media (min-width: 1024px) {
	.circle-grid {
		grid-template-columns: 1fr 1fr;
		gap: 88px;
	}
}

.profile > div {
	display: grid;
	grid-template-columns: 7em 1fr;
	gap: 12px;
	padding-block: 12px;
	border-bottom: 1px solid var(--line);
}

.profile dt {
	font-size: 12px;
	letter-spacing: 0.12em;
	line-height: 2.2;
	color: var(--muted);
}

.profile dd {
	font-family: var(--font-head);
	font-weight: 500;
}

.admin-hint {
	padding: 14px 16px;
	border: 1px dashed var(--line);
	font-size: 13px;
	color: var(--muted);
}

.admin-hint a {
	text-decoration: underline;
}

.news li {
	border-bottom: 1px solid var(--line);
}

.news a {
	display: grid;
	gap: 0 20px;
	padding-block: 14px;
}

.news time {
	font-family: var(--font-latin);
	font-size: 16px;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.news span {
	font-family: var(--font-head);
	font-weight: 500;
	line-height: 1.7;
}

.news a:hover span {
	text-decoration: underline;
	text-underline-offset: 5px;
}

@media (min-width: 768px) {
	.news a {
		grid-template-columns: 6.5em 1fr;
		align-items: baseline;
	}
}

/* ---------- Top page: new works in one row, and the two doors ---------- */

@media (min-width: 768px) {
	.grid--front {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.gateway {
	display: grid;
	gap: 16px;
}

.gateway__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 32px 24px 28px;
	border: 1px solid var(--ink);
	transition: background-color 0.3s, color 0.3s;
}

.gateway__item--night {
	background: var(--night);
	border-color: var(--night);
	color: var(--on-dark);
}

.gateway__item--night .kicker {
	color: var(--amber);
}

.gateway__title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 0.06em;
	line-height: 1.5;
}

.gateway__text {
	max-width: 30em;
	font-size: 14px;
	opacity: 0.78;
}

.gateway__go {
	align-self: flex-start;
	margin-top: 18px;
	padding-bottom: 6px;
	border-bottom: 1px solid currentColor;
	font-family: var(--font-head);
	font-size: 13px;
	letter-spacing: 0.1em;
}

.gateway__item:hover {
	background: var(--ink);
	color: var(--on-dark);
}

.gateway__item--night:hover {
	background: var(--violet);
	border-color: var(--violet);
}

@media (min-width: 768px) {
	.gateway {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}

	.gateway__item {
		padding: 48px 44px 44px;
	}

	.gateway__title {
		font-size: 30px;
	}
}

/* ---------- Business page ---------- */

.page-hero {
	padding-block: 48px 8px;
	background: var(--night);
	color: var(--on-dark);
}

.page-hero .kicker {
	color: var(--amber);
}

.page-hero__title {
	font-size: 30px;
	line-height: 1.5;
}

.page-hero + .section--night {
	padding-top: 40px;
}

@media (min-width: 768px) {
	.page-hero {
		padding-top: 80px;
	}

	.page-hero__title {
		font-size: 42px;
	}

	.page-hero + .section--night {
		padding-top: 64px;
	}
}

/* ---------- About page ---------- */

.about {
	display: grid;
	gap: 36px;
}

.about__logo img {
	width: min(100%, 360px);
}

.about .section__lead {
	margin-bottom: 20px;
}

.about .profile {
	border-top: 1px solid var(--ink);
}

@media (min-width: 1024px) {
	.about {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 80px;
		align-items: start;
	}

	.about__logo img {
		width: 100%;
		max-width: 440px;
	}
}

/* ---------- Inner pages ---------- */

.content {
	padding-block: 40px var(--gap);
}

.content--narrow {
	max-width: calc(820px + var(--pad) * 2);
}

.content__head {
	margin-bottom: 32px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ink);
}

.content__title {
	font-size: 26px;
	line-height: 1.5;
}

.content__date {
	display: block;
	font-family: var(--font-latin);
	font-size: 17px;
	color: var(--muted);
}

.content__note {
	margin-top: 14px;
	padding-left: 14px;
	border-left: 2px solid var(--rose);
	font-size: 14px;
}

.content__image {
	margin-bottom: 28px;
}

.content__back {
	margin-top: 56px;
}

@media (min-width: 768px) {
	.content {
		padding-top: 64px;
	}

	.content__title {
		font-size: 34px;
	}
}

.event-detail,
.work-detail {
	display: grid;
	gap: 28px;
}

.work-detail__info .content__title {
	margin-top: 8px;
}

.work-detail__lead {
	margin-top: 12px;
	color: var(--muted);
}

.work-detail__price {
	margin-block: 16px 20px;
	font-family: var(--font-latin);
	font-weight: 600;
	font-size: 38px;
	line-height: 1.2;
}

.work-detail__info .btn--lg {
	width: 100%;
}

/* On paper the facts list and sheet use ink rules instead of light ones. */
.content .facts {
	margin-top: 0;
	border-color: var(--ink);
}

.content .facts > div {
	border-color: var(--line);
}

.content .facts dt {
	color: var(--muted);
}

.content .menu-panel {
	grid-column: auto;
	grid-row: auto;
	margin-top: 0;
	box-shadow: none;
	border: 1px solid var(--line);
}

.event-detail__image {
	margin-top: 24px;
}

@media (min-width: 768px) {
	.work-detail__info .btn--lg {
		width: auto;
	}
}

@media (min-width: 1024px) {
	.event-detail,
	.work-detail {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 64px;
		align-items: start;
	}
}

.event-group + .event-group {
	margin-top: 56px;
}

.event-group__title {
	margin-bottom: 4px;
	font-size: 18px;
	letter-spacing: 0.16em;
}

.event-row {
	display: grid;
	gap: 0 24px;
	padding-block: 16px;
	border-bottom: 1px solid var(--line);
}

.event-list li:first-child .event-row {
	border-top: 1px solid var(--ink);
}

.event-row__date {
	font-family: var(--font-latin);
	font-size: 18px;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.event-row__name {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 17px;
}

.event-row:hover .event-row__name {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.event-row__meta {
	font-size: 13px;
	color: var(--muted);
}

@media (min-width: 768px) {
	.event-row {
		grid-template-columns: 9em 1fr auto;
		align-items: baseline;
	}
}

/* ---------- Editor content ---------- */

.prose {
	max-width: 820px;
	margin-top: 48px;
}

.content--narrow .prose {
	margin-top: 0;
}

.prose > * + * {
	margin-top: 1.4em;
}

.prose h2 {
	margin-top: 2.4em;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ink);
	font-size: 22px;
	line-height: 1.5;
}

.prose h3 {
	margin-top: 2em;
	font-size: 18px;
}

.prose a {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--rose);
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose ul {
	list-style: disc;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.prose th,
.prose td {
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	font-weight: 500;
	color: var(--muted);
	white-space: nowrap;
}

.prose input[type="text"],
.prose input[type="email"],
.prose input[type="tel"],
.prose textarea,
.prose select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--sheet);
	font: inherit;
	color: inherit;
}

.prose input[type="submit"] {
	min-height: 56px;
	padding: 0 40px;
	border: 0;
	border-radius: 0;
	background: var(--ink);
	color: var(--on-dark);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.1em;
	cursor: pointer;
}

/* Contact Form 7 */
.wpcf7 label {
	display: block;
	font-family: var(--font-head);
	font-size: 14px;
	letter-spacing: 0.06em;
}

.wpcf7 label .wpcf7-form-control-wrap {
	display: block;
	margin-top: 8px;
}

.wpcf7 form > p + p {
	margin-top: 24px;
}

.wpcf7 textarea {
	min-height: 200px;
}

.wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--rose);
	font-size: 13px;
}

.wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 16px;
	border: 1px solid var(--line);
	font-size: 14px;
}

/* WooCommerce: keep the plugin layout, match type and edges */
.content--shop .page-title,
.content--shop .product_title {
	font-family: var(--font-head);
	font-size: clamp(26px, 3vw, 36px);
	letter-spacing: 0.06em;
	margin-bottom: 32px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
	border-radius: 0;
	background: var(--ink);
	color: var(--on-dark);
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: 0.08em;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--violet);
	color: var(--on-dark);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-head);
	font-size: 16px;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	color: var(--ink);
	font-family: var(--font-latin, inherit);
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
	border-radius: 0;
	background: var(--sheet);
	border-top-color: var(--violet);
}

.pagination {
	margin-top: 56px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	font-family: var(--font-latin);
	font-size: 19px;
	border-bottom: 1px solid transparent;
}

.pagination .page-numbers.current {
	border-bottom-color: var(--ink);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Footer: night has fallen ---------- */

.footer {
	padding-block: 56px 24px;
	background: var(--night);
	color: var(--on-dark);
	font-size: 13px;
}

.footer__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px 20px;
}

.footer__about {
	grid-column: 1 / -1;
}

.footer__logo {
	width: 180px;
	margin-bottom: 14px;
}

.footer__desc {
	color: var(--on-dark-muted);
}

.footer__notice {
	max-width: 36em;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line-light);
	font-size: 12px;
	line-height: 1.8;
	color: var(--on-dark-muted);
}

.footer__heading {
	margin-bottom: 6px;
	font-family: var(--font-head);
	font-size: 12px;
	letter-spacing: 0.2em;
	color: var(--amber);
}

.footer__col a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
}

.footer__col a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.footer__bottom {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--line-light);
	font-family: var(--font-latin);
	font-size: 14px;
	color: var(--on-dark-muted);
}

@media (min-width: 768px) {
	.footer {
		padding-top: 80px;
	}

	.footer__inner {
		grid-template-columns: repeat(3, 1fr);
	}

	.footer__logo {
		width: 220px;
	}
}

@media (min-width: 1024px) {
	.footer__inner {
		grid-template-columns: 2fr 1fr 1fr 1fr;
		gap: 56px;
	}

	.footer__about {
		grid-column: auto;
	}
}

/* ---------- Sticky CTA (mobile only) ---------- */

.sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	background: var(--night);
	color: var(--on-dark);
	padding-bottom: env(safe-area-inset-bottom);
	border-top: 1px solid var(--line-light);
}

.sticky-cta .btn {
	min-height: 56px;
	border: 0;
	color: var(--on-dark);
	background: none;
}

.sticky-cta .btn--primary {
	background: var(--amber);
	color: var(--night);
}

@media (min-width: 768px) {
	.sticky-cta {
		display: none;
	}

	body.has-sticky-cta {
		padding-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
