/* ==================================================
   BJT Business Japanese Test pages
   Every rule is scoped to #_bjt_blog_container (article pages),
   #_bjt_blog_section (index page) or ._bjt_modal so nothing
   leaks into the rest of the site.
   ================================================== */

#_bjt_blog_container,
#_bjt_blog_section,
._bjt_modal {
	--bjt-ink: #1c2434;
	--bjt-muted: #5f6b7d;
	--bjt-line: #e4e8ef;
	--bjt-soft: #f5f7fb;
	--bjt-accent: #1f4fd1;
	--bjt-accent-soft: #eaf0ff;
	--bjt-accent-dark: #163a9c;
	--bjt-hl: #ffe680;
	--bjt-hl-ink: #4f3600;
	--bjt-radius: 14px;
	--bjt-jp-font: "M PLUS 1p", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

/* ---------------- layout ---------------- */

#_bjt_blog_container {
	margin-top: 9.5rem;
	padding: 1.5rem 0 4rem;
	color: var(--bjt-ink);
}

#_bjt_blog_container ._bjt_breadcrumb_wrap {
	margin-bottom: 1rem;
	font-size: 0.85rem;
}

#_bjt_blog_container ._bjt_breadcrumb_wrap a {
	color: var(--bjt-muted);
	text-decoration: none;
}

#_bjt_blog_container ._bjt_breadcrumb_wrap a:hover {
	color: var(--bjt-accent);
}

/* one line only: Home / BJT stay whole, the page title is cut with "…" when it doesn't fit */
#_bjt_blog_container ._bjt_breadcrumb_wrap .breadcrumb {
	flex-wrap: nowrap;
	min-width: 0;
}

#_bjt_blog_container ._bjt_breadcrumb_wrap .breadcrumb-item {
	flex-shrink: 0;
	white-space: nowrap;
}

#_bjt_blog_container ._bjt_breadcrumb_wrap .breadcrumb-item.active {
	flex-shrink: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------------- hero ---------------- */

#_bjt_blog_container ._bjt_hero {
	position: relative;
	overflow: hidden;
	padding: 28px 28px 24px;
	margin-bottom: 24px;
	border-radius: var(--bjt-radius);
	background: linear-gradient(135deg, #f3f6ff 0%, #ffffff 60%);
	border: 1px solid var(--bjt-line);
}

#_bjt_blog_container ._bjt_hero::after {
	content: "日本語";
	position: absolute;
	right: -10px;
	bottom: -28px;
	font-family: var(--bjt-jp-font);
	font-size: 7rem;
	font-weight: 900;
	color: rgba(31, 79, 209, 0.05);
	pointer-events: none;
	line-height: 1;
}

#_bjt_blog_container ._bjt_hero_badge {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: var(--bjt-accent-soft);
	color: var(--bjt-accent);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

#_bjt_blog_container ._bjt_blog_title {
	font-size: clamp(1.45rem, 3.2vw, 2.05rem);
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 12px;
}

#_bjt_blog_container ._bjt_paragraph {
	position: relative;
	z-index: 1;
	font-size: 1rem;
	line-height: 1.85;
	color: var(--bjt-muted);
	margin-bottom: 14px;
}

#_bjt_blog_container ._bjt_hero_hint {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px dashed #c6d3f5;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--bjt-ink);
}

#_bjt_blog_container ._bjt_hero_hint i {
	color: var(--bjt-accent);
	margin-right: 6px;
}

/* ---------------- table of contents ---------------- */

#_bjt_blog_container ._bjt_toc {
	border: 1px solid var(--bjt-line);
	border-radius: var(--bjt-radius);
	background: var(--bjt-soft);
	padding: 16px 18px;
	margin-bottom: 18px;
}

#_bjt_blog_container ._bjt_toc_head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

#_bjt_blog_container ._bjt_toc_title {
	font-weight: 700;
	font-size: 0.95rem;
}

#_bjt_blog_container ._bjt_toc_count {
	font-size: 0.8rem;
	color: var(--bjt-muted);
}

#_bjt_blog_container ._bjt_toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 8px;
}

#_bjt_blog_container ._bjt_toc a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 9px 12px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--bjt-line);
	color: var(--bjt-ink);
	font-size: 0.9rem;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#_bjt_blog_container ._bjt_toc a span {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: var(--bjt-muted);
	background: var(--bjt-soft);
	border-radius: 999px;
	padding: 1px 8px;
}

