@charset "UTF-8";
/*
 * style-glossary.css : 日本橋用語集（tn_glossary）専用スタイル
 *
 *   用語集の single / archive でのみ読み込まれる（inc/tn-glossary-functions.php）。
 *   配色はサイトのメインカラー（茜 #ca3a1c）基調。見出しはサイト共通の Shippori Mincho。
 *   縦棒装飾・疑似要素の文字content・派手アニメは使わない。
 */

:root {
	--tngl-primary:   #ca3a1c;                /* 茜（サイト --color_main と同値） */
	--tngl-deep:      #9e1a20;                /* 濃茜（バッジ・強アクセント） */
	--tngl-ink:       #1e1e1e;                /* 見出し・本文の墨色（サイト text と同値） */
	--tngl-accent-bg: #faf3ee;                /* 薄茜の地（Topic枠） */
	--tngl-border:    rgba(30, 30, 30, 0.12);
	--tngl-muted:     rgba(30, 30, 30, 0.6);
	--tngl-bg:        #fff;

	--tngl-font-serif: 'Shippori Mincho', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
	--tngl-font-sans:  'BIZ UDPGothic', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
	--tngl-font-mono:  'SF Mono', Menlo, Consolas, monospace;
}

/* ============================================================
 *  用語個別ページ（single-tn_glossary.php）
 * ============================================================ */
