.post-content .kochi-links-with-image {
	--kochi-links-with-image-wrapper-background-color: #f0f0f0;
	--kochi-links-with-image-link-border-color: #fff;
	--kochi-links-with-image-link-border-hover-color: #004ea2;
	--kochi-links-with-image-link-background-color: #fff;
	--kochi-links-with-image-link-icon-color: #004ea2;
}

[data-theme='blue-theme'] .post-content .kochi-links-with-image,
.post-content [data-theme='blue-theme'] .kochi-links-with-image {
	--kochi-links-with-image-wrapper-background-color: #003d7f;
	--kochi-links-with-image-link-border-color: #e1efff;
	--kochi-links-with-image-link-border-hover-color: #e1efff;
	--kochi-links-with-image-link-background-color: #e1efff;
	--kochi-links-with-image-link-icon-color: #004ea2;
}

[data-theme='black-theme'] .post-content .kochi-links-with-image,
.post-content [data-theme='black-theme'] .kochi-links-with-image {
	--kochi-links-with-image-wrapper-background-color: #1a1a1a;
	--kochi-links-with-image-link-border-color: #f8f8f8;
	--kochi-links-with-image-link-border-hover-color: #f8f8f8;
	--kochi-links-with-image-link-background-color: #f8f8f8;
	--kochi-links-with-image-link-icon-color: #000;
}

.post-content .kochi-links-with-image > ul {
	padding-block: 0;
	padding-inline-start: 0;
	display: grid;
}

.post-content .kochi-links-with-image > ul > li {
	padding-block: 0;
	padding-inline-start: 0;
	min-width: 0;
}

.post-content .kochi-links-with-image > ul > li::before {
	display: none;
}

.post-content .kochi-links-with-image > ul > li > a {
	border: 1px solid var(--kochi-links-with-image-link-border-color);
	border-radius: 16px;
	background-color: var(--kochi-links-with-image-link-background-color);
	display: grid;
	align-items: center;
	height: 100%;
	text-decoration: none;
}

.post-content .kochi-links-with-image > ul > li > a > .kochi-links-with-image-item-title {
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: #000;
	font-weight: 700;
	font-size: var(--font-size-small);
}

.post-content .kochi-links-with-image > ul > li > a::after {
	content: '';
	background-color: var(--kochi-links-with-image-link-icon-color);
	-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;
	transition: left 300ms ease-out;
	position: relative;
	left: 0;
	z-index: 1;
}

.post-content .kochi-links-with-image > ul > li > a:hover,
.post-content .kochi-links-with-image > ul > li > a:active,
.post-content .kochi-links-with-image > ul > li > a:focus-visible {
	border-color: var(--kochi-links-with-image-link-border-hover-color);
}

.post-content .kochi-links-with-image > ul > li > a:hover::after,
.post-content .kochi-links-with-image > ul > li > a:active::after,
.post-content .kochi-links-with-image > ul > li > a:focus-visible::after {
	left: 8px;
}

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

	.post-content .kochi-links-with-image > ul {
		row-gap: 8px;
	}
}

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

	.post-content .kochi-links-with-image > ul {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}
}

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

	.post-content .kochi-links-with-image > ul {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}

	.post-content .kochi-links-with-image > ul > li > a {
		padding-block: 24px;
		padding-inline: 24px;
		grid-template-columns: 44px auto 24px;
	}

	.post-content .kochi-links-with-image > ul > li > a > .kochi-links-with-image-item-title {
		padding-inline: 16px;
	}

	.post-content .kochi-links-with-image > ul > li > a::after {
		-webkit-mask-size: 24px 24px;
		mask-size: 24px 24px;
		width: 24px;
		height: 24px;
	}
}

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

	.post-content .kochi-links-with-image > ul > li > a {
		padding-block: 12px;
		padding-inline: 12px 16px;
		grid-template-columns: 44px auto 16px;
	}

	.post-content .kochi-links-with-image > ul > li > a > .kochi-links-with-image-item-title {
		padding-inline: 12px 8px;
	}

	.post-content .kochi-links-with-image > ul > li > a::after {
		-webkit-mask-size: 16px 16px;
		mask-size: 16px 16px;
		width: 16px;
		height: 16px;
	}
}
