/* ──────────────────────────────────────
   名前ジェネレーター
   ────────────────────────────────────── */

.name-generator {
	max-width: 100%;
	font-family: var(--portal-body-font, system-ui, sans-serif);
	font-size: var(--portal-body-size, 16px);
	line-height: 1.7;
}

/* ── actions ── */

.ng-actions {
	border-top: 1px solid var(--portal-border, #e0e0e0);
	padding: 24px 0;
	text-align: center;
}

.ng-btn {
	height: 44px;
	padding: 0 32px;
	border: 1px solid var(--portal-accent, #1a1a1a);
	background: var(--portal-accent, #1a1a1a);
	color: var(--portal-accent-text, #fff);
	font-family: inherit;
	font-size: 0.875em;
	font-weight: 700;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: opacity 0.15s;
}

.ng-btn:hover {
	opacity: 0.8;
}

.ng-btn:focus-visible {
	outline: 2px solid var(--portal-accent, #1a1a1a);
	outline-offset: 2px;
}

/* ── result ── */

.ng-result {
	border-top: 1px solid var(--portal-border, #e0e0e0);
	padding-top: 24px;
}

.ng-empty {
	color: var(--portal-muted, rgba(26,26,26,0.6));
	opacity: 0.5;
}

/* ── name cards ── */

.ng-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ng-card {
	padding: 24px;
	border: 1px solid var(--portal-border, #e0e0e0);
	background: var(--portal-bg-alt, #f5f5f5);
	display: flex;
	flex-direction: column;
}

.ng-card-type {
	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: 8px;
}

.ng-card-name {
	font-size: 1.75em;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.ng-card-kana {
	margin-top: 4px;
	font-size: 0.875em;
	color: var(--portal-muted, rgba(26,26,26,0.6));
}

.ng-card-origin {
	margin-top: 12px;
	font-size: 0.8125em;
	color: var(--portal-muted, rgba(26,26,26,0.6));
	line-height: 1.8;
	flex: 1;
}

.ng-card-image {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--portal-border, rgba(26,26,26,0.15));
	font-size: 0.8125em;
	color: var(--portal-muted, rgba(26,26,26,0.6));
	line-height: 1.8;
}

.ng-card-image::before {
	content: 'イメージ';
	display: inline-block;
	margin-right: 6px;
	padding: 1px 6px;
	border-radius: 3px;
	background: var(--portal-primary, #C11920);
	color: #fff;
	font-size: 0.8125em;
	vertical-align: 1px;
}

.ng-card-actions {
	margin-top: 16px;
}

.ng-card-refresh {
	height: 34px;
	padding: 0 16px;
	border: 1px solid var(--portal-border, #e0e0e0);
	background: transparent;
	color: var(--portal-text, #1a1a1a);
	font-family: inherit;
	font-size: 0.8125em;
	font-weight: 600;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: border-color 0.15s;
}

.ng-card-refresh:hover {
	border-color: var(--portal-text, #1a1a1a);
}

.ng-card-refresh:focus-visible {
	outline: 2px solid var(--portal-accent, #1a1a1a);
	outline-offset: 2px;
}

/* ── full name ── */

.ng-full {
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ng-full-name {
	font-size: 1.125em;
	font-weight: 700;
}

.ng-full-kana {
	font-size: 0.875em;
	color: var(--portal-muted, rgba(26,26,26,0.6));
}

/* ── responsive ── */

@media (max-width: 600px) {
	.ng-pair {
		grid-template-columns: 1fr;
	}
}