.tn-gl-single__article {
	max-width: 1120px;
	margin: 0 auto;
	/* 余白はサイト共通の .l-container/.l-mainContent（--swl-pad_container 等）が上下左右とも供給する＝ここで足すと二重に広がる。横0は従来どおり、上下も0にして二重余白を解消。 */
	padding: 0;
}
.tn-gl-single__header {
	max-width: 760px;
	margin: 0 auto 24px;
}
.tn-gl-single__cat-meta {
	display: flex;
	align-items: center;
	/* バッジ＋カテゴリタグを1行に並べ、収まらなければカテゴリ側を次行へ折り返す（H1を大きく押し下げないよう row-gap は最小）。 */
	flex-wrap: wrap;
	column-gap: 12px;
	row-gap: 6px;
	min-width: 0;
	margin-bottom: 14px;
}
.tn-gl-badge {
	display: inline-block;
	font-family: var(--tngl-font-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: #fff;
	background: var(--tngl-deep);
	padding: 7px 16px 6px;
	text-decoration: none;
	line-height: 1.4;
}
.tn-gl-single__cat-meta .tn-gl-badge { flex: 0 0 auto; }

/* 所属カテゴリ（tn_glossary_cat）：バッジ右に併置する控えめなテキストリンク（#カテゴリ名）。
   丸角バッジ・装飾下線・border-left は使わない。# だけ茜、語はホバーで下線。PC1行・SPはバッジ下へ折り返す。
   SWELL のグローバル a 規則に負けないよう親クラス前置で詳細度を確保する。 */
.tn-gl-single__cat-meta .tn-gcat-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	min-width: 0;
}
.tn-gl-single__cat-meta .tn-gcat-tag {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	font-family: var(--tngl-font-sans);
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--tngl-muted);
	text-decoration: none;
	transition: color .12s ease;
}
.tn-gl-single__cat-meta .tn-gcat-tag__hash {
	color: var(--tngl-primary);
	font-weight: 600;
}
.tn-gl-single__cat-meta .tn-gcat-tag:hover,
.tn-gl-single__cat-meta .tn-gcat-tag:focus-visible {
	color: var(--tngl-primary);
}
.tn-gl-single__cat-meta .tn-gcat-tag:hover .tn-gcat-tag__term,
.tn-gl-single__cat-meta .tn-gcat-tag:focus-visible .tn-gcat-tag__term {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.tn-gl-single__title {
	font-family: var(--tngl-font-serif);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0;
	color: var(--tngl-ink);
	margin: 0 0 18px;
	overflow-wrap: anywhere;
	min-width: 0;
}

/* ---------- 本文タイポ ---------- */
.tn-gl-single__body {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 0 24px;
	font-family: var(--tngl-font-sans);
	font-size: 16px;
	line-height: 2.0;
	color: var(--tngl-ink);
}
.tn-gl-single__body > * + * {
	margin-top: 1.6em;
}
.tn-gl-single__body h2 {
	font-family: var(--tngl-font-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--tngl-ink);
	/* 用語ページは短文の回遊ハブ＝章節余白は記事より圧縮。境界は上側の細罫線で表す */
	margin-top: 1.2em;
	margin-bottom: 0.3em;
	padding-top: 0.8em;
	border-top: 1px solid var(--tngl-border);
	background: none;
	overflow-wrap: anywhere;
}
.tn-gl-single__body h3 {
	font-family: var(--tngl-font-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--tngl-ink);
	margin-top: 2.0em;
	margin-bottom: 0.6em;
	background: none;
	overflow-wrap: anywhere;
}
.tn-gl-single__body p {
	margin: 0;
	overflow-wrap: anywhere;
}
.tn-gl-single__body > p + p,
.tn-gl-single__body > p + ul,
.tn-gl-single__body > p + ol,
.tn-gl-single__body > ul + p,
.tn-gl-single__body > ol + p {
	margin-top: 1.6em;
}
.tn-gl-single__body ul,
.tn-gl-single__body ol,
.tn-gl-single__body .wp-block-list {
	list-style-position: outside;
	padding-left: 1.4em;
	margin: 0;
	background: transparent;
	border: none;
}
.tn-gl-single__body ul,
.tn-gl-single__body ul.wp-block-list { list-style-type: disc; }
.tn-gl-single__body ol,
.tn-gl-single__body ol.wp-block-list { list-style-type: decimal; }
.tn-gl-single__body li {
	margin: 0;
	padding: 0;
	background: none;
	font-size: inherit;
	line-height: inherit;
}
.tn-gl-single__body li::marker {
	color: var(--tngl-primary);
	font-size: 0.9em;
}
.tn-gl-single__body li + li { margin-top: 0.5em; }
.tn-gl-single__body a {
	color: var(--tngl-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}
.tn-gl-single__body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.6em auto;
}
.tn-gl-single__body figure.wp-block-image {
	margin: 1.6em auto;
	text-align: center;
}
.tn-gl-single__body figure.wp-block-image img { margin: 0 auto; }
.tn-gl-single__body figure.wp-block-image figcaption,
.tn-gl-single__body figure.wp-block-image .wp-element-caption {
	margin-top: 6px;
	margin-bottom: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--tngl-muted);
	text-align: center;
}

/* ---------- 正式名称ブロック（.tn-termnames・通称と正式名称が異なる固有名のみ） ---------- */
.tn-gl-single__body .tn-termnames {
	margin: 1.4em 0;
	padding: 0.75em 1.1em;
	background: transparent;
	border: 1px solid var(--tngl-border);
	border-radius: 7px;
	font-size: 0.92em;
	line-height: 1.85;
	color: var(--tngl-muted);
}
.tn-gl-single__body .tn-termnames > .wp-block-group__inner-container { padding: 0; margin: 0; }
.tn-gl-single__body .tn-termnames p { margin: 0; }

/* ---------- 【Topic】ミニコラム（.tn-topic・各用語ページ必須の小ネタ枠） ---------- */
.tn-gl-single__body .tn-topic {
	margin: 2.4em 0;
	padding: 1.3em 1.4em;
	border-radius: 12px;
	background: var(--tngl-accent-bg);
	border: 1px solid var(--tngl-border);
}
.tn-gl-single__body .tn-topic > .wp-block-group__inner-container { padding: 0; margin: 0; }
.tn-gl-single__body .tn-topic__heading {
	display: flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 0.55em;
	margin: 0 0 0.6em;
	padding: 0;
	border-top: none;
	font-size: 19px;
	line-height: 1.55;
	color: var(--tngl-ink);
}
.tn-gl-single__body .tn-topic__label {
	flex: 0 0 auto;
	padding: 0.2em 0.85em;
	font-family: var(--tngl-font-sans);
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #fff;
	background: var(--tngl-primary);
	border-radius: 999px;
}
.tn-gl-single__body .tn-topic__body { font-size: 0.98em; line-height: 1.85; }
.tn-gl-single__body .tn-topic__body > * + * { margin-top: 1em; }
.tn-gl-single__body .tn-topic__body > :last-child { margin-bottom: 0; }

