body {
	margin: auto;
	background-color: #F0E1D1;
}

a {
	color: saddlebrown;
	text-decoration: none;
}

.pageheader {
	font-size: 28px;
	padding-top: 100px;
	padding-left: 30px;
}

@media (min-width: 576px) {
	.titlebar {
		transform: translate:(0,-50%);
		font-size: 28px;
		text-align: center;
		padding: 0px;
		background-color: crimson;
		box-shadow: 0px 0px 0px 2px #af1818;
		border-radius: 15px 15px 0px 0px;
		position: fixed;
		bottom: 0px;
		width: 99%;
		height: 100px;
		margin-right: .5%;
		margin-left: .5%;
		z-index: 4;
	}

	.languageswitch {
		position: absolute;
		right: 20px;
		top: 100px;
		z-index: 5;
	}

	#navbar {
		position: fixed;
		width: 100%;
		z-index: 5;
	} 

	#navbar #holder {
		height: 70px;
	} 

	#navbar #holder .home {
		width: 48px;
		height: 36px;
		padding: 20px 0px 10px 0px;
		background-color: white;
	}	

	#navbar #holder ul li {
		/*ボタンの寸法は200x55 (198(メーン) + 1x2(ボーダー)) x (23（メーン） + 15x2(パディング) + 1x2(ボーダー));*/
		float: left;
		width: 30%;
		border: 1px solid black;
		padding: 15px 0px 15px 0px;
		border-radius: 0px 0px 15px 15px;
		text-align: center;
		line-height: 36px;
		font-family: HGS明朝E;
		font-size: 36px;
		color: black;
		background: crimson;
		display: inline-block;
	}

	.submenu {
		background: white;
		display: none;
		position: fixed;
		top: 68px;
		width: 27%;
		max-height: 480px;
		overflow: auto;
	}

	.submenucontainer {
		display: none;
		position: absolute;
		float: top;
		width: 30%;
	}
	.submenuitem {
		padding: 8px;
		margin 2px 0px 2px 0px;
		background-color: white;
		color: black;
		font-size: 20px;
	}
	
	tr.datarow {
		font-size: 24px;
	}
	
	.datapiece {
		display: inline-block;
		font-size: 24px;
		width: content-max;
		margin: 5px;
		padding: 5px 15px 5px 15px;
		border: 2px pink solid;
		border-radius: 10px;
	}

	.datapiece:hover {
		border: 2px crimson solid;
		box-shadow: 3px 3px 3px #af1818;
	}
}

@media (min-width: 992px) {
	.titlebar {
		font-size: 28px;
		text-align: center;
		padding: 10px 20px 10px 20px;
		background-color: crimson;
		box-shadow: -3px 3px 0px 2px #af1818;
		border-radius: 0px 0px 0px 15px;
		position: absolute;
		top: 0px;
		right: 0px;
		bottom: auto;
		min-width: 500px;
		width: auto;
		height: auto;
		margin-left: auto;
		margin-right: 0px;
		z-index: 4;
	}

	.languageswitch {
		position: fixed;
		float: right;
		right: 20px;
		top: 20px;
		z-index: 5;
	}

	#navbar {
		position: fixed;
		z-index: 5;
	} 

	#navbar #holder {
		height: 55px;
	} 

	#navbar #holder .home {
		width: 48px;
		height: 24px;
		padding: 15px 0px 15px 0px;
		background-color: white;
	}	

	#navbar #holder ul li {
		/*ボタンの寸法は200x55 (198(メーン) + 1x2(ボーダー)) x (23（メーン） + 15x2(パディング) + 1x2(ボーダー));*/
		float: left;
		width: 198px;
		border: 1px solid black;
		padding: 15px 0px 15px 0px;
		border-radius: 0px 0px 15px 15px;
		text-align: center;
		line-height: 24px;
		font-family: HGS明朝E;
		font-size: 24px;
		color: black;
		background: crimson;
		display: inline-block;
	}
	
	.submenu {
		background: white;
		display: none;
		position: fixed;
		top: 55px;
		width: 170px;
		max-height: 480px;
		overflow: auto;
	}

	.submenucontainer {
		display: none;
		position: absolute;
		float: top;
		width: 230px;
	}
	
	.submenuitem {
		padding: 8px;
		background-color: white;
		color: black;
		font-size: 15px;
	}

	tr.datarow {
		font-size: 16px;
	}
	
	.datapiece {
		display: inline-block;
		font-size: 16px;
		width: content-max;
		margin: 5px;
		padding: 5px 15px 5px 15px;
		border: 2px lightred solid;
		border-radius: 10px;
	}

	.datapiece:hover {
		border: 2px red solid;
		box-shadow: 3px 3px 3px #af1818;
	}
}

#titlebarmainline {
	position: static;
	left: auto;
	bottom: auto;
	width: auto;
	font-size: 28px;
}

#titlebartagline {
	position: static;
	left: auto;
	bottom: auto;
	width: auto;
	font-size: 20px;
}

#titlebarsitename {
	position: static;
	right: auto;
	bottom: auto;
	width: auto;
	font-size: 18px;
}

#navbar #holder ul {
	list-style: none;
	padding: 0px;
	margin: 0px;
}
#navbar #holder ul li:hover {
	background: #af1818;
	color: white;
	text-shadow: 1px 1px 1px black;
}


#navbar #holder .home:hover {
	background-color: white;
}

.submenuvisible {
	border: 2px solid;
	box-shadow: 5px 5px 5px #af1818;
}

.submenuitemhover {
	background-color: crimson;
}

hr.header {
	border-top: 3px solid #af1818;
	border-radius: 15px;
	width: 80%;
}

hr.separator {
	border-top: 2px solid crimson;
	border-radius: 15px;
	width: 40%;
}

tr.datarow:hover {
	background: #ffeccc;
}

td.logininfo {
	border: 2px solid #af1818;
	border-radius: 10px;
	font-size: 11px;
	background-color: white;
	padding: 3px 20px 3px 20px;
}

table.category {
	border-collapse: separate;
	border-spacing: 20px;
	padding: 20px;
}

td.category {
	border: 5px solid #af1818;
	border-radius: 25px;
	background-color: white;
	padding: 10px;
	margin: 10px;
	text-align: center;
	font-size: 24px;
}

span.category {
	font-size: 48px;
}

table.data {
	border: 2px solid #af1818;
	border-radius: 10px;
	border-spacing: 5px;
	border-collapse: separate;
}

td.data {
	padding: 2px 10px 2px 10px;
}

th.data {
	text-align: right;
	padding: 2px 10px 2px 10px;
}

.inactivedata {
	color: #909090;
}

span.myname {
	font-size: 24px;
	font-weight: bold;
	color: #af1818;
}

div.message {
	text-align: center;
	font-size: 18px;
	background-color: white;
	border: 3px solid #af1818;
	padding: 10px;
	border-radius: 15px;
	width: fit-content;
}

.progressbar {
	width: 20px;
	height: 20px;
	display: inline-block;
}

input,select {
	border-radius: 7px;
	padding: 1px 5px 1px 5px;
	box-shadow: 1px 1px 0px 0px gray;
}

input[type=radio] {
	box-shadow: 0px 0px 0px 0px;
}

button {
	border-radius: 10px;
	padding: 1px 10px 1px 10px;
	box-shadow: 1px 1px 0px 0px gray;
	margin: 1px;
}

table {
	border-radius: 5px;
}
