/*  common
------------------*/

.dpN {
	display: none;
}
.op0 {
	opacity: 0;
}
.peN {
    pointer-events: none;
    cursor: default;
}

html {
    height: 100%;
    font-size: 62.5%;
    /* sets the base font to 10px for easier math */
}

body {
    position: relative;
    height: 100%;
    background-color: #efefef;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    /*--- フォント ---*/
    /* ゴシック体 */
    font-family: Avenir, "Open Sans", "Helvetica Neue", Helvetica, Arial, Verdana, Roboto, "游ゴシック", "Yu Gothic", "游ゴシック体", "YuGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    color: #333333;
    text-align: center;
    font-size: 16px;
    font-size: 1.6rem;
    /* sets the default sizing to make sure nothing is actually 10px */
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
}
ol, ul, li {
    list-style: none;
}

img {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

button {
    color: black;
}

.left{
    float: left !important;
}
.right{
    float: right !important;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[v-cloak] {
    display: none;
}

/*  loader
------------------*/
#simple-loader {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 200px;
	height: 200px;
	margin-top: -50px;
	margin-left: -100px;
	text-align: center;
	color: #fff;
	z-index: 2000;
	mix-blend-mode: exclusion;
    opacity: 0.7; /* bookshelfのみの追加設定 */
}

/* mask
------------------*/
#mask {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(255,255,255,0.5);
    z-index: 1001;
}

/*  header
------------------*/

#header {
    height: 60px;
    width: 98%;
    padding: 10px 1% 5px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    min-height: 60px;
}

#filter_sub button {
    margin: 5px 9px 5px 0;
    height: 30px;
    width: 110px;
    border-radius: 3px;
    padding: 0;
    outline: none;
}

#filter_sub.op0 {
    pointer-events: none;
    user-select: none;
    cursor: default;
}

.mb_add_icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

#account_acc {
    position: relative;
    width: 196px;
    z-index: 1000;
    text-align: left;
    font-size: 0.8em;
    background-color: #fff;
    border-radius: 3px;
    cursor: pointer;
    min-width: 196px;
}
#account_btn {
    width: 70%;
    padding:7px 15px;
    font-weight: bold;
}
#account_btn img {
    position: absolute;
    top: calc(50% - 7px);
    right: 10px;
    width: 15px;
}

#account_menu {
    position: absolute;
    opacity: 0;
}
#account_menu.active {
    width: 100%;
    margin-top: 5px;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    cursor: default;
}
#account_menu.active li {
    display: flex;
    align-items: center;
    padding: 7px 10px;
}
#account_menu.active li#user_save_caution {
    font-size: 11px;
}
#account_btn + ul.active li:not(:last-of-type) {
    border-bottom: 1px solid #cecece;
}
#account_btn + ul li.category_bg {
    justify-content: center;
    color: white;
    background-color: #366EB5;
    padding: 2px 10px;
}
#account_btn + ul li.category_bg img {
    width: 17px;
}
#account_btn + ul li.ws_select {
    padding: 0px!important;
}
#account_btn + ul li.ws_select .ws_select_status_wrap {
    width: 100%;
    padding: 7px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
#account_btn + ul li.ws_select .ws_select_status {
    max-width: 130px;
}
#account_btn + ul li.ws_select .ws_select_btn {
    height: 20px;
    border-left: 1px solid #808080;
    margin: 4px 0px 4px auto;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#account_btn + ul li.login_wrap {
    padding: 15px 10px;
}
.acc_btn {
    margin: 0 0 0 auto; /*右寄せ*/
    padding: 2px 9px;
    background-color: #FFF;
    border: 1px solid #808080;
    color: #808080;
    border-radius: 3px;
    cursor: pointer;
    min-width: 45px;
}
.ws_edit_btn {
    margin: 0 0 0 auto; /*右寄せ*/
    padding: 2px 9px;
    background-color: #FFF;
    border: 1px solid #dddddd;
    color: #366EB5;
    border-radius: 3px;
    cursor: pointer;
    min-width: 45px;
}
.login_btn {
    background-color: #808080;
    color: #FFF;
}
.login_status {
    font-size: 1.4em;
}
.hello_msg {
    word-break: break-all;
}

