.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.bjmodal-content {
    border: 3px orange solid;
    border-radius: 8px;
}

.bjmodal-header {
    min-height: 10rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    background-color: #ffecc9;
    border-radius: 6px 6px 0 0;
    text-align: center;
}

.bjmodal-header.bjmodal-header--thin {
    min-height: 3rem;
}

.bjmodal-title {
    font-size: 2rem;
}

.bjmodal-body {
    background-color: #ffecc9;
    text-align: center;
    font-size: 14px;
}

.bjmodal-footer {
    display: flex;
    flex-direction: row;
    padding: 1rem 0 1rem 0;
    justify-content: center;
    border-top: none;
    background-color: #ffecc9;
    border-radius: 0 0 6px 6px;
    text-align: center;
}

.bjmodal-close-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding-top: 1rem;
    padding-right: 1rem;
    font-size: 1rem;
}

.bjmodal-close-icon:hover {
    text-decoration: none;
    cursor: pointer;
}

.bjmodal-close {
    width: 10rem;
    padding: 0.5rem 1.5rem;
    border: 1px grey solid;
    border-radius: 5px;
    background-color: #e8e5e6;
    color: black;
}

.bjmodal-close:hover {
    background-color: #bfc1c1;
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.bjmodal-ok {
    width: 15rem;
    padding: 1rem 2.5rem;
    margin-right: 2rem;
    border: 1px grey solid;
    border-radius: 5px;
    background-color: #afe8ff;
    color: black;
}

.bjmodal-ok:hover {
    background-color: #80caf2;
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.modal.modal--child-info .modal-dialog,
.modal.modal--shisetsu-info .modal-dialog,
.modal.modal--search-account .modal-dialog {
    width: 90%;
    height: 90%;
}

.modal.modal--search-account .modal-content,
.modal.modal--search-account .modal-body
{
    height: 100%;
}

.modal.modal--select-riyo-date .modal-dialog {
    width: 40%;
}

.modal.modal--confirm-time .modal-dialog {
    width: 90%;
}

.modal.modal--child-info .modal-content,
.modal.modal--child-info .modal-body,
.modal.modal--child-info .iframe.iframe--child-info,
.modal.modal--shisetsu-info .modal-content,
.modal.modal--shisetsu-info .modal-body,
.modal.modal--shisetsu-info .iframe.iframe--shisetsu-info,
.modal.modal--search-account .iframe.iframe--search-account,
.iframe.iframe--child-history,
.iframe.iframe--search-account
{
    width: 100%;
    height: 100%;
}

.iframe.iframe--child-info,
.iframe.iframe--shisetsu-info,
.iframe.iframe--child-history,
.iframe.iframe--search-account
{
    border: none;
}

.shisetsu-info-modal {
    cursor: pointer;
}

/*スマホ画面での表示*/
@media screen and (max-width: 767px) {
    .modal.modal--select-riyo-date .modal-dialog {
        width: 80%;
    }
}

/*タブレット画面での表示*/
@media screen and (min-width: 768px) and (max-width: 992px) {
}

@media (min-width: 768px) {
    .modal-dialog {
        width:600px;
        margin: 30px auto
    }

    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
        box-shadow: 0 5px 15px rgba(0,0,0,.5)
    }

    .modal-sm {
        width: 300px
    }
}

@media (min-width: 992px) {
    .modal-lg {
        width:900px
    }
}