/* ===== Reset & Base ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
	background: #f5f5f5;
	color: #333;
	line-height: 1.6;
}

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

/* ===== CSS Variables ===== */
:root {
	/* 感情カテゴリ */
	--color-joy: #E91E63;
	--color-sadness: #2196F3;
	--color-anger: #F44336;
	--color-fear: #9C27B0;
	--color-surprise: #FF9800;
	--color-disgust: #607D8B;
	--color-love: #E91E63;
	--color-relief: #009688;

	/* 表現タイプ */
	--color-action: #4CAF50;
	--color-face: #FF9800;
	--color-internal: #9C27B0;
	--color-metaphor: #E91E63;
	--color-dialogue: #00BCD4;

	/* ブランドカラー */
	--color-primary: #6B5B95;
	--color-secondary: #F7CAC9;
	--color-accent: #92A8D1;
}

/* ===== Header ===== */
.header {
	background: var(--color-primary);
	color: white;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.logo {
	font-size: 1.4rem;
	font-weight: bold;
	color: white;
}

.header-search {
	flex: 1;
	max-width: 400px;
	min-width: 200px;
	display: flex;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 25px;
	overflow: hidden;
}

.header-search input {
	flex: 1;
	min-width: 0;
	padding: 0.5rem 1rem;
	border: none;
	background: transparent;
	color: white;
	font-size: 0.9rem;
	outline: none;
}

.header-search input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.header-search button {
	flex-shrink: 0;
	background: transparent;
	border: none;
	padding: 0.5rem 1rem;
	cursor: pointer;
	color: white;
	font-size: 0.9rem;
}

.header-nav {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.header-nav a {
	color: white;
	font-size: 0.9rem;
}

.header-nav a:hover {
	text-decoration: underline;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
	background: white;
	padding: 0.8rem 2rem;
	font-size: 0.85rem;
	border-bottom: 1px solid #eee;
}

.breadcrumb a {
	color: var(--color-primary);
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.breadcrumb span {
	color: #888;
	margin: 0 0.5rem;
}

/* ===== Hero Section ===== */
.hero {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
	color: white;
	text-align: center;
	padding: 3rem 2rem;
}

.hero h1 {
	font-size: 1.8rem;
	margin-bottom: 1.5rem;
}

.main-search {
	max-width: 600px;
	margin: 0 auto 1rem;
	display: flex;
	background: white;
	border-radius: 50px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-search input {
	flex: 1;
	min-width: 0;
	padding: 1rem 1.5rem;
	border: none;
	font-size: 1rem;
	outline: none;
}

.main-search button {
	flex-shrink: 0;
	background: var(--color-secondary);
	border: none;
	padding: 1rem 2rem;
	cursor: pointer;
	font-size: 1rem;
	color: var(--color-primary);
	font-weight: bold;
}

.main-search button:hover {
	background: #f5b8b7;
}

.search-examples {
	font-size: 0.9rem;
	opacity: 0.9;
}

/* ===== Main Content ===== */
.main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

.main-with-sidebar {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.content {
	flex: 1;
	min-width: 0;
}

.sidebar {
	flex-shrink: 0;
	width: 280px;
}

/* ===== Section ===== */
.section {
	margin-bottom: 2.5rem;
}

.section-title {
	font-size: 1.3rem;
	margin-bottom: 1rem;
	color: #333;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.section-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 1.3rem;
	background: var(--color-primary);
	border-radius: 2px;
}

/* ===== Page Header ===== */
.page-header {
	margin-bottom: 1.5rem;
	padding-left: 1rem;
	border-left: 5px solid var(--color-primary);
}

.page-title {
	font-size: 1.6rem;
	color: #333;
	margin-bottom: 0.3rem;
}

.page-count {
	font-size: 0.95rem;
	color: #666;
}

/* ===== Emotion Grid ===== */
.emotion-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.emotion-card {
	flex: 1 1 145px;
	max-width: 145px;
	background: white;
	border-radius: 12px;
	padding: 1.5rem 1rem;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	border-top: 4px solid;
}

.emotion-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.emotion-name {
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 0.3rem;
}

.emotion-count {
	font-size: 0.8rem;
	color: #888;
}

/* ===== Type Grid ===== */
.type-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.type-card {
	flex: 1 1 200px;
	max-width: 280px;
	background: white;
	border-radius: 12px;
	padding: 1.2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	transition: transform 0.2s;
	border-left: 4px solid;
}

.type-card:hover {
	transform: translateY(-2px);
}

.type-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.type-indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.type-name {
	font-weight: bold;
}

.type-example {
	font-size: 0.85rem;
	color: #666;
}

/* ===== Filters ===== */
.filters {
	background: white;
	border-radius: 12px;
	padding: 1.2rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-group {
	margin-bottom: 1rem;
}

.filter-group:last-child {
	margin-bottom: 0;
}

.filter-label {
	font-size: 0.85rem;
	font-weight: bold;
	color: #666;
	margin-bottom: 0.5rem;
}

.filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.filter-option {
	padding: 0.4rem 0.8rem;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 0.85rem;
	cursor: pointer;
	background: white;
	color: #666;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.filter-option:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.filter-option.active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: white;
}

.filter-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

/* ===== Sort Bar ===== */
.sort-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sort-bar select {
	padding: 0.5rem 1rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.9rem;
	background: white;
	cursor: pointer;
}

/* ===== Expression List ===== */
.expression-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.expression-card {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s;
	border-left: 4px solid transparent;
}

.expression-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.expression-header {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	margin-bottom: 0.8rem;
}

.expression-type-label {
	flex-shrink: 0;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: bold;
	color: white;
}

.expression-main {
	flex: 1;
	min-width: 0;
}

.expression-text {
	font-size: 1.15rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 0.3rem;
}

.expression-text a {
	color: inherit;
}

.expression-text a:hover {
	color: var(--color-primary);
}

.expression-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	font-size: 0.8rem;
	color: #888;
}

.intensity-dots {
	display: flex;
	gap: 2px;
}

.intensity-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ddd;
}

.intensity-dot.active {
	background: var(--color-primary);
}

.expression-bookmark {
	flex-shrink: 0;
	background: none;
	border: 1px solid #ddd;
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
	cursor: pointer;
	color: #888;
	font-size: 0.8rem;
	transition: all 0.2s;
}

.expression-bookmark:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.expression-bookmark.active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: white;
}

.expression-example {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 0.8rem 1rem;
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 0.8rem;
}

.expression-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.expression-tag {
	padding: 0.25rem 0.6rem;
	background: #f0f0f0;
	border-radius: 12px;
	font-size: 0.75rem;
	color: #666;
}

.expression-tag:hover {
	background: var(--color-primary);
	color: white;
}

/* ===== Pagination ===== */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.3rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	padding: 0.5rem 0.8rem;
	border-radius: 6px;
	font-size: 0.9rem;
}

.pagination a {
	color: var(--color-primary);
	background: white;
	border: 1px solid #ddd;
}

.pagination a:hover {
	background: var(--color-primary);
	color: white;
	border-color: var(--color-primary);
}

.pagination .active span {
	background: var(--color-primary);
	color: white;
	border: 1px solid var(--color-primary);
}

.pagination .disabled span {
	color: #ccc;
}

/* ===== Popular List ===== */
.popular-list {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.popular-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.8rem 0;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

.popular-item:last-child {
	border-bottom: none;
}

.popular-item:hover {
	background: #f9f9f9;
	margin: 0 -1rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.popular-rank {
	flex-shrink: 0;
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--color-primary);
	width: 2rem;
	text-align: center;
}

.popular-content {
	flex: 1;
	min-width: 0;
}

.popular-expression {
	font-weight: bold;
}

.popular-meta {
	font-size: 0.8rem;
	color: #888;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.popular-category-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.popular-views {
	flex-shrink: 0;
	font-size: 0.8rem;
	color: #888;
}

/* ===== Sidebar ===== */
.sidebar-section {
	background: white;
	border-radius: 12px;
	padding: 1.2rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
	font-size: 1rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--color-primary);
}

.sidebar-list {
	list-style: none;
}

.sidebar-list li {
	margin-bottom: 0.3rem;
}

.sidebar-list a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	color: #555;
	font-size: 0.9rem;
}

.sidebar-list a:hover {
	color: var(--color-primary);
}

.sidebar-list .category-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.sidebar-list .count {
	margin-left: auto;
	color: #999;
	font-size: 0.8rem;
}

/* ===== Detail Card ===== */
.detail-card {
	background: white;
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
}

.detail-header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.detail-badges {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.detail-badge {
	padding: 0.3rem 0.8rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: bold;
	color: white;
}

.detail-title-area {
	flex: 1;
	min-width: 200px;
}

.detail-title {
	font-size: 1.8rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 0.3rem;
}

.detail-reading {
	font-size: 0.9rem;
	color: #888;
}

.detail-bookmark {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.2rem;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 25px;
	cursor: pointer;
	font-size: 0.9rem;
	color: #666;
	transition: all 0.2s;
}

.detail-bookmark:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: white;
}

/* ===== Info Section ===== */
.info-section {
	margin-bottom: 2rem;
}

.info-section-title {
	font-size: 1.1rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--color-primary);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.info-section-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 1rem;
	background: var(--color-primary);
	border-radius: 2px;
}

