/* ================================================
   ARTICLE SLIDER — 関連記事 / 最新記事スライダー
   Sumoデザインシステム準拠 (Cormorant Garamond + Inter)
   ================================================ */

/* ── セクション全体 ── */
.sumo-article-slider {
	padding: 5rem 0 4rem;
	background-color: #FAF8F2;
	overflow: clip;
	/* Waypoint .animated { opacity:0 } の干渉を回避 */
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

.sumo-article-slider__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
	position: relative;
}

/* ── ヘッダー（タイトル + View All リンク） ── */
.sumo-article-slider__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 2.4rem;
	gap: 16px;
}

.sumo-article-slider__title {
	font-family: "Cormorant Garamond", serif;
	font-size: 2.8rem;
	font-weight: 600;
	color: #222;
	margin: 0;
	line-height: 1.2;
}

.sumo-article-slider__link {
	font-family: "Inter", sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	color: #ED6D3C;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
	flex-shrink: 0;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sumo-article-slider__link:hover {
	opacity: 0.7;
}

/* ── Swiper コンテナ ── */
.sumo-article-slider .swiper {
	overflow: visible;
	padding: 8px 0 16px;
	margin: -8px 0 -16px;
}

/* Swiper未初期化時のフォールバック表示 */
.sumo-article-slider .swiper:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	gap: 16px;
	padding-bottom: 8px;
}

.sumo-article-slider .swiper:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 75%;
	max-width: 300px;
	scroll-snap-align: start;
}

@media (min-width: 640px) {
	.sumo-article-slider .swiper:not(.swiper-initialized) .swiper-slide {
		flex: 0 0 45%;
	}
}

@media (min-width: 960px) {
	.sumo-article-slider .swiper:not(.swiper-initialized) .swiper-slide {
		flex: 0 0 30%;
	}
}

.sumo-article-slider .swiper.swiper-initialized {
	overflow: visible;
}

.sumo-article-slider .swiper-initialized .swiper-wrapper {
	align-items: stretch;
}

.sumo-article-slider .swiper-initialized .swiper-slide {
	height: auto;
}


/* ── 記事カード ── */
.sumo-article-card {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit !important;
	background: #FFF;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #E5E0D8;
	height: 100%;
	transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
				border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
				transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sumo-article-card:hover {
	border-color: #DED5C3;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Sumo グローバルスタイル干渉オーバーライド */
a.sumo-article-card,
a.sumo-article-card:hover,
.content a.sumo-article-card,
.content a.sumo-article-card:hover {
	text-decoration: none !important;
	color: inherit !important;
	opacity: 1 !important;
	background-image: none !important;
	padding-right: 0 !important;
	border-bottom: none !important;
}


/* ── カード画像 ── */
.sumo-article-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background-color: #F0EDE8;
	flex-shrink: 0;
}

.sumo-article-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sumo-article-card:hover .sumo-article-card__img {
	transform: scale(1.06);
}

.sumo-article-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #F0EDE8;
	color: #CCCCCC;
}


/* ── カテゴリーバッジ ── */
.sumo-article-card__badge {
	position: absolute;
	bottom: 8px;
	left: 8px;
	background-color: rgba(0, 0, 0, 0.7);
	color: #FFF;
	padding: 3px 8px;
	font-family: "Inter", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 3px;
	letter-spacing: 0.03em;
	line-height: 1.4;
	z-index: 2;
}


/* ── カード本文 ── */
.sumo-article-card__body {
	padding: 14px 16px 16px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.sumo-article-card__title {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.7rem;
	font-weight: 600;
	color: #222;
	line-height: 1.3;
	margin: 0 0 6px 0;
	padding: 0;
	border: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sumo-article-card__date {
	font-family: "Inter", sans-serif;
	font-size: 1.1rem;
	color: #999;
	letter-spacing: 0.03em;
	margin-top: auto;
}


/* ── Swiper ナビゲーション矢印 ── */
.sumo-article-slider .swiper-button-next,
.sumo-article-slider .swiper-button-prev {
	color: #222;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: absolute;
	top: 40%;
	z-index: 10;
	cursor: pointer;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
				box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sumo-article-slider .swiper-button-next:hover,
.sumo-article-slider .swiper-button-prev:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sumo-article-slider .swiper-button-next::after,
.sumo-article-slider .swiper-button-prev::after {
	font-size: 14px;
	font-weight: 700;
}

.sumo-article-slider .swiper-button-next {
	right: -8px;
}

.sumo-article-slider .swiper-button-prev {
	left: -8px;
}


/* ── Swiper ページネーション ── */
.sumo-article-slider .swiper-pagination {
	position: relative;
	margin-top: 2rem;
	bottom: auto !important;
}

.sumo-article-slider .swiper-pagination-bullet {
	background-color: #DED5C3;
	opacity: 1;
	width: 8px;
	height: 8px;
	transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
				transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sumo-article-slider .swiper-pagination-bullet-active {
	background-color: #ED6D3C;
	transform: scale(1.2);
}


/* ── レスポンシブ ── */

/* モバイル: 矢印非表示、タイトル小さく */
@media (max-width: 639px) {
	.sumo-article-slider {
		padding: 4rem 0 3rem;
	}

	.sumo-article-slider__title {
		font-size: 2.4rem;
	}

	.sumo-article-slider .swiper-button-next,
	.sumo-article-slider .swiper-button-prev {
		display: none;
	}
}

/* タブレット以上: カード本文少し大きく */
@media (min-width: 640px) {
	.sumo-article-card__title {
		font-size: 1.8rem;
	}

	.sumo-article-card__body {
		padding: 16px 18px 18px;
	}
}

/* デスクトップ: セクションタイトル大きく */
@media (min-width: 960px) {
	.sumo-article-slider__title {
		font-size: 3.2rem;
	}

	.sumo-article-slider .swiper-button-next {
		right: -12px;
	}

	.sumo-article-slider .swiper-button-prev {
		left: -12px;
	}
}
