@charset "utf-8";

/* home slider
========================================== */
.exampleWrap .splide__slide{padding: 0 20px 20px;}
.exampleWrap .splide__arrow {
	width: 40px;
	height: 40px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: transparent;
	border: none;
	cursor: pointer;
	border-radius: 0;
}

/* ← 左矢印 */
.exampleWrap .splide__arrow--prev {
	left: -60px;
	background-image: url('../images/arrow_prev.png');
}

/* → 右矢印 */
.exampleWrap .splide__arrow--next {
	right: -60px;
	background-image: url('../images/arrow_next.png');
}
/* デフォルトの矢印SVGを消す！ */
.exampleWrap .splide__arrow svg {display: none;}

@media screen and (max-width:1300px){
	.exampleWrap .splide__arrow--prev {left:0;}
	.exampleWrap .splide__arrow--next {right:0;}
	.exampleWrap .splide{padding: 0 60px;}
}

@media screen and (max-width:599px){
	.exampleWrap .splide{padding: 0 20px;}
	.exampleWrap .splide__arrow {width: 30px;height: 30px;}
}


/* postSlider
========================================== */
/* メインスライダー */
.postSlider{margin-bottom: 50px;}
.postSlider #main-slider {
	border-bottom: 1px solid #ddd;
	box-sizing: border-box;
	margin-bottom: 20px;
}

.postSlider #main-slider .splide__slide{
	margin-bottom: 0;
	height: 400px;
}

.postSlider #main-slider .splide__slide .img {
	position:relative;
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	transition-property: transform;
	display: flex;
	align-items: center;
}
.postSlider #main-slider .splide__slide .img:after{
	content: '';
	display: block;
	padding-top: 75%;
}
.postSlider #main-slider .splide__slide .img img{
	position: absolute;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	left: 50%;
	-webkit-transform: translate(-50%, 0);
	-moz-transform: translate(-50%, 0);
	transform: translate(-50%, 0);
}

/* サムネイル */
.postSlider .thumbImage {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 20px;
	flex-wrap: wrap;
}
.postSlider .thumbImage .thumb {
	position: relative;
	width: 100px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.3s;
}
.postSlider .thumbImage .thumb:before{
	display: block;
	padding-top: 100%;
	content: '';
}
.postSlider .thumbImage .thumb img{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	object-fit: cover;
	box-sizing: border-box;
	cursor: pointer;
}
.postSlider .thumbImage .thumb.is-active {
	opacity: 1;
	outline: 2px solid var(--color-primary);
}

@media screen and (max-width:840px){
	.postSlider #main-slider .splide__slide{
		padding:20px 10px;
		height: auto;
		aspect-ratio: 4/3;
	}
}
@media screen and (max-width:840px){
	.postSlider .thumbImage .thumb{width:calc((100% - 10px * 4)/5);}
}