#_bjt_blog_container ._bjt_toc a:hover {
	border-color: var(--bjt-accent);
	color: var(--bjt-accent);
	transform: translateY(-1px);
}

/* ---------------- search ---------------- */

#_bjt_blog_container ._bjt_search {
	position: sticky;
	top: 118px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	margin-bottom: 26px;
	border: 1px solid var(--bjt-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 6px 18px rgba(28, 36, 52, 0.06);
	backdrop-filter: blur(6px);
}

#_bjt_blog_container ._bjt_search_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bjt-muted);
	font-size: 1rem;
	pointer-events: none; /* only a button when the bar is minimized (mobile) */
}

#_bjt_blog_container ._bjt_search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 0.95rem;
	color: var(--bjt-ink);
}

#_bjt_blog_container ._bjt_search_count {
	font-size: 0.8rem;
	color: var(--bjt-accent);
	white-space: nowrap;
}

#_bjt_blog_container ._bjt_search_close {
	display: none;
}

#_bjt_blog_container ._bjt_search_empty {
	text-align: center;
	color: var(--bjt-muted);
	padding: 24px 0;
}

/* ---------------- sections & tables ---------------- */

#_bjt_blog_container ._bjt_section {
	margin-bottom: 40px;
	scroll-margin-top: 150px;
}

#_bjt_blog_container ._bjt_section_title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 14px;
}

#_bjt_blog_container ._bjt_section_title::before {
	content: "";
	width: 5px;
	height: 1.2em;
	border-radius: 3px;
	background: var(--bjt-accent);
}

#_bjt_blog_container ._bjt_table_wrap {
	border: 1px solid var(--bjt-line);
	border-radius: var(--bjt-radius);
	overflow: hidden;
	background: #fff;
}

#_bjt_blog_container ._bjt_table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

#_bjt_blog_container ._bjt_table thead th {
	background: var(--bjt-soft);
	color: var(--bjt-muted);
	font-size: 0.76rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 11px 14px;
	border-bottom: 1px solid var(--bjt-line);
	text-align: left;
}

#_bjt_blog_container ._bjt_table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--bjt-line);
	vertical-align: middle;
	font-size: 0.95rem;
}

#_bjt_blog_container ._bjt_table tbody tr:last-child td {
	border-bottom: 0;
}

#_bjt_blog_container ._bjt_table tbody tr {
	transition: background 0.12s ease;
}

#_bjt_blog_container ._bjt_table tbody tr:hover {
	background: #fafbff;
}

#_bjt_blog_container ._bjt_col_no {
	width: 56px;
	color: var(--bjt-muted);
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
}

#_bjt_blog_container ._bjt_col_jp {
	font-family: var(--bjt-jp-font);
	font-size: 1.12rem !important;
	font-weight: 700;
	color: var(--bjt-ink);
}

#_bjt_blog_container ._bjt_col_hira {
	font-family: var(--bjt-jp-font);
	color: #3a4658;
}

#_bjt_blog_container ._bjt_col_romaji {
	color: var(--bjt-muted);
	font-style: italic;
}

#_bjt_blog_container ._bjt_col_info {
	width: 56px;
	text-align: center;
}

#_bjt_blog_container ._bjt_info_btn {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #cfdaf7;
	border-radius: 50%;
	background: var(--bjt-accent-soft);
	color: var(--bjt-accent);
	font-size: 1.05rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#_bjt_blog_container ._bjt_info_btn:hover,
#_bjt_blog_container ._bjt_info_btn:focus-visible {
	background: var(--bjt-accent);
	color: #fff;
	transform: scale(1.08);
	outline: none;
}

/* ---------------- prev / next ---------------- */

#_bjt_blog_container ._bjt_pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 10px;
}

#_bjt_blog_container ._bjt_pager_link {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--bjt-line);
	border-radius: var(--bjt-radius);
	background: #fff;
	color: var(--bjt-ink);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.5;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#_bjt_blog_container ._bjt_pager_link span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--bjt-accent);
}

#_bjt_blog_container ._bjt_pager_next {
	text-align: right;
}

#_bjt_blog_container ._bjt_pager_link:hover {
	border-color: var(--bjt-accent);
	box-shadow: 0 8px 22px rgba(31, 79, 209, 0.08);
}

/* ---------------- common mix-ups (FAQ) ---------------- */

#_bjt_blog_container ._bjt_faq {
	margin: 10px 0 36px;
}

