@charset "utf-8";

* {
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	background-color: #fff;
	color: #000;
	font-size: 15px;
	line-height: 150%;
	font-family: sans-serif;
}

table {
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}
td {
	word-break: break-all;
	word-wrap: break-word;
}

a {
	color: #f30;
	text-decoration: underline;
}

p {
	margin-bottom: 0.5em;
}

img {
	border: 0;
}

input[type='text'],
input[type='tel'],
input[type='date'],
input[type='time'],
input[type='email'],
input[type='password'],
select,
textarea {
	padding: 5px;
	background: #fff;
	border: 2px #444 solid;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	color: #444;
	font-family: sans-serif;
	font-size: 1rem;
}
option {
	font-family: sans-serif;
}
input::placeholder {
	color: rgba(0, 0, 0, 0.4);
}
textarea {
	line-height: 150%;
}
button {
	padding: 5px 10px;
	-webkit-box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	border: none;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	color: #fff;
	font-size: 1rem !important;
	line-height: 100%;
	font-family: sans-serif !important;
	font-weight: bold;
	text-shadow: 1px 0 0 #000, 1px 1px 0 #000, 0 1px 0 #000, -1px 1px 0 #000, -1px 0 0 #000, -1px -1px 0 #000, 0 -1px 0 #000, 1px -1px 0 #000;
	cursor: pointer;
}
button:hover {
	opacity: 0.6;
}
button:disabled {
	opacity: 0.2;
}



/* 共通 */
header {
	position: relative;
	width: calc(100% - 20px);
	height: 50px;
	margin: 0 auto 10px;
	background: #c9eeff;
	-webkit-box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	border-radius: 0 0 5px 5px;
	-webkit-border-radius: 0 0 5px 5px;
	-moz-border-radius: 0 0 5px 5px;
}
header h1 {
	position: absolute;
	left: 20px;
	top: 14px;
	color: #666;
	font-size: 24px;
	font-weight: bold;
}
header > div {
	position: absolute;
	right: 20px;
	bottom: 8px;
	font-size: 1rem;
}
header > div > span {
	display: inline-block;
	margin-right: 10px;
	color: #000;
}

main {
	display: flex;
	flex-direction: row-reverse;
	position: relative;
	width: calc(100% - 20px);
	margin: 0 auto;
	border-style: solid;
	border-width: 3px 3px 0 3px;
	border-color: #c9eeff;
	border-radius: 5px 5px 0 0;
	-webkit-border-radius: 5px 5px 0 0;
	-moz-border-radius: 5px 5px 0 0;
}
main aside,
main article {
	display: block;
}



/* 主領域 */
article {
	width: calc(100% - 200px);
	min-height: calc(100vh - 65px);
	background: #f3f3f3;
	padding: 10px;
}
article > h1 {
	width: 100%;
	height: 40px;
	margin-bottom: 10px;
	background: #509cba;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	color: #fff;
	font-size: 1.2rem;
	line-height: 40px;
	text-indent: 20px;
}
section { }
section.search_block,
section.list_block,
section.edit_block {
	margin-bottom: 10px;
}
section > p small {
	display: block;
	margin: 3rem 0 0.5rem;
	font-size: 0.9rem;
	text-align: center;
}



/* メニュー */
aside {
	flex-grow: 1;
	width: 200px;
	padding-top: 10px;
	background: #fff;
}
nav {
	width: 100%;
	margin: 0 auto;
}
nav ul {
	width: calc(100% - 10px);
	display: block;
	list-style-type: none;
}
nav ul li {
	display: block;
	width: 100%;
	height: 35px;
	margin-bottom: 6px;
	padding-left: 10px;
}
nav ul li a,
nav ul li span {
	display: block;
	width: 100%;
	height: 35px;
	padding-left: 10px;
	-webkit-box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	color: #333;
	font-size: 1rem;
	line-height: 35px;
}
nav ul li a {
	background: rgba(128, 128, 128, 0.15);
	text-decoration: none;
}
nav ul li a.active,
nav ul li span {
	background: rgba(128, 128, 0, 0.15);
}
nav ul li a:hover {
	background: rgba(255, 255, 200, 0.3);
}



