/* 不動産用語集 [yhtk_glossary] */
.yhgl {
	--yhgl-brand: #503aa8;
	--yhgl-soft: #f1eefb;
	--yhgl-line: #e3e3e3;
	--yhgl-muted: #666;
	max-width: 960px;
	margin: 0 auto;
	padding: 8px 20px 48px;
	color: #1f1f1f;
	font-size: 16px;
	line-height: 1.8;
	box-sizing: border-box;
}
.yhgl *, .yhgl *::before, .yhgl *::after { box-sizing: border-box; }

.yhgl-tools { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.yhgl-search {
	flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
	border: 1px solid #cfcfcf; border-radius: 6px; background: #fff;
}
.yhgl-search:focus-within { outline: 2px solid var(--yhgl-brand); outline-offset: 1px; }
.yhgl-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--yhgl-muted); stroke-width: 2; stroke-linecap: round; }
.yhgl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; }
.yhgl-count { flex: none; font-weight: 700; color: var(--yhgl-muted); }
.yhgl-count span { font-size: 22px; color: var(--yhgl-brand); margin-right: 2px; }

.yhgl-kana {
	position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px;
	padding: 10px 0; margin-bottom: 8px; background: #fff;
}
body.admin-bar .yhgl-kana { top: 32px; }
.yhgl-kana a, .yhgl-kana span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 10px;
	border: 1px solid var(--yhgl-line); border-radius: 6px; font-weight: 700; text-decoration: none;
}
.yhgl-kana a { color: var(--yhgl-brand); background: #fff; }
.yhgl-kana a:hover { color: #fff; background: var(--yhgl-brand); border-color: var(--yhgl-brand); }
.yhgl-kana span, .yhgl-kana a.is-off { color: #c4c4c4; background: #fafafa; pointer-events: none; }

.yhgl-group { margin-top: 28px; scroll-margin-top: 80px; }
.yhgl-group h2 {
	margin: 0 0 4px; padding: 0 0 6px 14px; font-size: 22px; font-weight: 700; line-height: 1.4;
	border-left: 5px solid var(--yhgl-brand); border-bottom: 1px solid var(--yhgl-line);
}
.yhgl-group ul { list-style: none; margin: 0; padding: 0; }
.yhgl-group li { margin: 0; border-bottom: 1px solid var(--yhgl-line); }
.yhgl-group li a { display: grid; gap: 4px; padding: 18px 8px; color: inherit; text-decoration: none; transition: background .2s; }
.yhgl-group li a:hover { background: var(--yhgl-soft); }
.yhgl-term strong { font-size: 18px; }
.yhgl-term small { margin-left: 12px; font-size: 13px; color: var(--yhgl-muted); }
.yhgl-desc { font-size: 15px; color: #444; }
.yhgl-more { justify-self: end; font-size: 14px; font-weight: 700; color: var(--yhgl-brand); }
.yhgl-group li a:hover .yhgl-more { text-decoration: underline; }

.yhgl-empty { margin: 32px 0; text-align: center; color: var(--yhgl-muted); }
.yhgl-source { margin-top: 40px; padding: 16px 20px; font-size: 14px; background: var(--yhgl-soft); border-radius: 6px; }
.yhgl-source a { color: var(--yhgl-brand); font-weight: 700; }
.yhgl [hidden] { display: none !important; }

@media (max-width: 782px) {
	body.admin-bar .yhgl-kana { top: 46px; }
}
@media (max-width: 640px) {
	.yhgl { padding: 8px 16px 40px; font-size: 15px; }
	.yhgl-kana a, .yhgl-kana span { min-width: 38px; height: 36px; padding: 0 6px; }
	.yhgl-term small { display: block; margin: 0; }
	.yhgl-desc { font-size: 14px; }
}
