.post-content .kochi-top-sns {
	--kochi-top-sns-button-icon-color: #fff;
	--kochi-top-sns-button-background-color: #004ea2;
}

[data-theme='blue-theme'] .post-content .kochi-top-sns,
.post-content [data-theme='blue-theme'] .kochi-top-sns {
	--kochi-top-sns-button-icon-color: #000;
	--kochi-top-sns-button-background-color: #e1efff;
}

[data-theme='black-theme'] .post-content .kochi-top-sns,
.post-content [data-theme='black-theme'] .kochi-top-sns {
	--kochi-top-sns-button-icon-color: #000;
	--kochi-top-sns-button-background-color: #f8f8f8;
}

.post-content .kochi-top-sns .kochi-top-sns-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-sns .kochi-top-sns-title::before {
	content: '';
	border-radius: 8px;
	width: 8px;
	height: 100%;
	background-color: #00a5e3;
}

.post-content .kochi-top-sns .kochi-top-sns-items-wrapper {
	position: relative;
	z-index: 1;
}

.post-content .kochi-top-sns .kochi-top-sns-items-pc,
.post-content .kochi-top-sns .kochi-top-sns-buttons-pc {
	display: none;
}

.post-content .kochi-top-sns .kochi-top-sns-items-sp,
.post-content .kochi-top-sns .kochi-top-sns-buttons-sp {
	display: block;
}

.post-content .kochi-top-sns .kochi-top-sns-item {
	display: grid;
	height: auto;
}

.post-content .kochi-top-sns .kochi-top-sns-item > a {
	display: block;
	height: 100%;
	text-decoration: none;
	position: relative;
	z-index: 1;
}

.post-content .kochi-top-sns .kochi-top-sns-item > a img {
	aspect-ratio: 1/1;
	-o-object-fit: cover;
	object-fit: cover;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
}

.post-content .kochi-top-sns .kochi-top-sns-item > a .kochi-top-sns-item-text {
	padding-block: 0;
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	color: #fff;
	background-color: rgba(0, 78, 162, 0.9);
	font-weight: 700;
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease-out;
}

.post-content .kochi-top-sns .kochi-top-sns-item > a::after {
	content: '';
	width: 36px;
	height: 36px;
	-webkit-mask-size: 100%;
	mask-size: 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	background-color: #fff;
	position: absolute;
	z-index: 2;
}

.post-content .kochi-top-sns .kochi-top-sns-item > a.is-icon-facebook::after {
	-webkit-mask-image: url(../images/top-sns/icon/facebook.svg);
	mask-image: url(../images/top-sns/icon/facebook.svg);
}

.post-content .kochi-top-sns .kochi-top-sns-item > a.is-icon-instagram::after {
	-webkit-mask-image: url(../images/top-sns/icon/instagram.svg);
	mask-image: url(../images/top-sns/icon/instagram.svg);
}

.post-content .kochi-top-sns .kochi-top-sns-item > a:hover .kochi-top-sns-item-text,
.post-content .kochi-top-sns .kochi-top-sns-item > a:active .kochi-top-sns-item-text,
.post-content .kochi-top-sns .kochi-top-sns-item > a:focus-visible .kochi-top-sns-item-text {
	opacity: 1;
}

.post-content .kochi-top-sns .kochi-top-sns-button-prev,
.post-content .kochi-top-sns .kochi-top-sns-button-next {
	position: absolute;
	top: 50%;
	z-index: 1;
	translate: 0 -50%;
	border-radius: 100%;
	background-color: var(--kochi-top-sns-button-background-color);
	overflow: hidden;
	cursor: pointer;
	transition: opacity 300ms ease-out;
}

.post-content .kochi-top-sns .kochi-top-sns-button-prev::before,
.post-content .kochi-top-sns .kochi-top-sns-button-next::before {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background-color: var(--kochi-top-sns-button-icon-color);
	-webkit-mask-image: url(../images/icon/slide-arrow.svg);
	mask-image: url(../images/icon/slide-arrow.svg);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.post-content .kochi-top-sns .kochi-top-sns-button-prev:hover,
.post-content .kochi-top-sns .kochi-top-sns-button-prev:active,
.post-content .kochi-top-sns .kochi-top-sns-button-prev:focus-visible,
.post-content .kochi-top-sns .kochi-top-sns-button-next:hover,
.post-content .kochi-top-sns .kochi-top-sns-button-next:active,
.post-content .kochi-top-sns .kochi-top-sns-button-next:focus-visible {
	opacity: 0.8;
}

.post-content .kochi-top-sns .kochi-top-sns-button-prev.swiper-button-disabled,
.post-content .kochi-top-sns .kochi-top-sns-button-next.swiper-button-disabled {
	opacity: 0.2;
	cursor: default;
}

.post-content .kochi-top-sns .kochi-top-sns-button-next::before {
	transform: rotate(180deg);
}

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

	.post-content .kochi-top-sns {
		padding-block: 24px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-item {
		grid-template-columns: repeat(2, 1fr);
		gap: 1px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-item > a .kochi-top-sns-item-text {
		font-size: var(--font-size-h5-sp);
	}
}

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

	.post-content .kochi-top-sns {
		padding-block: 40px;
	}
}

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

	.post-content .kochi-top-sns {
		padding-block: 80px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-title {
		margin-block-end: 40px;
		-moz-column-gap: 24px;
		column-gap: 24px;
		font-size: var(--font-size-h2-pc);
	}

	.post-content .kochi-top-sns .kochi-top-sns-item > a .kochi-top-sns-item-text {
		font-size: var(--font-size-h5-pc);
	}

	.post-content .kochi-top-sns .kochi-top-sns-item > a::after {
		right: 16px;
		bottom: 16px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-button-prev,
	.post-content .kochi-top-sns .kochi-top-sns-button-next {
		width: 44px;
		height: 44px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-button-prev::before,
	.post-content .kochi-top-sns .kochi-top-sns-button-next::before {
		-webkit-mask-size: 24px 24px;
		mask-size: 24px 24px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-button-prev {
		left: -68px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-button-next {
		right: -68px;
	}
}

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

	.post-content .kochi-top-sns .kochi-top-sns-title {
		margin-block-end: 16px;
		-moz-column-gap: 12px;
		column-gap: 12px;
		font-size: var(--font-size-h2-sp);
	}

	.post-content .kochi-top-sns .kochi-top-sns-item > a::after {
		right: 8px;
		bottom: 8px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-button-prev,
	.post-content .kochi-top-sns .kochi-top-sns-button-next {
		width: 32px;
		height: 32px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-button-prev::before,
	.post-content .kochi-top-sns .kochi-top-sns-button-next::before {
		-webkit-mask-size: 12px 12px;
		mask-size: 12px 12px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-button-prev {
		left: -12px;
	}

	.post-content .kochi-top-sns .kochi-top-sns-button-next {
		right: -12px;
	}
}

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

	.post-content .kochi-top-sns .kochi-top-sns-items-pc,
	.post-content .kochi-top-sns .kochi-top-sns-buttons-pc {
		display: block;
	}

	.post-content .kochi-top-sns .kochi-top-sns-items-sp,
	.post-content .kochi-top-sns .kochi-top-sns-buttons-sp {
		display: none;
	}
}
