@charset "utf-8";

.news main {
	padding-bottom: 60px;
	position: relative;
	overflow: hidden;
}

.news main h2 {
	max-width: 1200px;
	width: 88%;
	margin-left: auto;
	margin-right: auto;
	font-size: 2rem;
	padding-top: 10px;
	padding-bottom: 20px;
}

#news_tab {
	background-color: #ecefef;
	padding: 30px 0;
}


#news_tab ul {
	padding: 0;
	margin-top: 0;
	margin-bottom: 0;
	list-style-type: none;
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}


#news_tab ul li .link {
	display: block;
	background-color: #00519c;
	padding: 2px 10px;
	border-radius: 18px;
	color: #ffffff;
}

#news_link > ul {
	margin: 40px 0 0;
	padding: 0;
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	gap:20px 2%;
}

#news_link > ul > li {
	margin: 0;
	padding: 0;
	list-style-type: none;
	width: 49%;
}

#news_link > ul > li .img {
	overflow: hidden;
	aspect-ratio: 20 / 13;
    border-radius: 10px;
    filter: drop-shadow(2px 2px 3px rgba(160, 160, 160, 0.6));
	background-color: #ffffff;
	transform: translateZ(0);
}

#news_link > ul > li .img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#news_link > ul > li .news_category {
	background-color: #00519c;
	color: #ffffff;
	width: 7em;
    text-align: center;
    font-size: 1.4rem;
    border-radius: 20px;
    margin-top: 20px;
}

#news_link > ul > li p {
	margin-top: 15px;
	line-height: 1.6;
}

#news_link > ul > li .day {
	margin-top: 5px;
	font-size: 1.2rem;
}

#pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap:25px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 30px;
}

#page_list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap:2px;
}

#page_list > * {
	width: 2.5em;
	height: 2.5em;
	border: solid 1px #00519c;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #00519c;
}

#page_list > a:hover {
	background-color: #00519c;
	color: #ffffff;
}

#page_list > span {
	background-color: #00519c;
	color: #ffffff;
}

#page_before {
	width: 2.5em;
	height: 2.5em;
	border: solid 1px #00519c;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

#page_before::before {
	content: "";
	display: block;
	width: 1em;
	height: 0.4em;
	border-bottom: solid #00519c 1px;
	border-left: solid #00519c 1px;
	transform: skew(-32deg);
	position: absolute;
	left: 0.7em;
	top: 0;
	bottom: 0;
	margin: auto;
	z-index: 1;
	transition: 0.2s;
	pointer-events: none;
}

#page_before:hover::before {
	left: 0.4em;
}

#page_before a {
	display: block;
	width: 100%;
	height: 100%;
}

#page_after {
	width: 2.5em;
	height: 2.5em;
	border: solid 1px #00519c;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

#page_after::before {
	content: "";
	display: block;
	width: 1em;
	height: 0.4em;
	border-bottom: solid #00519c 1px;
	border-right: solid #00519c 1px;
	transform: skew(32deg);
	position: absolute;
	right: 0.7em;
	top: 0;
	bottom: 0;
	margin: auto;
	z-index: 1;
	transition: 0.2s;
	pointer-events: none;
}

#page_after:hover::before {
	right: 0.4em;
}

#page_after a {
	display: block;
	width: 100%;
	height: 100%;
}



/***********************************************/
@media only screen and (min-width:768px) {

.news main {
	padding-bottom: 100px;
}

.news main h2 {
	font-size: 3.5rem;
	padding-top: 15px;
	padding-bottom: 35px;
}
#news_tab ul li .link {
	padding: 3px 20px;
}

#news_tab ul {
	gap: 15px;
}

#news_link > ul {
	gap:40px 2%;
}

#news_link > ul > li {
	width: 32%;
}

#news_link > ul > li p {
	line-height: 1.8;
}

#pagination {
	margin-top: 60px;
}




}