#_bjt_blog_container ._bjt_faq_intro {
	color: var(--bjt-muted);
	margin: -6px 0 14px;
	font-size: 0.95rem;
}

#_bjt_blog_container ._bjt_faq_item {
	border: 1px solid var(--bjt-line);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 10px;
	overflow: hidden;
}

#_bjt_blog_container ._bjt_faq_item summary {
	position: relative;
	padding: 14px 44px 14px 16px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}

#_bjt_blog_container ._bjt_faq_item summary::-webkit-details-marker {
	display: none;
}

#_bjt_blog_container ._bjt_faq_item summary::after {
	content: "+";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--bjt-accent);
}

#_bjt_blog_container ._bjt_faq_item[open] summary::after {
	content: "\2212";
}

#_bjt_blog_container ._bjt_faq_item summary span {
	font-family: var(--bjt-jp-font);
	color: var(--bjt-accent);
}

#_bjt_blog_container ._bjt_faq_body {
	padding: 0 16px 14px;
	font-size: 0.93rem;
	line-height: 1.75;
	color: #3a4658;
}

#_bjt_blog_container ._bjt_faq_body p {
	margin: 0 0 6px;
}

#_bjt_blog_container ._bjt_faq_usage {
	color: var(--bjt-muted);
}

/* ---------------- all lists ---------------- */

#_bjt_blog_container ._bjt_more {
	margin-top: 36px;
}

#_bjt_blog_container ._bjt_more_list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 8px;
}

#_bjt_blog_container ._bjt_more_list a,
#_bjt_blog_container ._bjt_more_current {
	display: block;
	height: 100%;
	padding: 11px 14px;
	border: 1px solid var(--bjt-line);
	border-radius: 10px;
	background: #fff;
	color: var(--bjt-ink);
	font-size: 0.88rem;
	line-height: 1.5;
	text-decoration: none;
}

#_bjt_blog_container ._bjt_more_list a:hover {
	border-color: var(--bjt-accent);
	color: var(--bjt-accent);
}

#_bjt_blog_container ._bjt_more_current {
	background: var(--bjt-accent-soft);
	border-color: #c6d3f5;
	color: var(--bjt-accent);
	font-weight: 600;
}

/* ---------------- mobile: rows become cards ---------------- */

@media (max-width: 767.98px) {
	#_bjt_blog_container {
		margin-top: 7rem;
	}

	#_bjt_blog_container ._bjt_hero {
		padding: 20px 18px;
	}

	/* search: stays stuck at the top while scrolling; ✕ slides it to the left
	   into a round search button; tapping the button opens it again */
	#_bjt_blog_container ._bjt_search {
		width: 100%;
		padding: 8px 8px 8px 14px;
		overflow: hidden;
		transition: width 0.28s ease, padding 0.28s ease, border-radius 0.28s ease, background 0.2s ease, box-shadow 0.2s ease;
	}

	#_bjt_blog_container ._bjt_search input {
		font-size: 16px; /* stops iOS zooming into the field */
		transition: opacity 0.15s ease;
	}

	/* our ✕ minimizes the search, so hide the browser's own clear button */
	#_bjt_blog_container ._bjt_search input::-webkit-search-cancel-button {
		-webkit-appearance: none;
		appearance: none;
	}

	#_bjt_blog_container ._bjt_search_close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 50%;
		background: var(--bjt-soft);
		color: var(--bjt-ink);
		font-size: 0.95rem;
	}

	/* minimized: a round search button on the left, still stuck at the top */
	#_bjt_blog_container._bjt_search_min ._bjt_search {
		width: 50px;
		height: 50px;
		padding: 0;
		gap: 0;
		justify-content: center;
		border-radius: 50%;
		border-color: var(--bjt-accent);
		background: var(--bjt-accent);
		box-shadow: 0 8px 20px rgba(31, 79, 209, 0.35);
		backdrop-filter: none;
	}

	#_bjt_blog_container._bjt_search_min ._bjt_search input,
	#_bjt_blog_container._bjt_search_min ._bjt_search_count,
	#_bjt_blog_container._bjt_search_min ._bjt_search_close {
		flex: 0 0 0;
		width: 0;
		min-width: 0;
		padding: 0;
		opacity: 0;
		pointer-events: none;
	}

	#_bjt_blog_container._bjt_search_min ._bjt_search_close {
		display: none;
	}

	#_bjt_blog_container._bjt_search_min ._bjt_search_icon {
		width: 100%;
		height: 100%;
		color: #fff;
		font-size: 1.25rem;
		pointer-events: auto;
		cursor: pointer;
	}

	/* small yellow dot while a search filter is still active */
	#_bjt_blog_container._bjt_search_min ._bjt_search._bjt_search_active::after {
		content: "";
		position: absolute;
		top: 8px;
		right: 8px;
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background: var(--bjt-hl);
		border: 2px solid var(--bjt-accent);
	}

	#_bjt_blog_container ._bjt_table_wrap {
		border: 0;
		background: transparent;
		overflow: visible;
	}

	#_bjt_blog_container ._bjt_table thead {
		display: none;
	}

	#_bjt_blog_container ._bjt_table,
	#_bjt_blog_container ._bjt_table tbody {
		display: block;
	}

	#_bjt_blog_container ._bjt_table tbody tr {
		position: relative;
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"jp info"
			"hira info"
			"romaji info"
			"en info";
		gap: 2px 12px;
		padding: 14px 16px 14px 44px;
		margin-bottom: 10px;
		border: 1px solid var(--bjt-line);
		border-radius: 12px;
		background: #fff;
		cursor: pointer;
	}

	#_bjt_blog_container ._bjt_table tbody tr[hidden] {
		display: none;
	}

	#_bjt_blog_container ._bjt_table td {
		padding: 0;
		border: 0;
	}

	#_bjt_blog_container ._bjt_col_no {
		position: absolute;
		left: 14px;
		top: 16px;
		width: auto;
	}

	#_bjt_blog_container ._bjt_col_jp { grid-area: jp; }
	#_bjt_blog_container ._bjt_col_hira { grid-area: hira; font-size: 0.9rem; }
	#_bjt_blog_container ._bjt_col_romaji { grid-area: romaji; font-size: 0.85rem; }
	#_bjt_blog_container ._bjt_col_en { grid-area: en; margin-top: 4px; font-weight: 600; }

	#_bjt_blog_container ._bjt_col_info {
		grid-area: info;
		align-self: center;
		width: auto;
	}

	#_bjt_blog_container ._bjt_pager {
		grid-template-columns: 1fr;
	}
}

