/* =========================================================
   投稿詳細ページ
========================================================= */

.tks-single-page {
	position: relative;
	z-index: 3;
	background: #fff;
	color: #111;
}

.tks-single {
	position: relative;
}

.tks-single-hero {
	position: relative;
	overflow: hidden;
	min-height: 560px;
	padding: 190px 40px 120px;
	color: #fff;
	background: #111;
}

.tks-single-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(135deg, #1f1f1f 0%, #3a3a3a 100%);
}

.tks-single-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.72) 100%);
}

.tks-single-hero__bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.1);
	transform: scale(1.04);
}

.tks-single-hero__inner {
	position: relative;
	z-index: 2;
	width: min(1120px, 100%);
	margin: 0 auto;
}

.tks-single-hero__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
	opacity: 0;
	transform: translateY(24px);
	animation: tksFadeUp 0.75s ease 0.3s forwards;
}

.tks-single-hero__meta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 16px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.62);
	border-radius: 999px;
}

.tks-single-hero__meta time {
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.tks-single-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 4.4vw, 40px);
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0.04em;
	opacity: 0;
	transform: translateY(28px);
	animation: tksFadeUp 0.8s ease 0.5s forwards;
}

.tks-single-content-section {
	position: relative;
	padding: 110px 40px 120px;
	background: linear-gradient(180deg, #f7f9fc 0%, #fff 24%, #fff 100%);
}

.tks-single-content-section__inner {
	width: min(920px, 100%);
	margin: 0 auto;
}

.tks-single-eyecatch {
	position: relative;
	margin: -260px 0 56px;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(19, 58, 122, 0.16);
	overflow: hidden;
}

.tks-single-eyecatch img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.tks-single-content {
	position: relative;
	padding: 58px 62px;
	background: #fff;
	border: 1px solid rgba(19, 58, 122, 0.12);
	border-radius: 24px;
	box-shadow: 0 18px 46px rgba(19, 58, 122, 0.08);
}

.tks-single-content > *:first-child {
	margin-top: 0;
}

.tks-single-content > *:last-child {
	margin-bottom: 0;
}

.tks-single-content p {
	margin: 0 0 1.8em;
	font-size: 16px;
	font-weight: 600;
	line-height: 2.1;
	letter-spacing: 0.03em;
}

.tks-single-content h2 {
	position: relative;
	margin: 2.6em 0 1em;
	padding-left: 18px;
	font-size: clamp(24px, 2.5vw, 34px);
	font-weight: 900;
	line-height: 1.45;
	letter-spacing: 0.04em;
}

.tks-single-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 6px;
	height: calc(100% - 12px);
	background: linear-gradient(180deg, #5aa4e8 0%, #174f9f 100%);
	border-radius: 999px;
}

.tks-single-content h3 {
	margin: 2.2em 0 0.9em;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: 0.04em;
}

.tks-single-content ul,
.tks-single-content ol {
	margin: 1.4em 0 1.8em;
	padding-left: 1.4em;
}

.tks-single-content li {
	margin-top: 0.6em;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.9;
	letter-spacing: 0.03em;
}

.tks-single-content a {
	color: #2f72b8;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tks-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.tks-single-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 38px;
}

.tks-single-nav a {
	position: relative;
	display: block;
	min-height: 104px;
	padding: 24px 26px;
	color: #111;
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(19, 58, 122, 0.12);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(19, 58, 122, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tks-single-nav a:hover {
	transform: translateY(-4px);
	border-color: rgba(47, 114, 184, 0.28);
	box-shadow: 0 20px 44px rgba(19, 58, 122, 0.12);
}

.tks-single-nav span {
	display: block;
	margin-bottom: 10px;
	color: #2f72b8;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.1em;
}

.tks-single-nav strong {
	display: block;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.7;
	letter-spacing: 0.03em;
}

.tks-single-nav__next {
	text-align: right;
}

.tks-single-back {
	margin-top: 34px;
	text-align: center;
}

.tks-single-back a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 300px;
	min-height: 54px;
	padding: 0 34px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	background: linear-gradient(90deg, #5aa4e8 0%, #174f9f 100%);
	border-radius: 999px;
	box-shadow: 0 16px 34px rgba(47, 114, 184, 0.24);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.tks-single-back a:hover {
	transform: translateY(-3px);
	box-shadow: 0 22px 44px rgba(47, 114, 184, 0.32);
	filter: brightness(1.06);
}

.tks-single-related {
	position: relative;
	padding: 0 40px 120px;
	background: #fff;
}

.tks-single-related__inner {
	width: min(1120px, 100%);
	margin: 0 auto;
}

.tks-single-related__heading {
	margin-bottom: 34px;
}

.tks-single-related__heading h2 {
	position: relative;
	display: inline-block;
	margin: 0;
	padding-left: 18px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: 0.04em;
}

.tks-single-related__heading h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 6px;
	height: calc(100% - 8px);
	background: linear-gradient(180deg, #5aa4e8 0%, #174f9f 100%);
	border-radius: 999px;
}

.tks-single-related__heading div {
	margin-top: 8px;
	color: #2f72b8;
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.12em;
}

.tks-single-related__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.tks-single-related__item a {
	display: block;
	height: 100%;
	color: #111;
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(19, 58, 122, 0.12);
	border-radius: 18px;
	box-shadow: 0 18px 46px rgba(19, 58, 122, 0.08);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tks-single-related__item a:hover {
	transform: translateY(-5px);
	border-color: rgba(47, 114, 184, 0.28);
	box-shadow: 0 24px 58px rgba(19, 58, 122, 0.14);
}

.tks-single-related__thumb {
	aspect-ratio: 16 / 10;
	background: #e8eef5;
	overflow: hidden;
}

.tks-single-related__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.tks-single-related__item a:hover .tks-single-related__thumb img {
	transform: scale(1.06);
}

.tks-single-related__noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: rgba(47, 114, 184, 0.42);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.12em;
	background: linear-gradient(135deg, #f7fbff 0%, #edf5fc 58%, #e5f0fa 100%);
}

.tks-single-related__body {
	padding: 22px 22px 24px;
}

.tks-single-related__body time {
	display: block;
	margin-bottom: 12px;
	color: rgba(0, 0, 0, 0.58);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.tks-single-related__body h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.6;
	letter-spacing: 0.03em;
}

@media (max-width: 959px) {
	.tks-single-hero {
		min-height: auto;
		padding: 150px 24px 96px;
	}

	.tks-single-hero__meta {
		margin-bottom: 20px;
	}

	.tks-single-hero__title {
		font-size: 30px;
		line-height: 1.45;
	}

	.tks-single-content-section {
		padding: 74px 20px 86px;
	}

	.tks-single-content-section__inner {
		width: 100%;
	}

	.tks-single-eyecatch {
		margin: -120px 0 34px;
		border-radius: 18px;
	}

	.tks-single-content {
		padding: 32px 22px;
		border-radius: 18px;
	}

	.tks-single-content p {
		font-size: 14px;
		line-height: 2;
	}

	.tks-single-content h2 {
		font-size: 23px;
	}

	.tks-single-content h3 {
		font-size: 20px;
	}

	.tks-single-nav {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 30px;
	}

	.tks-single-nav__next {
		text-align: left;
	}

	.tks-single-back a {
		width: 100%;
		min-width: 0;
	}

	.tks-single-related {
		padding: 0 20px 86px;
	}

	.tks-single-related__list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.tks-single-related__heading {
		margin-bottom: 28px;
	}
}