/* Instagramから投稿 - フロント表示スタイル */

.ign-media {
	margin: 1.6em 0;
	max-width: 620px;
}

.ign-media > img,
.ign-video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	background: #f2f2f2;
}

/* ===== Instagram 風カルーセル ===== */
.ign-carousel {
	position: relative;
}

.ign-carousel__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	border-radius: 14px;
	background: #000;
}

.ign-carousel__track::-webkit-scrollbar {
	display: none;
}

.ign-carousel__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: center;
	aspect-ratio: 1 / 1;
	background: #000;
}

.ign-carousel__slide img,
.ign-carousel__slide video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* 前後ボタン */
.ign-carousel__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #262626;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: opacity 0.2s ease;
}

.ign-carousel__btn:hover {
	background: #fff;
}

.ign-carousel__btn--prev {
	left: 10px;
}

.ign-carousel__btn--next {
	right: 10px;
}

.ign-carousel__btn[hidden] {
	display: none;
}

/* ドット */
.ign-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.ign-carousel__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #c7c7c7;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ign-carousel__dot.is-active {
	background: #3897f0;
	transform: scale(1.15);
}

.ign-ig-source {
	margin-top: 0.8em;
	font-size: 0.9em;
}

.ign-ig-source a {
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 600px) {
	.ign-carousel__btn {
		width: 30px;
		height: 30px;
		font-size: 18px;
	}
}