/* ==================================================
   Word modal
   ================================================== */

._bjt_modal .modal-content {
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	color: var(--bjt-ink);
}

._bjt_modal ._bjt_modal_head {
	align-items: flex-start;
	padding: 22px 24px 20px;
	border: 0;
	background: linear-gradient(135deg, var(--bjt-accent-dark) 0%, var(--bjt-accent) 100%);
	color: #fff;
}

._bjt_modal ._bjt_modal_word_wrap {
	flex: 1;
	min-width: 0;
	padding-right: 12px;
}

._bjt_modal ._bjt_modal_word {
	font-family: var(--bjt-jp-font);
	font-size: clamp(1.6rem, 5vw, 2.3rem);
	font-weight: 800;
	line-height: 1.25;
	overflow-wrap: anywhere;
	line-break: strict;
}

/* long expressions (Part 4 email phrases etc.) */
._bjt_modal ._bjt_modal_word._bjt_word_long {
	font-size: clamp(1.25rem, 4vw, 1.75rem);
	line-height: 1.4;
}

/* inline flow so the reading wraps like normal text */
._bjt_modal ._bjt_modal_reading {
	margin-top: 4px;
	line-height: 1.6;
	overflow-wrap: anywhere;
	font-size: 1rem;
	opacity: 0.92;
}

._bjt_modal ._bjt_modal_reading ._bjt_dot {
	margin: 0 4px;
}

._bjt_modal ._bjt_modal_reading #_bjt_modal_hira {
	font-family: var(--bjt-jp-font);
}

._bjt_modal ._bjt_modal_reading #_bjt_modal_romaji {
	font-style: italic;
}

._bjt_modal ._bjt_modal_tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

._bjt_modal ._bjt_modal_tags ._bjt_modal_meaning {
	margin-top: 0;
}

._bjt_modal ._bjt_kanji_link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

._bjt_modal ._bjt_kanji_link[hidden] {
	display: none;
}

._bjt_modal ._bjt_kanji_link span {
	font-family: var(--bjt-jp-font);
	color: var(--bjt-hl);
}

._bjt_modal ._bjt_kanji_link:hover,
._bjt_modal ._bjt_kanji_link:focus-visible {
	background: #fff;
	color: var(--bjt-accent);
}

