@charset "utf-8";
/* CSS Document */
@media screen and (min-width: 1000px) {
	/* 赤村の魅力 */
	div#mainContents div.box01 {
		width:100%;
		min-width: 1000px;
		height:485px;
		background: url(../images/index/topimg01.png) no-repeat;
		background-position: center center;
	}
		div#mainContents div.box01 div.center {
			width:1000px;
			height:485px;
			margin: 0 auto;
			position: relative;
		}
			div#mainContents div.box01 div.center img.miryoku01 {
				display: block;
				position: absolute;
				top:110px;
				left:0px;
			}
			div#mainContents div.box01 div.center img.message01 {
				display: block;
				position: absolute;
				top:0px;
				right:0px;
			}
	div#mainContents div.spbox01 { display: none;}
	/* 赤村はあかるいをモットーに */
	div#mainContents img.motto {
		display: block;
		margin: 30px auto 0 auto;
	}
	/* リンクボックス */
	div#mainContents div.box02 {
		width:100%;
		height:230px;
		min-width: 1000px;
		margin-top: 20px;
	}
		div#mainContents div.box02 div.center {
			width:988px;
			height:230px;
			margin: 0 auto;
		}
			div#mainContents div.box02 div.center a {
				display: block;
				width:313px;
				height:230px;
				float: left;
				margin-left: 24px;
			}
			div#mainContents div.box02 div.center a:nth-of-type(1) { margin-left: 0px;}
	/* お知らせ */
	div#mainContents div.box03 {
		width:100%;
		height:252px;
		min-width: 1000px;
		margin-top: 25px;
	}
		div#mainContents div.box03 div.center {
			width:988px;
			height:252px;
			box-sizing: border-box;
			padding: 53px 50px 0 50px;
			margin: 0 auto;
			background: url(../images/index/newsboxbg.png) no-repeat;
			position: relative;
		}
			div#mainContents div.box03 div.center p.title { display: none;}
			div#mainContents div.box03 div.center a.news {
				display: block;
				height:60px;
				line-height: 65px;
				text-decoration: none;
				color: #333;
				border-bottom: #ccc 1px solid;
				overflow: hidden;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 1;
			}
				div#mainContents div.box03 div.center a.news span { font-size: 16px; letter-spacing: 2px;}
				div#mainContents div.box03 div.center a.news span.title { margin-left: 20px;}
			div#mainContents div.box03 div.center a.more {
				display: block;
				width:170px;
				height:30px;
				line-height: 30px;
				text-decoration: none;
				color: #333;
				text-align: right;
				font-size: 14px;
				position: absolute;
				bottom:20px;
				right:50px;	
			}
	/* SNSリンク */
	div#mainContents div.box04 {
		width:100%;
		height:485px;
		min-width: 1000px;
		margin-top: 35px;
		background: url(../images/index/topimg02.png) no-repeat;
		background-position: center center;
	}
	div#mainContents div.box04 div.center {
		width:1000px;
		height:400px;
		margin: 0 auto;
		position: relative;
	}
	div#mainContents div.box04 div.center img.message02 {
		display: block;
		position: absolute;
		top:135px;
		left:40px;
	}
	div#mainContents div.box04 div.center div.prbox {
		width:392px;
		height:247px;
		box-sizing: border-box;
		padding: 80px 0 0 55px;
		position: absolute;
		top:52px;
		right:0px;
		background: url(../images/index/prbg.png) no-repeat;
	}
	div#mainContents div.box04 div.center div.prbox img.sptitle {display: none;}
}
/* タブレット */
@media screen and (max-width: 999px) and (min-width: 641px) {
	/* 赤村の魅力 */
	div#mainContents div.box01 {
		width:100%;
		height:300px;
		background: url(../images/index/topimg01.png) no-repeat;
		background-position: center top;
		background-size: auto 300px;
	}
		div#mainContents div.box01 div.center {
			width:100%;
			height:300px;
			margin: 0 auto;
			position: relative;
		}
			div#mainContents div.box01 div.center img.miryoku01 {display: none;}
			div#mainContents div.box01 div.center img.message01 {
				display: block;
				height:300px;
				position: absolute;
				top:0px;
				right:0px;
			}
	/* 赤村の魅力 スマホタブレット用*/
	div#mainContents div.spbox01 {
		width:90%;
		margin: 20px auto 0 auto;
		padding-top: 25px;
	}
		div#mainContents div.spbox01 img {
			display: block;
			height:50px;
			margin: -25px auto 0 auto;
		}
		div#mainContents div.spbox01 p {
			width:100%;
			background: #fff;
			padding: 40px 15px 25px 15px;
			box-sizing: border-box;
			line-height: 20px;
			font-size: 14px;
			margin-top: -25px;
			box-shadow: 2px 2px 4px #ccc;
		}
	/* 赤村はあかるいをモットーに */
	div#mainContents img.motto {
		display: block;
		height:50px;
		margin: 20px auto 0 auto;
	}
	/* リンクボックス */
	div#mainContents div.box02 {
		width:100%;
		margin-top: 20px;
	}
		div#mainContents div.box02 div.center {
			width:96%;
			margin: 0 auto;
			text-align: center;
		}
			div#mainContents div.box02 div.center a {
				display: inline-block;
				width:250px;
				height:183px;
				margin: 10px;
			}
				div#mainContents div.box02 div.center a img { width:100%; height:100%;}
	/* お知らせ */
	div#mainContents div.box03 {
		width:100%;
		height:252px;
		margin-top: 20px;
	}
		div#mainContents div.box03 div.center {
			width:96%;
			height:252px;
			box-sizing: border-box;
			padding: 30px 20px 0 20px;
			margin: 0 auto;
			background: #fff;
			position: relative;
			box-shadow: 2px 2px 4px #ccc;
		}
			div#mainContents div.box03 div.center p.title {
				height:38px;
				line-height: 38px;
				background: url(../images/index/newsboxbgsp.png);
				box-sizing: border-box;
				padding: 0 10px;
				font-weight: bold;
				font-size: 14px;
			}
			div#mainContents div.box03 div.center a.news {
				display: block;
				height:60px;
				line-height: 65px;
				text-decoration: none;
				color: #333;
				border-bottom: #ccc 1px solid;
				overflow: hidden;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 1;
				box-sizing: border-box;
				padding: 0 10px;
				font-size: 14px;
			}
				div#mainContents div.box03 div.center a.news span { font-size: 14px; letter-spacing: 2px;}
				div#mainContents div.box03 div.center a.news span.title { margin-left: 20px;}
			div#mainContents div.box03 div.center a.more {
				display: block;
				width:170px;
				height:30px;
				line-height: 30px;
				text-decoration: none;
				color: #333;
				text-align: right;
				font-size: 14px;
				position: absolute;
				bottom:20px;
				right:20px;	
			}
	/* SNSリンク */
	div#mainContents div.box04 {
		width:100%;
		height:650px;
		margin-top: 20px;
		background: url(../images/index/topimg02.png) no-repeat;
		background-size: auto 400px;
		background-position: center top;
		position: relative;
	}
		div#mainContents div.box04 div.center {
			width:100%;
			margin: 0 auto;
			box-sizing: border-box;
			padding: 420px 0 0 0;
			position: absolute;
			top:0;
		}
			div#mainContents div.box04 div.center img.message02 {
				display: block;
				position: absolute;
				top:250px;
				left:40px;
			}
			div#mainContents div.box04 div.center div.prbox {
				width:96%;
				box-sizing: border-box;
				background: #fff;
				margin: 0 auto;
				text-align: center;
			}
				div#mainContents div.box04 div.center div.prbox img.sptitle {
					display: block;
					height:50px;
					margin: 0 auto 20px auto;
				}
}
/* スマホ */
@media screen and (max-width: 640px) {
	/* 赤村の魅力 */
	div#mainContents div.box01 {
		width:100%;
		height:200px;
		background: url(../images/index/topimg01.png) no-repeat;
		background-position: center top;
		background-size: auto 200px;
	}
		div#mainContents div.box01 div.center {
			width:100%;
			height:200px;
			margin: 0 auto;
			position: relative;
		}
			div#mainContents div.box01 div.center img.miryoku01 {display: none;}
			div#mainContents div.box01 div.center img.message01 {
				display: block;
				height:200px;
				position: absolute;
				top:0px;
				right:0px;
			}
	/* 赤村の魅力 スマホタブレット用*/
	div#mainContents div.spbox01 {
		width:96%;
		margin: 20px auto 0 auto;
		padding-top: 15px;
	}
		div#mainContents div.spbox01 img {
			display: block;
			height:40px;
			margin: -20px auto 0 auto;
		}
		div#mainContents div.spbox01 p {
			width:100%;
			background: #fff;
			padding: 35px 10px 15px 10px;
			box-sizing: border-box;
			line-height: 20px;
			font-size: 12px;
			margin-top: -20px;
			box-shadow: 2px 2px 4px #ccc;
		}
	/* 赤村はあかるいをモットーに */
	div#mainContents img.motto {
		display: block;
		height:40px;
		margin: 20px auto 0 auto;
	}
	/* リンクボックス */
	div#mainContents div.box02 {
		width:100%;
		margin-top: 20px;
	}
		div#mainContents div.box02 div.center {
			width:96%;
			margin: 0 auto;
			text-align: center;
		}
			div#mainContents div.box02 div.center a {
				display: inline-block;
				width:250px;
				height:183px;
				margin: 10px;
			}
				div#mainContents div.box02 div.center a img { width:100%; height:100%;}
	/* お知らせ */
	div#mainContents div.box03 {
		width:100%;
		height:252px;
		margin-top: 20px;
	}
		div#mainContents div.box03 div.center {
			width:96%;
			height:252px;
			box-sizing: border-box;
			padding: 10px 10px 0 10px;
			margin: 0 auto;
			background: #fff;
			position: relative;
			box-shadow: 2px 2px 4px #ccc;
		}
			div#mainContents div.box03 div.center p.title {
				height:38px;
				line-height: 38px;
				background: url(../images/index/newsboxbgsp.png);
				box-sizing: border-box;
				padding: 0 10px;
				font-weight: bold;
				font-size: 12px;
			}
			div#mainContents div.box03 div.center a.news {
				display: block;
				height:60px;
				line-height: 65px;
				text-decoration: none;
				color: #333;
				border-bottom: #ccc 1px solid;
				box-sizing: border-box;
				padding:10px;
			}
				div#mainContents div.box03 div.center a.news span { 
					display: block; 
					height:20px; 
					line-height: 20px; 
					font-size: 12px; 
					letter-spacing: 2px;
					overflow: hidden;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 1;
					box-sizing: border-box;
				}
				div#mainContents div.box03 div.center a.news span.title { 
				}
			div#mainContents div.box03 div.center a.more {
				display: block;
				width:170px;
				height:30px;
				line-height: 30px;
				text-decoration: none;
				color: #333;
				text-align: right;
				font-size: 12px;
				position: absolute;
				bottom:20px;
				right:10px;	
			}
	/* SNSリンク */
	div#mainContents div.box04 {
		width:100%;
		height:650px;
		margin-top: 20px;
	}
		div#mainContents div.box04 div.center {
			width:100%;
			margin: 0 auto;
			box-sizing: border-box;
			padding: 220px 0 0 0;
			background: url(../images/index/topimg02.png) no-repeat;
			background-size: auto 200px;
			background-position: center top;
			position: relative;
		}
			div#mainContents div.box04 div.center img.message02 {
				display: block;
				height:40px;
				position: absolute;
				top:120px;
				left:40px;
			}
			div#mainContents div.box04 div.center div.prbox {
				width:96%;
				box-sizing: border-box;
				background: #fff;
				margin: 0 auto;
				text-align: center;
			}
				div#mainContents div.box04 div.center div.prbox img.sptitle {
					display: block;
					height:40px;
					margin: 0 auto 20px auto;
				}
}