/* ============================================================
   記事スライダーブロック
   基本的なカード見た目は Arkhe テーマの .p-postList が担当。
   ここではスライダーのレイアウト上書きと調整のみ行う。
   ============================================================ */

.acb-post-slider {
	position: relative;
}

/*
 * Arkhe テーマの .p-postList.-type-card には
 *   display:flex; flex-wrap:wrap; margin: 0 -0.75rem;
 * が定義されている。Swiper は flex-wrap:nowrap を前提とするため上書き。
 * ネガティブマージンも除去（wrapper にマージンがあると Swiper の
 * 位置計算がずれる。代わりに各スライドの padding はそのまま活かす）。
 */
.acb-post-slider .p-postList.-type-card {
	display: flex !important;
	flex-wrap: nowrap !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/*
 * Swiper で slidesPerView:'auto' を使う場合、スライド幅は
 * flex-basis ではなく width で制御する必要がある。
 * Arkhe グリッドと同じ列数になるようブレークポイントを合わせる。
 */
.acb-post-slider .swiper-slide {
	height: auto;
	width: 100%;            /* mobile: 1列 */
	flex-shrink: 0;
}

@media (min-width: 600px) {
	.acb-post-slider .swiper-slide {
		width: 50%;         /* tablet: 2列 */
	}
}

@media (min-width: 1000px) {
	.acb-post-slider .swiper-slide {
		width: 33.33%;      /* desktop: 3列 */
	}
}

/* カードリンク（= カード全体）が slide の高さいっぱいに伸びるように */
.acb-post-slider .p-postList__link {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* 本文エリアが余白を埋めるように */
.acb-post-slider .p-postList__body {
	flex: 1;
	display: flex;
	flex-direction: column;
}


/* ============================================================
   ナビゲーションボタン（Arkhe ark-block-slider__nav に合わせたデザイン）
   ============================================================ */

/* Swiper デフォルトの ::after 矢印アイコンを非表示（SVGを使うため） */
.acb-post-slider .swiper-button-prev::after,
.acb-post-slider .swiper-button-next::after {
	display: none;
}

/* ボタン共通スタイル */
.acb-post-slider .ark-block-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	color: #333;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.acb-post-slider .ark-block-slider__nav:hover {
	background: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

/* Swiper の disabled クラスが付いた場合は薄く */
.acb-post-slider .ark-block-slider__nav.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* 位置 */
.acb-post-slider .ark-block-slider__nav.-prev { left: .5rem; }
.acb-post-slider .ark-block-slider__nav.-next { right: .5rem; }

/* SVG アイコン */
.acb-post-slider .ark-block-slider__nav svg {
	width: 0.75rem;
	height: 0.75rem;
	fill: currentColor;
	display: block;
	flex-shrink: 0;
}

.acb-post-slider .ark-block-slider__nav {
	color: #333;
}


/* ============================================================
   ページネーション（ドット / 数字）
   ============================================================ */

/* ページネーションをスライダー下に配置 */
.acb-post-slider .swiper-pagination {
	position: static;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 0;
	line-height: 1;
}

/* ドット */
.acb-post-slider .swiper-pagination-bullet {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	opacity: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
	cursor: pointer;
	margin: 0;
}

.acb-post-slider .swiper-pagination-bullet:hover {
	background: #aaa;
}

.acb-post-slider .swiper-pagination-bullet-active {
	background: var(--swiper-pagination-color, var(--swiper-theme-color, #333));
	transform: scale(1.2);
}

/* 数字（fraction） */
.acb-post-slider .swiper-pagination-fraction {
	font-size: 0.85em;
	color: #666;
}

/* ページネーションがある場合はナビゲーションのtop位置を少しずらす */
.acb-post-slider:has(.swiper-pagination:not(.swiper-pagination-hidden)) .ark-block-slider__nav {
	top: calc(50% - 1.5rem);
}


/* ============================================================
   スコープコンテナブロック
   ============================================================ */

.acb-scope-container {
	/* テーマの block-container スタイルに委ねる */
}
