@charset "utf-8";

/* ページ全体
----------------------------------------------- */

@media (max-width:768px) {
body {
	background-image: none;
	overflow-x: hidden;	
}
#body{
	width:100%;
	padding:0;
	min-height: 850px;
	overflow-x:hidden;
}

/* header 部分
----------------------------------------------- */

#header {
	overflow: hidden;
}

#header h1,#header p{
width: 100%;
max-width: 413px;
height:auto;
float:none;
margin: 0 auto;
}

#header h1 {
	margin-top: 30px;
}

#header h1 img,
#header p img {
	width:100%;
}

#header p{width:100%; max-width:315px; float:none; margin:auto;}

#header {
	background: #f2f3e5;
	
}

#header div{
	position: relative;
	background-image: url(../images/mainimg_none.jpg);
	background-size: 100%;
	background-repeat: no-repeat;
	width:100%;
	height:200px;
	overflow: hidden;
	padding: 0;
	display:block;
}


	#header ul {
		width: 100%;
		display: none;
	}
	#header ul.sp.menu {
		display: block;
	}
	
	#header ul.sp.menu.active {
		display: block;
	}
	
	#header ul.sp li {
		display: table;
		background: #f2f3e5;
		float: left;
		border-bottom: solid 1px #CCC;
		border-left: solid 1px #CCC;	
		width: 25%;
		padding: 0;
		margin: 0;
		box-sizing: border-box;
	}
	
	#header ul.sp li:nth-child(4n) {
		border-right: none;
	}
	
	#header ul li a{
		text-align: center;
		display: table-cell;
		margin: auto;
		width: 100%;
		vertical-align: middle;
		padding: 5px;
		height: 60px;
		box-sizing: border-box;
		color: #666;
		text-align: center;
		text-decoration: none;
		font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
		font-weight: bold;
	}

/* banner 部分
----------------------------------------------- */
#banner{
	position: static;
	width: 100%;
	max-width: 630px;
	margin: auto;
	text-align: center;
}
#banner ul{
	margin:0;
	padding:0;
	list-style-type: none;
}
#banner li{
margin-bottom:9px;
display: inline-block;
}

#hitokoto table{ 
		width: 100%;
	}

/* main 部分
----------------------------------------------- */
#main{ padding:10px; width: 100%; box-sizing: border-box; padding-bottom: 30px !important; padding-top:20px !important;}


h2#news{ 
	margin:0; 
	margin-bottom:8px; 
	padding:0; 
	height:22px; 
	overflow:hidden;
	/*border-bottom: solid 3px #2e5e5e;*/
}

h2#news img{
  max-width: 100% ;}

/* footer 部分
----------------------------------------------- */
#footer{
	background-image: none;
	background-color: #d6dcce;
	height:auto;
	overflow: hidden;
	display:block;
	padding:10px;
	

}
#footer h3,#footer p,#footer ul{
	margin:0;
	text-align:12px;
	font-weight:normal;
	line-height:1.4;
	font-size:12px;
}
#footer div{width:100%;}
#footer div.box{ float:none; width:100%;}
#footer ul{
	list-style-type: none;
	float:none;
	text-align: right;
	margin-top: 10px;
	width:100%;
}


/* 基本クラス
----------------------------------------------- */
.m1000{ margin:1em 0px 0px 0px}
dl.side{ margin-left:3px;}
dl.side dt,dl.side dd{ margin-bottom:0.125em;}
dl.side dt{ width:5em;}
dl.side dd{ margin-left:6em; margin-top:-1.6em;}
div.block{ padding-left:0; padding-right:0; margin-bottom:2em;}
dl.link dt{ font-weight:bold;}
dl.link dt a{ text-decoration:none;}
dl.link dd{ margin-bottom:1.5em;}
dl.link dd a:link{ color:#666666;}
dl.link dd a:hover{color: #222222;}

/* 明行寺通信バックナンバー */
ul.backnum{
	font-family: "ＭＳ ゴシック", "Osaka－等幅";
}
ul.backnum li{
	display:inline;
	margin-right:2em;
	background-image: url(../main/images/sankaku.gif);
	background-repeat: no-repeat;
	background-position: left 0.2em;
	padding-left:16px;
}
/* 写真 */
p {
	overflow: hidden;
	clear: both;
}
img.pho01{ float:none; display: block; overflow: hidden; margin: 0 10px 10px 0; float: left;}

/* 申込みform*/
#form01{ width:400px; height:4em;}
#form02{ width:400px;}
#form03{ width:200px;}
form p{ text-align:center;}

/* block */
.box01 {
	background-image: none;
	width:100%;
	padding:0px;
	padding-top:1px;
	margin:0;
	margin-top:1em;
	background: #efefef;
	border: solid 1px #CCC;
	border-radius: 5px;}
  
.box01 div{
	background-image: none;
	padding:1em;
	width:100%;
	box-sizing: border-box;}
  
.box01 div h3{ margin-top:1em;}

.box01:after{ display: none;}

dl#access{
  margin-left:4px;}
  
dl#access dt{
  float: none ;
  width:4em;
  margin: 0 0 10px 0 ;
  text-align:center;
  border: 1px solid #999999;
  background-color:#FFFFFF;}
  
dl#access dd{
  width: 100% ;
  float: none ;
  margin: 0 auto 15px auto ;}

