.post-content .kochi-top-news {
	--kochi-top-news-tab-active-text-color: #fff;
	--kochi-top-news-tab-active-background-color: #004ea2;
	--kochi-top-news-tab-content-border-color: #d4d4d4;
}

[data-theme='blue-theme'] .post-content .kochi-top-news,
.post-content [data-theme='blue-theme'] .kochi-top-news {
	--kochi-top-news-tab-active-text-color: #004ea2;
	--kochi-top-news-tab-active-background-color: #e1efff;
	--kochi-top-news-tab-content-border-color: #4f92d9;
}

[data-theme='black-theme'] .post-content .kochi-top-news,
.post-content [data-theme='black-theme'] .kochi-top-news {
	--kochi-top-news-tab-active-text-color: #000;
	--kochi-top-news-tab-active-background-color: #f8f8f8;
	--kochi-top-news-tab-content-border-color: #737373;
}

.post-content .kochi-top-news {
	display: grid;
	position: relative;
	z-index: 1;
}

.post-content .kochi-top-news .kochi-top-news-header {
	display: grid;
}

.post-content .kochi-top-news .kochi-top-news-header > .kochi-top-news-title {
	margin-block: 0;
	padding-inline-start: 0;
	border-inline-start: 0;
	display: grid;
	grid-template-columns: 8px 1fr;
	color: var(--text-color);
	font-weight: 700;
}

.post-content .kochi-top-news .kochi-top-news-header > .kochi-top-news-title::before {
	content: '';
	border-radius: 8px;
	width: 8px;
	height: 100%;
	background-color: #00a5e3;
}

