@charset "utf-8";

/***********************************************************************

------------------------------------------------------------------------
くろがね運輸機工の特長
***********************************************************************/

#main #about {
}
#main #about p {
	width: 590px;
	margin-top: 30px;
}
#main #about a {
	margin-top: 30px;
	display: flex;
	align-items: center;
	width: 160px;
	height: 40px;
	background-color: #e50012;
	color: #fff;
	font-weight: 700;
	position: relative;
	padding-left: 28px;
	border: 1px solid #e50012;
}
#main #about a::before {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 0px;
	width: 10px;
	height: 10px;
	border-top: #fff 2px solid;
	border-right: #fff 2px solid;
	transform: rotate(45deg) translateY(-50%);
}
#main #about .pic {
	text-align: right;
	margin-top: -340px;
}
#main #about .pic img {
	display: inline-block;
	margin-left: 12px;
}
@media only screen and (max-width: 767px) {
	#main #about p {
		width: 100%;
		margin-top: 20px;
	}
	#main #about a {
		justify-content: center;
		width: 70%;
		height: 46px;
		margin: 20px auto 30px;
		padding-left: 0;
		padding-right: 15px;
		border-radius: 5px;
	}
	#main #about a::before {
		display: inline-block;
		position: relative;
		top: 2px;
		margin-right: 15px;
		width: 7px;
		height: 7px;
		border-top: #fff 2px solid;
		border-right: #fff 2px solid;
		transform: rotate(45deg);
	}
	#main #about .pic {
		text-align: center;
		margin-top: 0;
	}
	#main #about .pic img {
		display: block;
		margin:  15px auto 0;
	}
}

/***********************************************************************

------------------------------------------------------------------------
サービス
***********************************************************************/

#main #service {
	background: url("../img/home/bg_service.jpg") center / cover no-repeat;
	min-height: 470px;
	margin-top: 60px;
	padding: 1px 15px 50px;
}
#main #service > ul {
	display: flex;
	justify-content: center;
}
#main #service > ul > li {
	width: 330px;
	margin: 100px 20px 0;
	padding: 40px 0;
	background-color: #fff;
	text-align: center;
}
#main #service > ul > li p {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	margin-top: 25px;
}
@media only screen and (max-width: 767px) {
	#main #service {
		margin-top: 50px;
		padding: 20px 15px 40px;
	}
	#main #service > ul {
		flex-wrap: wrap;
	}
	#main #service > ul > li {
		margin-top: 30px;
	}
}
@media only screen and (max-width: 414px) {
	#main #service > ul {
		margin-top: -10px;
	}
	#main #service > ul > li {
		width: 100%;
		padding: 20px 0;
	}
	#main #service > ul > li p {
		font-size: 22px;
		margin-top: 10px;
	}
}

/***********************************************************************

------------------------------------------------------------------------
お知らせ
***********************************************************************/