._bjt_modal ._bjt_kanji_link:hover span {
	color: var(--bjt-accent);
}

._bjt_modal ._bjt_modal_meaning {
	display: inline-block;
	margin-top: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-weight: 600;
	font-size: 0.92rem;
}

._bjt_modal ._bjt_modal_head ._bjt_speak_btn {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border-color: transparent;
}

._bjt_modal ._bjt_speak_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: 6px;
	padding: 0;
	border: 1px solid var(--bjt-line);
	border-radius: 50%;
	background: #fff;
	color: var(--bjt-accent);
	font-size: 0.9rem;
	vertical-align: middle;
	cursor: pointer;
}

._bjt_modal ._bjt_speak_btn:hover {
	background: var(--bjt-accent);
	color: #fff;
}

._bjt_modal ._bjt_modal_body {
	padding: 22px 24px;
	background: #fbfcfe;
}

._bjt_modal ._bjt_modal_h {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
}

/* notes */

._bjt_modal ._bjt_note {
	padding: 12px 16px;
	margin-bottom: 10px;
	border-radius: 12px;
	border: 1px solid var(--bjt-line);
	border-left-width: 4px;
	background: #fff;
}

._bjt_modal ._bjt_note p {
	margin: 4px 0 0;
	font-size: 0.93rem;
	line-height: 1.7;
	color: #3a4658;
}

._bjt_modal ._bjt_note_title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

