:root {
	color-scheme: light;
	font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	min-width: 320px;
	color: #172033;
	background: #ffffff;
	font-size: 15px;
	line-height: 1.6;
}

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

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

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

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

.admin-shell {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	min-height: 100vh;
	background: #ffffff;
}

.admin-sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	width: 240px;
	height: 100vh;
	padding: 24px 16px 18px;
	border-right: 1px solid #e7ebf2;
	background: #ffffff;
	z-index: 30;
}

.admin-brand {
	min-height: 72px;
	margin: 0 8px 28px;
}

.admin-brand-link {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.admin-brand-logo {
	position: relative;
	display: block;
	width: 174px;
	height: 42px;
	overflow: hidden;
	background: #ffffff;
}

.admin-brand-logo img {
	position: absolute;
	top: -61px;
	left: -44px;
	width: 240px;
	height: auto;
	max-width: none;
}

.admin-brand-label {
	margin-left: 6px;
	color: #91a0b6;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.admin-navigation {
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
}

.admin-navigation-title {
	margin: 0 10px 9px;
	color: #9aa6b8;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.admin-navigation-title:not(:first-child) {
	margin-top: 25px;
}

.admin-navigation-list {
	display: grid;
	gap: 4px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.admin-navigation-link {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 0 12px 0 17px;
	border-radius: 10px;
	color: #627086;
	font-size: 14px;
	font-weight: 700;
	transition: color 150ms ease, background-color 150ms ease;
}

.admin-navigation-link::before {
	content: "";
	position: absolute;
	left: 8px;
	width: 3px;
	height: 16px;
	border-radius: 4px;
	background: transparent;
}

.admin-navigation-link:hover,
.admin-navigation-link:focus-visible {
	color: #0c6fdc;
	background: #f4f8fd;
	outline: none;
}

.admin-navigation-link.is-active {
	color: #086bdc;
	background: #eaf3ff;
}

.admin-navigation-link.is-active::before {
	background: #0b72e7;
}

.admin-navigation-link em {
	min-width: 22px;
	margin-left: auto;
	padding: 2px 6px;
	border-radius: 999px;
	color: #0e6bd3;
	background: #deedff;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	text-align: center;
}

.admin-user {
	display: flex;
	align-items: center;
	margin-top: auto;
	padding: 15px 10px 2px;
	gap: 10px;
	border-top: 1px solid #e8ecf2;
}

.admin-user-avatar {
	display: grid;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 10px;
	color: #ffffff;
	background: #0b72e7;
	font-size: 13px;
	font-weight: 800;
}

.admin-user-detail {
	min-width: 0;
	flex: 1;
}

.admin-user-detail strong,
.admin-user-detail small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.admin-user-detail strong {
	color: #2c374a;
	font-size: 13px;
}

.admin-user-detail small {
	margin-top: 2px;
	color: #929dad;
	font-size: 11px;
}

.admin-logout {
	margin-left: auto;
}

.admin-logout button {
	padding: 5px 7px;
	border: 1px solid #e1e6ed;
	border-radius: 7px;
	color: #7f8a9b;
	background: #ffffff;
	font-size: 10px;
	font-weight: 750;
	cursor: pointer;
}

.admin-logout button:hover,
.admin-logout button:focus-visible {
	border-color: #b8d4f4;
	color: #0b69cc;
	background: #f7fbff;
	outline: none;
}

.admin-workspace {
	display: flex;
	min-width: 0;
	min-height: 100vh;
	flex-direction: column;
}

.admin-header {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	height: 72px;
	padding: 0 30px;
	gap: 18px;
	border-bottom: 1px solid #e8ecf2;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	z-index: 20;
}

.admin-menu-button {
	display: none;
	width: 40px;
	height: 40px;
	padding: 10px;
	border: 1px solid #dfe5ee;
	border-radius: 10px;
	background: #ffffff;
	cursor: pointer;
}

.admin-menu-button span:not(.visually-hidden) {
	display: block;
	width: 18px;
	height: 2px;
	margin: 3px auto;
	border-radius: 2px;
	background: #526179;
}

.admin-breadcrumb {
	color: #748198;
	font-size: 13px;
	font-weight: 700;
}

.admin-header-meta {
	display: flex;
	align-items: center;
	margin-left: auto;
	gap: 16px;
	color: #7b879a;
	font-size: 12px;
	font-weight: 650;
}

.admin-header-user {
	padding: 7px 11px;
	border: 1px solid #e0e6ef;
	border-radius: 9px;
	color: #40506a;
	background: #ffffff;
}

.admin-content {
	width: 100%;
	max-width: 1320px;
	padding: 36px 34px 48px;
	margin: 0 auto;
}

.admin-footer {
	margin-top: auto;
	padding: 18px 34px;
	border-top: 1px solid #edf0f4;
	color: #9aa4b2;
	background: #ffffff;
	text-align: right;
}

.admin-footer a:hover,
.admin-footer a:focus-visible {
	color: #0b72e7;
	text-decoration: underline;
	outline: none;
}

.admin-menu-overlay {
	position: fixed;
	inset: 0;
	display: none;
	padding: 0;
	border: 0;
	background: rgba(21, 32, 51, 0.38);
	backdrop-filter: blur(2px);
	z-index: 25;
}

@media (max-width: 820px) {
	body.is-menu-open {
		overflow: hidden;
	}

	.admin-shell {
		display: block;
	}

	.admin-sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		transform: translateX(-102%);
		transition: transform 180ms ease;
	}

	body.is-menu-open .admin-sidebar {
		transform: translateX(0);
	}

	body.is-menu-open .admin-menu-overlay {
		display: block;
	}

	.admin-menu-button {
		display: block;
	}

	.admin-header {
		padding: 0 18px;
	}

	.admin-header-meta time {
		display: none;
	}

	.admin-content {
		padding: 28px 20px 40px;
	}

	.admin-footer {
		padding: 16px 20px;
	}
}

@media (max-width: 520px) {
	.admin-header-user {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

.company-store-context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; background: #f3f6fb; color: #25364d; font-size: 14px; }
.company-store-context select { max-width: 100%; padding: 7px; border: 1px solid #ccd5e1; border-radius: 6px; }
.company-store-context button { padding: 7px 14px; border: 0; border-radius: 6px; background: #0b72e7; color: white; }
