.dkeibi-aed-chart {
	--dkeibi-blue: #0f6b91;
	--dkeibi-blue-dark: #0b4d6a;
	--dkeibi-orange: #e15b2d;
	--dkeibi-ink: #172033;
	--dkeibi-muted: #566174;
	--dkeibi-border: #d7e2e8;
	box-sizing: border-box;
	width: 100%;
	max-width: 980px;
	margin: 2rem auto;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	overflow: hidden;
	color: var(--dkeibi-ink);
	font-family: "Meiryo UI", Meiryo, "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
	background:
		radial-gradient(circle at 100% 0, rgba(15, 107, 145, 0.12), transparent 34%),
		#ffffff;
	border: 1px solid var(--dkeibi-border);
	border-radius: 18px;
	box-shadow: 0 14px 35px rgba(20, 47, 66, 0.10);
}

.dkeibi-aed-chart *,
.dkeibi-aed-chart *::before,
.dkeibi-aed-chart *::after {
	box-sizing: border-box;
}

.dkeibi-aed-chart__header {
	margin-bottom: 1.25rem;
}

.dkeibi-aed-chart__eyebrow {
	margin: 0 0 0.45rem;
	color: var(--dkeibi-blue);
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.dkeibi-aed-chart__title {
	margin: 0;
	color: var(--dkeibi-ink);
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.dkeibi-aed-chart__lead {
	margin: 0.75rem 0 0;
	color: var(--dkeibi-muted);
	font-size: 0.95rem;
	line-height: 1.8;
}

.dkeibi-aed-chart__stats {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.75rem;
	align-items: stretch;
	margin: 1.25rem 0;
}

.dkeibi-aed-chart__stat {
	display: flex;
	min-width: 0;
	padding: 0.9rem 1rem;
	flex-direction: column;
	justify-content: center;
	background: rgba(238, 246, 249, 0.90);
	border: 1px solid rgba(15, 107, 145, 0.16);
	border-radius: 12px;
}

.dkeibi-aed-chart__stat--latest {
	background: #fff4ee;
	border-color: rgba(225, 91, 45, 0.30);
}

.dkeibi-aed-chart__stat--ratio {
	background: #f7f8fa;
	border-color: #e4e7ec;
}

.dkeibi-aed-chart__stat-year {
	color: var(--dkeibi-muted);
	font-size: 0.78rem;
	font-weight: 700;
}

.dkeibi-aed-chart__stat strong {
	margin-top: 0.18rem;
	color: var(--dkeibi-blue-dark);
	font-size: clamp(1.55rem, 4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.dkeibi-aed-chart__stat--latest strong {
	color: var(--dkeibi-orange);
}

.dkeibi-aed-chart__stat--ratio strong {
	color: var(--dkeibi-ink);
}

.dkeibi-aed-chart__stat strong span {
	margin-left: 0.12em;
	font-size: 0.48em;
}

.dkeibi-aed-chart__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dkeibi-blue);
	font-size: 1.45rem;
	font-weight: 800;
}

.dkeibi-aed-chart__canvas-wrap {
	position: relative;
	width: 100%;
	height: clamp(340px, 52vw, 500px);
	margin: 0.6rem 0 1rem;
}

.dkeibi-aed-chart__canvas {
	width: 100% !important;
	height: 100% !important;
}

.dkeibi-aed-chart--sales {
	background:
		radial-gradient(circle at 100% 0, rgba(225, 91, 45, 0.10), transparent 34%),
		#ffffff;
}

.dkeibi-aed-chart--sales .dkeibi-aed-chart__eyebrow {
	color: var(--dkeibi-orange);
}

.dkeibi-aed-chart--sales .dkeibi-aed-chart__note {
	border-left-color: var(--dkeibi-orange);
}

.dkeibi-aed-chart--sales .dkeibi-aed-chart__stat strong {
	font-size: clamp(1.35rem, 3.4vw, 2.05rem);
}

.dkeibi-aed-chart__note {
	margin: 1rem 0 0;
	padding: 0.9rem 1rem;
	color: #445064;
	font-size: 0.83rem;
	line-height: 1.75;
	background: #f7f8fa;
	border-left: 4px solid var(--dkeibi-blue);
}

.dkeibi-aed-chart__note strong {
	color: var(--dkeibi-ink);
}

.dkeibi-aed-chart__details {
	margin-top: 1rem;
	border: 1px solid var(--dkeibi-border);
	border-radius: 10px;
}

.dkeibi-aed-chart__details summary {
	padding: 0.8rem 1rem;
	color: var(--dkeibi-blue-dark);
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

.dkeibi-aed-chart__details summary:focus-visible,
.dkeibi-aed-chart__source a:focus-visible {
	outline: 3px solid rgba(225, 91, 45, 0.42);
	outline-offset: 3px;
}

.dkeibi-aed-chart__table-wrap {
	max-height: 360px;
	overflow: auto;
	border-top: 1px solid var(--dkeibi-border);
}

.dkeibi-aed-chart table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.dkeibi-aed-chart caption {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.dkeibi-aed-chart th,
.dkeibi-aed-chart td {
	padding: 0.65rem 1rem;
	text-align: right;
	border-bottom: 1px solid #edf0f2;
}

.dkeibi-aed-chart th:first-child,
.dkeibi-aed-chart td:first-child {
	text-align: left;
}

.dkeibi-aed-chart thead th {
	position: sticky;
	top: 0;
	color: #ffffff;
	background: var(--dkeibi-blue-dark);
}

.dkeibi-aed-chart tbody tr:nth-child(even) {
	background: #f7fafb;
}

.dkeibi-aed-chart__source {
	margin-top: 0.9rem;
	color: #6a7485;
	font-size: 0.76rem;
	line-height: 1.7;
}

.dkeibi-aed-chart__source a {
	color: var(--dkeibi-blue-dark);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.dkeibi-aed-chart--unavailable .dkeibi-aed-chart__canvas-wrap {
	display: none;
}

@media (max-width: 680px) {
	.dkeibi-aed-chart {
		margin: 1.25rem auto;
		padding: 1.1rem;
		border-radius: 14px;
	}

	.dkeibi-aed-chart__stats {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 0.45rem;
	}

	.dkeibi-aed-chart__stat {
		padding: 0.7rem;
	}

	.dkeibi-aed-chart__stat--ratio {
		grid-column: 1 / -1;
		flex-direction: row;
		gap: 0.65rem;
		align-items: baseline;
		justify-content: center;
	}

	.dkeibi-aed-chart__stat--ratio strong {
		margin-top: 0;
	}

	.dkeibi-aed-chart--sales .dkeibi-aed-chart__stat strong {
		font-size: clamp(1.15rem, 5.4vw, 1.7rem);
	}

	.dkeibi-aed-chart__canvas-wrap {
		height: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dkeibi-aed-chart *,
	.dkeibi-aed-chart *::before,
	.dkeibi-aed-chart *::after {
		scroll-behavior: auto !important;
	}
}

@media print {
	.dkeibi-aed-chart {
		max-width: none;
		padding: 0;
		box-shadow: none;
		border: 0;
	}

	.dkeibi-aed-chart__canvas-wrap {
		height: 420px;
	}
}
