﻿
/*------------------------------------------------------------
	index
------------------------------------------------------------*/

#container {
	overflow: hidden;
}
#main .mainImg {
	margin-bottom: 6rem;
	display: block;
	position: relative;
}
#main .mainImg img {
	width: 100%;
}
#main .newsBox {
	margin-bottom: 10rem;
	position: relative;
}
#main .newsBox .comBtn {
	position: absolute;
	top: 4.4rem;
	right: 0;
}
#main .newsBox .comBtn a {
	padding-right: 7rem;
	width: 20rem;
}
#main .newsBox .showBox {
	display: flex;
	align-items: flex-start;
}
#main .newsBox .showBox .comTypeBox {
	margin-right: 6rem;
	width: 18rem;
	flex-shrink: 0;
}
#main .newsBox .showBox .tabBox {
	flex: 1;
	display: none;
}

/* スライダー内の画像のスタイル */
#main .swiper-container {
	display: flex;
	width: 100%;
	height: 508px; /* 高さを自動調整 */
	overflow: hidden; /* 画像がはみ出さないようにする */
	position: relative;
}

#main .swiper-wrapper {
	display: flex;
	transition: transform 0.3s ease-in-out;
}

#main .swiper-slide {
	flex: 0 0 auto; /* 各スライドを100%幅に設定 */
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	display: flex; /* 中央寄せのためにflexを使用 */
	justify-content: center; /* 水平方向の中央寄せ */
	align-items: center; /* 垂直方向の中央寄せ */
}

#main .swiper-slide a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}

#main .swiper-slide.swiper-slide-next, #main .swiper-slide.swiper-slide-prev {
	opacity: .5;
}

#main .swiper-slide.swiper-slide-visible {
	position: relative;
	left: 50;
}

#main .swiper-slide img {
	width: 100% !important;
	height: auto; /* 画像のアスペクト比を維持 */
	object-fit: cover; /* 画像をスライド内に収める */
}

@media all and (max-width: 768px) {
	#main .mainImg {
		margin-bottom: 4.8rem;
	}
	#main .swiper-slide {
		max-height: 540px;
	}
	#main .swiper-slide img {
		object-fit: cover;
		height: auto;
		max-height: 540px;
	}
	#main .newsBox .showBox .comTypeBox {
		width: auto;
		margin: 0 0 2.8rem;
	}
	#main .newsBox .showBox {
		display: block;
	}
	#main .newsBox .comBtn a {
		padding: 0 2rem 0 1.1rem;
		width: 12rem;
		height: 4rem;
		font-size: 1.4rem;
	}
	#main .newsBox .comBtn {
		top: 2rem;
	}
	#main .newsBox .comBtn a::after {
		width: 1.2rem;
		right: 1.3rem;
	}
	#main .newsBox {
		margin-bottom: 6rem;
	}
}

#main .swiper-button-field {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between; /* ボタンを左右に配置 */
	max-width: 1900px;
	margin: 0 auto;
	z-index: 10;
	transform: translateY(-50%);
}

#main .swiper-button-next,
#main .swiper-button-prev {
	
	/* background-color: rgba(255, 255, 255, 0.8); */
	cursor: pointer;
	font-family: "iconfont"; /* 使用你的字体 */
	opacity: 1;
	top: 50%;
	content: '';font-size: 5rem;color: #fff;
}
#main .swiper-button-next::before,
#main .swiper-button-prev::before {
    content: "\e609"; /* 替换为你字体图标的 Unicode */ 
}
/* 左右按钮的区别 */
#main .swiper-button-next::before {
    content: "\e609"; /* 替换为右箭头图标 */ 
}

#main .swiper-button-prev::before {
    content: "\e609"; /* 替换为左箭头图标 */ 
}


#main .swiper-button-next:hover,
#main .swiper-button-prev:hover {
	 color: #046ee4;
	opacity: 1.0;
}

#main .swiper-button-next {
	transform: rotateY(180deg);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

@media all and (max-width: 768px) {
	
 
	#main .swiper-button-next,
	#main .swiper-button-prev {
		 	position: relative;
			width: 7rem; /* 小さい画面用のボタンサイズ */
			height: 7rem;
			background-size: 60%; /* 画像サイズも調整 */
			 font-size: 3rem; 
	}
	#main .swiper-button-field {
		max-width: 600px;
	}
	#main .swiper-button-next:hover,
	#main .swiper-button-prev:hover {
		background-size: 60%;
	}
}

@media all and (max-width: 480px) {
	#main .swiper-button-next,
	#main .swiper-button-prev {
		 	position: relative;
			width: 5rem; /* さらに小さい画面用のボタンサイズ */
			height: 5rem;
	}
}

