/**
 * 文字コード UTF-8N 改行コードLF
 * 共通CSS
 *
 * @package    BXI 5G
 * @copyright  Copyright (c) 2021 ETRUST, INC.
 * @version    BXI 5G 5.3.21 210831
 */
@media screen and (max-width: 768px) {
  body {
    min-width: 300px;
    background: #080617;
  }
  section {
    min-width: 300px;
  }
  section form.center {
    width: calc(100% - 40px);
    height: auto;
  }
  header {
    position: relative;
    height: auto;
    display: none;
  }
  header > div {
    flex-direction: column;
  }
  header h1 {
    margin: 0 auto;
    height: 120px;
    background-position: center 50px;
  }
  header nav {
    margin: 0 auto;
  }
  header nav ul {
    display: flex;
    justify-content: space-around;
  }
  header nav ul li:nth-of-type(2),
  header nav ul li:nth-of-type(3),
  header nav ul li:nth-of-type(4),
  header nav ul li:nth-of-type(5) {
    display: none;
  }
#dashbord {
  margin: 50px auto 0 auto;
  width: 100%;
}
div.snap_margin::before {
	width: 40px;
	height: 140px;
}
div.snap_margin a.prev {
	right: 5px;
}
div.snap_margin a.next {
	left: 5px;
}
#dashbord div.snap_wrap {
  width: 100%;
  max-width: calc(100% - 80px);
}
#dashbord div.snap {
  height: 140px;
}
#dashbord div.snap div.page {
	width: 140px!important;
}
#menu div.panel {
	margin: 40px auto;
  width: 100%;
  max-width: calc(100% - 40px);
}
#menu div.panel > div {
	display: block;
}
#menu div.panel > div > div {
	width: 100%;
}
#menu div.panel > div > div:nth-child(n+2) {
	margin-top: 20px;
}
  #dashbord div.snap div.page div.icon {
    width: 140px;
    height: 140px;
    background-size: 140px 140px;
  }
  #dashbord div.snap div.page div.icon::before {
    width: 140px;
    height: 80px;
    background-size: 80px !important;
  }
  #dashbord div.snap div.page div.icon h2 {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 0;
  }
  #dashbord div.snap div.page div.icon label {
    font-size: 12px;
    line-height: 20px;
    margin-bottom: 8px;
  }
  section {
    min-height: 100vh !important;
  }
  section div.wrap {
    padding: 0;
  }
  section nav {
    border: none;
    position: relative;
    top: 65px;
    left: 0px;
    padding: 0;
    width: 100%;
    height: auto;
  }
  section nav ul {
    display: flex;
    width: 100%;
    height: auto;
    border-top: 1px solid #2f1d78;
    overflow-x: scroll;
  }
  section nav ul li {
    margin: 0;
    min-width: 65px;
    border: none;
  }
  section nav a {
    left: initial;
    right: 0;
    top: -65px;
    bottom: initial;
  }
  section div.navmenu {
    position: absolute;
    top: 130px;
    left: 0px;
  }
  section div.work {
    margin-top: 65px;
    padding-top: 0;
    position: relative;
    flex-direction: column;
  }
  section div.work div.view.close,
  section div.work div.view.open {
    display: block;
    margin-left: 150px;
    width: 50px;
    height: 26px;
    line-height: 26px;
    background: #060212;
    border: 1px solid #bba7d2;
    border-top: none;
    border-radius: 0 0 10px 10px;
    color: #fff;
    text-align: center;
  }
  section div.work div.view.open {
    position: absolute;
    top: 0px;
    right: 20px;
    z-index: 8;
  }
  section div.submenu {
    display:none;
    margin-bottom: 30px;
    padding: 0;
    min-width: 220px;
    max-width: 220px;
    max-height: 220px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 8;
  }
  dl dd > div {
    margin: 2px 0;
  }
  section form dl {
    flex-direction: column;
  }
  section form dl dt {
    flex-basis: auto;
  }
  section form dl dd {
    flex-basis: auto;
    padding-left: 0;
  }
  section div.side {
    max-width: 100%;
    min-height: 300px;
    padding-top: 50px;
  }
  section div.center {
    padding-top: 50px !important;
    min-height: calc(100vh - 65px - 65px);
  }
  section div.center.split {
    min-height: initial;
  }
  section div.center form {
    padding-top: 0;
  }
  section div.center form.data {
    min-height: initial;
  }
  section div.center div.title {
    margin: 10px;
    padding: 0;
  }
  section div.center div.title select {
    margin: 10px 0 0 0;
  }
  section div.center div.title select + a {
    margin: 10px 0 0 20px;
  }
  section div.center div.title p,
  section div.center form.search {
    float: none;
  }
  section div.center div.title > div {
    background: rgba(255,255,255,0.2) !important;
    flex-direction: column !important;
  }
  section div.center div.title dl {
    flex-direction: column !important;
  }
  section div.center div.title dl dd {
    background: rgba(255,255,255,0.65) !important;
  }
  div.center div.list p {
    margin: 10px !important;
  }
  section div.center table.layout {
    display: none;
  }
  section div.center table tr td {
    color: #1e1978 !important;
  }
  section div.center table tr td span {
    color: #711ebf !important;
  }
  section div.center table tr td a {
    color: #1e1978 !important;
  }
  section div.center table tr td:last-child {
    width: 60px !important;
  }
  section div.center table tr td:last-child button {
    margin: 2px 0;
  }
  section div.center form.tab {
    margin: 60px 10px 30px 10px;
    padding: 10px 10px 30px 10px;
    min-height: 510px;
  }
  section div.center form.tab > ul li {
    width: 90px;
  }
  section div.center form.tab textarea {
    min-height: 300px;
  }
  section div.center #page_browse iframe {
    min-height: 800px;
  }
  section div.center div.panel table tr td {
    padding: 5px !important;
  }
  section div.center div.panel table tr td:last-child {
    width: 60px !important;
  }
  section div.center form dl.detail > dt {
    padding: 20px 0 0 0 !important;
  }
  section div.center form dl.detail > dd {
    padding: 0 !important;
  }
  section div.center form dl.detail dd dl dd {
    padding: 10px 5px !important;
    background: rgba(255,255,255,0.65) !important;
  }
  section div.center form a.customer {
    width: 40px !important;
    height: 40px !important;
    background-size: 32px !important;
    background-position: left center !important;
  }
  section div.center form dl.customer dd {
    text-indent: 50px !important;
  }
  section div.center form dl.customer a {
    width: 45px !important;
    height: 45px !important;
    background-size: 32px !important;
    background-position: center center !important;
  }
  section div.center form dl.hist {
    margin-top: 30px !important;
  }
  section div.bottom {
    float: none;
    padding: 0 30px 30px 30px;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  section div.bottom.split {
    flex-direction: column-reverse;
  }
  section div.bottom button {
    margin: 0px 0px 20px 0px !important;
    width: 100%;
    height: 45px !important;
  }
  section div.pager {
    margin: 50px auto !important;
  }
  ul.tool li {
    margin-bottom: 5px;
  }
  ul.tool li.large {
    xmargin-top: 20px;
  }
  /*----------------------------------------------------------------------
  イメージリスト
  ------------------------------------------------------------------------*/
  div.imagelist, div.imageview {
    display: flex;
  }
  div.imagelist div {
    margin: 7px;
    width: 110px;
  }
  div.dialog div.imagelist {
    margin: 0 !important;
  }
  div.dialog div.imagelist div {
    width: calc(50% - 14px) !important;
  }
  div.dialog form#upload  {
    margin-top: 20px !important;
  }
  div.imagelist div label, div.imageview div label {
    width: 100%;
  }
  div.imagelist div img, div.imageview div img {
    max-width: 100%;
  }
  div.imagelist + p, div.imageview + p, div.filelist + p {
    display: none;
  }
  section div.imageeditor {
    height: calc(100vh - 136px) !important;
  }
  section div.imageeditor div.view {
    height: calc(100vh - 196px) !important;
    padding-bottom: 100px;
  }
  section div.imageeditor div.zoom {
    height: 60px !important;
  }
  section div.imageeditor div.bottom {
    padding: 0 !important;
  }
  /*-------------------------------------------------------------
    Dialg
  ---------------------------------------------------------------*/
  div.dialog {
    position: fixed !important;
    width: 90%  !important;
    height: 80vh !important;
    padding: 50px 15px 15px 15px !important;
    display: flex;
    flex-direction: column;
  }
  div.dialog nav button {
      float: none;
      position: absolute;
      top: 10px;
      right: 10px;
  }
  div.dialog  form {
    height: 100% !important;
  }
  div.dialog  form div.head {
    margin: 10px 0 10px 0 !important;
  }
  div.dialog form div.page {
    height: calc(100% - 60px) !important;
    padding: 0 !important;
  }
  div.dialog form dl {
    flex-direction: column;
  }
  div.dialog form dl dt, div.dialog form dl dd {
    padding: 10px 0;
  }
  div.dialog form div.data table {
    width: 100% !important;
  }
  div.dialog div.split {
    flex-direction: column !important;
  }
  div.dialog form div.split > div:nth-of-type(1) {
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    background-color: initial !important;
  }
  div.dialog form div.split > div:nth-of-type(2) {
    width: 100% !important;
    min-width: 0px !important;
  }
  div.dialog form#upload {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
  }
  div.dialog form#upload input[type="file"] + label,
  div.dialog form#upload input[type="file"] + label + label {
    margin: 0 10px !important;
    width: 50px !important;
    height: 50px !important;
    text-indent: -9999px !important;
    background-position: center center;
  }
  div#image div.conf {
    top: 150px;
  }
  div.image_view img {
    position: relative !important;
    top: 0px !important;
    left: 0px !important;
    transform: initial !important;
  }
  div.dialog form#page_parts {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  div.dialog form#page_parts ul {
    width: 98%;
  }
  div.dialog form div.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
  }
}