

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, input, textarea, p, th, td, figure {
	margin: 0;
	padding:0
}

h1, h2, h3, h4, h5, h6 {
	font-size: 100%;
	font-weight: 400;
}

html, body {
	font-size: 16px;
	color: #333;
	line-height: 1.5;
	font-family: "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	word-break:break-all
}

h1 {
	font-size: 150%;
}

h2 {
	font-size: 135%;
}

h3 {
	font-size: 120%;
}

table {
	width: 100%;
	border: 1px solid #333;
	border-collapse: collapse;
	border-spacing: 0;
}

caption {
	font-style: normal;
	font-weight: 400;
	text-align: left;
}

table caption:after {
	content: "";
	display: block;
	clear: both;
}

table caption .left {
	width: 75%;
	float: left;
}

table caption .right {
	width: 25%;
	float: right;
	text-align: right;
}

th {
	padding: 0.25em;
	font-style: normal;
	font-weight: 400;
	background: #ffd;
	border: 1px solid #333;
	border-collapse: collapse;
	border-spacing: 0;
}

td {
	padding: 0.25em;
	border: 1px solid #333;
	border-collapse: collapse;
	border-spacing: 0;
	box-sizing: border-box;
}

ul {
	list-style: none;
}

a {
	color: #333;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	opacity: 0.7;
}

a.btn {
	display: inline-block;
	margin: 0.5em 0;
	padding: 0.15em 1em;
	border: 1px solid #333;
	border-radius: 10px;
	text-decoration: none;
}

a.btn:hover {
	text-decoration: none;
}

img {
	max-width: 100%;
	border: 0;
	vertical-align: bottom;
}

input, select, textarea {
	font-size: 100%;
}

input[type=submit] {
	display: inline-block;
	width: 1px;
	height: 1px;
	border: 0;
	line-height: 0;
	opacity: 0;
}

/* common */

.text-bold {
	font-weight: bold;
}

.text-left {
	text-align: left;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-blue {
	color: #87cefa;
}

.errMsg {
	color: #f00;
	font-weight: bold;
}

/* parts */

header .description,
header nav > ul,
main,
footer p {
	width: 90%;
	max-width: 980px;
	margin: auto;
	box-sizing: border-box;
}

header h1 {
	padding-top: 1.25rem;
	text-align: center;
	line-height: 1;
}

header .description {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

header nav {
	border-top: 1px solid #333;
	border-bottom: 1px solid #333;
	text-align: center;
	box-sizing: border-box;
}

header nav ul {
	display: grid;
	justify-content: center;
}

header nav li {
	position: relative;
	border-right: 1px solid #333;
	box-sizing: border-box;
}
header nav li:first-of-type {
	border-left: 1px solid #333;
}

header nav li a {
	display: block;
	padding: 1em 0;
}

header nav li.has-child ul {
	position: absolute;
	top: calc(100% - 10px);
	left: calc(-1px + 10px);
	width: 11em;
	border: 1px solid #333;
	background: #fff;
	z-index: 1;
}

header nav li.has-child li {
	display: block;
	border-bottom: 1px solid #333;
}

header nav li.has-child li:last-of-type {
	border-bottom: 0;
}

main {
	padding: 0.5em 0;
}

main p {
	margin-bottom: 1em;
}
main p:last-child {
	margin-bottom: 0;
}

footer {
	border-top: 1px solid #333;
	text-align: center;
	line-height: 2;
}

@media all and (min-width: 641px){
/* pc */
	.sp {
		display: none;
	}

	header nav ul {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
/* pc end */
}

@media all and (max-width: 640px){
/* sp */
	.no-sp {
		display: none;
	}

	html, body {
		font-size: 14px;
	}

	header .description {
		margin: 0.5em auto;
	}

	header .description .left {
		width: 100%;
	}

	header .description .right {
		width: 100%;
		text-align: right;
	}

	header nav ul {
		grid-template-columns: 1fr 1fr;
	}

	table.search th {
		min-width: 5em;
	}

	table caption .left {
		width: calc(100% - 7em);
	}

	table caption .right {
		width: 7em;
	}
/* sp end */
}