._bjt_modal ._bjt_note_explain { border-left-color: var(--bjt-accent); }
._bjt_modal ._bjt_note_explain ._bjt_note_title { color: var(--bjt-accent); }
._bjt_modal ._bjt_note_usage { border-left-color: #12936b; }
._bjt_modal ._bjt_note_usage ._bjt_note_title { color: #0f7d5b; }
._bjt_modal ._bjt_note_compare { border-left-color: #d9822b; background: #fffaf3; }
._bjt_modal ._bjt_note_compare ._bjt_note_title { color: #b5671b; }

/* examples */

._bjt_modal ._bjt_ex_head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 20px 0 12px;
}

._bjt_modal ._bjt_ex_toggles {
	display: flex;
	gap: 6px;
}

._bjt_modal ._bjt_toggle {
	padding: 4px 11px;
	border: 1px solid var(--bjt-line);
	border-radius: 999px;
	background: #fff;
	color: var(--bjt-muted);
	font-size: 0.78rem;
	cursor: pointer;
}

._bjt_modal ._bjt_toggle.active {
	background: var(--bjt-accent-soft);
	border-color: #c6d3f5;
	color: var(--bjt-accent);
	font-weight: 600;
}

._bjt_modal ._bjt_ex_list {
	list-style: none;
	counter-reset: bjt-ex;
	padding: 0;
	margin: 0;
}

._bjt_modal ._bjt_ex {
	position: relative;
	counter-increment: bjt-ex;
	padding: 14px 16px 14px 52px;
	margin-bottom: 10px;
	border: 1px solid var(--bjt-line);
	border-radius: 12px;
	background: #fff;
}

._bjt_modal ._bjt_ex::before {
	content: counter(bjt-ex);
	position: absolute;
	left: 14px;
	top: 15px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bjt-accent-soft);
	color: var(--bjt-accent);
	font-size: 0.8rem;
	font-weight: 700;
}

._bjt_modal ._bjt_ex_jp {
	font-family: var(--bjt-jp-font);
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.7;
	margin-bottom: 6px;
}

/* Normal text flow (not flex) so the sentence and its highlighted word
   stay on one line and only wrap when there is no room left */
._bjt_modal ._bjt_ex_line {
	position: relative;
	padding-left: 72px;
	font-size: 0.9rem;
	line-height: 1.75;
	color: #3a4658;
}

._bjt_modal ._bjt_ex_text {
	overflow-wrap: break-word;
	line-break: strict;
}

._bjt_modal ._bjt_ex_hira {
	font-family: var(--bjt-jp-font);
}

._bjt_modal ._bjt_ex_romaji {
	font-style: italic;
	color: var(--bjt-muted);
}

._bjt_modal ._bjt_ex_tag {
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 62px;
	font-family: Poppins, sans-serif;
	font-style: normal;
	font-size: 0.66rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.6;
	color: #9aa4b4;
}

._bjt_modal ._bjt_hide_hira [data-line="hira"],
._bjt_modal ._bjt_hide_romaji [data-line="romaji"],
._bjt_modal ._bjt_hide_en [data-line="en"] {
	display: none;
}

/* Highlight: a solid box that fully covers the target word (kanji included),
   stays correct when a long expression wraps onto two lines */
._bjt_modal mark._bjt_hl {
	display: inline;
	padding: 0.08em 0.22em;
	margin: 0 0.04em;
	border-radius: 5px;
	background: var(--bjt-hl);
	box-shadow: inset 0 -2px 0 rgba(176, 120, 0, 0.35);
	color: var(--bjt-hl-ink);
	font-style: inherit;
	font-weight: 700;
	line-height: inherit;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Short words never split across lines */
._bjt_modal mark._bjt_hl_keep {
	white-space: nowrap;
}

/* Japanese sentence: strongest highlight */
._bjt_modal ._bjt_ex_jp mark._bjt_hl {
	background: #ffd84d;
	color: #4a3200;
	padding: 0.06em 0.25em;
}

._bjt_modal ._bjt_ex_empty {
	color: var(--bjt-muted);
	padding: 16px 0;
}

/* footer */

._bjt_modal ._bjt_modal_foot {
	justify-content: space-between;
	padding: 12px 18px;
	background: #fff;
}

._bjt_modal ._bjt_nav_btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--bjt-line);
	border-radius: 10px;
	background: #fff;
	color: var(--bjt-ink);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

._bjt_modal ._bjt_nav_btn:hover:not(:disabled) {
	border-color: var(--bjt-accent);
	color: var(--bjt-accent);
}

._bjt_modal ._bjt_nav_btn:disabled {
	opacity: 0.4;
	cursor: default;
}

._bjt_modal ._bjt_modal_pos {
	font-size: 0.82rem;
	color: var(--bjt-muted);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
	._bjt_modal ._bjt_modal_head,
	._bjt_modal ._bjt_modal_body {
		padding: 18px 16px;
	}

	._bjt_modal ._bjt_ex {
		padding: 12px 12px 12px 44px;
	}

	._bjt_modal ._bjt_ex::before {
		left: 10px;
	}

	._bjt_modal ._bjt_ex_line {
		padding-left: 0;
		margin-top: 6px;
	}

	._bjt_modal ._bjt_ex_tag {
		position: static;
		display: block;
		width: auto;
		line-height: 1.4;
	}

	._bjt_modal ._bjt_ex_toggles {
		flex-wrap: wrap;
	}
}

/* ==================================================
   Index / listing page
   ================================================== */

#_bjt_blog_section {
	color: var(--bjt-ink);
	padding-bottom: 4rem;
}

/* hero */

#_bjt_blog_section ._bjt_home_hero {
	position: relative;
	overflow: hidden;
	margin-top: 110px;
	padding: 56px 0 64px;
	color: #fff;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(120, 160, 255, 0.45), transparent 60%),
		radial-gradient(600px 300px at 0% 110%, rgba(255, 216, 77, 0.18), transparent 60%),
		linear-gradient(135deg, #0f2a7a 0%, #1f4fd1 70%, #2b63f0 100%);
}

#_bjt_blog_section ._bjt_home_hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
	pointer-events: none;
}

#_bjt_blog_section ._bjt_home_hero::after {
	content: "ビジネス日本語";
	position: absolute;
	right: -20px;
	bottom: -40px;
	font-family: var(--bjt-jp-font);
	font-size: 8rem;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.05);
	white-space: nowrap;
	pointer-events: none;
	line-height: 1;
}

#_bjt_blog_section ._bjt_home_hero .container {
	position: relative;
	z-index: 1;
}

#_bjt_blog_section ._bjt_home_crumb {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 16px;
}

#_bjt_blog_section ._bjt_home_crumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

#_bjt_blog_section ._bjt_home_crumb span {
	margin: 0 6px;
}

#_bjt_blog_section ._bjt_home_badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 0.8rem;
	font-weight: 600;
}

#_bjt_blog_section ._bjt_home_badge i {
	color: var(--bjt-hl);
}

#_bjt_blog_section ._bjt_home_title {
	font-size: clamp(1.8rem, 4.2vw, 2.9rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}

#_bjt_blog_section ._bjt_home_title span {
	color: var(--bjt-hl);
}

#_bjt_blog_section ._bjt_home_lead {
	max-width: 620px;
	font-size: 1.04rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.86);
	margin-bottom: 26px;
}

