:root {
	--color-main: var(--tn-color-main, #be123c);
	--color-main-dark: var(--tn-color-main-dark, #9f1239);
	--color-sub: var(--tn-color-sub, #fff1f2);
	--color-accent: var(--tn-color-accent, #1d4ed8);
	--color-accent-dark: var(--tn-color-accent-dark, #1e40af);
	--color-text: var(--tn-color-text, #1c1917);
	--color-muted: var(--tn-color-muted, #57534e);
	--color-border: var(--tn-color-border, #fecdd3);
	--color-surface: var(--tn-color-surface, #ffffff);
	--color-warning: var(--tn-color-warning, #b45309);
	--color-warning-bg: var(--tn-color-warning-bg, #fffbeb);
	--tn-column-radius: var(--tn-radius, 6px);
	--tn-column-shadow: var(--tn-shadow, 0 8px 24px rgba(28, 25, 23, 0.08));
	--tn-column-heading: var(--tn-font-heading, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif);
	--tn-column-body: var(--tn-font-body, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif);
	--tn-column-latin: var(--tn-font-latin, "Inter", "Segoe UI", sans-serif);
}

/* Standalone dummy page foundation. */
.tn-demo-page {
	margin: 0;
	background: #f8fafc;
	color: var(--color-text);
	font-family: var(--tn-column-body);
	font-size: 16px;
	line-height: 1.85;
	overflow-wrap: anywhere;
}

.tn-demo-page *,
.tn-demo-page *::before,
.tn-demo-page *::after {
	box-sizing: border-box;
}

.tn-demo-page img {
	display: block;
	max-width: 100%;
	height: auto;
}

.tn-demo-header {
	padding: 1rem;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-surface);
}

.tn-demo-header__inner,
.tn-demo-shell {
	width: min(calc(100% - 2rem), 920px);
	margin-inline: auto;
}

.tn-demo-brand {
	color: var(--color-main);
	font-family: var(--tn-column-heading);
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.tn-demo-breadcrumb {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e7e5e4;
	background: var(--color-surface);
	color: var(--color-muted);
	font-size: 0.8rem;
}

.tn-demo-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	width: min(calc(100% - 2rem), 920px);
	padding: 0;
	margin: 0 auto;
	list-style: none;
}

.tn-demo-breadcrumb__item:not(:last-child)::after {
	margin-left: 0.4rem;
	color: #a8a29e;
	content: "/";
}

.tn-demo-breadcrumb a {
	color: var(--color-accent);
}

.tn-demo-shell {
	padding-block: 2rem 4rem;
}

.tn-demo-article {
	padding: clamp(1rem, 4vw, 3rem);
	border: 1px solid #e7e5e4;
	border-radius: var(--tn-column-radius);
	background: var(--color-surface);
	box-shadow: var(--tn-column-shadow);
}

.tn-demo-category {
	display: inline-flex;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--color-sub);
	color: var(--color-main-dark);
	font-size: 0.8rem;
	font-weight: 700;
}

.tn-demo-title {
	margin: 0.8rem 0;
	font-family: var(--tn-column-heading);
	font-size: clamp(1.8rem, 6vw, 2.8rem);
	line-height: 1.4;
}

.tn-demo-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin-bottom: 1.5rem;
	color: var(--color-muted);
	font-family: var(--tn-column-latin);
	font-size: 0.82rem;
}

.tn-demo-hero {
	width: 100%;
	margin-bottom: 1.5rem;
	border-radius: var(--tn-column-radius);
	aspect-ratio: 1200 / 630;
	object-fit: cover;
}

.tn-demo-lead {
	padding: 1rem 1.25rem;
	margin-block: 1.5rem;
	border-left: 4px solid var(--color-main);
	background: var(--color-sub);
	font-size: 1.05rem;
	font-weight: 700;
}

.tn-demo-section-label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--color-main);
	font-family: var(--tn-column-latin);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.tn-demo-footer {
	padding: 2rem 1rem;
	background: var(--color-text);
	color: #e7e5e4;
	text-align: center;
}

/* Article body typography. */
.tn-entry-content,
.tn-demo-content {
	color: var(--color-text);
	font-family: var(--tn-column-body);
	line-height: 1.9;
}

.tn-entry-content h2,
.tn-demo-content h2 {
	margin: 3rem 0 1.25rem;
	padding: 0.15rem 0 0.15rem 0.85rem;
	border-left: 5px solid var(--color-main);
	color: var(--color-text);
	font-family: var(--tn-column-heading);
	font-size: clamp(1.45rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.45;
}

.tn-entry-content h3,
.tn-demo-content h3 {
	margin: 2.25rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--color-border);
	color: var(--color-text);
	font-family: var(--tn-column-heading);
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	line-height: 1.5;
}

.tn-entry-content h4,
.tn-demo-content h4 {
	position: relative;
	margin: 1.75rem 0 0.75rem;
	padding-left: 1.1rem;
	color: var(--color-text);
	font-family: var(--tn-column-heading);
	font-size: 1.08rem;
	line-height: 1.55;
}

.tn-entry-content h4::before,
.tn-demo-content h4::before {
	position: absolute;
	top: 0.72em;
	left: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--color-main);
	content: "";
	transform: translateY(-50%);
}

.tn-entry-content p,
.tn-demo-content p {
	margin-block: 1rem;
}

.tn-entry-content strong,
.tn-demo-content strong {
	color: var(--color-main-dark);
	font-weight: 700;
}

.tn-entry-content em,
.tn-demo-content em {
	padding-inline: 0.1em;
	background: linear-gradient(transparent 62%, rgba(29, 78, 216, 0.24) 62%);
	color: var(--color-text);
	font-style: normal;
	font-weight: 700;
}

.tn-entry-content a,
.tn-demo-content a {
	color: var(--color-accent);
	font-weight: 700;
	text-decoration: none;
	text-underline-offset: 0.18em;
}

.tn-entry-content a:hover,
.tn-demo-content a:hover {
	color: var(--color-accent-dark);
	text-decoration: underline;
}

.tn-entry-content ul:not([class]),
.tn-entry-content ol:not([class]),
.tn-demo-content ul:not([class]),
.tn-demo-content ol:not([class]) {
	padding-left: 1.6rem;
	margin-block: 1.25rem;
}

.tn-entry-content li + li,
.tn-demo-content li + li {
	margin-top: 0.45rem;
}

.tn-entry-content ul:not([class]) li::marker,
.tn-demo-content ul:not([class]) li::marker {
	color: var(--color-main);
	font-size: 1.1em;
}

.tn-entry-content ol:not([class]) li::marker,
.tn-demo-content ol:not([class]) li::marker {
	color: var(--color-main);
	font-family: var(--tn-column-latin);
	font-weight: 700;
}

.tn-entry-content blockquote,
.tn-demo-content blockquote,
.tn-quote {
	padding: 1.1rem 1.25rem;
	margin: 1.75rem 0;
	border-left: 6px solid var(--color-main);
	background: var(--color-sub);
	color: #44403c;
	font-style: italic;
}

.tn-entry-content blockquote > :first-child,
.tn-demo-content blockquote > :first-child,
.tn-quote > :first-child {
	margin-top: 0;
}

.tn-entry-content blockquote > :last-child,
.tn-demo-content blockquote > :last-child,
.tn-quote > :last-child {
	margin-bottom: 0;
}

.tn-entry-content pre,
.tn-demo-content pre,
.tn-code-block {
	max-width: 100%;
	padding: 1rem;
	margin: 1.5rem 0;
	overflow-x: auto;
	border-radius: var(--tn-column-radius);
	background: #1c1917;
	color: #f8fafc;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.88rem;
	line-height: 1.7;
	tab-size: 2;
}

.tn-entry-content code,
.tn-demo-content code {
	padding: 0.1em 0.35em;
	border-radius: 3px;
	background: #f1f5f9;
	color: #9f1239;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.9em;
}

.tn-entry-content pre code,
.tn-demo-content pre code,
.tn-code-block code {
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
}

.tn-entry-content figure,
.tn-demo-content figure {
	margin: 1.75rem 0;
}

.tn-entry-content figcaption,
.tn-demo-content figcaption,
.tn-figure__caption {
	margin-top: 0.5rem;
	color: var(--color-muted);
	font-size: 0.78rem;
	line-height: 1.6;
	text-align: center;
}

/* 1. Table of contents. */
.tn-toc {
	padding: 1.25rem;
	margin: 2rem 0;
	border: 1px solid var(--color-border);
	border-radius: var(--tn-column-radius);
	background: var(--color-sub);
}

.tn-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tn-toc__title {
	margin: 0;
	color: var(--color-text);
	font-family: var(--tn-column-heading);
	font-size: 1.1rem;
	font-weight: 700;
}

.tn-toc__title::before {
	margin-right: 0.45rem;
	color: var(--color-main);
	content: "●";
	font-size: 0.75em;
}

.tn-toc__toggle {
	padding: 0.25rem 0.65rem;
	border: 1px solid var(--color-main);
	border-radius: var(--tn-column-radius);
	background: #fff;
	color: var(--color-main-dark);
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.tn-toc__list {
	padding-left: 1.4rem;
	margin: 1rem 0 0;
}

.tn-toc__item {
	margin: 0.4rem 0;
}

.tn-toc__item--h3 {
	margin-left: 1rem;
	font-size: 0.9rem;
}

.tn-toc__item::marker {
	color: var(--color-main);
	font-family: var(--tn-column-latin);
	font-weight: 700;
}

.tn-toc__item a {
	color: var(--color-text);
	font-weight: 500;
	text-decoration: none;
}

.tn-toc__item a:hover {
	color: var(--color-main);
	text-decoration: underline;
}

.tn-toc.tn-is-collapsed .tn-toc__list {
	display: none;
}

/* 2 and 3. Point / caution boxes. */
.tn-point,
.tn-warning {
	position: relative;
	padding: 1.35rem 1.25rem 1.15rem;
	margin: 1.75rem 0;
	border-radius: var(--tn-column-radius);
}

.tn-point {
	border: 1px solid var(--color-border);
	border-left: 6px solid var(--color-main);
	background: var(--color-sub);
}

.tn-warning {
	border: 1px solid #fcd34d;
	border-left: 6px solid var(--color-warning);
	background: var(--color-warning-bg);
}

.tn-point__title,
.tn-warning__title {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.55rem;
	margin: 0 0 0.65rem;
	border-radius: 999px;
	font-family: var(--tn-column-latin);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.tn-point__title {
	background: var(--color-main);
	color: #fff;
}

.tn-warning__title {
	background: var(--color-warning);
	color: #fff;
}

.tn-point > :last-child,
.tn-warning > :last-child {
	margin-bottom: 0;
}

/* 4. Checklist. */
.tn-checklist {
	padding: 1.25rem;
	margin: 1.75rem 0;
	border: 1px solid #bfdbfe;
	border-radius: var(--tn-column-radius);
	background: #eff6ff;
}

.tn-checklist__title {
	margin: 0 0 0.75rem;
	color: #1e3a8a;
	font-family: var(--tn-column-heading);
	font-size: 1.05rem;
	font-weight: 700;
}

.tn-checklist__items {
	padding: 0;
	margin: 0;
	list-style: none;
}

.tn-checklist__item {
	position: relative;
	padding: 0.5rem 0 0.5rem 2rem;
}

.tn-checklist__item::before {
	position: absolute;
	top: 0.62rem;
	left: 0;
	display: grid;
	width: 1.35rem;
	height: 1.35rem;
	place-items: center;
	border-radius: 50%;
	background: var(--color-accent);
	color: #fff;
	content: "✓";
	font-family: var(--tn-column-latin);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

/* 5. Responsive comparison table. */
.tn-table-scroll {
	max-width: 100%;
	margin: 1.75rem 0;
	overflow-x: auto;
	border: 1px solid #d6d3d1;
	border-radius: var(--tn-column-radius);
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.tn-compare-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	background: #fff;
}

.tn-compare-table th,
.tn-compare-table td {
	padding: 0.85rem;
	border-right: 1px solid #e7e5e4;
	border-bottom: 1px solid #e7e5e4;
	text-align: left;
	vertical-align: top;
}

.tn-compare-table thead th {
	background: var(--color-main);
	color: #fff;
	font-weight: 700;
}

.tn-compare-table tbody th {
	background: var(--color-sub);
	color: var(--color-main-dark);
	font-weight: 700;
}

.tn-compare-table tr:last-child th,
.tn-compare-table tr:last-child td {
	border-bottom: 0;
}

.tn-compare-table th:last-child,
.tn-compare-table td:last-child {
	border-right: 0;
}

/* 6. FAQ. */
.tn-faq {
	margin: 2rem 0;
}

.tn-faq__item {
	margin-bottom: 0.85rem;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--tn-column-radius);
	background: #fff;
}

.tn-faq__question,
.tn-faq__answer {
	position: relative;
	padding: 1rem 1rem 1rem 3.5rem;
}

.tn-faq__question {
	margin: 0;
	background: var(--color-sub);
	font-family: var(--tn-column-heading);
	font-size: 1rem;
	font-weight: 700;
}

.tn-faq__question::before,
.tn-faq__answer::before {
	position: absolute;
	top: 0.85rem;
	left: 1rem;
	display: grid;
	width: 1.75rem;
	height: 1.75rem;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	font-family: var(--tn-column-latin);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
}

.tn-faq__question::before {
	background: var(--color-main);
	content: "Q";
}

.tn-faq__answer::before {
	background: var(--color-accent);
	content: "A";
}

.tn-faq__answer > :first-child {
	margin-top: 0;
}

.tn-faq__answer > :last-child {
	margin-bottom: 0;
}

/* 7. Related article cards. */
.tn-related-list {
	display: grid;
	gap: 1rem;
	margin: 1.5rem 0;
}

.tn-related-card {
	display: grid;
	gap: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid #e7e5e4;
	border-radius: var(--tn-column-radius);
	background: #fff;
	color: var(--color-text);
	text-decoration: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tn-related-card:hover {
	border-color: var(--color-border);
	box-shadow: var(--tn-column-shadow);
	color: var(--color-text);
	text-decoration: none;
	transform: translateY(-2px);
}

.tn-related-card__image {
	width: 100%;
	aspect-ratio: 600 / 315;
	object-fit: cover;
}

.tn-related-card__body {
	display: flex;
	flex-direction: column;
	padding: 0.9rem;
}

.tn-related-card__category {
	align-self: flex-start;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: var(--color-sub);
	color: var(--color-main-dark);
	font-size: 0.72rem;
	font-weight: 700;
}

.tn-related-card__label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--color-main);
	font-size: 0.75rem;
	font-weight: 700;
}

.tn-related-card__title {
	display: block;
	margin: 0.5rem 0;
	color: var(--color-text);
	font-family: var(--tn-column-heading);
	font-weight: 700;
	line-height: 1.55;
}

.tn-related-card__date {
	margin-top: auto;
	color: var(--color-muted);
	font-family: var(--tn-column-latin);
	font-size: 0.75rem;
}

/* 8. Speech balloons. */
.tn-balloon {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	margin: 1.75rem 0;
}

.tn-balloon--right {
	flex-direction: row-reverse;
}

.tn-balloon__avatar {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border: 2px solid var(--color-border);
	border-radius: 50%;
	object-fit: cover;
}

.tn-balloon__body {
	position: relative;
	flex: 1;
	padding: 0.9rem 1rem;
	border-radius: var(--tn-column-radius);
	background: var(--color-sub);
}

.tn-balloon--right .tn-balloon__body {
	background: #eff6ff;
}

.tn-balloon__body::before {
	position: absolute;
	top: 19px;
	left: -8px;
	width: 16px;
	height: 16px;
	background: inherit;
	content: "";
	transform: rotate(45deg);
}

.tn-balloon--right .tn-balloon__body::before {
	right: -8px;
	left: auto;
}

.tn-balloon__body > :last-child {
	margin-bottom: 0;
}

.tn-balloon__name {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--color-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

/* 9. Author / supervisor profile. */
.tn-person-box {
	display: grid;
	gap: 1rem;
	padding: 1.25rem;
	margin: 1.75rem 0;
	border: 1px solid var(--color-border);
	border-radius: var(--tn-column-radius);
	background: #fffafb;
}

.tn-person-box__image {
	width: 92px;
	height: 92px;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--color-border);
	object-fit: cover;
}

.tn-person-box__role {
	color: var(--color-main);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.tn-person-box__name {
	margin: 0.15rem 0 0.4rem;
	color: var(--color-text);
	font-family: var(--tn-column-heading);
	font-size: 1.12rem;
	font-weight: 700;
}

.tn-person-box__profile {
	margin: 0;
	font-size: 0.9rem;
}

.tn-person-box__social {
	display: inline-flex;
	margin-top: 0.55rem;
	color: var(--color-accent);
	font-size: 0.85rem;
	font-weight: 700;
}

/* 10. Conversion CTA. */
.tn-column-cta {
	padding: clamp(1.35rem, 4vw, 2.5rem);
	margin: 2rem 0;
	border-radius: var(--tn-column-radius);
	background: linear-gradient(135deg, var(--color-main-dark), var(--color-main));
	color: #fff;
	text-align: center;
}

.tn-column-cta__title {
	margin: 0 0 0.5rem;
	color: #fff;
	font-family: var(--tn-column-heading);
	font-size: clamp(1.25rem, 3vw, 1.8rem);
	font-weight: 700;
}

.tn-column-cta__copy {
	max-width: 42rem;
	margin: 0 auto 1.15rem;
	color: #fff1f2;
}

.tn-column-cta__button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.4rem;
	border: 2px solid #fff;
	border-radius: var(--tn-column-radius);
	background: var(--color-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 180ms ease, transform 180ms ease;
}

.tn-column-cta__button:hover {
	background: var(--color-accent-dark);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

@media (min-width: 640px) {
	.tn-person-box {
		grid-template-columns: auto 1fr;
		align-items: center;
	}

	.tn-related-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.tn-demo-shell {
		padding-block: 3rem 5rem;
	}

	.tn-related-list--four {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.tn-related-card,
	.tn-column-cta__button {
		transition-duration: 0.01ms;
	}

	.tn-related-card:hover,
	.tn-column-cta__button:hover {
		transform: none;
	}
}
