.modal_box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 6500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.modal_box.index {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    font-size: 115%;
    /* font-size: 1.6rem; */
    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;
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

.modal_box > div {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 30px;
    margin: 20px;
}

.modal_box h2 {
    position: relative;
    line-height: 40px;
    text-align: left;
    border-bottom: solid 3px #ccc;
    margin-bottom: 20px;
    padding-right: 40px;
}
.modal_box.index h2 {
    margin: 0px 0px 20px 0px;
    padding: 0px 40px 0px 0px;
}
.modal_box h2:after {
    content: '';
    width: 25%;
    height: 3px;
    background-color: #3878d1;
    position: absolute;
    left: 0;
    bottom: -3px;
    z-index: 1;
}

.modal_box h2+p {
    text-align: left;
    margin-bottom: 20px;
}

.modal_box button {
    margin: 20px 5px 0;
    height: 40px;
    width: 150px;
}

.modal_box button.btn-left {
    margin-left: 40px; margin-right: 70px;
}
.modal_box button.btn-right {
    margin-right: 40px;
}


.modal_box button:disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: default;
}
.modal_box .modal_footer_button {
    margin-top: 0;
}
.modal_box .licenceupdate_modal button {
    width: 80%;
}

.modal_box .system_setting_modal li {
    line-height: 2.5em;
    display: flex;
    margin: 25px auto 0 auto;
}
.modal_box .system_setting_modal li span {
    width: 330px;
}
.modal_box .system_setting_modal li input {
    height: 2.5em;
    line-height: 1em;
    background: #FFF;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    cursor: pointer;
    width: 95px;
    color: #333333;
    border: 1px solid #808080;
}
.modal_box .system_setting_modal li input:first-of-type {
    border-radius: 3px 0 0 3px;
}
.modal_box .system_setting_modal li input:last-of-type {
    border-radius: 0 3px 3px 0;
}
.modal_box .system_setting_modal li input.active {
    background: #366EB5;
    color: #FFF;
}

.submodal_box .modalform div {
    text-align: left;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.submodal_box input[type="text"] {
    height: 1.5em;
    width: 95%;
    padding: 5px;
    margin-bottom: 6px;
}
.submodal_box input[type="text"]:disabled {
    opacity: 0.7;
    background-color: #c5c5c5;
}
.submodal_box textarea {
    resize: none;
    width: 95%;
    padding: 5px;
}
.submodal_box p {
    text-align: left;
}
.submodal_box p.caution {
    font-size: 0.8em;
    color: red;
}

.close_style {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 40px;
    font-size: 35px;
    color: #000;
    line-height: 40px;
    text-align: center;
    background: #e6e6e6;
    border-radius: 0 10px 0 0;
    cursor: pointer;
}

.close_style:hover {
    background: #dbdbdb;
}

.close_style i {
    line-height: 50px;
    vertical-align: bottom;
}

#delete_parts {
    display: flex;
    flex-direction: column;
    height: 245px;
    min-width: 400px;
    max-width: 660px;
    overflow-y: auto;
}
.book_title {
    margin-bottom: 5px;
}
#delete_book > label {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
}
#delete_parts label {
    padding: 10px 0;
    font-size: 1.2em;
    margin-left: 30px;
    cursor: pointer;
    text-align: left;
}
#delete_book label span {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 630px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#delete_book input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
}
#delete_book input[type="checkbox"]:disabled + span {
    opacity: 0.5;
}
#delete_book input[type="checkbox"] + span::before {
    position: relative;
    top: 4px;
    display: inline-block;
    content: '';
    width: 1em;
    height: 1em;
    border: 2px solid #ccc;
    border-radius: 5px;
    margin-right: .5em;
}
#delete_book input[type="checkbox"]:checked + span::after {
    position: absolute;
    display: block;
    content: '';
    height: 30px;
    width: 30px;
    top: 1px;
    left: -3px;
    background-image: url(../common_bookshelf/check.png);
    background-repeat: no-repeat;
    background-size: 30px;
}

.modal_top_menu {
    display: flex;
    margin-bottom: 10px;
}
.modal_top_menu p {
    vertical-align: middle;
    line-height: 30px;
}
.modal_top_menu p:first-child {
    margin-right: auto;
}
.modal_top_menu img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.modal_top_menu img+p {
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
}

.ws_scrollbox {
    min-height: 200px;
    height: calc(100vh - 320px);
    max-height: 300px;
    overflow-y: scroll;
}
.modal_scrollbox::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
.modal_scrollbox::-webkit-scrollbar-track {
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: inset 0 0 2px #777;
}