#_bjt_blog_section ._bjt_home_stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}

#_bjt_blog_section ._bjt_home_stats div {
	min-width: 130px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

#_bjt_blog_section ._bjt_home_stats b {
	display: block;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.1;
}

#_bjt_blog_section ._bjt_home_stats span {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.75);
}

#_bjt_blog_section ._bjt_home_cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

#_bjt_blog_section ._bjt_btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#_bjt_blog_section ._bjt_btn_primary {
	background: var(--bjt-hl);
	color: #3a2a00;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

#_bjt_blog_section ._bjt_btn_primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
	color: #3a2a00;
}

#_bjt_blog_section ._bjt_btn_ghost {
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
}

#_bjt_blog_section ._bjt_btn_ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* demo card in hero */

#_bjt_blog_section ._bjt_home_demo {
	max-width: 420px;
	margin-left: auto;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	color: var(--bjt-ink);
	box-shadow: 0 30px 60px rgba(5, 20, 70, 0.35);
	transform: rotate(1.5deg);
	animation: _bjt_float 6s ease-in-out infinite;
}

@keyframes _bjt_float {
	0%, 100% { transform: rotate(1.5deg) translateY(0); }
	50% { transform: rotate(1.5deg) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
	#_bjt_blog_section ._bjt_home_demo { animation: none; }
}

#_bjt_blog_section ._bjt_demo_head {
	padding: 20px 22px 16px;
	background: linear-gradient(135deg, var(--bjt-accent-dark), var(--bjt-accent));
	color: #fff;
}

#_bjt_blog_section ._bjt_demo_word {
	font-family: var(--bjt-jp-font);
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1.2;
}

#_bjt_blog_section ._bjt_demo_read {
	font-size: 0.95rem;
	opacity: 0.9;
	margin: 2px 0 8px;
}

#_bjt_blog_section ._bjt_demo_mean {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	font-size: 0.85rem;
	font-weight: 600;
}

#_bjt_blog_section ._bjt_demo_body {
	padding: 16px 22px 10px;
}

#_bjt_blog_section ._bjt_demo_label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9aa4b4;
	margin-bottom: 6px;
}

#_bjt_blog_section ._bjt_demo_jp {
	font-family: var(--bjt-jp-font);
	font-size: 1.15rem;
	font-weight: 500;
	margin-bottom: 4px;
}

#_bjt_blog_section ._bjt_demo_line {
	font-size: 0.88rem;
	line-height: 1.7;
	color: #4a5568;
}

#_bjt_blog_section mark._bjt_hl {
	padding: 0.06em 0.22em;
	border-radius: 5px;
	background: var(--bjt-hl);
	color: var(--bjt-hl-ink);
	font-weight: 700;
	font-style: inherit;
}

#_bjt_blog_section ._bjt_demo_foot {
	padding: 10px 22px 16px;
	font-size: 0.8rem;
	color: var(--bjt-accent);
	font-weight: 600;
}

/* main */

#_bjt_blog_section ._bjt_home_main {
	padding-top: 40px;
}

#_bjt_blog_section ._bjt_home_head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

#_bjt_blog_section ._bjt_home_h2 {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0;
}

#_bjt_blog_section ._bjt_home_search {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 240px;
	padding: 8px 14px;
	border: 1px solid var(--bjt-line);
	border-radius: 12px;
	background: #fff;
}

#_bjt_blog_section ._bjt_home_search i {
	color: var(--bjt-muted);
}

#_bjt_blog_section ._bjt_home_search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	font-size: 0.92rem;
	background: transparent;
}

#_bjt_blog_section ._bjt_chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

#_bjt_blog_section ._bjt_chip {
	padding: 7px 14px;
	border: 1px solid var(--bjt-line);
	border-radius: 999px;
	background: #fff;
	color: var(--bjt-muted);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

#_bjt_blog_section ._bjt_chip:hover {
	border-color: var(--bjt-accent);
	color: var(--bjt-accent);
}

#_bjt_blog_section ._bjt_chip.active {
	background: var(--bjt-accent);
	border-color: var(--bjt-accent);
	color: #fff;
}

/* cards */

#_bjt_blog_section ._bjt_cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

#_bjt_blog_section ._bjt_card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid var(--bjt-line);
	border-radius: 16px;
	background: #fff;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#_bjt_blog_section ._bjt_card[hidden] {
	display: none;
}

