* {
  margin: 0;
  padding: 0;
  outline: 0;
  -webkit-overflow-scrolling: touch;

  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
ul{
  list-style: none;
}
html {
  height: 100%;
  overflow: hidden;
}
body{
  height: 100%;
  font-family: Arial,Helvetica,"メイリオ",Meiryo,"ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN W3","ＭＳ Ｐゴシック",Osaka,sans-serif;
  font-size: 16px;
  *+font-size: medium;
  font-size: 100%;
  background-color: #000;

  -webkit-touch-callout: none;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
}
body *{
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -o-user-select: none;
  user-select: none;
}

/* Layout */
.row{
  display: -webkit-box;
  display: -moz-box;
  display: -ms-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  flex-direction: row;/* column */
  flex-wrap: wrap;/* no-wrap */
  justify-content: flex-start;
  align-items: stretch;
  align-content: flex-start;
}
.row li{
  margin-left: 0;
  width: 100%;
}
/*
.col-1 { width: 8.33333%; }
.col-2 { width: 16.66667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33333%; }
.col-5 { width: 41.66667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33333%; }
.col-8 { width: 66.66667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33333%; }
.col-11 { width: 91.66667%; }
.col-12 { width: 100%; }
*/

div.container {
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  text-align: left;
  position: relative;
  background-color: #666;
  background-image: url('../../images/common_column_base_1.png');
  background-position: left bottom 20px;
  background-repeat: no-repeat;
  background-size: auto 100%;

  border-color: #000;
  border-style: none;
  border-width: 0 1px 1px 1px;
  overflow: hidden;
}
/* Header */
#header {
  width: 100%;
  height: 65px;
  margin: 0 auto;
  background-color: #222;
  position: relative;
}
h1 {
  padding-left: 50px;
  padding-top: 0px;
}
h1 img{
  max-width: 85%;
  height: 40px;
}
#topicpath {
  position: absolute; left: 50px; bottom: 0;
  width: 100%;
  background-color: #222;
}
#topicpath li{
  font-size: 90%;
  margin: 0 0 4px 10px;
  color: #ccc;
}

/* Main */
#main {
  height: 100%;
  margin: 0 auto;
  position: relative;
}


/* Footer */
#footer{
  position: absolute; left: 0; bottom: 0;
  margin: 0 auto;
  width: 100%;
  height: 40px;
  background-color: #222;
  text-align: center;
}
/** Link **/
a{
  color: #ff0;
  text-decoration: underline;
}
a:visited{
  color: #ff0;
}
a:hover,a:active{
  color: #fff;
  text-decoration: none;
}
/** Other **/
hr{
  visibility: hidden;
  clear: both;
}
.clearfloat{
  clear: both;
  height: 0;
  font-size: 0;
}
.copyright{
  padding: 5px;
  text-align:left;
  font-size: 80%;
  font-weight: normal;
  color: #999;
}


.category{
  position: absolute; left: 0; top: 0;
  display: none;
  z-index: 2;
}
.category .row>li{
  display: inline-block;
  height: 40px;
  border: 1px solid #333;
  font-size: 100%;
  color: #ee9;
  background-color: #765;
  text-align: center;
  cursor: pointer;
}
.category .row>li img{
  max-width: 100%;
  height: auto;
}
.category .row>li.CL2{
  background-color: #657;
}


/* Search */
#search{
  position: relative;
  width: 100%;
  height: 40px;
  background-color: #333;
  overflow: hidden;
}
#search td{
  padding: 4px;
  height: 32px;
  text-align: right;
  vertical-align: middle;
}
#search td:last-child{
  width: 60px;
}
input#searchtext{
  width: 100%;
  padding: 2px;
  font-size: 16px;
  vertical-align: middle;
  background-color: #cfccbb;

  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  -khtml-user-select: text;
  -o-user-select: text;
  user-select: text;
}
#searchdo{
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
#searchdo img{
  position: absolute;
  right: 4px; top: 0;
}
#searchclear{
  position: absolute;
  right: 70px; top: 6px;
  height: 35px;
  /*display: none;*/
  cursor: pointer;
}
/*
#list li.N1,#hyblist li.N1{
  min-height: 40px;
  background-color: #aaa;
}
.searchws{
  display: block;
}
.searchnote{
  color: #600;
  font-size: 80%;
}
*/

#list{
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#list li{
  display: block;
  width: 100%;
  padding: 0 10px;
  border: 1px solid #666;
  font-size: 100%;
  font-weight: normal;
  color: #000;
  background-color: rgba(255,240,245,1);
  text-align: left;
  /*padding-left: 0.5em;*/
}
#list li img{
  margin: 0 10px 0 0;
}
#list td.label{
  width: 3.5em;
  word-break: keep-all;
  color: #333;
  font-size: 80%;
}
.current{
  opacity: 1.0;
}



/* Page */
#stage{
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #eee;
  display: none;
}
#stage .copyright{
  visibility: hidden;
}