.info-table {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.info-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.info-label {
	flex-shrink: 0;
	width: 100px;
	font-weight: bold;
	color: #666;
	font-size: 0.9rem;
}

.info-value {
	flex: 1;
	min-width: 200px;
	font-size: 0.95rem;
}

.intensity-display {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.intensity-bar {
	display: flex;
	gap: 3px;
}

.intensity-segment {
	width: 24px;
	height: 8px;
	background: #eee;
	border-radius: 2px;
}

.intensity-segment.active {
	background: var(--color-primary);
}

.intensity-label {
	font-size: 0.85rem;
	color: #888;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tag {
	padding: 0.3rem 0.8rem;
	background: #f0f0f0;
	border-radius: 15px;
	font-size: 0.85rem;
	color: #666;
}

.tag:hover {
	background: var(--color-primary);
	color: white;
}

/* ===== Examples ===== */
.examples-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.example-item {
	background: #f9f9f9;
	border-radius: 10px;
	padding: 1.2rem;
	border-left: 4px solid var(--color-primary);
}

.example-text {
	font-size: 1rem;
	color: #333;
	margin-bottom: 0.5rem;
}

.example-context {
	font-size: 0.85rem;
	color: #888;
}

/* ===== Related Expressions ===== */
.related-list {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.related-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.8rem 1rem;
	background: #f9f9f9;
	border-radius: 8px;
	transition: background 0.2s;
	border-left: 3px solid transparent;
}

.related-item:hover {
	background: #f0f0f0;
}

.related-text {
	flex: 1;
	font-weight: bold;
}

.related-note {
	flex-shrink: 0;
	font-size: 0.8rem;
	color: #888;
	background: #eee;
	padding: 0.2rem 0.6rem;
	border-radius: 10px;
}

/* ===== Premium Section ===== */
.premium-section {
	background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
	border-radius: 12px;
	padding: 1.5rem;
	border: 2px dashed #ddd;
	text-align: center;
}

.premium-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
	color: white;
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
	font-weight: bold;
	margin-bottom: 1rem;
}

.premium-title {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.premium-text {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 1rem;
}

.premium-preview {
	background: white;
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: #888;
	position: relative;
	overflow: hidden;
}

.premium-preview::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(transparent, white);
}

.premium-btn {
	display: inline-block;
	background: var(--color-primary);
	color: white;
	padding: 0.8rem 2rem;
	border-radius: 25px;
	font-weight: bold;
}

.premium-btn:hover {
	background: #5a4a84;
}

/* ===== Navigation ===== */
.nav-links {
	display: flex;
	justify-content: space-between;
	margin-top: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.2rem;
	background: white;
	border-radius: 8px;
	color: var(--color-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-link:hover {
	background: var(--color-primary);
	color: white;
}

/* ===== Footer ===== */
.footer {
	background: #333;
	color: #ccc;
	padding: 0;
	font-size: 0.85rem;
	margin-top: 2rem;
}

.footer a {
	color: #ccc;
}

.footer a:hover {
	color: white;
	text-decoration: underline;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 3rem;
	padding: 2.5rem 2rem;
	border-bottom: 1px solid #444;
	max-width: 1000px;
	margin: 0 auto;
}

.footer-nav-section h4 {
	color: white;
	font-size: 0.95rem;
	margin-bottom: 0.8rem;
}

.footer-nav-section ul {
	list-style: none;
}

.footer-nav-section li {
	margin-bottom: 0.4rem;
}

.footer-bottom {
	text-align: center;
	padding: 1.5rem 2rem;
}

.footer-links {
	margin-bottom: 0.8rem;
}

.footer-links a {
	margin: 0 0.5rem;
}

/* ===== Global Navigation ===== */
.global-nav {
	background: white;
	border-bottom: 1px solid #eee;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.global-nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	overflow-x: auto;
}

.global-nav-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	color: #555;
	white-space: nowrap;
	transition: all 0.2s;
}

.global-nav-item:hover {
	background: #f0f0f0;
	color: var(--color-primary);
}

.global-nav-item.active {
	background: var(--color-primary);
	color: white;
}

.global-nav-icon {
	font-size: 1rem;
}

/* ===== Quick Links ===== */
.quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.quick-link-card {
	flex: 1 1 200px;
	max-width: 300px;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.2rem 1.5rem;
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: all 0.2s;
	border-left: 4px solid;
}

.quick-link-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.quick-link-new {
	border-left-color: #FF9800;
}

.quick-link-index {
	border-left-color: #4CAF50;
}

.quick-link-search {
	border-left-color: var(--color-primary);
}

.quick-link-icon {
	font-size: 1.8rem;
	flex-shrink: 0;
}

.quick-link-content {
	min-width: 0;
}

.quick-link-title {
	font-weight: bold;
	color: #333;
	margin-bottom: 0.2rem;
}

.quick-link-desc {
	font-size: 0.85rem;
	color: #888;
}

/* ===== Tag Hero ===== */
.tag-hero {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
	color: white;
	text-align: center;
	padding: 3rem 2rem;
}

.tag-name {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.tag-description {
	font-size: 1rem;
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto 1rem;
}

.tag-count {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* ===== Type Navigation ===== */
.type-nav {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.type-nav-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.6rem 1.2rem;
	background: white;
	border-radius: 25px;
	color: #666;
	font-size: 0.9rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	transition: all 0.2s;
	border: 2px solid transparent;
}

.type-nav-item:hover {
	background: #f0f0f0;
}

.type-nav-item.active {
	border-color: var(--color-primary);
	color: var(--color-primary);
	font-weight: bold;
}

.type-nav-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

/* ===== Emotion Groups ===== */
.emotion-groups {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.emotion-group {
	background: white;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.emotion-group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.emotion-group-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.2rem;
	color: #333;
}

.emotion-group-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
}

.emotion-group-count {
	font-size: 0.85rem;
	color: #888;
	font-weight: normal;
}

.emotion-group-more {
	font-size: 0.9rem;
	color: var(--color-primary);
}

.emotion-group-more:hover {
	text-decoration: underline;
}

/* ===== Expression Grid ===== */
.expression-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.expression-chip {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	background: #f8f8f8;
	border-radius: 8px;
	color: #333;
	font-size: 0.95rem;
	transition: all 0.2s;
}

.expression-chip:hover {
	background: var(--color-primary);
	color: white;
}

.expression-chip-intensity {
	display: flex;
	gap: 2px;
}

.expression-chip-intensity span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ddd;
}

.expression-chip-intensity span.active {
	background: var(--color-accent);
}

.expression-chip:hover .expression-chip-intensity span.active {
	background: var(--color-secondary);
}

/* ===== Highlight ===== */
.highlight {
	background: #FFEAA7;
	padding: 0 2px;
	border-radius: 2px;
}

/* ===== Legal Pages ===== */
.legal-page {
	max-width: 800px;
	margin: 0 auto;
	background: white;
	border-radius: 12px;
	padding: 2.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.legal-title {
	font-size: 1.8rem;
	color: #333;
	margin-bottom: 0.5rem;
	padding-bottom: 1rem;
	border-bottom: 3px solid var(--color-primary);
}

.legal-updated {
	font-size: 0.9rem;
	color: #888;
	margin-bottom: 2rem;
}

.legal-content {
	line-height: 1.8;
	color: #444;
}

.legal-section {
	margin-bottom: 2.5rem;
}

.legal-section h2 {
	font-size: 1.2rem;
	color: #333;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #eee;
}

.legal-section h3 {
	font-size: 1rem;
	color: #555;
	margin: 1.5rem 0 0.8rem;
}

.legal-section p {
	margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.legal-section li {
	margin-bottom: 0.5rem;
}

.legal-section ul ul,
.legal-section ol ul {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.legal-section a {
	color: var(--color-primary);
	text-decoration: underline;
}

.legal-section a:hover {
	text-decoration: none;
}

.legal-footer {
	text-align: right;
	font-weight: bold;
	color: #666;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
}

.legal-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
	border: 1px solid #ddd;
	padding: 0.8rem;
	text-align: left;
}

.legal-table th {
	background: #f5f5f5;
	font-weight: bold;
	color: #333;
}

.legal-table tr:nth-child(even) {
	background: #fafafa;
}

/* Contact Page */
.contact-methods {
	margin: 1.5rem 0;
}

.contact-method {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.contact-method h3 {
	margin-top: 0;
	color: #333;
}

.contact-email {
	font-size: 1.2rem;
	color: var(--color-primary);
	background: white;
	padding: 1rem;
	border-radius: 6px;
	text-align: center;
	margin: 1rem 0;
}

.contact-note {
	font-size: 0.85rem;
	color: #999;
	font-style: italic;
}

.faq-list {
	margin-top: 1rem;
}

.faq-item {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 1.2rem 1.5rem;
	margin-bottom: 1rem;
}

.faq-item h4 {
	color: #333;
	margin: 0 0 0.8rem 0;
	font-size: 1rem;
}

.faq-item p {
	margin: 0;
	color: #666;
	font-size: 0.95rem;
}

/* ===== Category Filters ===== */
.category-filters {
	background: white;
	border-radius: 12px;
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-filters-title {
	font-size: 0.85rem;
	color: #888;
	margin-bottom: 0.8rem;
}

.category-filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.category-filter {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.8rem;
	background: #f5f5f5;
	border-radius: 20px;
	font-size: 0.85rem;
	color: #555;
	transition: all 0.2s;
}

.category-filter:hover {
	background: var(--color-primary);
	color: white;
}

.category-filter.active {
	background: var(--color-primary);
	color: white;
}

.category-filter-count {
	font-size: 0.75rem;
	opacity: 0.8;
}

/* ===== Related Searches ===== */
.related-searches {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	margin-top: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.related-searches-title {
	font-size: 1rem;
	font-weight: bold;
	margin-bottom: 1rem;
	color: #333;
}

.related-searches-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.related-search-tag {
	padding: 0.4rem 0.8rem;
	background: #f5f5f5;
	border-radius: 20px;
	font-size: 0.9rem;
	color: #555;
}

.related-search-tag:hover {
	background: var(--color-primary);
	color: white;
}

/* ===== Page Hero ===== */
.page-hero {
	background: white;
	border-bottom: 4px solid var(--color-primary);
	padding: 2rem;
}

.page-hero-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.page-hero-indicator {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	background: var(--color-primary);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-hero-indicator::after {
	content: '';
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%;
}

.page-hero-text h1 {
	font-size: 1.8rem;
	margin-bottom: 0.3rem;
	color: #333;
}

.page-hero-text p {
	color: #666;
	font-size: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.sidebar {
		width: 100%;
		order: 2;
	}

	.content {
		order: 1;
	}
}

@media (max-width: 768px) {
	.header {
		padding: 1rem;
	}

	.header-search {
		order: 3;
		flex: 1 1 100%;
		max-width: 100%;
	}

	.logo {
		font-size: 1.1rem;
	}

	.header-nav a {
		font-size: 0.8rem;
	}

	.global-nav-inner {
		justify-content: flex-start;
		padding: 0.5rem;
		gap: 0.3rem;
	}

	.global-nav-item {
		padding: 0.4rem 0.8rem;
		font-size: 0.8rem;
	}

	.global-nav-icon {
		font-size: 0.9rem;
	}

	.quick-links {
		flex-direction: column;
	}

	.quick-link-card {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.footer-nav {
		flex-direction: column;
		gap: 1.5rem;
		padding: 1.5rem;
		text-align: center;
	}

	.hero {
		padding: 2rem 1rem;
	}

	.hero h1 {
		font-size: 1.3rem;
	}

	.main-search {
		flex-direction: column;
		border-radius: 12px;
	}

	.main-search input {
		border-bottom: 1px solid #eee;
		border-radius: 12px 12px 0 0;
	}

	.main-search button {
		border-radius: 0 0 12px 12px;
	}

	.breadcrumb {
		padding: 0.8rem 1rem;
	}

	.main {
		padding: 1rem;
	}

	.emotion-card {
		flex: 1 1 calc(50% - 0.5rem);
		max-width: calc(50% - 0.5rem);
	}

	.type-card {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.page-title {
		font-size: 1.3rem;
	}

	.filters {
		padding: 1rem;
	}

	.expression-card {
		padding: 1rem;
	}

	.expression-header {
		flex-wrap: wrap;
	}

	.expression-bookmark {
		order: -1;
		margin-left: auto;
	}

	.detail-card {
		padding: 1.5rem;
	}

	.detail-title {
		font-size: 1.4rem;
	}

	.detail-header {
		flex-direction: column;
	}

	.detail-bookmark {
		width: 100%;
		justify-content: center;
	}

	.info-row {
		flex-direction: column;
	}

	.info-label {
		width: auto;
	}

	.nav-links {
		flex-direction: column;
	}

	.nav-link {
		justify-content: center;
	}

	.tag-hero {
		padding: 2rem 1rem;
	}

	.tag-name {
		font-size: 1.5rem;
	}

	.page-hero {
		padding: 1.5rem 1rem;
	}

	.page-hero-indicator {
		width: 50px;
		height: 50px;
	}

	.page-hero-text h1 {
		font-size: 1.4rem;
	}

	/* Legal pages responsive */
	.legal-page {
		padding: 1.5rem;
		border-radius: 0;
	}

	.legal-title {
		font-size: 1.4rem;
	}

	.legal-section h2 {
		font-size: 1.1rem;
	}

	.legal-table {
		font-size: 0.8rem;
	}

	.legal-table th,
	.legal-table td {
		padding: 0.5rem;
	}
}