#main #news {
}
#main #news ul.news_list {
	margin-top: 25px;
}
#main #news ul.news_list li {
	display: flex;
	font-size: 20px;
	margin-top: 5px;	
}
#main #news ul.news_list li a.news_item {
	display: flex;
	width: 100%;
}
#main #news ul.news_list li a.news_item:hover {
	opacity: 1;
}
#main #news ul.news_list li .day {
	background-color: #a5a5a6;
	font-weight: 700;
	color: #fff;
	width: 140px;
	height: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	letter-spacing: 0;
	flex-shrink: 0;
}
#main #news ul.news_list li a.news_item:hover .day {
	background-color: #f4cd00;
}
#main #news ul.news_list li .category {
	display: inline-block;
	padding: 0 25px;
	flex-shrink: 0;
}
#main #news ul.news_list li a.news_item:hover .category {
	color: #cf121b;
}
#main #news ul.news_list li em.news_tit {
	display: inline-block;
	padding-left: 25px;
}
@media only screen and (min-width: 768px) {
	#main #news ul.news_list li .category,
	#main #news ul.news_list li em.news_tit {
		position: relative;
		top: 3px;
	}
}
@media only screen and (max-width: 767px) {
	#main #news ul.news_list li {
		font-size: 16px;
		flex-wrap: wrap;
		margin-top: 15px;
		border-bottom: 1px dotted #a5a5a6;
		padding-bottom: 12px;		
	}
	#main #news ul.news_list li a.news_item {
		flex-wrap: wrap;
		padding-right: 18px;
		position: relative;
	}
	#main #news ul.news_list li a.news_item::after {
		content: "";
		display: block;
		position: absolute;
		top: 50%;
		right: 5px;
		width: 7px;
		height: 7px;
		border-top: #a5a5a6 2px solid;
		border-right: #a5a5a6 2px solid;
		transform: rotate(45deg) translateY(-50%);
	}
	#main #news ul.news_list li .day {
		width: 120px;
		height: 32px;
	}
	#main #news ul.news_list li .category {
		padding-left: 15px;
		padding-right: 0;
	}
	#main #news ul.news_list li em.news_tit {
		display: block;
		width: 100%;
		padding-left: 0;
		line-height: 1.4;
		margin-top: 10px;
	}
}

/***********************************************************************

------------------------------------------------------------------------
コンテンツ
***********************************************************************/

#main #contents {
}
#main #contents ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: -30px;
}
#main #contents ul li {
	width: 395px;
	margin-top: 70px;
	background-color: #eeeeef;
}
#main #contents ul li a {
	display: block;
	height: 100%;
	position: relative;
}
#main #contents ul li a:hover {
	opacity: 1;
}
#main #contents ul li a img.imgOn {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: all 0.2s linear;
}
#main #contents ul li a:hover img.imgOn {
	opacity: 1;
}
#main #contents ul li p {
	font-size: 17px;
	padding: 10px 15px 30px;
	line-height: 1.4;
}
#main #contents ul li p em {
	display: block;
	font-weight: 700;
	font-size: 24px;
	margin-bottom: 10px;
}
@media only screen and (min-width: 768px) {
	#main #contents ul {
		margin: -30px -23px 0;
	}
	#main #contents ul li {
		margin: 70px 23px 0;
	}
}
@media only screen and (max-width: 767px) {
	#main #contents ul {
		margin-top: -10px;
		justify-content: space-between;
	}
	#main #contents ul li {
		width: calc((100% - 15px) / 2);
		margin-top: 40px;
	}
	#main #contents ul li a {
		padding-bottom: 55px;
	}
	#main #contents ul li p {
		font-size: 16px;
		padding-bottom: 15px;
	}
	#main #contents ul li p em {
		font-size: 20px;
		margin-bottom: 5px;
	}
	#main #contents ul li span.more {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 70%;
		height: 40px;
		color: #fff;
		font-weight: 700;
		background-color: #e50012;
		margin: 0 auto;
		position: absolute;
		bottom: 15px;
		left: 50%;
		transform: translateX(-50%);
		padding-right: 15px;
		border-radius: 5px;
	}
	#main #contents ul li span.more::before {
		content: "";
		display: inline-block;
		position: relative;
		top: 2px;
		margin-right: 15px;
		width: 7px;
		height: 7px;
		border-top: #fff 2px solid;
		border-right: #fff 2px solid;
		transform: rotate(45deg);
	}
}
@media only screen and (max-width: 414px) {
	#main #contents ul {
		justify-content: center;
	}
	#main #contents ul li {
		width: 100%;
		max-width: 300px;
	}
}

/***********************************************************************

------------------------------------------------------------------------
動画
***********************************************************************/

#main #movie {
}
#main #movie .youtube {
	width: 100%;
	max-width: 825px;
	aspect-ratio: 16 / 9;
	margin: 50px auto 0;
}
#main #movie .youtube iframe {
	width: 100%;
	height: 100%;
}
@media only screen and (max-width: 767px) {
	#main #movie .youtube {
		margin-top: 30px;
	}
}