/* ページャ等 */
.pager {
	display: block;
	width: 100%;
	margin-bottom: 10px;
	text-align: center;
}
.pager span,
.pager a {
	display: inline-block;
	padding: 3px 10px;
	font-size: 1em;
	line-height: 100%;
}
.pager span {
	background: #cce0b3;
	color: #8a8;
}
.pager span.nowpage {
	background: #a34f66;
	color: #fff;
}
.pager a {
	background: #396800;
	color: #fff;
	text-decoration: none;
}
.pager a:hover {
	background: #aa906d;
}

.numberbox {
	width: 100%;
	margin-bottom: 25px;
	font-size: 0.9em;
	text-align: center;
}



/* table等 */
section.search_block table,
section.list_block table,
section.edit_block table {
	width: 100%;
	margin-bottom: 10px;
	border-top: 1px #ccc solid;
	border-left: 1px #ccc solid;
}
section.search_block table th,
section.search_block table td,
section.list_block table th,
section.list_block table td,
section.edit_block table th,
section.edit_block table td {
	padding: 3px;
	border-right: 1px #ccc solid;
	border-bottom: 1px #ccc solid;
	color: #000;
	font-size: 1rem;
}

section.search_block table th,
section.search_block table td {
	background: rgba(255, 255, 255, 0.5);
}
section.search_block table th {
	width: 8rem;
	font-weight: normal;
}
section.search_block table td button {
	margin-bottom: 5px;
	font-size: 0.9rem;
}

section.list_block table th {
	background-color: #fff;
	font-weight: normal;
	text-align: center;
}
section.list_block table tr:nth-child(odd) {
	background: #e8f3f3;
}
section.list_block table tr:nth-child(even) {
	background: #fff;
}
section.list_block table tr {
	background: #fff;
}
section.list_block table tr.no_reserve {
	background: #dcc;
}
section.list_block table td button {
	width: 100%;
	padding: 5px;
	font-size: 0.9rem;
}

section.edit_block table th {
	width: 8rem;
	background: rgba(255, 255, 255, 0.5);
	font-weight: normal;
}
section.edit_block table td .required {
	background: #fef;
}



/* ログイン */
article#login { }
article#login section form {
	display: block;
	width: 600px;
	margin: 0 auto;
	padding: 50px;
	background: rgba(0, 0, 0, 0.2);
}
article#login section dl {
	display: table;
	width: 100%;
}
article#login section dt,
article#login section dd {
	display: table-cell;
	padding-bottom: 10px;
}
article#login section dt {
	width: 20%;
	text-align: right;
}
article#login section dd {
	width: 80%;
}



/* その他共通 */
.left {
	text-align: left !important;
}
.center {
	text-align: center !important;
}
.right {
	text-align: right !important;
}

.imeon {
	ime-mode: active;
}
.imeoff {
	ime-mode: inactive;
}
.imenone {
	ime-mode: disabled;
}

.small {
	font-size: 90%;
}

.wid_2em {
	width: 2rem !important;
}
.wid_3em {
	width: 3rem !important;
}
.wid_5em {
	width: 5rem !important;
}
.wid_7em {
	width: 7rem !important;
}
.wid_8em {
	width: 8rem !important;
}
.wid_9em {
	width: 9rem !important;
}
.wid_10em {
	width: 10rem !important;
}
.wid_12em {
	width: 12rem !important;
}
.wid_15em {
	width: 15rem !important;
}
.wid_20em {
	width: 20rem !important;
}
.wid_25em {
	width: 25rem !important;
}
.wid_30em {
	width: 30rem !important;
}
.wid_40em {
	width: 40rem !important;
}
.wid_50em {
	width: 50rem !important;
}
.wid_half {
	width: 50% !important;
}
.wid_33per {
	width: 33% !important;
}
.wid_max {
	width: 100% !important;
}

.hit_5em {
	height: 5rem !important;
}
.hit_10em {
	height: 10rem !important;
}
.hit_15em {
	height: 15rem !important;
}
.hit_20em {
	height: 20rem !important;
}



#ajax_wait {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 10000;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
}
#ajax_wait img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	width: 200px;
	height: 200px;
}



/* ボタン */
button.form_btn_blue {
	background: #2076d8;
}
button.form_btn_green {
	background: #26d620;
}
button.form_btn_red {
	background: #d33a1f;
}
button.form_btn_orange {
	background: #d1981f;
}
button.form_btn_gray {
	background: #999;
}
