@media screen and (max-width:640px){

/********* HTML再定義 ***********************************************/

body {
	padding: 0;
	margin:0;
	background:#fff;
}

h2, h3, h4, h5, h6 {
	font-size: 120%;
}
h2 {
	margin: 15px 0;
	padding: 5px 0;
	background:#ddd;
	border:none;
	font-weight: bold;
}
h3{
	margin:30px 0 -5px;
}
form h3 {
	margin-top: 30px;
}

table{
	width:100%;
}

/********* 全体 *****************************************************/

div#container {
	width: 98%;
	margin: 1% auto 0;
	border:none;
	padding:0;
}


/********* ヘッダー *************************************************/

div#header {
	clear: both;
	height:40px;
}
div#header h1 {
	line-height: 1.0;
	margin: 0;
}
div#header h1 a:link, div#header h1 a:visited {
	color: #222222;
	text-decoration: none;
}
div#header h1 a:active, div#header h1 a:hover {
	color: #777777;
	text-decoration: none;
}

/********* フッター *************************************************/

div#footer {
	clear: both;
}
div#footer address {
	padding-top: 10px;
	border-top: 1px solid #999999;
}






/********* メニュー *************************************************/

div#header .open,
div#header .close {
	width: 40px;
	height: 40px;
	display: block;
	position: absolute;
	right: 5px;
	top: 6px;
}
div#header .open {
	background: rgba(255,255,255,0.9) url(/images/common/header_menu_open.png) no-repeat center center;
	background-size: 40px 40px;
}
div#header .close {
	background: #000 url(/images/common/header_menu_close.png) no-repeat center center;
	background-size: 40px 40px;
}
div#header .open:hover,
div#header .close:hover {
	cursor: pointer;
}
div#header .menuBox {
  width: 100%;
	height: calc(100vh - 10px);
	padding: 10px 0 0;
	position:absolute;
	left: 0;
	top: 0;
	background: rgba(0,0,0,0.9) url(/images/common/logo.png) no-repeat 0.5% 2px;
	background-size: auto 50px;
	z-index: 500;
	display: none;
}

div#menu{
	float: none;
	width: 100%;
	position:absolute;
	top:30px;
	left:0;
	right:0;
	margin:0 auto;
	width:100%;
	background:none;
	z-index:9;
}
div#menu ul{
	display:inherit;
	border-collapse:inherit;
	border-spacing:inherit;
	width:100%;
	margin:1% 0 5%;
}
div#menu ul li{
	display:inherit;
	float:left;
	width:48%;
	margin:0.5% 1%;
	text-align:center;
	box-sizing:border-box;
	background:none;
}
div#menu > ul > li{
	padding:0;
}
div#menu > ul.inquiry > li{
	display: flex;
	width: 100%;
}
div#menu > ul.inquiry > li > a{
	width: 90%;
}
div#menu > ul.inquiry > li > ul > li > a{
	width: 100%;
}
div#menu > ul > li:last-child{
	background:none;
}
div#menu > ul.inquiry > li > ul > li{
	width: 46%;
	margin: 0 1%;
}
div#menu > ul.inquiry > li > ul > li:first-child{
	background:none;
}
div#menu > ul.inquiry > li > ul > li > a{
	background:#666;
}

div#menu ul li a{
	display:block;
	background:#1d88be;
	color:#fff;
	text-decoration:none;
	padding:9px 4px;
	font-size:14px;
}
div#menu ul li a span{
	display: none;
}
div#menu ul li ul {
	margin-top: 0;
	margin-bottom: 0;
}

div#menu h2{
	display:none;
}
div#menu h3{
	color:#fff;
	clear:both;
	padding:15px 0 4px;
	text-align: center;
	display: flex;
	align-items: center;
}
div#menu h3::before,
div#menu h3::after{
	border-top: 1px solid;
	content: "";
	flex-grow: 1;
}
div#menu h3::before {
	margin-right: 1rem;
}
div#menu h3::after {
	margin-left: 1rem;
}


