@charset "utf-8";

/*---------------------------------------------
Top Style
---------------------------------------------*/
#top {
	line-height: 1.5;
}
#top .mainvisual .pc a {
	display: block;
	line-height: 1;
}
#top .mainvisual .pc a:hover {
	opacity: 1;
}
#top .mainvisual .swiper-slide img {
	transition: transform 10s linear;
}
#top .mainvisual .swiper-slide-active img,
#top .mainvisual .swiper-slide-duplicate-active img {
	transform: scale(1.2) translate3d(-12px,-6px,0);
}

#top .mainvisual .swiper-slide-prev img,
#top .mainvisual .swiper-slide-duplicate-prev img {
	transform: scale(1.2) translate3d(-12px,-6px,0);
}
#top .swiper-slide img {
	width: 100%;
	height: auto;
	aspect-ratio: 5/2;
	object-fit: cover;
	will-change: transform, opacity;
}
#top .sp .swiper-slide img {
	aspect-ratio: 390/300;
	object-fit: cover;
}
#top .mainvisual .swiper-container-horizontal > .swiper-pagination-bullets {
	right: 40px;
	bottom: 20px;
	left: auto;
	width: auto;
}
#top .mainvisual .swiper-pagination-bullet {
	position: relative;
	width: 40px;
	height: 2px;
	border-radius: 0;
	background: var(--Rinnai-Gray-1);
	opacity: 1;
}
#top .mainvisual .swiper-pagination-bullet-active:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 40px;
	height: 2px;
	background: var(--Rinnai-Red);
	animation: pagenation 5.0s linear 1;
	/*Match seconds with Swiper autoplay duration*/
}
@keyframes pagenation {
	0% {
		width: 0;
	}
	100% {
		width: 100%;
	}
}

/* Custom Latest Articles Section */
#top .top-article {
	margin: 0 auto;
}
#top .top-article__item {
	margin-bottom: 25px;
}
#top .top-article__title {
	color: var(--Rinnai-Gray-2, #666);
	margin-bottom: 5px;
}
#top .top-article__desc {
	font-size: 1.6rem;
	color: var(--Rinnai-Black, #333);
	line-height: 1.5;
	padding-left: 15px;
}
#top .top-article__btn {
	margin-top: 30px;
}

/* Products Section */
#top .top-products .swiper-pagination {
	position: static;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem 1.5rem;
	justify-content: center;
	text-align: center;
}
#top .top-products {
	margin: 0 auto;
}
#top .top-products__swiper {
	position: relative;
}
#top .top-products__image-wrap {
	overflow: hidden;
}
#top .top-products__image-wrap img {
	width: 100%;
	height: auto;
	transition: transform 0.5s ease;
	aspect-ratio: 3/2;
	object-position: center;
	object-fit: cover;
}
#top .top-products__item a:hover .top-products__image-wrap img {
	transform: scale(1.05);
}
#top .top-products__caption {
	margin-top: 15px;
	display: flex;
	align-items: center;
}
#top .top-products__caption .cmn-icon {
	margin-right: 10px;
	flex-shrink: 0;
}
#top .top-products__caption .title {
	font-size: 1.6rem;
	color: var(--Rinnai-Black, #333);
	line-height: 1.4;
}

#top .top-products__controls {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 50px;
	gap: 20px;
}
#top .top-products__pagination {
	position: static;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 1.5rem;
    justify-content: center;
    margin-top: 50px;
    text-align: center;
}
#top .top-products__pagination .swiper-pagination-bullet {
	width: 20px;
	height: 4px;
	border-radius: 0;
	background: var(--Rinnai-Gray-1, #eee);
	opacity: 1;
	margin: 0 !important;
}
#top .top-products__pagination .swiper-pagination-bullet-active {
	background: var(--Rinnai-Red, #e2001a);
}

@media (max-width: 767px) {
	/*swiper*/
	#top .mainvisual .swiper-container-horizontal > .swiper-pagination-bullets {
		right: 15px;
		bottom: 15px;
		width: 100%;
		text-align: right;
	}
	#top .mainvisual .swiper-pagination-bullet,
	#top .mainvisual .swiper-pagination-bullet-active:before {
		width: 20px;
		height: 1px;
	}
}