#account_menu .ws_status {
    max-width: 120px;
}

/*  bookshelf-common
------------------*/
.flex_wrap_row {
    display: flex;
    flex-flow: row wrap;
}

.flex_wrap_column {
    display: flex;
    flex-flow: column wrap;
}

.btn_style {
    border-radius: 10px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    background-color: white;
    border: 1px solid #666;
    outline: none;
}
.btn_style:hover {
    background-color: #e6e6e6;
}
.btn_style:disabled {
    opacity: 0.3;
}

.menu_style {
    cursor: pointer;
    background-color: white;
    border: 1px solid #dddddd;
}
.menu_style:hover {
    background-color: #e6e6e6;
}

.menu_style.select {
    color: #fff;
    background-color: #366EB5;
    border: 1px solid #366EB5;
}

.menu_style .setting_icon {
    display: flex;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 12px;
    height: 12px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #fff;
    padding: 2px;
    border: 1px solid rgb(54, 110, 181);
}

/*  div.mainContents
------------------*/
.mainContents {
    display: flex;
    width: 98%;
    margin: 0 1%;
}

/*  #main ul#bookshelfBox
------------------*/
ul#bookshelfBox {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-end;
    background: url(../common_bookshelf/bookshelf_table.png) top left repeat-y;
    background-color: #cecece;
    background-size: 100% 390px;
    width: 95%;
    padding: 0 2.5%;
}

ul#bookshelfBox_mb {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-end;
    background: url(../common_bookshelf/bookshelf_table.png) top left repeat-y;
    background-color: #cecece;
    background-size: 100% 320px;
    width: 95%;
    padding: 0 2.5%;
}

#bookshelfBox div img, #bookshelfBox_mb div img {
    width: 230px;
    border: 1px #808080 solid;
}

#bookshelfBox_mb div img {
    width: 184px;
    border: 1px #808080 solid;
}

ul#bookshelfBox .outer_book {
    display: flex;
    align-items:flex-end;
    justify-content: center;
    height: 390px;
    box-sizing: border-box;
    width: 20%;
    min-width: 170px;
}
ul#bookshelfBox_mb .outer_book {
    display: flex;
    align-items:flex-end;
    justify-content: center;
    height: 320px;
    box-sizing: border-box;
    width: 20%;
    min-width: 166px;
}

ul#bookshelfBox .book_foot {
    padding-bottom: 10px;
    width: 85%;
    margin-right: 20px;
}

ul#bookshelfBox_mb .book_foot {
    padding-bottom: 4px;
    width: 85%;
    margin-right: 20px;
}

ul#bookshelfBox .book_img, ul#bookshelfBox_mb .book_img {
    position: relative;
    z-index: 1;
}
ul#bookshelfBox .book_img img, ul#bookshelfBox_mb .book_img img {
    cursor: pointer;
}

ul#bookshelfBox div.flex_wrap_row, ul#bookshelfBox_mb div.flex_wrap_row {
    justify-content: center;
}
ul#bookshelfBox div.flex_wrap_column, ul#bookshelfBox_mb div.flex_wrap_column {
    justify-content: space-between;
}

ul#bookshelfBox span.tag_1, ul#bookshelfBox_mb span.tag_1 {
    display: block;
    box-sizing: content-box;
    width: 15em;
    font-size: 16px;
    font-weight: bold;
    margin: 0 auto;
    line-height: 40px;
}

ul#bookshelfBox span.tag_2, ul#bookshelfBox_mb span.tag_2 {
    display: block;
    box-sizing: content-box;
    writing-mode: vertical-rl;
    position: relative;
    width: 21px;
    background-color: #0D9367;
    font-size: 14px;
    color: #fff;
    line-height: 22px;
    padding: 5px 0 5px 0;
    border-radius: 0 3px 3px 0;
}

ul#bookshelfBox span.tag_2::after, ul#bookshelfBox_mb span.tag_2::after {
    background-color: #0D9367;
    content: "";
    position: absolute;
    width: 20px;
    height: 10px;
    border-radius: 0 3px 3px 0;
    transform: translate(-8px,4px) skew(-61deg);
}

