/* ──────────────────────────────────────
   文字数カウンター
   ────────────────────────────────────── */

.char-counter {
	max-width: 100%;
	font-family: var(--portal-body-font, system-ui, sans-serif);
	font-size: var(--portal-body-size, 16px);
	line-height: 1.7;
}

/* ── textarea ── */

#cc-raw {
	width: 100%;
	min-height: 200px;
	padding: 16px;
	border: 1px solid var(--portal-border, #e0e0e0);
	background: transparent;
	font-family: var(--portal-body-font, system-ui, sans-serif);
	font-size: var(--portal-body-size, 16px);
	line-height: 2;
	color: var(--portal-text, #1a1a1a);
	resize: vertical;
}

#cc-raw:focus {
	outline: none;
	border-color: var(--portal-accent, #1a1a1a);
}

#cc-raw::placeholder {
	color: var(--portal-muted, rgba(26,26,26,0.6));
	opacity: 0.5;
}

/* ── stats grid ── */

.cc-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border: 1px solid var(--portal-border, #e0e0e0);
	border-top: none;
}

.cc-group {
	padding: 20px;
	border-top: 1px solid var(--portal-border, #e0e0e0);
}

.cc-group:nth-child(even) {
	border-left: 1px solid var(--portal-border, #e0e0e0);
}

.cc-group-label {
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--portal-muted, rgba(26,26,26,0.6));
	margin-bottom: 12px;
}

.cc-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 4px 0;
}

.cc-label {
	font-size: 0.875em;
	color: var(--portal-muted, rgba(26,26,26,0.6));
	letter-spacing: 0.04em;
}

.cc-val {
	font-size: 1.25em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--portal-text, #1a1a1a);
}

/* ── responsive ── */

@media (max-width: 600px) {
	.cc-stats {
		grid-template-columns: 1fr;
	}

	.cc-group:nth-child(even) {
		border-left: none;
	}
}
