label {
    margin-bottom: 0;
}

.tab {
    margin-top: 2px;
    margin-left: 2px;
    white-space: nowrap;
    text-align: center;
}

.tab > a {
    vertical-align: top;
}

.tab > .btn-success {
    width: 22%;
}

.tab > .btn-info {
    width: 17%;
    max-width: 130px;
}

.tab > a > span {
    display: inline-block;
}

.tab > a > span.help-space {
    display: none; 
}

/* タブの画面名が2行になるタイミングを合わせる */
@media screen and (max-width: 1040px) {
    .tab > .btn-success {
        width: 20%;
    }
    .tab > a > span {
        display: block;
    }
    .tab > a > span.help-space {
        display: block; 
    }
}

.tab-icon{
    width:22px;
    height:22px;
    vertical-align: baseline;
}

.about-icon{
    width:22px;
    height:22px;
    vertical-align: baseline;
}

.help-icon{
    width:22px;
    height:22px;
    vertical-align: baseline;
}

.non-selected {
    opacity: .65;
}

.selected {
    background-color: #218838;
    pointer-events: none;
}

.name {
    vertical-align: inherit;
    width: 3em;
    display: inline-block;
    text-align: right;
}

.search {
    padding-left: 30px;
    padding-right: 30px;
}

.display {
    width: 120px;
    margin-top: 4px;
}

