/* CSS Document */
@charset "utf-8";

.sp {
	display: none;
}
.kokumintohyo {
	width:233px;
	background:url(images/bodybg.png) 0 0 repeat-y;
	text-align:center;
}
.kokumintohyo .title {
	width:233px;
	min-height:78px;
	background:url(images/titlebg.png) 0 0 no-repeat;
	position:relative;
}
.kokumintohyo .title h3 {
	position:absolute;
	top:6px;
	left:6px;
	width:221px;
	height:72px;
	text-indent:-9999px;
	background-position:0 0;
	background-repeat:no-repeat;	
}
#q1 .title h3 { background-image:url(images/kttitle_1.png); }
#q2 .title h3 { background-image:url(images/kttitle_2.png); }
#q3 .title h3 { background-image:url(images/kttitle_3.png); }
#q4 .title h3 { background-image:url(images/kttitle_4_2.png); }
#q5 .title h3 { background-image:url(images/kttitle_5.png); }
#q6 .title h3 { background-image:url(images/kttitle_6.png); }
#q7 .title h3 { background-image:url(images/kttitle_7.png); }
#q8 .title h3 { background-image:url(images/kttitle_8.png); }
.kokumintohyo .title span {
	position:absolute;
	right:6px;
	bottom:0;
	display:inline-block;
	padding:4px 10px;
	text-align:center;
	background:#e6f5fa;
	font-size:12px;
	line-height:12px;
	color:#140d0e;
	border-radius:4px;
}
.kokumintohyo h4 {
	margin:auto;
	padding:20px 0 10px;
	font-size:16px;
	line-height:20px;
}
.kokumintohyo .hint {
	height:20px;
	margin:auto;
	padding:0 6px 8px;
	line-height:20px;
	font-size:12px;
}
.kokumintohyo .hint a {
	display:block;
	height:20px;
	padding-right:57px;
	margin-right:10px;
	background:url(images/hintbtn.png) right 0 no-repeat;
}
.kokumintohyo .hint a:hover {
	background-position:right -20px;
}
.kokumintohyo .hint a span {
	display:none;
}
.kokumintohyo .bottom {
	width:221px;
	min-height:32px;
	padding:0 6px 6px;
	background:url(images/bottombg.png) 0 bottom no-repeat;
	text-align:right;
}
a#btnkt {
	display:inline-block;
	width:160px;
	height:32px;
	margin-right:1em;
	background:url(images/ktheadh2.png) 0 0 no-repeat;
	text-indent:-9999px;
}
a#btnkt:hover {
	background-position:0 -32px;
}

/*for page kokumintohyo*/
#kthead {
	width:960px;
	height:35px;
	margin:0 auto;
	padding-bottom:1em;
	text-align:left;
}
#kthead h2 {
	float:left;
	width:160px;
	height:32px;
	background:url(images/ktheadh2.png) 0 0 no-repeat;
	text-indent:-9999px;
}
#kthead p {
	float:right;
	height:18px;
	padding:1em;
	font-family:"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size:14px;
	color:#555;
	font-weight:bold;
	vertical-align:bottom;
}
#kthead p em {
	font-size:18px;
}
/*for page kokumintohyo masonry.js */
article {
    width:100%;
    margin:0 auto;
}
section {
    width: 233px;
    margin: 5px;
    overflow: hidden;
}
.alignleft {
	float:left;
}
article, section { display: block; }

.simple-modal {
    width: auto;
}

@media (max-width: 767px) {
	.sp {
		display: block;
	}
	#kthead {
		width: 100%;
		height: auto;
		padding-bottom: 0;
		text-align: center;
	}
	#kthead h2 {
		float: none;
		background: url(images/ktheadh2-sp.png) 50% 0 no-repeat;
		background-size: auto 30px;
		margin: auto;
	}
	#kthead p {
		float: none;
		height: auto;
		padding: 0.5em;
		text-align: center;
		font-size: 12px;
	}
	section.alignleft {
		width: 100%;
		margin: 0 auto;
	}
	.kokumintohyo {
		width: 88%;
		margin: 10px auto;
		background: url(images/bodybg-sp.png) 0 0 repeat-y;
		background-size: 100% auto;
	}
	.kokumintohyo .title {
		width: 100%;
		background: none;
		min-height: 86px;
	}
	.kokumintohyo .title h3 {
		background-position: 50% 0;
		background-size: 320px auto;
		width: 100%;
		left: 0;
	}
	#q1 .title h3 { background-image:url(images/kttitle_1-sp.png); }
	#q2 .title h3 { background-image:url(images/kttitle_2-sp.png); }
	#q3 .title h3 { background-image:url(images/kttitle_3-sp.png); }
	#q4 .title h3 { background-image:url(images/kttitle_4-sp.png); }
	#q5 .title h3 { background-image:url(images/kttitle_5-sp.png); }
	#q6 .title h3 { background-image:url(images/kttitle_6-sp.png); }
	#q7 .title h3 { background-image:url(images/kttitle_7-sp.png); }
	#q8 .title h3 { background-image:url(images/kttitle_8-sp.png); }
	.kokumintohyo .title span {
		width: 4em;
		right: 0;
		left: 0;
		margin: auto;
	}
	.kokumintohyo .hint {
		box-sizing: border-box;
		height: 30px;
		padding: 0;
		width: 240px;
		line-height: 30px;
	}
	.kokumintohyo .hint a {
		background: url(images/hintbtn-sp.png) right 0 no-repeat;
		background-size: auto 30px;
		color: #f00;
		height: 40px;
		padding-right: 70px;
		margin-right: 0;
		text-decoration: underline;
		text-align: right;
	}
	.kokumintohyo .hint a:hover {
		background-position: right 0;
	}
	.kokumintohyo h4 {
		padding: 10px 0;
		font-size: 18px;
		font-weight: bold;
		line-height: 1.4em;
	}
	.kokumintohyo .bottom {
		width: 100%;
		background: url(images/bodybg-sp.png) 0 bottom no-repeat;
		background-size: 100% auto;
		box-sizing: border-box;
	}

	.simple-modal {
		width: 100%;
		max-width: 400px;
		left: 0;
		box-sizing: border-box;
		border-radius: 0;
	}
	.simple-modal .simple-modal-header {
		border-bottom: none;
		padding: 15px;
	}
	.simple-modal .simple-modal-header h1 {
		display: none;
	}
	.simple-modal .simple-modal-body {
		padding: 10px 0;
	}
	.simple-modal .simple-modal-body div.contents img {
		width: 100%;
		max-width: 400px;
		height: auto;
	}
	.simple-modal a.close {
		top: 5px;
		right: 5px;
		background: url(images/modalclosebtn-sp.png) 0 0 no-repeat;
		background-size: 30px auto;
	}

}

