
/* KOYOMICHI Post Category Hub v0.1.0 */

.koyomichi-category-hub-active .site-main,
.koyomichi-category-hub-active main {
	min-width: 0;
}

.koy-cat-page {
	background:
		linear-gradient(180deg, #f7f8f6 0, #fbfbf9 320px, #fff 720px);
	color: #182534;
	padding: 0 0 72px;
}

.koy-cat-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.koy-cat-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	padding: 22px 0 10px;
	font-size: 12px;
	color: #6d7883;
}

.koy-cat-breadcrumb a {
	color: #526170;
	text-decoration: none;
}

.koy-cat-breadcrumb a:hover {
	text-decoration: underline;
}

.koy-cat-hero {
	position: relative;
	overflow: hidden;
	margin-top: 8px;
	padding: 44px 46px;
	border: 1px solid #e5e8e5;
	border-radius: 22px;
	background:
		radial-gradient(circle at 90% 18%, rgba(200, 151, 66, .13), transparent 28%),
		linear-gradient(135deg, #ffffff 0%, #faf9f5 100%);
	box-shadow: 0 12px 32px rgba(36, 53, 69, .06);
}

.koy-cat-hero::after {
	content: "";
	position: absolute;
	right: -42px;
	bottom: -78px;
	width: 240px;
	height: 240px;
	border: 34px solid rgba(35, 63, 88, .045);
	border-radius: 50%;
	pointer-events: none;
}

.koy-cat-kicker,
.koy-cat-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	color: #b17827;
}

.koy-cat-hero h1 {
	max-width: 800px;
	margin: 9px 0 14px;
	font-size: clamp(32px, 4.5vw, 52px);
	line-height: 1.18;
	letter-spacing: -.035em;
	color: #1e3347;
}

.koy-cat-description {
	max-width: 760px;
	font-size: 15px;
	line-height: 1.9;
	color: #536373;
}

.koy-cat-description p {
	margin: 0;
}

.koy-cat-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	font-size: 13px;
	font-weight: 700;
}

.koy-cat-meta span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 13px;
	border-radius: 999px;
	background: #edf2f5;
	color: #344e63;
}

.koy-cat-meta a {
	color: #284d6a;
	text-decoration: none;
}

.koy-cat-section {
	margin-top: 48px;
}

.koy-cat-section-heading {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 24px;
	margin-bottom: 20px;
	padding: 0 2px;
}

.koy-cat-section-heading h2 {
	margin: 5px 0 0;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.3;
	color: #1e3347;
}

.koy-cat-section-heading > p {
	max-width: 490px;
	margin: 0;
	color: #6c7780;
	font-size: 13px;
	line-height: 1.7;
	text-align: right;
}

.koy-cat-child-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.koy-cat-child-card {
	display: flex;
	flex-direction: column;
	min-height: 174px;
	padding: 22px;
	border: 1px solid #e0e5e7;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 7px 20px rgba(35, 54, 69, .045);
	color: inherit;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.koy-cat-child-card:hover {
	transform: translateY(-3px);
	border-color: #bac9d2;
	box-shadow: 0 14px 28px rgba(35, 54, 69, .085);
}

.koy-cat-child-card-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.koy-cat-child-name {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.45;
	color: #203d55;
}

.koy-cat-arrow {
	display: grid;
	place-items: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #eef3f6;
	color: #2a536f;
	font-weight: 800;
}

.koy-cat-child-card p {
	margin: 12px 0 14px;
	font-size: 13px;
	line-height: 1.75;
	color: #67747f;
}

.koy-cat-child-count {
	margin-top: auto;
	font-size: 12px;
	font-weight: 800;
	color: #9a6a28;
}

.koy-cat-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.koy-cat-post-card {
	overflow: hidden;
	margin: 0;
	border: 1px solid #e2e6e8;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(35, 54, 69, .055);
	transition: transform .18s ease, box-shadow .18s ease;
}

.koy-cat-post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(35, 54, 69, .09);
}

.koy-cat-post-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 1200 / 630;
	background: #e9eef1;
}

.koy-cat-post-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}

.koy-cat-post-card:hover .koy-cat-post-thumb img {
	transform: scale(1.025);
}

.koy-cat-post-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, #243f58, #355d78);
	color: rgba(255,255,255,.75);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .18em;
}

.koy-cat-post-body {
	display: flex;
	flex-direction: column;
	min-height: 250px;
	padding: 18px 19px 19px;
}

.koy-cat-post-info {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 9px;
	font-size: 11px;
	color: #7b8790;
}

.koy-cat-post-info span {
	color: #9a6a28;
	font-weight: 700;
}

.koy-cat-post-body h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	letter-spacing: -.015em;
}

.koy-cat-post-body h3 a {
	color: #1d3448;
	text-decoration: none;
}

.koy-cat-post-body h3 a:hover {
	color: #1e638b;
}

.koy-cat-post-excerpt {
	margin: 12px 0 18px;
	font-size: 13px;
	line-height: 1.8;
	color: #68747f;
}

.koy-cat-readmore {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	font-size: 13px;
	font-weight: 800;
	color: #235a7c;
	text-decoration: none;
}

.koy-cat-readmore span {
	transition: transform .18s ease;
}

.koy-cat-readmore:hover span {
	transform: translateX(3px);
}

.koy-cat-pagination {
	margin-top: 38px;
}

.koy-cat-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
}

.koy-cat-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid #dce2e5;
	border-radius: 8px;
	background: #fff;
	color: #33546c;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.koy-cat-pagination .page-numbers.current {
	border-color: #284f6c;
	background: #284f6c;
	color: #fff;
}

.koy-cat-empty {
	padding: 48px 24px;
	border: 1px dashed #d7dee2;
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.koy-cat-empty h2 {
	margin: 0 0 8px;
	color: #263f53;
}

.koy-cat-empty p {
	margin: 0;
	color: #6d7881;
}

/* This custom archive intentionally owns the full content width; theme sidebar markup is not loaded. */
.koyomichi-category-hub-active .widget-area,
.koyomichi-category-hub-active #secondary {
	display: none;
}

@media (max-width: 960px) {
	.koy-cat-child-grid,
	.koy-cat-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.koy-cat-section-heading {
		display: block;
	}

	.koy-cat-section-heading > p {
		max-width: none;
		margin-top: 8px;
		text-align: left;
	}
}

@media (max-width: 640px) {
	.koy-cat-page {
		padding-bottom: 50px;
	}

	.koy-cat-container {
		width: min(100% - 28px, 1180px);
	}

	.koy-cat-breadcrumb {
		padding-top: 16px;
	}

	.koy-cat-hero {
		padding: 28px 22px;
		border-radius: 16px;
	}

	.koy-cat-hero h1 {
		font-size: 32px;
	}

	.koy-cat-description {
		font-size: 14px;
	}

	.koy-cat-section {
		margin-top: 38px;
	}

	.koy-cat-child-grid,
	.koy-cat-post-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.koy-cat-child-card {
		min-height: 0;
	}

	.koy-cat-post-body {
		min-height: 0;
	}

	.koy-cat-post-body h3 {
		font-size: 17px;
	}
}
