@charset "utf-8";

#mainBlock .bg_img {
	padding-top: 29px;
}

.main_content {
	max-width: 1000px;
	width: 100%;
	background-color: inherit;
}

.news h3 {
	position: relative;
	font-size: 1.8rem;
	background-color: #162141;
	color: #fff;
	height: 50px;
	display: flex;
	align-items: center;
	padding-left: 20px;
	margin-bottom: 0;
}

.news .overview_btn {
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
	right: 20px;
	color: #fff;
	font-size: 1.4rem;
	text-decoration: none;
	line-height: 1;
	display: block;
	height: fit-content;
}

.news .overview_btn::before {
	content: "\f054";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	color: #162141;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	left: -20px;
}

.news ul {
	background-color: #fff;
}

.news ul li {
	list-style: none;
	list-style-type: none;
}

.news ul li a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 13px;
	padding-top: 20px;
	padding-bottom: 18px;
	border-bottom: 1px dashed #333;
	padding-left: 20px;
	padding-right: 20px;
	line-height: 1;
	font-size: 1.4rem;

}

.news ul li:last-child a {
	border-bottom: none;
}

.news ul li .left {
	min-width: 135px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.news ul li .left .day {
	color: #333;

}

.news ul li .left .situation {
	font-size: 1.2rem;
	color: #e63532;
	border: solid 1px #e63532;
	padding: 6px;
}

@media screen and (max-width: 768px) {
	.news h3 {
		font-size: 2.0rem;
		padding-left: 10px;
	}

	.news .overview_btn {
		font-size: 1.4rem;
	}

	.news ul {
		padding-inline: 20px;
	}

	.news ul li a {
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 14px;
		padding-inline: 0;
		gap: 8px;
	}

	.news ul li .left {
		gap: 9px;

	}

	.news ul li .left .situation {
		font-size: 1.2rem;
		padding: 3px;
	}

	.parts-arw01 {
		position: relative;
		line-height: calc(50 / 28);
	}

	.parts-arw01:after {
		top: 9px;
		transform: inherit;
		transform: rotate(45deg);
	}

	.parts-arw01:before {
		top: 5px;
		transform: inherit;
	}
}

.tabSearch {
	margin-top: 28px;
}

.tab__btns {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	height: fit-content;
	border-bottom: 1px solid #3852a7;
}

.tab__btn {
	width: 170px;
}

.tab__btn a {
	border: none;
	max-width: 170px;
	width: 100%;
	height: 50px;
	font-weight: 700;
}

.tab__btn.on a {
	border: none;
}

.tabSearch__items {
	display: grid;
}

.tabSearch .tabSearch__items {
	margin-top: 10px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-column-gap: 10px;
	grid-row-gap: 10px;
}

.tabSearch .tabSearch__item a {
	background-color: #fff;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 20px;
	height: 160px;
	color: #3852a7;
	font-size: 1.6rem;
	font-weight: 700;
}

@media screen and (max-width: 768px) {
	.tabSearch .tabSearch__items {
		grid-template-columns: repeat(3, 1fr);
		gap: 5px;
	}

	.tab__btns {
		gap: 5px;
	}

	.tab__btn {
		width: 125px;
	}

	.tab__btn a {
		height: 45px;
	}

	.tabSearch .tabSearch__item a {
		text-align: center;
		gap: 15px;
		height: 115px;
		font-size: 1.3rem;
		line-height: calc(30 / 26);
	}

	.tabSearch .tabSearch__item a img {
		width: 60px;
	}
}

.topBanner {
	margin-top: 60px;
	margin-bottom: 30px;
}

.topBanner h2 {
	background-color: #3852a7;
	color: #fff;
	height: 40px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding-inline: 15px;
}

.topBanner_flex {
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
	.topBanner {
		margin-top: 50px;
	}

	.topBanner h2 {
		font-size: 14px;
		padding-inline: 10px;
		height: 35px;
	}

	.topBanner_flex {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.topBanner_flex a img {
		width: 100%;
	}
}

@media screen and (max-width: 500px) {

	.topBanner_flex {
		grid-template-columns: repeat(2, 1fr);
	}

}


/* ==== 追加CSS：バナー項目 ==== */
.topBanner_item {
	display: block;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	line-height: 0;
	/* img下の余白対策 */
}

.topBanner_item img {
	max-width: 188px;
	display: block;
	transition: opacity .2s ease, transform .2s ease;
	box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.4);
}

.topBanner_item:hover img,
.topBanner_item:focus-visible img {
	opacity: .8;
	transform: translateY(-2px);
}

.topBanner_item:focus-visible {
	outline: 2px solid #3b5998;
	outline-offset: 2px;
}

/* ==== モーダル ==== */
.bannerModal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bannerModal.is-open {
	display: flex;
}

.bannerModal_overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 32, 0.6);
	opacity: 0;
	transition: opacity .25s ease;
}

.bannerModal.is-open .bannerModal_overlay {
	opacity: 1;
}

.bannerModal_box {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 520px;
	max-height: 88vh;
	overflow-y: auto;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	transform: translateY(16px) scale(.98);
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
}

.bannerModal.is-open .bannerModal_box {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.bannerModal_close {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 36px;
	height: 36px;
	border: none;
	background: #162141;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bannerModal_close:hover {
	background: #506591;
}

.bannerModal_image {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 20px;
	display: block;
}

.bannerModal_title {
	font-size: 2.0rem;
	font-weight: 700;
	margin: 0 0 12px;
	color: #1a1a1a;
}

.bannerModal_text {
	font-size: 1.4rem;
	line-height: 1.8;
	color: #444;
	margin: 0 0 24px;
	white-space: pre-line;
}

.bannerModal_btn {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 40px;
	background: #3b5998;
	color: #fff;
	text-decoration: none;
	font-size: 1.4rem;
	font-weight: 700;
	border-radius: 6px;
	transition: background .2s ease;
}

.bannerModal_btn:hover {
	background: #506591;
}

@media screen and (max-width: 768px) {
	.topBanner_item {
		/* max-width: 172.5px; */
		width: 100%;
	}

	.topBanner_item img {
		max-width: unset;
		width: 100%;
	}

	.bannerModal_title {
		font-size: 1.4rem;
	}

	.bannerModal_text {
		font-size: 1.2rem;
		margin-bottom: 10px;
	}

	.bannerModal_btn {
		height: 35px;
		font-size: 1.2rem;

	}
}

@media screen and (max-width: 500px) {
	.bannerModal_box {
		padding: 15px;
	}
}