@charset "UTF-8";
/*
 * style-glossary-section.css : [tn_glossary_section] 用スタイル（トップ等で読込）
 *
 *   古き良き日本橋らしい和モダン。白〜極薄暖色の地に茜（#ca3a1c）と Shippori Mincho。
 *   装飾は足さない（英字eyebrow・上部アクセント線・装飾下線・角丸過多・border-left は使わない）。
 *
 *   ★詳細度の方針：本SCは固定ページ本文（.post_content）内に出るため、SWELLの
 *     .post_content h2/ul/ol/li/p（特異度 0,1,1）に負けないよう、子要素セレクタは
 *     すべて親クラスを前置して (0,2,0) 以上で書く（§5-C-3 タグ名混じり詳細度対策）。
 *     これを怠ると ul に padding-left、p に margin、見出しに茜ボックスが残る。
 *   SCを含むページでのみ読み込む（tn-glossary-section.php）。
 */

.tn-gl-glosspromo {
	--tngl-primary:   #ca3a1c;   /* 茜（サイト --color_main と同値） */
	--tngl-deep:      #9e1a20;   /* 濃茜 */
	--tngl-ink:       #1e1e1e;   /* 墨色（純黒は使わない） */
	--tngl-muted:     rgba(30, 30, 30, 0.62);
	--tngl-line:      rgba(30, 30, 30, 0.14);

	--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;

	max-width: 1080px;
	margin: clamp(28px, 3.5vw, 44px) auto;
	padding: 0;
}

/* 額装パネル：極薄暖色の地＋全周の細い枠（上端だけのアクセント線は使わない） */
.tn-gl-glosspromo .tn-gl-glosspromo__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
	background: #fbf7f4;
	border: 1px solid var(--tngl-line);
	border-radius: 2px;
}

/* 左：見出し・収録数・説明・導線を自然な間隔で縦積み */
.tn-gl-glosspromo .tn-gl-glosspromo__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

/* 見出し：SWELL の .post_content h2:where(...)（0,1,1）と ::before（0,1,2）を詳細度で打ち消す */
.tn-gl-glosspromo .tn-gl-glosspromo__title {
	all: revert;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	font-family: var(--tngl-font-serif);
	font-size: clamp(23px, 2.6vw, 32px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--tngl-ink);
}
.tn-gl-glosspromo .tn-gl-glosspromo__title::before,
.tn-gl-glosspromo .tn-gl-glosspromo__title::after {
	content: none;
	display: none;
}

/* 収録数：数字と「語を収録」を1行で（折り返さない） */
.tn-gl-glosspromo .tn-gl-glosspromo__count {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}
.tn-gl-glosspromo .tn-gl-glosspromo__count-num {
	font-family: var(--tngl-font-serif);
	font-size: clamp(40px, 5vw, 54px);
	font-weight: 700;
	font-feature-settings: "tnum" 1;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--tngl-primary);
	letter-spacing: 0.01em;
	transition: text-shadow .6s ease;
}
.tn-gl-glosspromo .tn-gl-glosspromo__count-unit {
	font-family: var(--tngl-font-sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--tngl-ink);
	white-space: nowrap;
}
/* カウントアップ：JS有効時のみ開始前を伏せ、スクロールインで現出 */
.tn-gl-glosspromo .tn-gl-glosspromo__count.tn-cu {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.tn-gl-glosspromo .tn-gl-glosspromo__count.tn-cu.is-inview {
	opacity: 1;
	transform: none;
}

.tn-gl-glosspromo .tn-gl-glosspromo__desc {
	font-family: var(--tngl-font-sans);
	font-size: 14.5px;
	line-height: 1.95;
	color: var(--tngl-muted);
	margin: 0;
	padding: 0;
	max-width: 36em;
}

/* 導線ボタン：テキストと矢印を1まとまりで中央に（SWELL の a::after 矢印は消す） */
.tn-gl-glosspromo .tn-gl-glosspromo__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 2px 0 0;
	padding: 13px 28px;
	background: var(--tngl-primary);
	color: #fff;
	font-family: var(--tngl-font-sans);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	border: none;
	border-radius: 2px;
	transition: background-color .18s ease;
}
.tn-gl-glosspromo .tn-gl-glosspromo__cta:hover,
.tn-gl-glosspromo .tn-gl-glosspromo__cta:focus-visible {
	background: var(--tngl-deep);
	color: #fff;
	text-decoration: none;
}
.tn-gl-glosspromo .tn-gl-glosspromo__cta::before,
.tn-gl-glosspromo .tn-gl-glosspromo__cta::after {
	content: none;
	display: none;
}
.tn-gl-glosspromo .tn-gl-glosspromo__cta-label { line-height: 1; }
.tn-gl-glosspromo .tn-gl-glosspromo__cta-arrow {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	transition: transform .18s ease;
}
.tn-gl-glosspromo .tn-gl-glosspromo__cta:hover .tn-gl-glosspromo__cta-arrow {
	transform: translateX(3px);
}

/* 右：新着の用語（キャップとチップの左端を揃える＝ul の padding-left を 0 に勝たせる） */
.tn-gl-glosspromo .tn-gl-glosspromo__showcase { min-width: 0; }
.tn-gl-glosspromo .tn-gl-glosspromo__showcase-cap {
	font-family: var(--tngl-font-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--tngl-muted);
	margin: 0 0 12px;
	padding: 0;
}
.tn-gl-glosspromo .tn-gl-glosspromo__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.tn-gl-glosspromo .tn-gl-glosspromo__chip-item {
	margin: 0;
	padding: 0;
	list-style: none;
}
.tn-gl-glosspromo .tn-gl-glosspromo__chip-item::before {
	content: none;
	display: none;
}
.tn-gl-glosspromo .tn-gl-glosspromo__chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--tngl-line);
	border-radius: 2px;
	background: #fff;
	font-family: var(--tngl-font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--tngl-ink);
	text-decoration: none;
	line-height: 1.4;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.tn-gl-glosspromo .tn-gl-glosspromo__chip:hover,
.tn-gl-glosspromo .tn-gl-glosspromo__chip:focus-visible {
	border-color: var(--tngl-primary);
	background: var(--tngl-primary);
	color: #fff;
	text-decoration: none;
}
.tn-gl-glosspromo .tn-gl-glosspromo__chip::before,
.tn-gl-glosspromo .tn-gl-glosspromo__chip::after {
	content: none;
	display: none;
}
.tn-gl-glosspromo .tn-gl-glosspromo__preview-note {
	font-family: var(--tngl-font-sans);
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--tngl-muted);
	margin: 14px 0 0;
	padding: 0;
}

/* --- SP（768px以下）：1カラム・左右余白を詰める --- */
@media (max-width: 768px) {
	.tn-gl-glosspromo .tn-gl-glosspromo__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 24px 18px;
	}
	.tn-gl-glosspromo .tn-gl-glosspromo__main { gap: 14px; }
	.tn-gl-glosspromo .tn-gl-glosspromo__cta {
		width: 100%;
		padding: 14px 22px;
		font-size: 15px;
	}
}
