
/* CSS Document */

/* -------------------------------------------------

pageTit

------------------------------------------------- */
.pageTit{
	background-image: url(../images/index/mainimg.jpg);
}

/* -------------------------------------------------

contents

------------------------------------------------- */
#contents > article{
	margin: 0 0 20px;
	cursor: pointer;
	width: 100%;
}
#contents > article:hover{
	opacity: 0.8;
}
#contents > article > p{
	width: 50%;
	line-height: 100%;
	font-size: 0;
}
#contents > article > p img{
	width:100%;
}
#contents > article > div{
	width: 50%;
	text-align: center;
	box-sizing: border-box;
	padding: 20px;
}
#contents > article > div > h3{
	font-size: 1.2em;
	font-weight: 700;
	position: relative;
}
#contents > article > div > h3:after {
  content: '';
  position: absolute;
	display: inline-block;
  left:calc(50% - 20px);
  bottom: 0;
  width: 40px;
  height: 2px;
	background-color:#ddd;
}
#contents > article > div > span{
	text-align: center;	
	display: inline-block;
	border:1px solid #222;
	padding: 7px 40px;
	font-size: 0.9em;
	transition: 0.3s;
}
#contents > article:hover > div > span{
	padding: 7px 50px;
}
 /* PC */
@media print, screen and (min-width:769px) {
#contents{
	width: 1030px;
	margin: 0 auto;
	padding:20px 0 50px;
}
#contents > article{
	position: relative;
	background-color: #fff;
}
#contents > article:nth-child(2n+1) > div{
	right: 0;
}
#contents > article:nth-child(2n) > p{
	float: right;
}
#contents > article:nth-child(2n) > div{
	left: 0;
}
#contents > article > div{
	position: absolute;
	top:50%;
	transform: translate(0,-50%);
}
#contents > article > div > h3{
	margin: 0 0 20px;
	padding: 0 0 20px;
}
#contents > article > div > p{
	margin: 0 0 25px;
}
}
/* Tablet */
@media screen and (max-width:768px) {
#contents{
	padding:30px;
}
#contents > article > div > h3{
	margin: 0 0 10px;
	padding: 0 0 10px;
}
#contents > article > div > p{
	margin: 0 0 15px;
}
#contents > article:nth-child(2n+1) > p{
	float: left;
}
#contents > article:nth-child(2n+1) > div{
	float: right;
}
#contents > article:nth-child(2n) > p{
	float: right;
}
#contents > article:nth-child(2n) > div{
	float: left;
}
}
/* SP縦向き */
@media screen and (max-width:640px) and (orientation: portrait) {
#contents{
	padding:20px;
}
#contents > article{
	background-color: #fff
}
#contents > article > p{
	width: 100%;
	float: none;
}
#contents > article > div{
	width: 100%;
	float: none;
}
}