ul#bookshelfBox span.tag_3, ul#bookshelfBox_mb span.tag_3 {
    display: block;
    box-sizing: content-box;
    height: 18px;
    width: 23px;
    font-size: 18px;
    color: #fff;
    border-radius: 0 5px 5px 0;
    background-color: #C80046;
    margin-bottom: 5px;
    z-index: 1;
}

ul#bookshelfBox_mb .book_img input {
    position: absolute;
    top: 0;
    left: 0;
}

ul#bookshelfBox_mb .book_img input[type="checkbox"], .mb_header_right .mb_checkall_area input[type="checkbox"] {
    display: none;
}

ul#bookshelfBox_mb .book_img .checkbox01, .mb_header_right .mb_checkall_area .checkall {
    background-color: #fff;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    height: 36px;
    left: 0;
    position: absolute;
    top: 0;
    width: 36px;
    z-index: 20;
}

ul#bookshelfBox_mb .book_img .checkbox01::before, .mb_header_right .mb_checkall_area .checkall::before {
    background-color: #fff;
    border: 3px #717171 solid;
    box-sizing: border-box;
    content: "";
    display: inline-block;
    height: 36px;
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
}

ul#bookshelfBox_mb .book_img .checkbox01::after, .mb_header_right .mb_checkall_area .checkall::after {
    border-right: 4px solid #717171;
    border-bottom: 4px solid #717171;
    content: "";
    display: block;
    height: 20px;
    left: 11px;
    opacity: 0;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 10px;
}

ul#bookshelfBox_mb .book_img input[type="checkbox"]:checked+.checkbox01::after, .mb_header_right .mb_checkall_area input[type="checkbox"]:checked+.checkall::after {
    opacity: 1;
}

ul#bookshelfBox #empty_caution,
ul#bookshelfBox #empty_caution_mb,
ul#bookshelfBox #load_error_caution {
    margin-top: 50px;
    text-align: left;
}

.update_btn,
.delete_btn,
.exp_btn {
    position: absolute;
    width: 75%;
    padding: 10px 5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    border-radius: 5px;
    font-weight: bold;
    z-index: 2;
}

.update_btn {
    background-color: #366EB5;
}
.delete_btn {
    background-color: #f19848;
}
.exp_btn {
    background-color: #808080;
    cursor: default;
    pointer-events: none;
}

.book_img_lock {
    position: absolute;
    top: 0;
    width: 100%;
    height: 99%;
    background-color: #fff;
    opacity: 0.6;
    pointer-events: none;
}
.book_img_lock.gray {
    background-color: #bdbdbd;
}

/*  Footer 
--------------------*/
#footer {
    text-align: left;
    width: 98%;
    height: 50px;
    padding: 5px;
    position: fixed;
    bottom: 0px;
    z-index: 10;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
    font-weight: bold;
}
#footer > div {
	position: relative;
    width: 180px;
}

.footer_btn {
    height: 40px;
    width: 150px;
    margin: 0 auto;
    padding: 1px 6px;
    line-height: 40px;
    border-radius: 30px 5px 5px 30px;
    position: relative;
}

#exercises_trial{
    width: 100%!important;
}

#exercises_btn_trial{
    width: fit-content;
    border-radius: 5px;
    background: darkorange;
    color: #fff;
    text-align: center;
    border: 1px solid darkorange;
    cursor: pointer;
}
/* iPadで押下後に色が変わってしまうのを防ぐ */
@media screen and (max-width: 1400px) {
    .footer_btn:hover {
        background-color: white;
    }
}
.footer_btn.active {
    color: #FFF;
    background-color: #366EB5;
    border: 1px solid #366EB5;
}

.footer_btn .fm_img {
    width: 25px;
    height: 25px;
    background-color: #808080;
    padding: 4px;
    border-radius: 50%;
    margin-top: 4px;
    float: left;
}
.footer_btn.active .fm_img {
    background-color: #fff;
}
.footer_btn .svgpath {
    fill: #fff;
}
.footer_btn.active .svgpath {
    fill: #366EB5;
}