.post-content .kochi-top-news .kochi-top-news-header > p {
	padding-block: 0;
	color: var(--text-color);
	font-size: var(--font-size-small);
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control {
	overflow-y: auto;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul {
	margin-inline-start: -1px;
	padding-block: 0;
	padding-inline-start: 0;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	position: relative;
	z-index: 1;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 1px;
	background-color: var(--kochi-top-news-tab-active-background-color);
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li {
	flex-shrink: 0;
	padding-block: 0;
	padding-inline-start: 0;
	display: flex;
	align-items: flex-end;
	line-height: 1.5714285714;
	font-size: var(--font-size-small);
	position: relative;
	z-index: 1;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li::before {
	content: '';
	box-sizing: content-box;
	position: relative;
	top: auto;
	bottom: 0;
	left: 0;
	display: block;
	width: 1px;
	height: calc(1lh + 2px);
	background-color: transparent;
	translate: 0;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a {
	border: 1px solid var(--element-anchor-color);
	border-top-right-radius: 8px;
	border-top-left-radius: 8px;
	display: block;
	color: var(--text-color);
	font-feature-settings: 'pwid' on;
	font-weight: 700;
	text-decoration: none;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a:hover,
.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a:active,
.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a:focus-visible {
	color: var(--kochi-top-news-tab-active-text-color);
	background-color: var(--kochi-top-news-tab-active-background-color);
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a.is-active {
	border-color: var(--kochi-top-news-tab-active-background-color);
	color: var(--kochi-top-news-tab-active-text-color);
	background-color: var(--kochi-top-news-tab-active-background-color);
	cursor: default;
	pointer-events: none;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content {
	display: none;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content.is-active {
	display: block;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul {
	padding-block: 0;
	padding-inline-start: 0;
	border-block-start: 1px solid var(--kochi-top-news-tab-content-border-color);
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li {
	padding-block: 0;
	padding-inline-start: 0;
	border-block-end: 1px solid var(--kochi-top-news-tab-content-border-color);
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li::before {
	display: none;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a {
	display: grid;
	align-items: center;
	color: var(--text-color);
	text-decoration: none;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content {
	display: grid;
	grid-template-columns: auto 1fr;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-date {
	font-size: var(--font-size-small);
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-terms > ul {
	padding-block: 0;
	padding-inline-start: 0;
	display: flex;
	align-items: flex-start;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-terms > ul > li {
	padding-block: 0;
	padding-inline-start: 0;
	color: var(--element-anchor-color);
	font-size: var(--font-size-small);
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-terms > ul > li::before {
	display: none;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-title {
	grid-column: 1/-1;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-weight: 700;
	overflow: hidden;
	transition: color 300ms ease-out;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a::after {
	content: '';
	display: block;
	-webkit-mask-image: url(../images/icon/arrow-right.svg);
	mask-image: url(../images/icon/arrow-right.svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	background-color: var(--element-anchor-color);
	transition: left 300ms ease-out;
	position: relative;
	left: 0;
	z-index: 1;
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a:hover .kochi-top-news-list-item-content .kochi-top-news-list-item-title,
.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a:active .kochi-top-news-list-item-content .kochi-top-news-list-item-title,
.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a:focus-visible .kochi-top-news-list-item-content .kochi-top-news-list-item-title {
	color: var(--element-anchor-color);
}

.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a:hover::after,
.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a:active::after,
.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a:focus-visible::after {
	left: 8px;
}

.post-content .kochi-top-news .kochi-top-news-link .wp-block-buttons {
	padding-block: 0;
}

@media screen and (max-width: 1024px) {

	.post-content .kochi-top-news {
		margin-block: 40px;
		gap: 16px;
	}

	.post-content .kochi-top-news .kochi-top-news-header > .kochi-top-news-title {
		-moz-column-gap: 12px;
		column-gap: 12px;
		font-size: var(--font-size-h2-sp);
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul {
		-moz-column-gap: 2px;
		column-gap: 2px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li::before {
		padding-block: 12px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a {
		padding-block: 8px;
		padding-inline: 16px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a.is-active {
		padding-block: 12px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents {
		padding-block: 8px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a {
		padding-block: 16px;
		padding-inline: 12px;
		grid-template-columns: auto 18px;
		gap: 8px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content {
		gap: 8px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-terms > ul {
		gap: 8px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-title {
		font-size: var(--font-size-p-sp);
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a::after {
		width: 18px;
		height: 18px;
	}

	.post-content .kochi-top-news .kochi-top-news-link .wp-block-buttons {
		justify-content: center;
	}
}

@media screen and (min-width: 1025px) {

	.post-content .kochi-top-news {
		margin-block: 80px;
		grid-template-columns: 32% auto;
		grid-template-rows: auto 1fr;
		gap: 24px;
	}

	.post-content .kochi-top-news .kochi-top-news-header {
		grid-column: 1/2;
		grid-row: 1/2;
		gap: 24px;
	}

	.post-content .kochi-top-news .kochi-top-news-header > .kochi-top-news-title {
		-moz-column-gap: 24px;
		column-gap: 24px;
		font-size: var(--font-size-h2-pc);
	}

	.post-content .kochi-top-news .kochi-top-news-tabs {
		grid-column: 2/-1;
		grid-row: 1/-1;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control {
		padding-block: 24px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul {
		-moz-column-gap: 4px;
		column-gap: 4px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li::before {
		padding-block: 16px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a {
		padding-block: 12px;
		padding-inline: 24px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control > ul > li > a.is-active {
		padding-block: 16px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents {
		padding-block: 12px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a {
		padding-block: 24px;
		padding-inline: 24px;
		grid-template-columns: auto 24px;
		gap: 16px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content {
		gap: 16px 24px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-terms > ul {
		gap: 8px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a .kochi-top-news-list-item-content .kochi-top-news-list-item-title {
		font-size: var(--font-size-p-pc);
	}

	.post-content .kochi-top-news .kochi-top-news-link {
		grid-column: 1/2;
		grid-row: 2/-1;
		display: grid;
		grid-template-rows: auto 1fr;
		row-gap: 24px;
	}

	.post-content .kochi-top-news .kochi-top-news-link::after {
		content: '';
		background-image: url(../images/top-news/illustration.png);
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center bottom;
	}
}

@media screen and (max-width: 767px) {

	.post-content .kochi-top-news .kochi-top-news-header {
		row-gap: 16px;
	}

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-control {
		padding-block-end: 8px;
	}

	.post-content .kochi-top-news .kochi-top-news-link .wp-block-button {
		width: 100%;
	}
}

@media screen and (max-width: 1024px) and (min-width: 768px) {

	.post-content .kochi-top-news .kochi-top-news-header {
		grid-template-columns: auto 1fr;
		-moz-column-gap: 40px;
		column-gap: 40px;
		align-items: center;
	}
}

@media screen and (min-width: 768px) {

	.post-content .kochi-top-news .kochi-top-news-tabs .kochi-top-news-tab-contents .kochi-top-news-tab-content > ul > li > a::after {
		width: 24px;
		height: 24px;
	}
}