.modal_scrollbox::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    box-shadow: none;
}

.ws_scrollbox > li {
    border: 2px solid #ececec;
    border-radius: 5px;
    margin: 5px;
    min-width: 720px;
}
.ws_select_dropdownlist_wrap {
    position: absolute;
}
.ws_select_dropdownlist {
    position: absolute;
    width: 250px;
    left: -49px;
    top: 25px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #808080;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}
.ws_select_dropdownlist li {
    height: 30px;
    border: 2px solid #ececec;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
}
.ws_select_dropdownlist > li.select {
    background-color: #ececec;
}
.ws_list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}
.ws_list img {
    width: 50px;
}
.ws_list .icon {
    cursor: pointer;
}
.ws_list .icon.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.ws_list .ws_edit_select {
    display: flex;
    height: 50px;
    align-items: center;
    cursor: pointer;
}
.ws_list .ws_edit_select .ws_radio {
    width: 50px;
    height: 26px;
    margin-right: 10px;
}
.ws_list .ws_edit_select .ws_radio img {
    width: 26px;
}
.ws_list .ws_edit_select .ws_radio p {
    font-size: 75%;
    font-weight: bold;
}
.ws_select_dropdownlist .ws_info {
    width: 100%;
    text-align: left;
}
.ws_select_dropdownlist .ws_info p {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ws_edit .ws_info p {
    width: 310px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wslist div {
    width: calc(100% - 50px);
    text-align: left;
}
.ws_list .ws_swap {
    height: 30px;
    line-height: 30px;
    background-color: #ececec;
    border-radius: 5px;
    margin: 5px 5px;
    padding: 5px 10px;
    cursor: pointer;
}
.ws_list .ws_swap.disabled {
    opacity: 0.6;
    pointer-events: none;
}
.ws_name {
    height: 60%;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 30px;
}
.ws_memo {
    height: 40%;
    overflow: hidden;
    white-space: nowrap;
}
.ws_select_dropdownlist_name {
    height: 60%;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 22px;
}
.ws_select_dropdownlist_memo {
    height: 40%;
    overflow: hidden;
    white-space: nowrap;
}

.ws_header {
    position: relative;
}

.ws_help_btn {
    position: absolute;
    cursor: pointer;
    top: 50%;
    right: 40px;
    height: 30px;
    width: 30px;
    padding: 5px;
    transform: translateY(-50%);
}

.mb_help_btn {
    position: absolute;
    cursor: pointer;
    top: 25px;
    left: 290px;
    height: 30px;
    width: 30px;
    padding: 5px 5px 0px 5px;
}

.help_btn_img {
    height: 100%;
    width: 100%;
}

.modal_bottom_menu {
    display: flex;
    line-height: 30px;
    margin-top: 20px;
}
.modal_bottom_menu p {
    margin-right: auto;
    width: 450px;
    text-align: left;
}

.modal_bottom_menu li {
    border: 2px solid #333;
    border-radius: 20px;
    min-width: 100px;
    height: 30px;
    font-weight: bold;
    margin: 0 5px;
    cursor: pointer;
}

#lisence {
    max-width: 550px;
    width: 55vw;
    text-align: left;
    height: 30vh;
    overflow-y: scroll;
}

#systeminfo {
    text-align: left;
}

#systeminfo > div {
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;    
}

#systeminfo > p {
    font-size: 0.8em;
}

.modal_box h2.color_red {
    color: #ff4b00;
}
.modal_box h2.color_red:after {
    background-color: #ff4b00;
}
.modal_box h2 .notice_icon {
    width: 25px;
    margin: 0px 5px;
    display: none;
}
.modal_box h2.caution_icon {
    display: flex;
    align-items: center;
}
.modal_box h2.caution_icon .notice_icon {
    display: block;
}
.info {
    max-width: 800px;
    width: 60vw;
    text-align: left;
    overflow-wrap: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

#terms {
    font-size: 85%;
}
#terms .mglr5 {
    margin: 0px 5px;
}
#terms .mgb10 {
    margin-bottom: 10px;
}
#terms .cap_list li {
    text-indent: -1em;
    padding-left: 1em;
}
#terms .text_right {
    text-align: right;
}

/*  IEハック　文字ズレ防止　*/
@media all and (-ms-high-contrast:none) {
    body {
        font-family: "メイリオ", Meiryo, "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    }
}