.footer_btn label {
    display: inline-block;
    width: calc(100% - 40px);
    text-align: center;
    cursor: pointer;
}

.footer_btn label {
    display: inline-block;
    width: calc(100% - 40px);
    text-align: center;
    cursor: pointer;
}

.footer_btn > span.noticeBatch {
    position: absolute;
    display: flex;
    background-color: #e20101;
    top: -30%;
    right: -5%;
    justify-content: center;
    border-radius: 100px;
    height: 1.5em;
    width: 1.5em;
    line-height: 1;
    color: white;
    align-items: center;
}

.footer_menu {
    opacity: 0;
}
.footer_menu.active {
    position: absolute;
    bottom: 55px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
}

.footer_menu li {
    list-style: none;
    line-height: 20px;
    padding: 8px 15px;
    cursor: pointer;
}
.footer_menu li:not(.before_dpN):not(:last-of-type) {
    border-bottom: 1px solid #cecece;
}

.footer_menu a {
    display: block;
    text-decoration: none;
}
.footer_menu a:link,
.footer_menu a:visited {
    color: #333;
}

.click_menu ul {
    display: none;
}
.click_menu.active ul {
    display: block;
}
.click_menu li:last-of-type {
    padding-bottom: 0;
}
.click_menu img {
    transform: rotate(-180deg);
    height: 20px;
    float: right;
}
.click_menu.active img  {
    transform: rotate(0);
}

.external_link img {
    height: 20px;
    float: right;
}

#deletemenu.active {
    background-color:  #366EB5;
    color: #FFF;
}

/*  main(本棚部分)
-----------------*/
#main {
    background: #efefef;
    width: 100%;
    min-width: 500px;
    height: calc(100vh - 130px);
    margin-bottom: 60px;
    overflow-y: scroll;
}

/*  jquery-confirm customize
------------------------------*/
.jconfirm.jconfirm-commondark .jconfirm-box {
    text-align: left;
    line-height: 1.4;
    font-size: 1em !important;
}

.jconfirm.jconfirm-autoclose .jconfirm-box {
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
    font-size: 1em !important;
}


/*  main(本棚部分)
-----------------*/

.mainContents_mb {
    display: flex;
    width: 100%;
    justify-content: center;
}

#main_mb {
    background: #efefef;
    width: 100%;
    min-width: 1280px;
    /* height: 700px; */
    height: calc(100vh - 100px - 80px - 110px);
    margin-bottom: 0px;
    overflow-y: scroll;
}

.text_mbname {
    height: 1.5em;
    padding: 5px;
    width: 280px;
}

.mb_header_right {
    position: absolute;
    right: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.mb_header_right .mb_checkall_area label {
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
}

.mb_header_right .mb_checkall_area input {
    margin-right: 15px;
    cursor: pointer;
}

.mb_header_right .mb_trash_area img {
    margin-left: 50px;transform: scale(1.5);
}

/* 本棚の段組切り替え */
@media screen and (max-width: 1400px) {
    #main_mb {
        min-width: 500px;
    }
    #bookshelfBox div img {
        width: 135px;
    }
    #bookshelfBox_mb div img {
        width: 108px;
    }
    #bookshelfBox div.book_img_lock, #bookshelfBox_mb div.book_img_lock {
        height: 98%;
    }
    ul#bookshelfBox {
        background-size: 100% 270px;
    }
    ul#bookshelfBox_mb {
        background-size: 100% 200px;
    }
    ul#bookshelfBox .outer_book {
        height: 270px;
    }
    ul#bookshelfBox_mb .outer_book {
        height: 200px;
    }
    ul#bookshelfBox .book_foot {
        padding-bottom: 4px;
    }
    ul#bookshelfBox_mb .book_foot {
        padding-bottom: 0;
        margin-bottom: -2px;
    }
    ul#bookshelfBox span.tag_1 {
        font-size: 12px;
        line-height: 34px;
    }
    ul#bookshelfBox_mb span.tag_1 {
        font-size: 11px;
        line-height: 34px;
    }
}
