:root {
	--bg:           #585062;
	--bg-deep:      #3e3846;
	--ink:          #cfc8d4;
	--ink-dim:      #9e96a6;
	--insignia:     #38323f;
	--rule:         #6c6475;
	--chip-bg:      #776f81;
	--chip-ink:     #2a2530;
	--orange:       #e0893d;
	--orange-hover: #f0862f;

	--font-body: -apple-system, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
		"Noto Sans JP", "Yu Gothic", sans-serif;

	--header-height: 64px;
	--gutter: 24px;
	--menu-width: min(320px, 85vw);
	--ease: 240ms ease;
}

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

html {
	color-scheme: dark;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

svg {
	display: block;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ambient {
	position: fixed;
	inset: 0;
	z-index: 30;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	height: var(--header-height);
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--bg-deep);
}

.brand,
.menu-toggle {
	height: 44px;
	border-radius: 6px;
}

.brand:focus-visible,
.menu-toggle:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}

.brand {
	display: inline-flex;
	align-items: center;
	margin-left: -11px;
	padding: 0 11px;
	color: var(--orange);
	text-decoration: none;
	transition: color var(--ease);
}

.brand:hover,
.brand:focus-visible {
	color: var(--orange-hover);
}

.brand__mark {
	height: 22px;
	width: auto;
}

.menu-toggle {
	width: 44px;
	margin-right: -11px;
	padding: 0;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: none;
	border: 0;
	color: var(--ink);
	cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
	color: var(--orange);
}

.menu-toggle__bar {
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(4) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
	position: fixed;
	top: var(--header-height);
	right: 0;
	bottom: 0;
	z-index: 15;
	width: var(--menu-width);
	padding: calc(var(--gutter) * 1.5) var(--gutter);
	background: var(--bg-deep);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
	transform: translateX(100%);
	transition: transform var(--ease);
}

/* stays in layout while hidden so the slide transition can run */
.site-menu[hidden] {
	display: block;
	visibility: hidden;
}

.site-menu.is-open {
	transform: translateX(0);
}

.site-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-menu__list a {
	display: block;
	padding: 10px 0;
	text-decoration: none;
	color: var(--ink);
}

.site-menu__list a:hover,
.site-menu__list a:focus-visible {
	color: var(--orange);
}

.site-menu__backdrop {
	position: fixed;
	inset: var(--header-height) 0 0 0;
	z-index: 10;
	background: rgba(20, 16, 24, 0.35);
}

.site-menu__backdrop[hidden] {
	display: none;
}

.site-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(var(--gutter) * 2) var(--gutter);
}

.intro {
	max-width: 34rem;
	text-align: center;
}

.insignia {
	width: clamp(200px, 36vw, 320px);
	height: auto;
	margin: 0 auto calc(var(--gutter) * 1.5);
	color: var(--insignia);
}

.intro__text {
	margin: 0;
	font-size: 0.95rem;
}

.intro__text:lang(ja) {
	line-break: strict;
	word-break: auto-phrase;
	text-wrap: balance;
	letter-spacing: 0.02em;
}

.rule {
	width: 72px;
	margin: calc(var(--gutter) * 1.5) auto;
	border: 0;
	border-top: 1px solid var(--rule);
}

.products {
	margin: 0 auto;
	border-collapse: collapse;
	font-size: 0.8rem;
	line-height: 1.5;
}

.products th,
.products td {
	padding: 8px 12px;
	text-align: left;
	vertical-align: middle;
}

.products thead th {
	font-weight: 400;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	color: var(--ink-dim);
	border-bottom: 1px solid var(--rule);
}

.products__names {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.products__category {
	color: var(--ink);
	white-space: nowrap;
}

/* both labels share one grid cell so the chip keeps the wider width */
.chip {
	display: inline-grid;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--chip-bg);
	color: var(--chip-ink);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--ease), color var(--ease);
}

.chip > span {
	grid-area: 1 / 1;
	text-align: center;
	transition: opacity var(--ease);
}

.chip__ja {
	opacity: 0;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.chip:hover,
.chip:focus-visible {
	background: var(--orange);
	color: var(--chip-ink);
	outline: none;
}

.chip:focus-visible {
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--orange);
}

.chip:hover .chip__en,
.chip:focus-visible .chip__en {
	opacity: 0;
}

.chip:hover .chip__ja,
.chip:focus-visible .chip__ja {
	opacity: 1;
}

.notify {
	max-width: 22rem;
	margin: 0 auto;
}

.notify__label {
	display: block;
	margin-bottom: 10px;
	font-size: 0.8rem;
	color: var(--ink-dim);
}

.notify__row {
	display: flex;
	gap: 6px;
}

.notify__input {
	flex: 1;
	min-width: 0;
	padding: 7px 12px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: var(--bg-deep);
	color: var(--ink);
	font: inherit;
	font-size: 0.85rem;
}

.notify__input::placeholder {
	color: var(--ink-dim);
}

.notify__input:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}

.notify__submit {
	padding: 7px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--chip-bg);
	color: var(--chip-ink);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--ease);
}

.notify__submit:hover,
.notify__submit:focus-visible {
	background: var(--orange);
	outline: none;
}

.notify__submit:focus-visible {
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--orange);
}

.notify__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.notify__status {
	min-height: 1.5em;
	margin: 10px 0 0;
	font-size: 0.8rem;
	color: var(--ink-dim);
}

.site-footer {
	padding: var(--gutter);
	text-align: center;
	color: var(--ink-dim);
	font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