#bookbody{
  position: relative;
  width: 100%;
  margin: 0 auto;
  /*overflow: none;*/
  text-align: center;
}
/* 画像 */
.bookimagebody{
}
#imageitem{
  width: 320px;
  height: 286px;
  margin: 15px auto 0;
  padding: 0 0 30px;
  overflow: hidden;
  position: relative;
}
div#imageitem table{
}
td#bookimage,
td.bookimage{
  /*width: 100%;*/
  height: 286px;
  background-color: #999;
  text-align: center;
  vertical-align: middle;
  position: relative;
}
/* 書誌・解説 */
.bookdescbody{
}
div.bookitem{
  margin: 15px auto;
  padding: 0 12px;
  width: 100%;
}
.bookitem table{
  width: 100%;
  background-color: #eee;
  vertical-align: middle;
}
.bookitem table td{
  text-align: left;
  padding: 5px;
  background-color: #fff;
  cursor: default;
  border-style: solid;
  border-color: #ddd;
  border-width: 0 1px 1px 0;

  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  -khtml-user-select: text;
  -o-user-select: text;
  user-select: text;

  cursor:text;
}
.bookitem table td.label{
  background-color: #f0e0d7;
  text-align: right;
  width: 4em;
  white-space: nowrap;
}
.bookitem table td.metalink{
  text-align: right;
  color: #069;
  font-size: 80%;
  font-weight: normal;
}
.metalink a:link,
.metalink a:visited{
  color: #069;
}
.metalink a:hover,
.metalink a:active{
  color: #960;
}

/* 解説 */
.textbody {
  clear: both;
  margin: 15px auto;
  padding: 0 15px;
  width: 100%;
  position: relative;

  min-height: 50px;
  text-align: left;
}
/* 解説 */
.textbody .bookdesc {
  margin: 0px auto;
  text-align: justify;
  color: #300;
}
.textbody .bookdesc p {
  /* display: none;	/ * 暫定 */
  text-indent: 1em;
  line-height: 1.8em;
  text-align: left;
  cursor: default;
}


/* 読み下し文 */
.textbody .booktext {
  margin: 15px auto;
  background-color: #fcf7e7;
  color: #300;
}
.textbody .booktext h4{
  font-size: 110%;
  padding: 15px 0 0 15px;
  cursor: default;
}
.textbody .booktext p {
  font-family: "メイリオ",Meiryo,"ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN W3","ＭＳ ゴシック",Osaka-等幅,Osaka-Mono,monospace;
  text-indent: 0em;
  padding: 15px 0px;
  line-height: 1.8em;
  text-align: left;
  cursor: default;
}
/* 赤字
    消し線 (2015-03)
    span.red, del.red */
.red {
  color: #c00;
}
/* No-Color フォントカラー戻し
    span.ncolor */
.ncolor{
  color: #300;
}
/* Over-Line 消し線、フォントカラー維持
    span.ovl */
.ovl{
  text-decoration: line-through;
  /*text-decoration-color: #c00;*/
}


/* Navi Page */
.navipage{
  margin: 10px auto;
  padding: 0 15px;
  width: 100%;
  position: relative;
}
.navipage li{
  display: inline-block;
  width: 25%;
  height: 1.3em;
  padding: 0.25em 0.25em;
  font-size: 120%;
  font-weight: bold;
  color: #ccc;
  text-align: center;
  cursor: default;
}
.navipage li.navilink{
  cursor: "pointer";
  color: #00a;
}




/* Tool */
#tool{
  position: absolute;
  right: 6px; /* ヒント表示の場合 */
  /*ight: 30px;*/ /* ヒント非表示の場合 */
  top: 4px;
  width: 40px;
  text-align: right;
}
#tool ul{
  margin: 0;
}
#tool li{
  display: inline-block;
  margin-right: 4px;
  cursor: pointer;
}
#tool li.toolhint{
  width: 32px; height: 32px;
  margin-right: 0px;
  overflow: hidden;
  position: relative;
}
#tool li.toolhint img{
  position: absolute; left: 0px; top: 0px;
}
#toolmenu{
  position: absolute; left: 10px; top: 16px;
  width: 50px;
  text-align: left;
}
#toolmenu ul{
}
#toolmenu li{
  cursor: pointer;
}


/* ツールヒント */
#toolhintd{
  position: absolute; left: 0; top: 0;
  width: 100%;
  padding: 15px;
  display: none;
  z-index: 1005;
  text-align: left;
  color: #333;
  background-color: #eee;
  opacity: 0.9;
  filter: alpha(opacity=90);
  -ms-filter: "alpha(opacity=90)";
  border-color: #444;
  border-style: solid;
  border-width: 2px;
}
#toolhintd h4{
  font-size: 100%;
}
#toolhintd p{
  font-size: 95%;
  margin-top: 0.5em;
  text-indent: 1em;
}
#toolhintclose{
  position: absolute; right: 6px; top: 6px;
  width: 30px; height: 30px;
  overflow: hidden;
  cursor: pointer;
}
#toolhintclose img{ position: absolute; left: 0; top: 0px; }
#toolhintd .alert{
  margin: 1em 0;
  color: #a00;
  visibility: visible;
}
#toolhintd hr.alert{
  color: #999;
}



@media only screen and (min-width: 321px){
  /*#tool{
    top: 4px;
  }*/
  h1 img{
    max-width: 100%;
  }
}
@media only screen and (min-width: 480px){
}
@media only screen and (min-width: 500px){
  .navipage{
    position: absolute; right: -40px; top: 25px;
    width: 50%;
    font-size: 80%;
  }
  .navipage li.navilink{
    font-weight: normal;
    color: #ff0;
  }
  .navipage li:last-child{
    display: none;
  }
}
@media only screen and (min-width: 667px){
  #bookbody{
    /*height: 320px;*/
    overflow: auto;
    background-color: #eee;
    z-index: 2;
  }
  .bookimagebody{
    float: left;
    width: 340px;
  }
  .bookdescbody{
    float: right;
    width: 320px;
    height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

}


@media only screen and (max-height: 413px){
  .mobile_message{
    margin: 5px auto;
    text-align: center;
  }
}


@media print{
  body *{
    background-color: #fff;
    color: #000;
  }
}
