@charset "utf-8";

html,body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #dcdcdc;
  font-family: "lucida grande", tahoma, verdana, arial, "Hiragino Kaku Gothic Pro","Osaka",Meiryo,"メイリオ","ＭＳ ゴシック",sans-serif;
}

@media (orientation:landscape) {
    html.ipad.ios7 > body {
        position: fixed;
        bottom: 0;
        width:100%;
        height: 644px !important;
        margin: 0;
        padding: 0;
        background-color: #dcdcdc;
        font-family: "lucida grande", tahoma, verdana, arial, "Hiragino Kaku Gothic Pro","Osaka",Meiryo,"メイリオ","ＭＳ ゴシック",sans-serif;
    }
}

@media print {
	body { display:none; }
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
text-decoration: underline;
}

a:link {
  color: #0645ad;
}

#container {
  width:100vw;
  height:100vh;
  overflow:hidden;
  background-color:transparent;
}

/*header*/
header {
  width: 100vw;
  height: 40px;
  background-color: #cacaca;
}
#toolbarDiv{/*position: relative;*/
  display: flex;
}
#toolbarDiv .hfdleft{
  height: 40px;
  display: flex;
  align-items: center;
  margin-left: 0.5em;
}
#toolbarDiv .hfspanleft{
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: calc(100vw - 654px);
  display: inline-block;
}
#toolbarDiv .hfdright{
  margin-left: auto;
  margin: 0 0.5em 0 1em;
}
#operation-button{
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  height: 40px;
}
#operation-button li{
  width: 6.5em;
  text-align: center;
  height: 1.25em;
}
#toolbarDiv.fullpage #operation-button li{
  width: 48px;
  height: auto;
}
#operation-button li+li{
  border-left: 1px solid #696969;
}
#toolbarDiv.fullpage #operation-button li+li{
  border-left: none;
}
#operation-button li a{
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  height: 1em;
  vertical-align: top;
}
#toolbarDiv.fullpage #operation-button li a{
  height: auto;
}
#hamburgerbtn {
  position:fixed;
  top:5px;
  right:15px;
  z-index:2000000;
  width:50px;
  height:50px;
  border-radius:5px;
  background:#696969;
  cursor:pointer;
}
#hamburgerbtn span {
  display:inline-block;
  position:absolute;
  left:14px;
  width:45%;
  height:3px;
  border-radius:2px;
  background:#fff;
  transition:all .4s;
}
#hamburgerbtn span:nth-of-type(1) {
  top:15px;
}
#hamburgerbtn span:nth-of-type(2) {
  top:23px;
}
#hamburgerbtn span:nth-of-type(3) {
  top:31px;
}

#hamburgerbtn.active span:nth-of-type(1) {
  top:18px;
  left:18px;
  transform:translateY(6px) rotate(-45deg);
  width:30%;
}
#hamburgerbtn.active span:nth-of-type(2) {
  opacity:0;
}
#hamburgerbtn.active span:nth-of-type(3) {
  top:30px;
  left:18px;
  transform:translateY(-6px) rotate(45deg);
  width:30%;
}

/*fullpage ico*/
#toolbarDiv.fullpage #operation-button a{
  width: 48px;
}
#toolbarDiv.fullpage span{
  display: none;
}
#toolbarDiv.fullpage #full-page::after{
  content: url(../images/re_fullscreen.png);
}
#toolbarDiv.fullpage #reset::after{
  content: url(../images/reset.png);
}
#toolbarDiv.fullpage #zoom-out::after{
  content: url(../images/zoom-out.png);
}
#toolbarDiv.fullpage #zoom-in::after{
  content: url(../images/zoom-in.png);
}
#toolbarDiv.fullpage #rotate-left::after{
  content: url(../images/rotate-left.png);
}
#toolbarDiv.fullpage #rotate-right::after{
  content: url(../images/rotate-right.png);
}


/*main*/
#content{
  width: 100vw;
  height: calc(100vh - 80px);
  overflow: hidden;
}
#view {
  width: 100%;
  height: 100%;
}

/*footer*/
footer {
  height: 40px;
  background-color: #cacaca;
}
#footerbarDiv{
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#footerbarDiv .hfdleft{
  display: flex;
  align-items: center;
}
#footerbarDiv .hfspanleft{
  display: flex;
  align-items: center;
  height: 40px;
  margin-left: 0.5em;
}
#footerbarDiv .hfspanleft a{
  display: inline-block;
}
#husen{
  white-space: nowrap;
}
#marks{
  margin: 0;
  padding: 0;
  display: flex;
  list-style-type: none;
}
#marks a{
  display: inline-block;
  padding: 0 0.5em;
}
#footerbarDiv .hfdright{
  margin-right: 0.5em;
}

@media (max-width: 686px) {
  #toolbarDiv .hfspanleft{
    width: calc(100vw - 80px);
  }
  #toolbarDiv .hfdright{
    position: fixed;
    top:0;
    display:none;
    z-index:999999;
    width:100vw;
    height: calc(100vh - 104px);
    margin: 0;
    padding: 10px 0;
    background:#f7f7f7;
  }

  #operation-button li:first-child{
    display: none;
  }

  #toolbarDiv.fullpage .hfdright{
    height: 40px;
    background: transparent;
  }
  #toolbarDiv .hfdright.active{
    display: block;
  }
  #button-panel {
    margin:0 auto;
  }
  #operation-button {
    flex-wrap:wrap;
    justify-content:flex-start;
    margin-right: 70px;
  }
  #toolbarDiv.fullpage #operation-button{
    margin-right:8px ;
  }
  #operation-button li {
    margin:0.5em;
    height: auto;
  }
  #operation-button li+li{
    border-left:none ;
  }
  #toolbarDiv.fullpage #operation-button li{
    margin: 4px;
  }
  #operation-button li a {
    padding:0.5em 1em;
    border-radius:4px;
    background:#696969;
    color:#fff;
    height: auto;
    width: 5em;
  }
  #toolbarDiv.fullpage #operation-button li a{
    background: transparent;
    top:-20px;
  }
  #footerbarDiv .hfdleft{
    position: fixed;
    bottom: 0;
    padding: 1em;
    height: 72px;
    width: 100vw;
    background:#f7f7f7;
    display: none;
  }
  #marks{
    flex-wrap: wrap;
    width: calc(100vw - 48px);
  }
  #footerbarDiv .hfdleft.active{
    display: block;
  }

  #footerbarDiv .hfdright{
    width: 100vw;
    margin: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right:0.5em ;
  }
}

@media only screen and (min-width:686px) {
  #hamburgerbtn {
    display:none;
  }
}
