/* main-japan */

.btn-gray {
	background: #7f7f7f;
	color: #fff;
	border: none !important;
	border: 2px solid transparent !important;
	display: inline-block;
	margin-top: 5px;
	z-index: 5;
}

.target-fix {
	position: relative;
	top: -150px;
	display: block;
	height: 0;
	overflow: hidden;
}


.main-japan {
	padding: 6em 0 0 0;
	/* background-color: #eaebf6; */
	background: url(../images/bg-square-shop.png) repeat-x, linear-gradient(0deg, #ffff 40%, #f4f4f7 100%);
	/* background: url(../images/bg-light.png), url(../images/bg-square-shop.png) repeat-x, linear-gradient(0deg, #ffff 40%, #f4f4f7 100% ); */
}

.bg-japan-3 {
	width: 100%;
	margin-top: -33rem;
}


.warning {
	width: 20%;
}



@media screen and (max-width: 992px) {
	.main-japan h4 {
		padding-right: 30px;
		padding-left: 30px;
	}

	.warning {
		width: 50%;
	}
}

@media screen and (max-width: 768px) {
	.main-japan {
		background-image: url(../images/bg-japan_m.png);
	}
}

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

	.warning {
		width: 80% !important;
	}

	.main-japan {
		padding: 4em 0 0 0;
		background-image: url(../images/bg-japan_m.png);
	}
}


/* 覆蓋 精選通路 swiper start */
/* 精選通路優惠 Swiper：獨立 class 版本
   說明：此檔只放精選通路客製樣式；Swiper 核心 .swiper-container/.swiper-wrapper/.swiper-slide 仍需沿用原本 swiper.css。 */

.selected-channel-swiper-wrap {
	position: relative;
	/* max-width: 1332px;
	margin: 0 auto; */
}

.selected-channel-swiper {
	/* 底部空間加大，讓頁簽點點可以往下移 */
	padding: 0 0 46px;
	overflow: hidden;
	box-sizing: border-box;
}

.selected-channel-swiper .swiper-wrapper {
	padding: 0;
}

.selected-channel-slide {
	overflow: hidden;
	position: relative;
}

.selected-channel-card {
	position: relative;
	text-align: center;
	padding: 20px 15px;
}

.selected-channel-card img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* 若原本 .title_new 有額外 NEW 標籤樣式，可移到這裡處理 */
.selected-channel-card--new {
	position: relative;
}

.selected-channel-btn-wrap {
	text-align: center;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	bottom: 10%;
}

.selected-channel-btn {
	display: inline-block;
	text-decoration: none;
	color: #fff;
	background-color: #675a83;
	border: 1px solid #675a83;
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (max-width: 992px) {
	.selected-channel-btn-wrap {
		bottom: 8%;
	}
}

@media (max-width: 576px) {
	.selected-channel-btn-wrap {
		bottom: 13%;
	}
}



/* 精選通路專用箭頭，避免覆蓋原網站 .swiper-button-prev / .swiper-button-next
   ★ 箭頭改放在 .swiper-container 內部，避免外層 overflow:hidden 裁切            */
.selected-channel-swiper-prev,
.selected-channel-swiper-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 27px;
	height: 44px;
	z-index: 20;
	cursor: pointer;
	background-size: 27px 44px;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 1;
}

.selected-channel-swiper-prev {
	/* 貼左邊，不用負值就不會被父層 overflow:hidden 裁切 */
	left: 0;
	background-image: url("../images/arrow_left.svg");
}

.selected-channel-swiper-next {
	/* 貼右邊 */
	right: 0;
	background-image: url("../images/arrow_right.svg");
}

.selected-channel-swiper-prev.swiper-button-disabled,
.selected-channel-swiper-next.swiper-button-disabled {
	opacity: 0.35;
	cursor: auto;
	pointer-events: none;
}

/* 手機版精選通路箭頭：縮小尺寸，改放在 swiper 容器上下居中 */
@media (max-width: 575.98px) {

	.selected-channel-swiper-prev,
	.selected-channel-swiper-next {
		width: 22px;
		height: 24px;
		background-size: 22px 36px;
		/* 讓箭頭稍微往內，避免與卡片內容重疊太多 */
		left: 2px;
	}

	.selected-channel-swiper-next {
		left: auto;
		right: 2px;
	}
}

/* 精選通路專用 pagination */
.selected-channel-swiper-pagination {
	position: absolute;
	left: 0;
	/* 數字越小越靠下；若想再更低可改成 0 或 -4px */
	bottom: 4px;
	width: 100%;
	text-align: center;
	z-index: 10;
	transition: 300ms opacity;
	transform: translate3d(0, 0, 0);
}

.selected-channel-swiper-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	display: inline-block;
	margin: 0 4px;
	border-radius: 100%;
	background: #000;
	opacity: 0.2;
}

.selected-channel-swiper-pagination .swiper-pagination-bullet-active {
	opacity: 1;
	background: #413c58;
}

/* 覆蓋 精選通路 swiper end -------- */

/* 桌面 4 欄並排：wrap 留左右 padding 給箭頭，swiper 本身不加 padding
   → Swiper 寬度 = 容器寬度，計算出剛好 4 張，overflow:hidden 乾淨裁切 */
@media (min-width: 768px) {

	/* 讓箭頭有空間，不壓到卡片 */
	.selected-channel-swiper-wrap {
		padding: 0 40px;
	}

	/* swiper 本身不加橫向 padding，讓 Swiper 正確計算 4 欄寬度 */
	.selected-channel-swiper {
		padding-left: 0;
		padding-right: 0;
		overflow: hidden;
		/* 確保裁切，不露出第 5 張 */
	}

	/* 箭頭移到 wrap 層定位（wrap 是 position:relative） */
	.selected-channel-swiper-prev {
		left: 0;
	}

	.selected-channel-swiper-next {
		right: 0;
	}

	/* 卡片不需要額外 padding，圖片佔滿 slide 寬 */
	.selected-channel-card {
		padding: 0;
	}
}