@charset "UTF-8";

/* マンガ領域 */
#viewer {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    min-width: 602px;
}

div, img {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-user-select: none; /* Safari、Chromeなど */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10～ */
    -o-user-select: none;
    user-select: none; /* CSS3 */
}

.loading {
    position: absolute;
    background: url(../../img/loading.gif) no-repeat center;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#viewer #book {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    /* border: 1px solid #eee; */
}

#protect {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 99999;
    background-color: rgba(200, 200, 200, 0.65); /*#A0A0AF;*/
    color: #fff;
}

.table-wrap {
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0 auto;
    padding: 0;
}

.center-box {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

#book .page {
    position: absolute;
    top: 0;
}

#book .page.center {
    height: 100%;
    width: 100%;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
}

#book .page.left {
    margin: auto;
    top: 0;
    left: 0;
}

#book .page.right {
    margin: auto;
    top: 0;
    right: 0;
}

#book .page .page_unit {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#book .page .page_unit img {
    position: absolute;
}

#book .page .page_unit img.image {
    width: 100%;
    height: 100%;
}

#book .page .page_unit canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

/*--------------------------------------
 アクション
--------------------------------------*/
#action {
    position: absolute;
    z-index: 20;
    width: 100%;
    height: 100%;
}

.page-flip {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.flip {
    position: absolute;
    z-index: 20;
    height: 36%;
    width: 6%;
}

.menu {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 35%;
    right: 35%;
    width: 30%;
    height: 100%;
    margin: 0 auto;
    text-align: center;
}

.flip.flip-left {
    cursor: url(../../img/arrow_btn_left_on.cur), auto;
    left: 0;
}

.flip.flip-right {
    cursor: url(../../img/arrow_btn_right_on.cur), auto;
    right: 0;
}

.vt {
    display: table;
    width: 100%;
    height: 100%;
}

.vt > * {
    display: table-cell;
    vertical-align: middle;
}

.tap {
    display: block;
    position: absolute;
    z-index: 15;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    font-size: 20px;
    color: #fff;
    text-align: center;
}

.tap.menu-down, .tap.menu-up {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 150px;
    height: 150px;
    margin: auto;

    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
    border-radius: 6px;
}

.tap.left {
    /*    top: 0;
        bottom: 0;
        left: 0;
        width: 6%;
    */
    cursor: url(../../img/arrow_btn_left_on.cur), auto;
    left: 0;
    border-radius: 0 100px 100px 0;
}

.tap.right {
    /*    top: 0;
        bottom: 0;
        right: 0;
        width: 6%;
        */
    cursor: url(../../img/arrow_btn_right_on.cur), auto;
    right: 0;
    border-radius: 100px 0 0 100px;
}

.screen {
    position: absolute;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#template {
    display: none;
}

.speech_bubble {
    position: absolute;
    display: none;
    border: #888 solid 1px;
    z-index: 50;
    max-width: 100px;
    /* background-color: #fffff0; */
    background-color: #fff;
    padding: 1px;
    line-height: 105%;
    font-size: 1.0em;
    cursor: pointer;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;
}

/* 広告領域 */
.adv > * {
    position: absolute !important;
}

#ad_overlap_center {
    position: fixed !important;
    z-index: 999;
    width: 728px;
    height: 90px;
    left: 50%;
    margin-left: -364px;
    bottom: 20px;

}

#ad_overlap_dbl_rct {
    position: fixed !important;
    z-index: 999;
    width: 600px;
    height: 250px;
    top: 50%;
    left: 50%;
    margin-top: -125px;
    margin-left: -300px;
}

.ad_overlap_wrapper {
}

.ad_overlap {
}

.ad_overlap_close {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 20px;
    height: 20px;
    margin-right: -20px;
}

.ad_overlap_close span {
    display: block;
    width: 18px;
    height: 18px;
    border: 1px solid #999;
    background: #ccc;
    text-align: center;
    line-height: 18px;
    text-decoration: none;
    cursor: pointer;
}

.ad_overlap_close span:hover {
    background: #fff;
}

.ad_wall {
    position: absolute;
    z-index: 999;
    width: 160px;
    height: 650px;
    display: block;
    top: 50px;
    overflow: hidden;
}

.ad_wall.left {
    left: -160px;
    /*z-index: 1;*/
}

.ad_wall.right {
    right: -160px;
    /*z-index: 1;*/
}

.ad_wall.left > * {
    position: absolute !important;
    top: 0 !important;
    left: auto !important;
    right: 0 !important;
}

.ad_wall.right > * {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* プレミアム訴求（サイドの広告下） */
.pre_txt {
    margin-top: 610px;
    width: 160px;
    font-size: 12px;
}

/* 新広告表示 */
#promotion {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 12;
    background-color: white;
    color: black;
}

#promotion #promo-text {
    position: relative;
    margin: 0px auto;
    width: 240px;
    text-align: center;
    color: white;
    background-color: rgba(100, 180, 100, 0.8);
    font-size: 11px;
    bottom: 50px;
}

#promotion #promo-text a {
    color: white;
}

#promotion #promo-image {
    position: absolute;
    z-index: 999;
    width: 100%;
    height: 50%;
    bottom: 30px;
}

#promotion #promo-image ul, #promotion #promo-image li {
    display: block;
    left: 0;
    height: 100%;
}

#promotion #promo-image img {
    display: block;
    margin: 0 auto;
    height: 100%;
    max-height: 560px;
}

#ad-page-adv {
    position: absolute !important;
    z-index: 999;
    width: 600px;
    height: 250px;
    top: 60px;
    left: 50%;
    margin-left: -300px;
}
