/* =========================================================
 * AI用語辞典 — 詳細ページ（/glossary/{id}/）専用スタイル
 * ========================================================= */

/* ── カスタムヘッダー（辞典風）
 * --------------------------------------------------------- */
.aind-gl-head {
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e2e8f0;
}
.aind-gl-head__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	background: #f0f2f5;
	padding: 3px 10px;
	margin-bottom: 10px;
	letter-spacing: .03em;
}
.aind-gl-head__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	color: #0f172a;
	margin: 0;
}

/* post_contentのマージン詰め */
.single-glossary .post_content {
	margin-top: 0 !important;
}

/* SWELLデフォルトのpost_head非表示 */
.single-glossary .p-articleMetas,
.single-glossary .p-articleThumb {
	display: none !important;
}

/* ── サイドバーを表示し、プロフィールウィジェット以外は非表示
 * --------------------------------------------------------- */



/* ── 見出し・本文をコンパクトに（辞典風）
 * --------------------------------------------------------- */

/* h2 */
.single-glossary .post_content h2 {
	background: none !important;
	padding: 0 0 6px !important;
	margin: 28px 0 12px !important;
	border-left: none !important;
	border-bottom: 2px solid #d1d5db !important;
	border-radius: 0 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	color: #1a2744 !important;
}
.single-glossary .post_content h2:first-child {
	margin-top: 0 !important;
}

/* h3 */
.single-glossary .post_content h3 {
	background: none !important;
	padding: 0 !important;
	margin: 20px 0 8px !important;
	border: none !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	color: #1e293b !important;
}

/* 本文 */
.single-glossary .post_content p {
	font-size: 15px !important;
	line-height: 1.8 !important;
	margin-bottom: 12px !important;
	color: #334155;
}

/* リスト */
.single-glossary .post_content ul,
.single-glossary .post_content ol {
	margin: 8px 0 12px !important;
}
.single-glossary .post_content li {
	font-size: 13.5px !important;
	line-height: 1.7 !important;
	color: #334155;
}

/* 目次を非表示 */
.swell-block-toc,
#toc,
.p-toc {
	display: none !important;
}

/* ── 一覧に戻るボタン
 * --------------------------------------------------------- */
.p-articleFoot {
	margin: 0 !important;
}

.glossary-back-link {
	margin-top: 0;
}

.glossary-back-link a {
	font-size: 0.85rem;
	color: #6b7a8d;
	text-decoration: none;
}

.glossary-back-link a:hover {
	color: #2d5fa0;
	text-decoration: none;
}

/* ── 関連用語（タグチップ）
 * --------------------------------------------------------- */
/* SWELLデフォルトの関連記事を非表示 */
.single-glossary .l-articleBottom__section.-related {
	display: none !important;
}

.aind-gl-related {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}
.aind-gl-related__heading {
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 14px;
	padding: 0;
	background: none !important;
	border: none !important;
}
.aind-gl-related__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.aind-gl-related__tags .aind-ga__tag {
	display: inline-flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 2px;
	padding: 7px 16px;
	font-size: 0.9rem;
	color: #334155;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.aind-gl-related__tags .aind-ga__tag:hover {
	background: #2d5fa0;
	border-color: #2d5fa0;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}