p#map{ 
  float:none;
  border: 1px solid #999999; margin-right:5px; padding:4px; background-color:#FFFFFF;
  font-size:0.8em; text-align:center;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  /*max-width: 310px;*/
  margin: auto;}

p#map img {
	width: 100%;}

#mainContents {
	position:absolute;
	left:227px;
	top:211px;
	width:400px;
	height:200px;
	border:1px black solid;
	background-color:#ddd;
	/*display:none;
	filter:alpha(opacity=0);*/
}

#count dl{ margin-top:10px; margin-left:0; display: inline-table; margin-bottom: 30px;}
#count dt{ width:auto; font-size:10px; line-height:normal; display:table-cell;}
#count dd{ margin-left:0; margin-top:0; line-height:normal; display: table-cell; vertical-align: middle;}

#count img{
	border: 1px solid #DFDFDF;
	padding:1px 3px 1px 3px;
	background-color:#FFFFFF;
}

/*.box01 div{display: inline-block;}*/
.box01 div:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden;}

#header div{display: inline-block;}
#header div:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden;}


#cemeteryBlock .col-first {
	width: 100%;
}
#cemeteryBlock .col-last {
	float: none;
	margin: 0;
	width: 100%;
	text-align: center;
}

#cemeteryBlock .col-last img{
	display: inline;
}

}

@media (max-width:500px) {
	body {
	background-image: none;
	overflow-x: hidden;	
}

	#body {
		width: 100%;
	background-image: none;
	overflow-x: hidden;	
}
	
	
	#header div{
		position: relative;
		background-image: url(../images/mainimg_none.jpg);
		background-size: 500px;
		background-position: 60%; 
		background-repeat: no-repeat;
		width:100%;
		height:200px;
		padding: 0;
		display:block;
	}
	
	#header p.sp.menu_button {
		display: block;
		min-width: 100%;
		padding: 10px;
		text-align: center;
		font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
		color: #FFF;
		font-weight: bold;
		background: #2e5e5e url(../images/menu-ico.png) no-repeat 90% center;
		box-sizing: border-box;
	}
	
	#header ul.sp.menu {
		height: 0;
		overflow: hidden;
	}
	
	#header ul.sp.menu.active {
		display:block;
		height: 100%;
	}
	
	
	#header ul.sp li {
		display: block;
		border-bottom: solid 1px #CCC;
		width: 100%;
	}
	
	#header ul li a{
		text-align: center;
		display: block;
		padding: 10px;
		height: auto;
		text-decoration: none;
		color: #666;
		font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
		font-weight: bold;
	}
	
	
	
	
	#hitokoto td{ 
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
	
	#hitokoto td.title{ 
		width: 100%;
		height: 50px;
		background-image: none;
		background-color: #2e5e5e;
		text-indent: 0;
		font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
		font-weight: bold;
		color: #FFF;
		font-size: 110%;
		text-align: center;
		box-sizing: border-box;
		padding: 10px;
	}
	
	table#form {
		margin: 0;
		width: 100% !important;
		margin-bottom: 20px;
		margin-top: 20px;
	}
	table#form th,
	table#form td{
		display: block;
		width: 100% !important;
		box-sizing: border-box;
		padding: 5px;
	}
	
	table#form input,
	table#form textarea {
		margin: 0;
		width: 100% !important;
		box-sizing: border-box;
	}
	
		dl#access{
			margin-left:0;
		
		}
		dl#access dt{
			width:100%;
			text-align:center;
			border: 1px solid #999999;
			background-color:#FFFFFF;
			margin-bottom: 10px;
		}
		dl#access dd{
			margin-left:0;
			margin-top:0;
			margin-bottom: 20px;
		}
		
		img.pho01 {
			float: none;
			margin: auto;
			margin-bottom: 15px;
		}
	h2.omairi {
		display: none;
	}
	h2.omairi.sp {
		display: block;
		
	}
  
.twitter{
  border: 1px solid #447b77 ;
}

.twitter iframe{
  font-size: 0.5rem ;}


	
}