/* ---------- 出典ブロック（.tn-sources・控えめ/小さめ） ---------- */
.tn-gl-single__body .tn-sources { margin-top: 2.6em; }
.tn-gl-single__body .tn-sources > .wp-block-group__inner-container { padding: 0; margin: 0; }
.tn-gl-single__body .tn-sources h3 {
	font-size: 0.86em;
	color: #8a8a8a;
	font-weight: 600;
	margin-top: 0;
	margin-bottom: 0.5em;
	letter-spacing: 0.02em;
}
.tn-gl-single__body .tn-sources ul { margin: 0; padding-left: 1.1em; }
.tn-gl-single__body .tn-sources li {
	font-size: 0.8em;
	color: #8a8a8a;
	line-height: 1.7;
}
.tn-gl-single__body .tn-sources li::marker { color: #8a8a8a; }
.tn-gl-single__body .tn-sources a { color: #8a8a8a; text-decoration: underline; }
.tn-gl-single__body .tn-sources a:hover { color: #555; }

/* ---------- 関連用語＋出典 タブ箱（.tn-relbox・タブ切替はJS・JS無効時は両パネル表示） ---------- */
.tn-gl-single__body .tn-relbox { margin-top: 2.8em; }
.tn-gl-single__body .tn-relbox__tabs,
.tn-gl-single__body .tn-relbox__label {
	display: flex;
	align-items: flex-end;
	gap: 1.5em;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--tngl-border);
}
.tn-gl-single__body .tn-relbox__tab {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding: 0 0 0.55em;
	font-family: var(--tngl-font-serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tngl-muted);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.tn-gl-single__body .tn-relbox__tab:hover { color: var(--tngl-ink); }
.tn-gl-single__body .tn-relbox__tab.is-active {
	color: var(--tngl-ink);
	border-bottom-color: var(--tngl-primary);
}
.tn-gl-single__body .tn-relbox__tab:focus-visible {
	outline: 2px solid var(--tngl-primary);
	outline-offset: 3px;
	border-radius: 3px;
}
.tn-gl-single__body .tn-relbox__label {
	font-family: var(--tngl-font-serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tngl-ink);
	padding: 0 0 0.55em;
}
.tn-gl-single__body .tn-relbox__panel { margin-top: 1.15em; }
.tn-gl-single__body .tn-relbox.is-js .tn-relbox__panel:not(.is-active) { display: none; }
.tn-gl-single__body .tn-relbox__panel[data-panel="related"] {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55em 1.2em;
}
.tn-gl-single__body .tn-relbox__term {
	font-size: 0.95em;
	color: var(--tngl-ink);
	text-decoration: underline;
	text-decoration-color: var(--tngl-border);
	text-underline-offset: 3px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.tn-gl-single__body .tn-relbox__term:hover {
	color: var(--tngl-primary);
	text-decoration-color: var(--tngl-primary);
}
.tn-gl-single__body .tn-relbox__panel[data-panel="sources"] {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}
.tn-gl-single__body .tn-relbox__source {
	font-size: 0.8em;
	color: #8a8a8a;
	text-decoration: underline;
	line-height: 1.7;
}
.tn-gl-single__body .tn-relbox__source:hover { color: #555; }

/* ---------- FAQ（よくある質問・メタ tn_term_faq 駆動・既定で畳む details/summary） ---------- */
.tn-gl-single__body .tn-gl-faq { margin-top: 1.6em; }
.tn-gl-single__body .tn-gl-faq__summary {
	margin: 0;
	padding: 0 0 0.55em;
	border-bottom: 1px solid var(--tngl-border);
	list-style: none;
	cursor: pointer;
}
.tn-gl-single__body .tn-gl-faq__summary::-webkit-details-marker { display: none; }
.tn-gl-single__body .tn-gl-faq__summary:focus-visible {
	outline: 2px solid var(--tngl-primary);
	outline-offset: 3px;
	border-radius: 3px;
}
.tn-gl-single__body .tn-gl-faq__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	font-family: var(--tngl-font-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--tngl-ink);
	margin: 0;
	padding: 0;
	border: none;
	background: none;
}
.tn-gl-single__body .tn-gl-faq__title-text { min-width: 0; }
.tn-gl-single__body .tn-gl-faq__chevron {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--tngl-muted);
	border-bottom: 2px solid var(--tngl-muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.tn-gl-single__body .tn-gl-faq[open] .tn-gl-faq__chevron { transform: rotate(-135deg); }
.tn-gl-single__body .tn-gl-faq__summary:hover .tn-gl-faq__title { color: var(--tngl-primary); }
.tn-gl-single__body .tn-gl-faq__summary:hover .tn-gl-faq__chevron { border-color: var(--tngl-primary); }
.tn-gl-single__body .tn-gl-faq__body { margin: 0; }
.tn-gl-single__body .tn-gl-faq__list { margin: 0; padding: 0; }
.tn-gl-single__body .tn-gl-faq__item {
	margin: 0;
	padding: 1.15em 0;
	border-bottom: 1px solid var(--tngl-border);
}
.tn-gl-single__body .tn-gl-faq__q {
	font-family: var(--tngl-font-serif);
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.7;
	color: var(--tngl-ink);
	margin: 0 0 0.5em;
}
.tn-gl-single__body .tn-gl-faq__a {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.95;
	color: var(--tngl-ink);
}
.tn-gl-single__body .tn-gl-faq__exit {
	margin-top: 1.3em;
	font-size: 0.92em;
	line-height: 1.9;
}
.tn-gl-single__body .tn-gl-faq__exit:empty { display: none; }
.tn-gl-single__body .tn-gl-faq__exit-label {
	font-family: var(--tngl-font-serif);
	font-weight: 600;
	color: var(--tngl-ink);
	margin-right: 0.7em;
}
.tn-gl-single__body .tn-gl-faq__exit-sep {
	color: var(--tngl-border);
	margin: 0 0.45em;
}
.tn-gl-single__body .tn-gl-faq__exit-term {
	color: var(--tngl-ink);
	text-decoration: underline;
	text-decoration-color: var(--tngl-border);
	text-underline-offset: 3px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.tn-gl-single__body .tn-gl-faq__exit-term:hover {
	color: var(--tngl-primary);
	text-decoration-color: var(--tngl-primary);
}

@media (max-width: 600px) {
	.tn-gl-single__body .tn-topic { padding: 1.1em 1.1em; }
	.tn-gl-single__body .tn-topic__heading { font-size: 17px; }
	.tn-gl-single__body .tn-relbox__tabs,
	.tn-gl-single__body .tn-relbox__label { gap: 1.2em; }
	.tn-gl-single__body .tn-relbox__tab,
	.tn-gl-single__body .tn-relbox__label { font-size: 16px; }
	.tn-gl-single__body .tn-relbox__panel[data-panel="related"] { gap: 0.5em 1em; }
	.tn-gl-single__body .tn-relbox__panel { margin-top: 0.5em; margin-bottom: 1.1em; }
	.tn-gl-single__body .tn-gl-faq { margin-top: 1.2em; }
	.tn-gl-single__body .tn-gl-faq__title { font-size: 19px; }
	.tn-gl-single__body .tn-gl-faq__q { font-size: 16px; }
	.tn-gl-single__body .tn-gl-faq__exit { font-size: 0.9em; }
}

/* ============================================================
 *  関連記事（.tn-gl-reads・用語→記事の自動回遊・FAQ直後）
 *    本文と同じ760px幅。上罫のみで区切る（border-left は使わない）。
 * ============================================================ */
.tn-gl-reads {
	max-width: 760px;
	margin: 32px auto 0;
	padding: 28px 18px 8px;
	border-top: 1px solid var(--tngl-border);
}
.tn-gl-reads__head { margin: 0 0 6px; }
.tn-gl-reads__title {
	font-family: var(--tngl-font-serif);
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--tngl-ink);
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	overflow-wrap: anywhere;
}
.tn-gl-reads__list { display: flex; flex-direction: column; }

/* 横長コンパクトカード（サムネ＋本文の2カラム） */
.tn-gl-card { background: transparent; }
.tn-gl-card__link {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--tngl-border);
	text-decoration: none;
	color: var(--tngl-ink);
}
.tn-gl-reads__list .tn-gl-card:last-child .tn-gl-card__link { border-bottom: 0; }
.tn-gl-card__media {
	width: 112px;
	aspect-ratio: 4 / 3;
	margin: 0;
	border-radius: 6px;
	overflow: hidden;
	background: var(--tngl-accent-bg);
}
.tn-gl-card__img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	transition: transform 0.6s ease;
}
.tn-gl-card__link:hover .tn-gl-card__img { transform: scale(1.03); }
.tn-gl-card__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	padding: 4px;
	text-align: center;
	background: linear-gradient(135deg, var(--tngl-primary) 0%, var(--tngl-deep) 100%);
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--tngl-font-serif);
	font-size: 11px;
	letter-spacing: 0.12em;
	line-height: 1.4;
}
.tn-gl-card__body { min-width: 0; }
.tn-gl-card__cat {
	display: inline-block;
	font-family: var(--tngl-font-sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--tngl-primary);
	margin: 0 0 6px;
}
.tn-gl-card__title {
	font-family: var(--tngl-font-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.02em;
	color: var(--tngl-ink);
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.tn-gl-card__link:hover .tn-gl-card__title { color: var(--tngl-primary); }
.tn-gl-card__link:focus-visible {
	outline: 2px solid var(--tngl-primary);
	outline-offset: 3px;
	border-radius: 3px;
}
.tn-gl-card__date {
	font-family: var(--tngl-font-mono);
	font-size: 12px;
	font-feature-settings: "tnum" 1;
	letter-spacing: 0.06em;
	color: var(--tngl-muted);
}

@media (max-width: 600px) {
	.tn-gl-reads { padding: 24px 18px 4px; margin-top: 24px; }
	.tn-gl-card__link { grid-template-columns: 92px 1fr; gap: 13px; padding: 12px 0; }
	.tn-gl-card__media { width: 92px; }
	.tn-gl-card__title { font-size: 15px; -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
	.tn-gl-card__img { transition: none; }
}

/* ============================================================
 *  用語集アーカイブ（archive-tn_glossary.php・50音索引）
 * ============================================================ */
/* 用語テキストの左インセット（見出し行と用語リンクの左端を揃える基準値） */
.tn-gl-archive { --gloss-inset: 4px; }
.tn-gl-archive__inner { padding-bottom: 0; }

/* SWELL本体の .l-content（margin:0 auto 6em／padding-top:2em・PCは4em）を用語集ページだけ詰める。
   この style-glossary.css は用語集ページ（single/archive/cat）でのみ読み込むため、body 前置の
   詳細度(0,1,1)で本体(0,1,0)に勝てば足りる＝他ページの .l-content には一切影響しない。 */
body .l-content {
	margin-bottom: 0;
	padding-top: 1em;
}

.tn-gl-archive__header {
	max-width: 1120px;
	margin: 0 auto;
	/* 上下paddingは持たない。上方の余白はサイト共通の .l-mainContent/.l-container が供給する（二重余白を避ける）。 */
	padding: 0;
}
.tn-gl-archive__header-inner {
	max-width: 720px;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.tn-gl-archive__eyebrow {
	font-family: var(--tngl-font-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.32em;
	color: var(--tngl-primary);
	text-transform: uppercase;
}
.tn-gl-archive__titlerow {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
}
.tn-gl-archive__title {
	font-family: var(--tngl-font-serif);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--tngl-ink);
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	overflow-wrap: anywhere;
	min-width: 0;
}
.tn-gl-archive__count {
	display: inline-block;
	margin: 0;
	font-family: var(--tngl-font-mono);
	font-size: 12.5px;
	letter-spacing: 0.02em;
	color: var(--tngl-muted);
	font-feature-settings: "tnum" 1;
	white-space: nowrap;
}
.tn-gl-archive__desc {
	font-family: var(--tngl-font-sans);
	font-size: 15px;
	line-height: 1.95;
	color: rgba(30, 30, 30, 0.78);
	margin: 4px 0 0;
	padding: 0;
	border: none;
	align-self: stretch;
	max-width: 62ch;
	overflow-wrap: anywhere;
}

/* PC(601px以上)のみ：導入ヘッダーとツールバーを中央寄せ。用語グリッドは左寄せのまま */
@media (min-width: 601px) {
	.tn-gl-archive__header-inner { margin: 0 auto; align-items: center; text-align: center; }
	.tn-gl-archive__titlerow { justify-content: center; }
	.tn-gl-archive__desc { align-self: center; margin: 4px auto 0; }
	.tn-gl-search__field { margin-left: auto; margin-right: auto; }
	.tn-gl-search__status { text-align: center; }
	.tn-gl-index__nav { justify-content: center; }
}

.tn-gl-archive__index-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 0 48px;
}

/* PC:検索＋50音ナビを1つの追従ツールバーにまとめて sticky */
.tn-gl-toolbar {
	position: sticky;
	top: 90px;
	z-index: 30;
	background: var(--tngl-bg);
	margin-top: 20px;
	padding: 12px 0;
	border-bottom: 1px solid var(--tngl-border);
}
.tn-gl-search { margin: 0 0 12px; }

.tn-gl-search__field {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 580px;
	padding: 15px 16px;
	background: #fff;
	border: 1.5px solid rgba(202, 58, 28, 0.40);
	border-radius: 5px;
	box-shadow: 0 2px 12px rgba(30, 30, 30, 0.08);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tn-gl-search__field:hover { border-color: rgba(202, 58, 28, 0.62); }
.tn-gl-search__field:focus-within {
	border-color: var(--tngl-primary);
	box-shadow: 0 0 0 3px rgba(202, 58, 28, 0.16), 0 2px 12px rgba(30, 30, 30, 0.09);
}
.tn-gl-search__icon { display: inline-flex; color: var(--tngl-primary); flex: none; transition: color .15s ease; }
.tn-gl-search__icon svg { width: 21px; height: 21px; }
.tn-gl-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: var(--tngl-font-sans);
	font-size: 16px;
	color: var(--tngl-ink);
	padding: 0;
	height: auto;
	box-shadow: none;
}
.tn-gl-search__input:focus { outline: 0; box-shadow: none; }
.tn-gl-search__input::-webkit-search-cancel-button,
.tn-gl-search__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}
.tn-gl-search__kbd {
	flex: none;
	font-family: var(--tngl-font-mono);
	font-size: 11px;
	line-height: 1;
	color: var(--tngl-muted);
	background: #faf9f7;
	border: 1px solid var(--tngl-border);
	border-radius: 4px;
	padding: 3px 7px;
	box-shadow: 0 1px 0 rgba(30, 30, 30, 0.10);
}
.tn-gl-search__field:focus-within .tn-gl-search__kbd,
.tn-gl-search.is-filled .tn-gl-search__kbd { display: none; }
.tn-gl-search__clear {
	display: none;
	align-items: center;
	gap: 5px;
	flex: none;
	padding: 4px 9px 4px 6px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	color: var(--tngl-muted);
	font-family: var(--tngl-font-sans);
	font-size: 12px;
	line-height: 1;
	transition: color .12s ease, background-color .12s ease;
}
.tn-gl-search__clear svg { width: 17px; height: 17px; flex: none; }
.tn-gl-search__clear:hover,
.tn-gl-search__clear:focus-visible { color: var(--tngl-primary); background: rgba(202, 58, 28, 0.08); }
.tn-gl-search.is-filled .tn-gl-search__clear { display: inline-flex; }
.tn-gl-search__status {
	margin: 8px 2px 0;
	font-size: 12px;
	color: var(--tngl-muted);
	min-height: 1em;
	font-feature-settings: "tnum" 1;
}

.tn-gl-index__nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tn-gl-index__nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4em;
	padding: 6px 11px;
	font-family: var(--tngl-font-serif);
	font-size: 15px;
	line-height: 1;
	color: var(--tngl-ink);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--tngl-border);
	border-radius: 4px;
	transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.tn-gl-index__nav-link:hover,
.tn-gl-index__nav-link:focus-visible {
	color: #fff;
	background: var(--tngl-primary);
	border-color: var(--tngl-primary);
}
.tn-gl-index__nav-link[aria-disabled="true"] { opacity: .32; pointer-events: none; }

/* 50音アンカーで飛んだ時、見出しが追従ヘッダー＋ツールバーの下に出るオフセット */
.tn-gl-index__group { margin: 0 0 8px; scroll-margin-top: 240px; }
.tn-gl-index__group[hidden] { display: none; }
.tn-gl-index__row {
	font-family: var(--tngl-font-serif);
	font-size: 20px;
	font-weight: 600;
	color: var(--tngl-primary);
	margin: 0 0 3px;
	padding: 0 0 0 var(--gloss-inset);
	border-top: none;
	border-bottom: 1px solid var(--tngl-border);
	background: none;
}
.tn-gl-index__row-count {
	font-family: var(--tngl-font-sans);
	font-size: 12px;
	font-weight: 400;
	color: var(--tngl-muted);
	margin-left: 8px;
	font-feature-settings: "tnum" 1;
}
.tn-gl-index__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	gap: 0 28px;
}
.tn-gl-index__item { margin: 0; padding: 0; display: flex; min-width: 0; background: none; }
.tn-gl-index__item::marker { content: none; }
.tn-gl-index__item[hidden] { display: none; }
.tn-gl-index__link {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	padding: 2px var(--gloss-inset);
	text-decoration: none;
	color: var(--tngl-ink);
	border-bottom: 1px solid var(--tngl-border);
	transition: color .12s ease;
}
.tn-gl-index__link:hover .tn-gl-index__term,
.tn-gl-index__link:focus-visible .tn-gl-index__term { color: var(--tngl-primary); }
.tn-gl-index__term { font-size: 15.5px; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.tn-gl-index__reading { font-size: 11.5px; color: var(--tngl-muted); min-width: 0; overflow-wrap: anywhere; }
.tn-gl-index__empty { color: var(--tngl-muted); }
.tn-gl-index__noresult { display: none; color: var(--tngl-muted); font-size: 14px; padding: 24px 2px; }
.tn-gl-index.is-empty .tn-gl-index__noresult { display: block; }

@media (max-width: 600px) {
	.tn-gl-archive__header { padding: 0; }
	.tn-gl-archive__header-inner { max-width: none; }
	.tn-gl-archive__index-wrap { padding: 0 0 24px; }
	/* SPは2カラム。長い用語名もセル内で折り返し（縦積み：用語→読み） */
	.tn-gl-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
	.tn-gl-index__link { flex-direction: column; align-items: stretch; gap: 1px; padding: 3px var(--gloss-inset); }
	.tn-gl-index__term { font-size: 14px; line-height: 1.5; width: 100%; }
	.tn-gl-index__reading { font-size: 10.5px; width: 100%; }
	.tn-gl-archive { --gloss-inset: 2px; }
	.tn-gl-archive__inner { padding-bottom: 0; }
	.tn-gl-search__kbd { display: none; }
	/* SP:ツールバー追従は解除。50音ナビだけ上部sticky、検索は画面下部にfixed追従 */
	.tn-gl-toolbar { position: static; margin-top: 16px; padding: 0; border-bottom: 0; }
	.tn-gl-index__nav {
		position: sticky;
		top: 60px;
		z-index: 30;
		margin: 0 -16px;
		padding: 12px 16px;
		background: var(--tngl-bg);
		border-bottom: 1px solid var(--tngl-border);
	}
	/* SP:画面下部の固定検索（フィールド単体が浮く） */
	.tn-gl-search {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		margin: 0;
		display: flex;
		flex-direction: column-reverse;
		gap: 6px;
		padding: 0 12px calc(12px + env(safe-area-inset-bottom));
		background: transparent;
		border-top: 0;
		box-shadow: none;
	}
	.tn-gl-search__field {
		max-width: none;
		background: #fff;
		box-shadow: 0 6px 24px rgba(30, 30, 30, 0.20);
	}
	.tn-gl-search__status {
		margin: 0;
		align-self: center;
		padding: 3px 10px;
		background: rgba(255, 255, 255, 0.92);
		border-radius: 4px;
	}
	.tn-gl-index__group { scroll-margin-top: 124px; }
}

/* ============================================================
 *  カテゴリ archive（taxonomy-tn_glossary_cat.php）
 *    .tn-gl-archive を流用し、見出し前の戻り導線・子カテゴリのセクション・空表示のみ追加する。
 *    一覧本体（.tn-gl-index 系・50音ナビ）は用語集アーカイブのスタイルをそのまま使う。
 * ============================================================ */
.tn-gl-archive--gcat .tn-gl-archive__back {
	font-family: var(--tngl-font-sans);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--tngl-muted);
	text-decoration: none;
	transition: color .12s ease;
}
.tn-gl-archive--gcat .tn-gl-archive__back:hover,
.tn-gl-archive--gcat .tn-gl-archive__back:focus-visible {
	color: var(--tngl-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* 親（子カテゴリあり）archive の子セクション。子なし親・子archive は50音グループ（.tn-gl-index__*）を使う。 */
.tn-gl-gcat-section {
	margin: 0 0 28px;
	scroll-margin-top: 124px;
}
.tn-gl-gcat-section__title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	font-family: var(--tngl-font-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--tngl-ink);
	margin: 0 0 10px;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--tngl-border);
}
.tn-gl-gcat-section__count {
	font-family: var(--tngl-font-mono);
	font-size: 12px;
	font-weight: 400;
	color: var(--tngl-muted);
	font-feature-settings: "tnum" 1;
}
.tn-gl-gcat-section__desc {
	font-family: var(--tngl-font-sans);
	font-size: 14px;
	line-height: 1.9;
	color: rgba(30, 30, 30, 0.74);
	margin: -2px 0 12px;
	max-width: 62ch;
}

/* 用語が0件のカテゴリ（将来の子カテゴリ等）の空表示 */
.tn-gl-archive__empty {
	max-width: 720px;
	margin: 8px auto 0;
	padding: 40px 0 8px;
	text-align: center;
}
.tn-gl-archive__empty-text {
	font-family: var(--tngl-font-sans);
	font-size: 15px;
	color: var(--tngl-muted);
	margin: 0 0 14px;
}
.tn-gl-archive__empty-link {
	font-family: var(--tngl-font-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--tngl-primary);
	text-decoration: none;
}
.tn-gl-archive__empty-link:hover,
.tn-gl-archive__empty-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 600px) {
	.tn-gl-gcat-section { margin-bottom: 22px; scroll-margin-top: 84px; }
	.tn-gl-gcat-section__title { font-size: 17px; }
}
