:root {
	color-scheme: light dark;
	--bg: #0b1220;
	--bg-elevated: #121a2b;
	--bg-card: #162033;
	--border: #2a3a55;
	--text: #e8eefc;
	--muted: #9aabc8;
	--accent: #f6821f;
	--accent-2: #3b82f6;
	--ok: #22c55e;
	--warn: #eab308;
	--ng: #ef4444;
	--shadow: 0 12px 40px rgb(0 0 0 / 35%);
	--radius: 14px;
	--font: "Segoe UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
	:root {
		--bg: #f4f7fb;
		--bg-elevated: #ffffff;
		--bg-card: #ffffff;
		--border: #d5deeb;
		--text: #132033;
		--muted: #5b6b86;
		--shadow: 0 10px 30px rgb(19 32 51 / 8%);
	}
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: var(--font);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgb(246 130 31 / 18%), transparent 50%),
		radial-gradient(900px 500px at 100% 0%, rgb(59 130 246 / 16%), transparent 45%), var(--bg);
	color: var(--text);
	min-height: 100%;
}

a {
	color: var(--accent-2);
}

code {
	font-family: var(--mono);
	font-size: 0.9em;
	background: rgb(127 127 127 / 12%);
	padding: 0.1em 0.35em;
	border-radius: 6px;
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	background: var(--bg-elevated);
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
}

.site-header {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.25rem 0.5rem;
}

.brand {
	display: flex;
	gap: 0.9rem;
	align-items: center;
}

.logo {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--accent), #ffb347);
	color: #1a1208;
	font-size: 1.4rem;
	font-weight: 700;
	box-shadow: var(--shadow);
}

.eyebrow {
	margin: 0;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.site-header h1 {
	margin: 0.15rem 0 0;
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.tagline {
	margin: 0.75rem 0 0;
	color: var(--muted);
	max-width: 52rem;
}

.banner {
	max-width: 1200px;
	margin: 1rem auto;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	font-size: 0.95rem;
}

.banner.ok {
	border-color: color-mix(in oklab, var(--ok) 50%, var(--border));
	background: color-mix(in oklab, var(--ok) 12%, var(--bg-elevated));
}

.banner.warn {
	border-color: color-mix(in oklab, var(--warn) 50%, var(--border));
	background: color-mix(in oklab, var(--warn) 12%, var(--bg-elevated));
}

.layout {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.5rem 1.25rem 3rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 1.25rem;
	align-items: start;
}

@media (max-width: 960px) {
	.layout {
		grid-template-columns: 1fr;
	}
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	align-items: end;
	margin-bottom: 1rem;
}

.section-head h2 {
	margin: 0;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.85rem;
	color: var(--muted);
}

input,
select,
textarea,
button {
	font: inherit;
}

input,
select,
textarea {
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	border-radius: 10px;
	padding: 0.55rem 0.7rem;
}

textarea {
	resize: vertical;
	font-family: var(--mono);
	font-size: 0.85rem;
}

button {
	border: 1px solid var(--border);
	background: var(--bg-elevated);
	color: var(--text);
	border-radius: 10px;
	padding: 0.55rem 0.85rem;
	cursor: pointer;
}

button:hover:not(:disabled) {
	border-color: color-mix(in oklab, var(--accent-2) 50%, var(--border));
}

button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

button.primary {
	background: linear-gradient(135deg, var(--accent), #ff9a3c);
	border-color: transparent;
	color: #1a1208;
	font-weight: 650;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.product-emoji {
	font-size: 3rem;
	text-align: center;
	padding: 1.25rem 0 0.25rem;
	background: linear-gradient(180deg, rgb(127 127 127 / 8%), transparent);
}

.product-body {
	padding: 0.75rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.product-body h3 {
	margin: 0;
	font-size: 1.05rem;
}

.product-body p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
	flex: 1;
}

.badge {
	align-self: flex-start;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--muted);
}

.product-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.gallery {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.gallery figure {
	margin: 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.gallery img {
	display: block;
	width: 100%;
	height: auto;
	background: #0a0f18;
}

.gallery figcaption {
	padding: 0.6rem 0.8rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: sticky;
	top: 1rem;
}

.panel {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
	box-shadow: var(--shadow);
}

.cart-header,
.verify-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.cart-header h2,
.verify-header h2,
.verify-section h3 {
	margin: 0;
}

.cart-header h2 {
	font-size: 1.1rem;
}

.count {
	display: inline-grid;
	place-items: center;
	min-width: 1.4rem;
	height: 1.4rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--accent);
	color: #1a1208;
	font-size: 0.8rem;
}

.cart-list {
	list-style: none;
	margin: 0.75rem 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.cart-list li {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.92rem;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0.75rem 0;
	font-size: 1.05rem;
}

.cart .primary {
	width: 100%;
}

.order-result {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	color: var(--ok);
}

.cart-note {
	margin: 0.35rem 0 0.5rem;
	font-size: 0.8rem;
	line-height: 1.4;
}

.muted {
	color: var(--muted);
}

.verify-header h2 {
	font-size: 1.05rem;
}

.verify-section {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--border);
}

.verify-section h3 {
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.verify-section h3 small {
	color: var(--muted);
	font-weight: 400;
}

.status-list,
.tool-list,
.hints {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.88rem;
}

.status-list {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.status-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--muted);
	flex-shrink: 0;
}

.dot.ok {
	background: var(--ok);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent);
}

.dot.ng {
	background: var(--ng);
}

.verify-section label {
	margin-bottom: 0.55rem;
}

.tool-result {
	margin: 0.75rem 0 0;
	padding: 0.75rem;
	border-radius: 10px;
	background: #0a101b;
	color: #d7e3ff;
	border: 1px solid var(--border);
	font-size: 0.78rem;
	overflow: auto;
	max-height: 220px;
}

.hints {
	color: var(--muted);
}

.modal {
	position: fixed;
	inset: 0;
	background: rgb(0 0 0 / 55%);
	display: grid;
	place-items: center;
	padding: 1rem;
	z-index: 50;
}

.modal[hidden] {
	display: none;
}

.modal-card {
	width: min(440px, 100%);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
	box-shadow: var(--shadow);
}

.modal-card h2 {
	margin-top: 0;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem;
}

.site-footer {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem 2.5rem;
	color: var(--muted);
	font-size: 0.9rem;
}