.swiper-pagination {
	position: absolute;
	bottom: 10px; /* 画像の下部に配置 */
	left: 50%;
	transform: translateX(-50%); /* 中央に配置 */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
	pointer-events: auto; /* クリック可能にする */
}

.swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background-color: #046ee4; /* ページネーションの色 */
	border-radius: 50%;
	border: solid;
	border-color: #F3F7FA;
	border-width: 2px;
	margin: 0 5px;
	opacity: 0.5;
	transition: opacity 0.3s;
	cursor: pointer
}

.swiper-pagination-bullet-active {
	opacity: 1;
}

@media all and (max-width: 768px) {
	.swiper-pagination {
			bottom: 5px; /* SP用に少し下に調整 */
			left: 50%;
			transform: translateX(-50%);
	}
}

/* aboutBox */
#main .aboutBox {
	padding: 12rem 0;
	background-color: #F3F7FA;
}
#main .aboutBox .headLine04 {
	margin-bottom: 7rem;
}
#main .aboutBox .listUl {
	position: relative;
	padding-top: 8rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1.8rem;
}
#main .aboutBox .listUl > li {
	width: calc((100% - 3.6rem) / 3);
}
#main .aboutBox .listUl::before {
	width: 100vw;
	height: 1px;
	position: absolute;
	top: 0;
	left: 50%;
	background-color: #C0CDD7;
	content: "";
	transform: translateX(-50%);
}
#main .aboutBox .comLinkList {
	margin-top: 0.4rem;
	display: block;
}
#main .aboutBox .comLinkList li {
	width: auto;
}
#main .aboutBox .comLinkList a {
	border-color: #C0CDD7;
}
#main .aboutBox .listUl02 {
	padding-top: 0;
	margin-top: 4.8rem;
}
#main .aboutBox .listUl02::before {
	display: none;
}
#main .aboutBox .listUl02 .comBanner a {
	aspect-ratio: 696/280;
}
#main .aboutBox .listUl02 .comBanner a::before {
	height: 100%;
}
#main .aboutBox .btn {
	padding: 0.5rem 2rem;
	color: #009B94;
	font-weight: 700;
	font-size: 1.4rem;
	height: 4.8rem;
	display: flex;
	align-items: center;
	position: relative;
	border-bottom: 1px solid #C0CDD7;
}
#main .aboutBox .btn::after {
	width: 1.1rem;
	height: 100%;
	position: absolute;
	top: 0;
	right: 2.3rem;
	background: url("../image/icon10.png") no-repeat left center / 100% auto;
	content: "";
}
@media all and (max-width: 768px) {
	#main .aboutBox {
		padding: 6rem 0;
	}
	#main .aboutBox .listUl {
		padding-top: 0;
		display: block;
	}
	#main .aboutBox .listUl::before {
		display: none;
	}
	#main .aboutBox .listUl > li {
		width: auto;
		margin-bottom: 4rem;
	}
	#main .aboutBox .listUl > li:last-child {
		margin-bottom: 0;
	}
	#main .aboutBox .headLine04 {
		margin-bottom: 4.1rem;
	}
	#main .aboutBox .comLinkList {
		margin-top: 0.4rem;
	}
	#main .aboutBox .comLinkList li:first-child a {
		border-top: none;
	}
	#main .aboutBox .listUl02 .comBanner a {
		aspect-ratio: 335/90;
	}
	#main .aboutBox .listUl02 {
		margin-top: 4rem;
	}
	#main .aboutBox .listUl02 > li {
		margin-bottom: 1.6rem;
	}
	#main .aboutBox .listUl02 .comBanner a::after {
		width: 3rem;
		height: 3rem;
		bottom: 3rem;
		right: 2rem;
	}
}


/* pageBox */
#main .pageBox {
	padding-top: 12rem;
}
@media all and (min-width: 769px) {
	#main .pageBox .comLinkList li {
		width: calc((100% - 1.5rem*2)/3);
	}
	#main .pageBox .comLinkList .img {
		aspect-ratio: 700/180;
	}
	#main .pageBox .comLinkList {
		gap: 2.8rem 1.5rem;
	}
}
@media all and (max-width: 768px) {
	#main .pageBox {
		padding-top: 6rem;
	}
	#main .pageBox .comLinkList {
		display: flex;
		flex-wrap: wrap;
		gap: 1.5rem;
	}
	#main .pageBox .comLinkList li {
		margin-bottom: 0 !important;
		width: calc((100% - 1.5rem) / 2);
	}
	#main .pageBox .comLinkList .img {
		aspect-ratio: 160/60;
	}
	#main .pageBox .comLinkList .txt {
		font-size: 1.1rem;
		padding: 0.9rem 1rem 1rem 0.4rem;
		letter-spacing: 0;
		background-position: right 0.5rem center;
		background-size: 1rem auto;
	}
}