/********* 内容 *****************************************************/
div.scroll table{
width:100%;
}
div.scroll{
overflow: auto;
white-space: nowrap;
}
div.scroll::-webkit-scrollbar{
 height: 5px;
}
div.scroll::-webkit-scrollbar-track{
 background: #F1F1F1;
}
div.scroll::-webkit-scrollbar-thumb {
 background: #BCBCBC;
}

div#content {
	float: none;
	width: 100%;
}
table#entryT tr:nth-child(even) td{
	background:#eee;
}

dl dd{
	padding-bottom:20px;
}

/********* 検索 *****************************************************/

div#search form {
	margin-top: 20px;
}
div#search form dl {
	margin: 0;
}
div#search form dl dt {
	margin: 0;
}
div#search form dl dd {
	margin: 0 0 5px 0;
}
div#search form p {
	margin: 0;
}

/********* ページ移動 ***********************************************/

div#page h2 {
	display: none;
}
div#page ul.order {
	margin: 10px 0;
}
div#page ul.order li {
	display: inline;
	list-style: none;
	margin-right: 10px;
}
div#page ul.direct {
	margin: 10px 0;
	text-align: right;
}
div#page ul.direct li {
	display: inline;
	list-style: none;
	margin-left: 10px;
}

/********* 設定編集 *************************************************/

div#config form h3 {
	margin: 10px 0;
	padding: 5px;
	background-color: #EEEEEE;
}
div#config form dl {
	margin-bottom: 20px;
}

/********* 個別指定 *************************************************/

dl dd.list ul {
	margin-top: 0;
	margin-bottom: 0;
}

form dl dd.list {
	padding: 5px;
	border: 1px solid #CCCCCC;
}
form dl dd.list ul {
	margin: 0;
}
form dl dd.list ul li ul {
	margin-left: 20px;
}

table.tablesorter {
	width: 100%;
}
table.tablesorter thead tr .header {
	background-image: url(/images/tablesorter/bg.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
table.tablesorter thead tr .headerSortUp {
	background-image: url(/images/tablesorter/asc.gif);
}
table.tablesorter thead tr .headerSortDown {
	background-image: url(/images/tablesorter/desc.gif);
}



/********* form *************************************************/
td.buts a{
	display:block;
	background:#06F;
	color:#fff;
	padding:6px 20px;
	text-align:center;
	margin:10px 0;
	text-decoration:none;
}

teatarea{
	height:100px;
}
div.scroll table{
width:100%;
}
div.scroll{
overflow: auto;
white-space: nowrap;
}
div.scroll::-webkit-scrollbar{
 height: 5px;
}
div.scroll::-webkit-scrollbar-track{
 background: #F1F1F1;
}
div.scroll::-webkit-scrollbar-thumb {
 background: #BCBCBC;
}


/****************** config **********************/
ul.config{
	margin:0.5% -0.5% 5%;
}
ul.config li{
	float:left;
	width:32.33%;
	margin:0.5%;
	list-style:none;
	text-align:center;
}
ul.config li a{
	display:block;
	background:#1d88be;
	color:#fff;
	text-decoration:none;
	padding:6% 0;
	font-size:9px;
}

dl.config dd input{
	width:inherit;
}


/****************** buttons **********************/
input[type="button"],
input[type="submit"],
input[type="text"],
input[type="password"],
input[type="file"],
input[type="reset"],
textarea,
select{
  border-radius: 0;
	padding:5px;
	width:100%;
	font-size:16px;
	box-sizing:border-box;
}
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="text"],
input[type="password"],
input[type="file"],
textarea{
  -webkit-appearance: none;
}

.file{
	padding:10px 5px;
	border:1px solid #ccc;
	background:#eee;
}
.file input{
}

p.formBut{
	border:1px solid #ccc;
	padding:30px;
	text-align:center;
	background:#f0f0f0;
}
p.formBut input{
	margin:5px 0;
	padding:20px 0;
	font-size:40px;
}

dl dd.inputdate input{
	width:inherit;
}






}
