
#hed {
	width: 100%;
	background: #fff;
	padding: 180px 0 75px;
	overflow: hidden;
}

#hed h2{
	background: url("../img/h2.png") no-repeat;
	background-size: cover;
	width: calc( 667px / 2 / 1.4 );
	padding-top: 122px;
	height: 0;
	overflow: hidden;
	margin: 0 auto;
	line-height: 100px;
}

#hed span{
	font-size: 20px;
	display: block;
	font-family: "Yu Mincho", "YuMincho", "Sawarabi Mincho" , "ＭＳ Ｐ明朝", "MS PMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;	
	color: #fff;
    text-align: center;
	padding: 15px 0 0 0 ;
}

@media screen and (max-width: 1024px) {
	#hed{padding: 140px 0 75px;}
}

@media screen and (max-width: 600px) {
	#hed{padding: 140px 0 30px;}
	#hed h2{ width: 248px;  background-size: 100%; padding: 99px 0 30px;}
}

/*==========================================
============================================

			
		section#content01


============================================
==========================================*/

.hide {display:none;}

ul.tab{
	overflow:hidden;
	text-align: center;
	width: 900px;
	margin: 0 auto;
}

ul.tab li:nth-child(1){
	background: #ffa800;
	color: #fff;
	display: inline-block;
	width: 45%;
	float: left;
	font-size: 23px;
	font-weight: bold;
	padding: 15px 0;
	margin: 0 10px;
	cursor: pointer;
}

ul.tab li:nth-child(2){
	background: #330808;
	color: #fff;
	float: right;
	display: inline-block;
	width: 45%;
	font-size: 23px;
	font-weight: bold;
	padding: 15px 0;
	cursor: pointer;	
	margin: 0 10px;	
}


ul.content{ 
	background: #f8f5ed; 
	padding: 60px 0 120px;
}

ul.content li{
	width: 1000px;
	margin: 0 auto;
}

ul.content li div.box{
	background: #fff;
	position: relative;
	width: 42.5%;
	display: inline-block;
	margin: 20px 10px;
	color: #555;
	font-size: 16px;
	box-shadow:0px 0px 8px 2px #ebe8de;
	border-radius: 15px;
	padding: 25px;
	min-height: 210px;
}

ul.content li div.box:before {
	content: "";
	position: absolute;
	top: 100%;
	left: 10px;
	margin-top: -20px;
	border: 20px solid transparent;
	border-right: 30px solid #fff;
	-webkit-transform: rotate(35deg);
	transform: rotate(35deg);
}

ul.content li div.box img{padding: 0 0 20px 25px;}

ul.content li div.box p{
	border-top: 1px solid #330808;
	padding: 25px;
	font-size: 17px;
	font-weight: bold;
	color: #330808;
	text-align: justify;
}


ul.content li div.box a.popup-modal{
	background: #ffa800;
	border-radius: 30px;
	color: #fff;
	font-weight: bold;
	font-size: 15px;
	line-height: 50px;
	width: 200px;
	margin: 0 auto;
	text-align:center;
	display: block;
	letter-spacing: 2px;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 40px;
}

/****モーダル中身*****/

div.inline-wrap{
	background: #fff;
	margin: 0 auto;
	width: 680px;
	padding: 40px;
	border-radius: 15px;
}

div.inline-wrap b{
	background: url("../img/q.png")left 34px center no-repeat;
	color: #ffa800;
	font-weight: bold;
	font-size: 17px;
	padding: 20px 40px 20px 97px;
	letter-spacing: 1px;
	display: block;
	border-bottom: 1px solid #330808;	
}

div.inline-wrap p{
	background: url(../img/a.png) left 34px top 20px no-repeat;
	color: #330808;
	font-weight: bold;
	font-size: 17px;
	letter-spacing: 1px;
	text-align: justify;
	padding: 20px 40px 20px 97px;
	display: block;
}


@media screen and (max-width: 1024px) {
	ul.tab{    width: 690px;}
	ul.content li{width: 830px;}
	ul.content li div.box{ width: 341px;}
	
}

@media screen and (max-width: 850px) {
	
	ul.tab{width: 80%;}
	
	ul.content li{width: 90%;}
	ul.content li div.box{width: calc( 100% - 50px); margin: 20px 0; min-height: inherit;}

	ul.content li div.box a.popup-modal{position: initial;}
	div.inline-wrap{width: 60%;}
	.mfp-close{width: 66%!important;}
	
}

@media screen and (max-width: 600px) {
	
	ul.tab{width: 90%;}
	ul.tab li:nth-child(1),ul.tab li:nth-child(2){width: 100%; float: none;}
	
	ul.tab li:nth-child(1){margin: 0 0 20px;}
	ul.tab li:nth-child(2){margin: 0 ;}
	
	div.inline-wrap{padding: 20px; width: 80%;}
	
	div.inline-wrap p{
		background: url(../img/a.png)left 14px top 40px no-repeat;
		color: #330808;
		font-weight: bold;
		font-size: 17px;
		letter-spacing: 1px;
		text-align: justify;
		padding: 20px 20px 20px 67px;
		display: block;
	}
	
	div.inline-wrap b{padding: 20px 20px 20px 67px; background: url(../img/q.png)left 14px center no-repeat;}
	.mfp-close{width: 84%!important;}

	ul.content li div.box img{width: calc(173px / 1.3); padding: 0 0 20px 10px;}
	ul.content li div.box p{padding: 25px 10px;}	
	ul.content li div.box a.popup-modal{ line-height: 40px;}
}


















