.chikuho-portal-page .frame {
	background: #fff;
}

.portal-page {
	--portal-cyan: #58c7e7;
	--portal-cyan-dark: #0f87ad;
	--portal-ink: #101820;
	--portal-muted: #5a6872;
	--portal-line: #dbe7eb;
	--portal-soft: #f1f8fa;
	min-height: 70vh;
	padding-bottom: 96px;
	background: #fff;
	color: var(--portal-ink);
	font-family: 'Noto Sans JP', system-ui, sans-serif;
}

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

.portal-archive-head {
	padding: 58px 0 38px;
	border-bottom: 1px solid var(--portal-line);
	background: var(--portal-soft);
}

.portal-eyebrow {
	margin: 0 0 10px;
	color: var(--portal-cyan-dark);
	font: 800 11px/1.4 'Inter', sans-serif;
}

.portal-archive-head h1,
.portal-single-title h1 {
	margin: 0;
	letter-spacing: 0;
}

.portal-archive-head h1 {
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.25;
}

.portal-archive-head p:last-child {
	max-width: 680px;
	margin: 14px 0 0;
	color: var(--portal-muted);
	font-size: 14px;
	line-height: 1.85;
}

.portal-filter {
	display: flex;
	gap: 8px;
	padding: 22px 0 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.portal-filter::-webkit-scrollbar {
	display: none;
}

.portal-filter a {
	flex: 0 0 auto;
	padding: 8px 13px;
	border: 1px solid var(--portal-line);
	border-radius: 4px;
	background: #fff;
	color: var(--portal-ink);
	font-size: 12px;
	font-weight: 700;
}

.portal-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	padding: 40px 0 64px;
}

.portal-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	border: 1px solid var(--portal-line);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	color: inherit;
}

.portal-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--portal-soft);
}

.portal-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.portal-card-media--empty {
	display: grid;
	place-items: center;
	color: var(--portal-cyan-dark);
	font-size: 38px;
	font-weight: 800;
}

.portal-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.portal-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 9px;
	color: var(--portal-cyan-dark);
	font-size: 10px;
	font-weight: 800;
}

.portal-card h2,
.portal-card h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	letter-spacing: 0;
}

.portal-card p {
	margin: 10px 0 0;
	color: var(--portal-muted);
	font-size: 12px;
	line-height: 1.75;
}

.portal-card-link {
	display: block;
	margin-top: auto;
	padding-top: 15px;
	color: var(--portal-cyan-dark);
	font-size: 11px;
	font-weight: 800;
}

.portal-empty {
	grid-column: 1 / -1;
	padding: 44px 20px;
	border-top: 1px solid var(--portal-line);
	border-bottom: 1px solid var(--portal-line);
	color: var(--portal-muted);
	text-align: center;
}

.portal-pagination {
	grid-column: 1 / -1;
	padding-top: 16px;
}

.portal-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
}

.portal-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--portal-line);
	color: var(--portal-ink);
}

.portal-pagination .current {
	border-color: var(--portal-cyan-dark);
	background: var(--portal-cyan-dark);
	color: #fff;
}

.portal-single-hero {
	padding: 34px 0 0;
}

.portal-single-media {
	width: min(100%, 1180px);
	margin: 0 auto;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: var(--portal-soft);
}

.portal-single-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.portal-single-title {
	width: min(calc(100% - 40px), 900px);
	margin: 0 auto;
	padding: 34px 0 30px;
}

.portal-single-title h1 {
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.35;
}

.portal-single-title > p:last-child {
	margin: 16px 0 0;
	color: var(--portal-muted);
	font-size: 15px;
	line-height: 1.9;
}

.portal-single-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	width: min(calc(100% - 40px), 900px);
	margin: 0 auto;
	padding: 0 0 70px;
}

.portal-content {
	min-width: 0;
	font-size: 16px;
	line-height: 2;
}

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

.portal-content h2 {
	margin: 2.2em 0 .8em;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--portal-cyan);
	font-size: 24px;
	line-height: 1.55;
	letter-spacing: 0;
}

.portal-content h3 {
	margin: 2em 0 .7em;
	font-size: 19px;
	letter-spacing: 0;
}

.portal-content img {
	max-width: 100%;
	height: auto;
}

.portal-facts {
	align-self: start;
	border-top: 3px solid var(--portal-cyan-dark);
	background: var(--portal-soft);
}

.portal-facts h2 {
	margin: 0;
	padding: 18px 18px 10px;
	font-size: 17px;
	letter-spacing: 0;
}

.portal-facts dl {
	margin: 0;
	padding: 0 18px 18px;
}

.portal-facts dl > div {
	padding: 11px 0;
	border-bottom: 1px solid var(--portal-line);
}

.portal-facts dt {
	margin-bottom: 4px;
	color: var(--portal-muted);
	font-size: 10px;
	font-weight: 800;
}

.portal-facts dd {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.portal-facts a {
	color: var(--portal-cyan-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.portal-related {
	padding: 44px 0 64px;
	border-top: 1px solid var(--portal-line);
	background: var(--portal-soft);
}

.portal-related h2 {
	margin: 0 0 20px;
	font-size: 24px;
	letter-spacing: 0;
}

@media (max-width: 920px) {
	.portal-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.portal-single-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}
}

@media (max-width: 600px) {
	.portal-wrap,
	.portal-single-title,
	.portal-single-grid {
		width: min(calc(100% - 32px), 100%);
	}

	.portal-archive-head {
		padding: 38px 0 28px;
	}

	.portal-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding-top: 26px;
	}

	.portal-card {
		flex-direction: row;
	}

	.portal-card-media {
		width: 38%;
		min-height: 150px;
		aspect-ratio: auto;
		flex: 0 0 auto;
	}

	.portal-card-body {
		padding: 14px;
	}

	.portal-card h2,
	.portal-card h3 {
		font-size: 15px;
	}

	.portal-card p {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.portal-single-hero {
		padding-top: 0;
	}

	.portal-single-media {
		aspect-ratio: 4 / 3;
	}

	.portal-single-title {
		padding: 26px 0 24px;
	}

	.portal-single-title h1 {
		font-size: 28px;
	}

	.portal-content {
		font-size: 15px;
		line-height: 1.95;
	}
}
