@charset "UTF-8";

/* =================================================================
 * Taxonomy Hierarchy UI - Base Styles
 * ================================================================= */
.tax-hierarchy-ui-container {
	width: 100%;
	font-family: inherit;
}
.tax-hierarchy-ui-container * {
	box-sizing: border-box;
}
.tax-tree {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.tax-node {
	margin: 8px 0 !important;
	list-style: none !important;
	position: relative;
}
.term-count {
	font-size: 0.8rem;
	color: #868e96;
	margin-left: 6px;
	font-weight: 400;
}

/* =================================================================
 * type-accordion (アコーディオン形式)
 * ================================================================= */
.type-accordion .tax-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	padding: 10px 14px;
	border-radius: 8px;
	background-color: #f8f9fa;
	transition: background-color 0.2s ease;
	list-style: none;
}
.type-accordion .tax-summary::-webkit-details-marker {
	display: none;
}
.type-accordion .tax-summary:hover {
	background-color: #f1f3f5;
}
.type-accordion .tax-summary-inner {
	display: flex;
	align-items: center;
	width: 100%;
}
.type-accordion .term-parent-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #334155;
}
.type-accordion .tax-summary::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-right: 2px solid #868e96;
	border-bottom: 2px solid #868e96;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
	margin-left: 10px;
	flex-shrink: 0;
}
.type-accordion .tax-details[open] > .tax-summary::after {
	transform: rotate(45deg);
}

.type-accordion .term-link {
	color: #495057;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: color 0.2s ease;
}
.type-accordion .term-link:hover {
	color: var(--color_main, #2563eb);
	text-decoration: none;
}

.type-accordion .term-child-link {
	display: block;
	padding: 8px 14px 8px 24px;
	border-radius: 8px;
	background-color: #ffffff;
	border: 1px solid #e9ecef;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}
.type-accordion .term-child-link:hover {
	background-color: #f8f9fa;
	border-color: #dee2e6;
	color: var(--color_main, #2563eb);
	transform: translateX(3px);
}
.type-accordion .tax-details > .tax-tree {
	padding-left: 18px !important;
	border-left: 1px dashed #dee2e6;
	margin-left: 18px !important;
	margin-top: 4px !important;
	margin-bottom: 4px !important;
}

/* =================================================================
 * type-list (シンプルリスト形式)
 * ================================================================= */
.type-list .term-link {
	color: #333333;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	display: inline-block;
	transition: color 0.2s ease;
	padding: 4px 0;
}
.type-list .term-link:hover {
	color: var(--color_main, #2563eb);
	text-decoration: underline;
}
.type-list .tax-node .tax-tree {
	padding-left: 20px !important;
	border-left: 1px dashed #dee2e6;
	margin-left: 8px !important;
	margin-top: 4px !important;
	margin-bottom: 4px !important;
}
.type-list .tax-node .tax-tree .term-link {
	font-size: 0.9rem;
	font-weight: 500;
	color: #495057;
}

/* =================================================================
 * type-cloud (タグクラウド形式 / チップス)
 * ================================================================= */
.c-taxonomy-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
.c-taxonomy-chips__item {
	margin: 0 !important;
}
.c-taxonomy-chips__link {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background-color: #f1f3f5;
	border-radius: 20px;
	color: #495057;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.2s ease;
}
.c-taxonomy-chips__link:hover {
	background-color: var(--color_main, #2563eb);
	color: #ffffff;
	text-decoration: none;
}
.c-taxonomy-chips__count {
	font-size: 0.75rem;
	margin-left: 4px;
	opacity: 0.75;
}