#_bjt_blog_section ._bjt_card:hover {
	transform: translateY(-3px);
	border-color: #c6d3f5;
	box-shadow: 0 16px 34px rgba(31, 79, 209, 0.1);
}

#_bjt_blog_section ._bjt_card_top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

#_bjt_blog_section ._bjt_card_icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--bjt-accent-soft);
	color: var(--bjt-accent);
	font-size: 1.3rem;
	transition: background 0.18s ease, color 0.18s ease;
}

#_bjt_blog_section ._bjt_card:hover ._bjt_card_icon {
	background: var(--bjt-accent);
	color: #fff;
}

#_bjt_blog_section ._bjt_card_part {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bjt-muted);
}

#_bjt_blog_section ._bjt_card_title {
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 8px;
}

#_bjt_blog_section ._bjt_card_title a {
	color: var(--bjt-ink);
	text-decoration: none;
}

#_bjt_blog_section ._bjt_card:hover ._bjt_card_title a {
	color: var(--bjt-accent);
}

#_bjt_blog_section ._bjt_card_desc {
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--bjt-muted);
	margin-bottom: 12px;
}

#_bjt_blog_section ._bjt_card_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
}

#_bjt_blog_section ._bjt_card_tags li {
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--bjt-soft);
	color: #4a5568;
	font-size: 0.74rem;
}

#_bjt_blog_section ._bjt_card_meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--bjt-line);
	font-size: 0.8rem;
	color: var(--bjt-muted);
}

#_bjt_blog_section ._bjt_card_meta span {
	white-space: nowrap;
}

#_bjt_blog_section ._bjt_card_meta i {
	color: var(--bjt-accent);
}

#_bjt_blog_section ._bjt_card_go {
	margin-left: auto;
	transition: transform 0.18s ease;
}

#_bjt_blog_section ._bjt_card:hover ._bjt_card_go {
	transform: translateX(4px);
}

#_bjt_blog_section ._bjt_cards_empty {
	text-align: center;
	padding: 30px 0;
	color: var(--bjt-muted);
}

/* steps */

#_bjt_blog_section ._bjt_steps {
	margin-top: 48px;
}

#_bjt_blog_section ._bjt_steps_list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
}

#_bjt_blog_section ._bjt_steps_list li {
	padding: 20px;
	border-radius: 16px;
	background: linear-gradient(180deg, var(--bjt-soft), #fff);
	border: 1px solid var(--bjt-line);
}

#_bjt_blog_section ._bjt_step_no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--bjt-accent);
	color: #fff;
	font-weight: 800;
}

#_bjt_blog_section ._bjt_steps_list h3 {
	font-size: 1.02rem;
	font-weight: 700;
	margin-bottom: 6px;
}

#_bjt_blog_section ._bjt_steps_list p {
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--bjt-muted);
	margin: 0;
}

/* FAQ */

#_bjt_blog_section ._bjt_home_faq {
	margin-top: 48px;
}

#_bjt_blog_section ._bjt_home_faq ._bjt_home_h2 {
	margin-bottom: 16px;
}

#_bjt_blog_section ._bjt_home_faq_item {
	border: 1px solid var(--bjt-line);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 10px;
}

#_bjt_blog_section ._bjt_home_faq_item summary {
	position: relative;
	padding: 15px 44px 15px 18px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

#_bjt_blog_section ._bjt_home_faq_item summary::-webkit-details-marker {
	display: none;
}

#_bjt_blog_section ._bjt_home_faq_item summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--bjt-accent);
}

#_bjt_blog_section ._bjt_home_faq_item[open] summary::after {
	content: "\2212";
}

#_bjt_blog_section ._bjt_home_faq_item p {
	padding: 0 18px 16px;
	margin: 0;
	line-height: 1.75;
	color: #3a4658;
}

@media (max-width: 767.98px) {
	#_bjt_blog_section ._bjt_home_hero {
		margin-top: 96px;
		padding: 36px 0 44px;
	}

	#_bjt_blog_section ._bjt_home_stats div {
		min-width: 0;
		flex: 1;
	}

	#_bjt_blog_section ._bjt_home_search {
		min-width: 0;
		width: 100%;
	}
}

/* ==================================================
   Performance: let the browser skip rendering off-screen sections
   ================================================== */

#_bjt_blog_container ._bjt_section,
#_bjt_blog_container ._bjt_faq,
#_bjt_blog_container ._bjt_more {
	content-visibility: auto;
	contain-intrinsic-size: auto 1200px;
}