.input {
    margin-top: 2px;
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.input > div {
    display: inline;
    vertical-align: middle;
}

.text-option > * {
    vertical-align: sub;
}

.text-option > input {
    margin-left: 10px;
}

.main {
    text-align: center;
    margin-top: 9vh;
}

.search-text {
    width: calc(100% - 12em);
    vertical-align: sub;
}

.search-listbox {
    width: 100%;
    vertical-align: sub;
}

.option-subtitle {
    color: white;
    width: 8em;
    display: inline-block;
    text-align: right;
    vertical-align: top;
}

.option-img{
    width:16px;
    height: 16px;
    vertical-align: top;
    margin-top: 2px;
}

.option-block {
    display: inline;
}

.search-block {
    display: inline;
    vertical-align: top;
    height: 164px;
}

.input-block {
    display: inline-block;
}

.option {
    text-align: left;
    margin-top: 2vh;
    margin-left: 14%;
    margin-right: 14%;
    background-color: #28a745;
    border-radius: 10px;
    padding: 10px;
    display: inline-block;
}

.option-on{
    width:72%;
}

.option-title {
    color: white;
    padding-left: 1em;
}

.option-elements {
    margin-top: 20px;
}

.option-element {
    margin-bottom: 7px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.option-text {
    background-color: white;
    width: calc(100% - 50px);
    color: black;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.option-ym-block {
    display: inline-block;
}

.option-text-ym {
    background-color: white;
    max-width: 250px;
    width: calc((100% - 75px)/2);
    color: black;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 141px;
}

.btn-option {
    color: #fff;
    background-color: #82ddab;
    width: 28px;
    height: 28px;
    padding: 0px;
    vertical-align: top;
    margin-top: 1.5px;
}

.btn-option:hover {
    color: #fff;
    background-color: #1edb73;
}

.result_info {
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}

.count {
    text-align: right;
    padding-right: 5%;
}

.page-block {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

.page {
    background-color: #d0d2d9;
    padding: 0.2em;
    margin: 5px;
    cursor: pointer;
    display: inline;
    border-color: #b4b5b8;
}

.page:hover {
    background-color: #b4b5b8;
}

.prev, .next {
    font-weight: bold;
    display: inline;
}

.present {
    color: #FFF;
    background-color: #929292;
    cursor: default;
    padding: 0.2em;
    margin: 5px;
    display: inline;
    border-color: #b4b5b8;
}

.table-block {
    padding-bottom: 30px;
}

.result-element {
    background-color: #efffef;
}

.result-element > th {
    vertical-align: middle !important;
}

.result {
    text-align: center;
    width: 90%;
    margin: auto;
}

.resultblock-sp {
    display: none;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    text-align: center;
}

.sname-sp {
    margin-left: 3vw;
    text-align: left;
}

.info-sp {
    margin-left: 5vw;
    text-align: left;
}

.info-sp > tbody > tr > td:first-child {
    width: 32vw;
    text-align: right;
    padding-right: 1em;
}

.info-sp > tbody > tr > td:last-child {
    width: 50vw;
}

.check {
    width: 10%;
    text-align: right;
}

.modal-dialog {
    min-height: 0;
}

.modal-filter {
}

.modal-element {
    display: inline;
}

.modal-half-body {
    overflow: auto;
    max-height: 30vh;
}

.modal-full-body {
    overflow: auto;
    max-height: 70vh;
}

.waiting{
    margin: auto; 
}

.waiting > img{
    width:3vw;
    height: auto;
}

.hidden {
    display: none;
}

.input-block {
    margin-bottom: 5.5px;
    width: calc(100% - 11em);
}

.input-block > div {
    display: inline-block;
}


.input-block > div > div {
    display: inline-block;
}

.text-left{
    text-align: left;
}

.text-left > th ,
.text-left > td {
    padding-left: 30px;
}

.col-ymd{
    min-width:11em;
}

.element {
    text-align: right;
    width: 20%;
    max-width: 150px;
    min-width: 130px;
}

.sub-element {
    margin-left: 25px;
}

.element-img {
    width: 20px;
    height: 20px;
}

.disabled {
    background-color: #d0d2d9;
    color: #929292;
    pointer-events: none;
}


.caution {
    color: red;
    text-align: center;
    width: 100%;
    display: none;
}

.result-none {
    padding-top: 40px;
    padding-bottom: 50px;
    text-align: center;
    width: 100%;
    color: red;
}

.result-none > span {
    text-align: left;
}

.error {
    color: yellow;
    margin-left: 1em;
    display: none;
}

.check-target {
    margin-right: 10px;
    display: inline;
}

.target {
    display: inline-block;
    vertical-align: top;
}

/* ---------------------------- */
/* --- トグルボタン式のチェックボックス --- */
/* ---------------------------- */

.ItemBox-CheckBox-Input {
    display: none;
}

.ItemBox-CheckBox-Label {
    vertical-align: middle;
    pointer-events: auto;
    position: relative;
    margin-left: auto;
    width: 40px;
    height: 24px;
    border-radius: 80px;
    background: #d0d2d9;
    cursor: pointer;
    transition: .15s ease;
    vertical-align: top;
}

.ItemBox-CheckBox-Input:checked + .ItemBox-CheckBox-Label {
    background: #41c9b4;
}

.ItemBox-CheckBox-Label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 80px;
    width: 20px;
    height: 20px;
    background: #fff;
    transition: .15s ease;
}

.ItemBox-CheckBox-Input:checked + .ItemBox-CheckBox-Label:before {
    left: 19px;
}

.sp {
    display: none;
}

/* スマホ対応用 デザイン*/
@media screen and (max-width: 640px) {

    .tab > a > span {
        width: 105%;
    }
    
    .tab > a > span.help-space {
        display: none; 
    }
    
    .tab > .btn-success {
        width: 19%;
    }

    .tab-icon{
        display: none; 
    }

    .about-icon{
        display: none; 
    }
    
    .help-icon{
        width:1em;
        height:1em;
    }

    .waiting > img{
        width:8vw;
        height: auto;
    }

    .input {
        text-align: center;
        margin: auto;
    }

    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    .name {
        width: 100%;
        text-align: left;
    }

    .search {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .display {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 50px;
    }

    .search-text {
        width: 100%;
    }

    .search-listbox {
        min-width: 0px;
        width: 100%;
    }

    .option {
        padding: 1em;
        margin-top: 10px;
        display: inline-block;
        text-align: left;
        margin-left: 5%;
        margin-right: 5%;
    }

    .option-on{
        width:90%;
    }

    .option-title {
        vertical-align: sub;
        padding-left: 5px;
    }

    .option-subtitle {
        width: calc(100% - 2em);
        text-align: left;
    }

    .option-element {
        width: 100%;
        margin-bottom: 0;
    }

    .check-target:first-child {
        margin-left: 10%;
    }

    .option-text {
        width: calc(100% - 3em);
    }

    .option-ym-block {
        width: auto;
        text-align: center;
    }

    .option-text-ym {
        width: 35vw;
        min-width: 0px;
        display: inline;
    }

    .btn-option {
        width: 6.5vw;
        height: 6.5vw;
    }

    .resultblock-sp {
        display: inline-block;
    }

    .resultblock-pc {
        display: none;
    }

    .filter-body {
        overflow: auto;
        max-height: 30vh;
    }

    .j-body {
        overflow: auto;
        max-height: 60vh;
    }

    .main {
        width: 90%;
        margin: auto;
        text-align: left;
    }

    .input-block {
        width: 100%;
        margin-bottom: 15px;
    }

    .input-block > div {
        display: inline-block;
        margin-bottom: 5px;
    }

    .input-block > div > div {
        display: block;
    }

    .input-block > div > img {
        margin-top: 2px;
        margin-right: 10px;
    }

    .element {
        text-align: left;
        width: 100%;
        max-width: 100%;
        min-width: 0%;
    }

    .result-none {
        text-align: left;
        padding-left: 5%;
        padding-right: 5%;
    }

    .modal-header {
        padding: 0.5rem 1rem;
    }

    .page {
        padding: 0.1em;
        margin: 3px;
    }

    .present {
        padding: 0.1em;
        margin: 3px;
    }
}
