body {
    font-size: .875rem;
}

body:not(.layout-fixed) .main-sidebar {
    height: 100vh;
    top: 60px;
    border-right: 1px solid;
}

.content-header h5 {
    font-weight: bold;
}

.fit-content-h {
    height: fit-content;
}

#login_form button {
    background-color: #1e93d2;
    color: #FFFFFF;
    font-weight: bold;
}

.main-sidebar {
    position: fixed !important;
}

.brand-link {
    padding-top: 0.3rem !important;
}

.brand-link .brand-image {
    float: unset;
    max-height: 50px;
}

.main-header {
    border-bottom: 1px solid #000000;
    margin-left: 0 !important;
    position: fixed;
    width: 100%;
    height: 60px;
    background: rgb(29, 147, 210);
    background: linear-gradient(70deg, rgba(29, 147, 210, 1) 0%, rgba(241, 251, 254, 1) 100%);
}

.main-header .nav-link {
    height: auto;
}

.navbar-nav .text-white {
    margin-bottom: 0;
}

.main-footer {
    border-top: 1px solid #FF2134;
    margin-left: 0 !important;
}

.nav-sidebar>.nav-item {
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 3px;
}

/* .nav-sidebar>.nav-item.active {
    background-color: #DCDCDC;
    font-weight: bold;
} */
.nav-sidebar .nav-item>.nav-link {
    margin-bottom: 0;
}

.account_name {
    font-size: 1.3rem;
    margin-left: 1rem;
}

.sidebar {
    padding-left: unset;
    padding-right: unset;
}

.content-wrapper {
    padding-top: 60px;
    background-color: #FFFFFF !important;
}

.content {
    padding-bottom: 100px !important;
}

.container-fluid .header,
.container-fluid .header th {
    background-color: #1281c9 !important;
    color: #FFF;
}

/* .container-fluid .header th {
    padding: .75rem !important;
} */

.item_list {
    display: flex;
}

.item_list div.item {
    width: calc(100% / 7 - 5px);
    margin-right: 5px;
}

.item_list div.item img {
    width: 85%;
    border: 1px solid;
    border-radius: 10px;
    aspect-ratio: 1;
}

.item_list div.item.disabled img {
    filter: brightness(0.4);
}


._border-left {
    border-left: 2px solid !important;
    padding-left: 0.5rem;
    margin-left: 1rem;
}

.nav-item.active {
    background-color: #e8e8e8;
}

.nav-item a {
    width: 100% !important;
}

/****** スイッチ ******/

.form-switch {
    position: relative;
    display: inline-block;
    width: 100%;
    align-items: center;
}

.form-check-input[type="checkbox"] {
    height: 1.5rem;
    width: 3rem;
    margin-top: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 2rem;
    transition: 0.3s;
    position: relative;
}

.form-check-input[type="checkbox"]::before {
    content: "";
    position: absolute;
    height: calc(1.5rem - 4px);
    width: calc(1.5rem - 4px);
    top: 1px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-check-input[type="checkbox"]:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-input[type="checkbox"]:checked::before {
    left: calc(100% - 1.5rem + 2px);
}

.form-check-input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.form-check-input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}


/****** content.php ******/
/* calendar, modal */
#calendar {
    margin: 0 auto;
}

.fc-daygrid-day-number {
    color: #000;
}

.fc-col-header-cell a {
    color: #000;
}

.fc-day-sun .fc-daygrid-day-number,
.fc-day-sun .fc-col-header-cell-cushion {
    color: #dc5050;
}

.fc-day-sat .fc-daygrid-day-number,
.fc-day-sat .fc-col-header-cell-cushion {
    color: #608dd3;
}

.event-reserve .fc-event-title {
    color: red !important;
}

.admin_event .fc-event-title {
    color: #000 !important;
}

.admin_event-none .fc-event-title {
    color: #CCC !important;
}

/* .description {
    width: 350px;
} */

#modal_area__updated_history {
    display: none;
}

#modal_area__updated_history .modal-body {
    padding: unset;
}

#modal_area__updated_history .modal-body div {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header {
    padding: 0.5rem 1rem !important;
}

.main-sidebar {
    background-color: #FFFFFF;
}

.is-sp {
    display: block;
}

@media screen and (min-width: 680px) {
    .main-sidebar {
        background-color: unset;
    }

    .is-sp {
        display: none;
    }

    .account_name {
        margin-left: 250px;
    }
}

.img_upload-input {
    height: 0;
    margin: 0;
    opacity: 0;
    outline: none;
    position: absolute;
    width: 0;
    z-index: -1;
}

.img_upload-area {
    border: 2px dashed #fff;
    border-radius: 4px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    /* text-align: center; */
}

.img_upload-label,
.img_upload-label_2 {
    border: 1px solid;
    width: 300px;
    max-width: 300px;
    height: 250px;
}

.img_upload-label_2 {
    width: 465px;
    max-width: 465px;
    height: 150px;
}

.img_upload-label:hover,
.img_upload-label_2:hover {
    cursor: pointer;
}

.img_upload-thumbnail {
    background-image: url(../dist/img/c7ca5bd04e65cd724f8a4b01c49bfdd5.png);
    background-position: center 20px;
    background-repeat: no-repeat;
    background-size: 110px;
    box-sizing: border-box;
    padding-top: 140px;
    text-align: center;
    width: 100%;
    font-size: 13px;
}

.img_upload-label_2 .img_upload-thumbnail {
    background-size: 80px;
    padding-top: 90px;
    background-position: center 10px;
}

.document_upload-input {
    height: 0;
    margin: 0;
    opacity: 0;
    outline: none;
    position: absolute;
    width: 0;
    z-index: -1;
}

.document_upload-area {
    border: 2px dashed #fff;
    border-radius: 4px;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    text-align: center;
}

.document_upload-label {
    border: 1px solid;
    width: 100%;
    max-width: 250px;
    height: 250px;
    background-color: #666666;
}

.document_upload-label:hover {
    cursor: pointer;
}

.document_upload-thumbnail {
    background-image: url(../dist/img/725253eaf462660add66b88c80cb7fe7.png);
    background-position: center 20px;
    background-repeat: no-repeat;
    background-size: 140px;
    box-sizing: border-box;
    padding-top: 160px;
    text-align: center;
    width: 100%;
    font-size: 13px;
    filter: brightness(0.4);

}

.required {
    background-color: #ff2d2d;
    color: #FFFFFF;
    width: calc(2rem + 7px);
    padding: 2px 5px;
    border-radius: 5px;
}

.optional {
    background-color: #46b1e1;
    color: #FFFFFF;
    width: calc(2rem + 7px);
    padding: 2px 5px;
    border-radius: 5px;
}

input.registration_form {
    width: 100%;
    /* margin-bottom: 1rem;
    border: unset;
    border-bottom: 1px solid; */
}

textarea.registration_form {
    width: 100%;
}

br.pc {
    display: none;
}

@media screen and (min-width: 680px) {
    br.pc {
        display: block;
    }

    .item_list div.item.disabled {
        position: relative;
        pointer-events: none;
    }

    .item_list div.item.disabled div {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 80%;
        transform: translateX(-50%) translateY(-50%);
        font-weight: bold;
    }

    /* .document_upload-area div {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 80%;
        transform: translateX(-50%) translateY(-50%);
        font-weight: bold;
        font-size: 2rem;
    } */

    /* .document_upload-area { */
    /* position: absolute; */
    /* top: 50%; */
    /* left: 50%; */
    /* width: 80%; */
    /* transform: translateX(-50%) translateY(-50%); */
    /* font-weight: bold; */
    /* } */

    .document_upload-area p.pre {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        font-weight: bold;
        font-size: 2rem;
        width: 100%;
    }
}

.genre label {
    margin-left: 2rem;
}

.publish label {
    /* margin-left: 2rem; */
    font-weight: unset !important;
}

.publish .registration_form {
    width: 100%;
}

.publish_radio {
    margin-right: 1rem;
}

.select-modal {
    display: block;
    width: 100%;
    max-width: 100%;
    z-index: 2147483647;
    background-color: rgba(0, 0, 0, 0.5);
}

.select-modal .modal-dialog {
    max-width: 95%;
    width: 600px;
    top: 4rem;
    /* transform: translateY(-80%) !important; */
}

.select-modal .modal-body img {
    margin: auto;
    width: 95%;
}

.select-modal-item {
    cursor: pointer;
}

.select-modal-item p.thumbnail {
    background-position: center 75px;
    background-repeat: no-repeat;
    background-size: 90px;
    box-sizing: border-box;
    padding-top: 30px;
    padding-bottom: 100px;
    text-align: center;
    width: 100%;
    font-size: 20px;
}

.select-modal-item p.thumbnail::after {
    width: 10px;
    height: 10px;
    border-top: 1px solid #7a0;
    border-right: 1px solid #7a0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    margin: auto;
    content: "";
    vertical-align: middle;
}

.performer_registration-thumbnail {
    background-image: url(../dist/img/raiten.svg);
    background-size: 70px !important;
}

.performer_edit-thumbnail {
    background-image: url(../dist/img/raiten_edit.svg);
    background-size: 70px !important;
}

.report_registration-thumbnail {
    background-image: url(../dist/img/syuzai.svg);
}

.report_edit-thumbnail {
    background-image: url(../dist/img/syuzai_edit.svg);
}

.content .container-fluid.hidden {
    display: none;
}

.slot-ranking-plus .fa-plus,
.pachinko-ranking-plus .fa-plus {
    margin-right: 2rem;
}

.btn-request {
    background-color: #ff5f5f;
    color: #FFFFFF;
    width: 30%;
}

.btn-contact {
    background-color: #ff5f5f;
    color: #FFFFFF;
    width: 30%;
}

.btn-contact.disabled {
    opacity: .65 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

p.add {
    margin: auto;
    cursor: pointer;
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid #222222;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    width: 30%;
}

.container-fluid {
    margin-top: 1rem;
    max-width: 95%;
}

@media screen and (min-width: 680px) {
    .registration_form.w-95 {
        width: 95%;
    }
}

.count {
    line-height: inherit;
    margin-bottom: 1rem;
    position: absolute;
    right: 10%;
}

.copy_add_area {
    background-image: url(../dist/img/7c8af61f6f544968d8402f6988832121.png);
    position: absolute;
    width: 20px;
    height: 20px;
    top: -10px;
    right: 10px;
    background-size: 100%;
    z-index: 9999999999;
}

.delete_add_area {
    background-image: url(../dist/img/add_fill48.png);
    position: absolute;
    width: 20px;
    height: 20px;
    top: -10px;
    right: -15px;
    background-size: 100%;
    z-index: 9999999999;
    rotate: 45deg;
}

.select2-container .select2-results__option[aria-disabled=true] {
    display: none;
}

.select2-container--default .select2-selection--single {
    /* padding: unset; */
    /* border: unset;
    border-radius: unset;
    border-bottom: 1px solid; */
    height: calc(2.25rem + 2px);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: unset;
    color: unset;
    margin-top: unset;
}

.select2.select2-container.select2-container--default {
    width: 100% !important;
}


input[name="schedule"] {
    margin-left: 1rem;
}

.btn-auto {
    background-color: #ff5f5f;
    color: #FFFFFF;
}

.similar_hall {
    height: calc(15rem + 130px);
    overflow: scroll;
}

.similar_hall p {
    margin-bottom: 0.5rem;
    border-bottom: 1px #DDDDDD dotted;
    padding-bottom: 5px;
}

.similar_hall p:hover {
    background-color: #46b1e1;
}

.select_item {
    height: calc(15rem + 130px);
    overflow: scroll;
}

.select_item p {
    margin-bottom: 0.5rem;
    border-bottom: 1px #DDDDDD dotted;
    padding-bottom: 5px;
}

.select_item p:hover {
    background-color: #46b1e1;
}

input[name="category"] {
    margin-left: 1rem;
}

.btn-register {
    background-color: #ff5f5f;
    color: #FFFFFF;
}

.btn-edit,
.btn-hall_edit {
    background: #58D3DB;
    color: #FFFFFF;
    padding: .375rem 3rem;
}

.btn-preview {
    background: #66FFCC;
    color: #FFFFFF;
    padding: .375rem 3rem;
}

.btn-delete,
.btn-delete__,
.btn-hall_delete,
.btn-hall_delete_list {
    background: #D9D9D9;
    padding: .375rem 3rem;
}

.btn-approval {
    background: #FFADAD;
    padding: .375rem 3rem;
}

.btn-approval.hidden {
    display: none;
}

.btn-news_edit {
    background-color: #B8F5F5;
    padding: .375rem 2rem;
}

.btn-news_delete {
    background-color: #D9D9D9;
    padding: .375rem 2rem;
}

.btn-news_new,
.btn-news_draft {
    background-color: #FFFFFF;
    padding: .375rem 2rem;
    border: solid 1px;
    display: flex;
    align-items: center;
}

.btn-news_new_draft {
    background: #D9D9D9;
}

.btn-news_new_publish {
    background-color: #FFFFFF;
    padding: .375rem 2rem;
    border: solid 1px;
}

.btn-delet_item_list {
    background-color: #FFFFFF;
    padding: .375rem 2rem;
    border: solid 1px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    display: flex;
}

.btn-hall_new,
.btn-hall_delete,
.btn-hall_delete_list {
    background-color: #FFFFFF;
    padding: .375rem 2rem;
    border: solid 1px;
    /* display: flex; */
    align-items: center;
}

button.csv_sample {
    background: #FF8C39;
}

button.csv_schedule {
    background: #64C97A;
}

.csv_download .btn,
.csv_upload .btn {
    border: 1px solid #999999;
    font-weight: bold;
    color: #FFFFFF;
}

button.csv_upload {
    background: #3CBAD6;
}

.csv_input::file-selector-button {
    background: #828282;
    border: 1px solid #999999;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-right: 1rem;
}

.csv_input {
    width: 100%;
}

.border-2 {
    border-width: 2px !important;
}

.border-3 {
    border-width: 3px !important;
}

.performer_edit,
.report_edit {
    cursor: pointer;
}

.terms_of_use p {
    margin: 0;
}

.modal-error {
    background-color: #feefd0;
}

.modal-share {
    background-color: #bcf1d1;
}

/* #modal-default {
    top: 5% !important;
    height: 85vh !important;
} */
#modal-default .title,
#modal-default .hall_name {
    background-color: #eeeeee;
}

.nav-treeview li.nav-item a {
    margin-left: 1rem;
}

.schedule_modal .modal-header {
    position: sticky;
    top: 0;
    background: #e8e8e8;
    z-index: 100;
}

.fc .fc-more-popover .fc-popover-body {
    height: 500px;
    overflow: scroll;
}

.news_row {
    cursor: pointer;
}

.news_row:last-child {
    border: none !important;
}

.news_back_btn::before {
    width: 9px;
    height: 9px;
    border-top: 1px solid;
    border-right: 1px solid;
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    content: "";
    vertical-align: middle;
}

.btn-hall_add {
    background-color: #ff5f5f;
    color: #FFFFFF;
}

.row.hall_list div {
    align-self: center;
}

.flex {
    display: flex;
}


/* === フィルタボタン ============================ */
.tfArea {
    display: inline-block;
    position: relative;
}

.tfImg {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #eee;
    border: 1px solid #777;
    margin: 1px 3px;
    padding: 3px;
    cursor: pointer;
}

/* === フィルタボタン（カーソルオーバー時）======= */
.tfImg:hover {
    background: #FFD700;
}

/* === フィルタボタン内の画像色（SVG）============ */
.tfImg path {
    fill: #777;
}

/* === フィルタリスト ============================ */
.tfList {
    display: inline-block;
    position: absolute;
    max-width: 250px;
    min-width: 140px;
    background: #fff;
    border: 1px solid #777;
    top: 15px;
    left: 0;
    line-height: 1.1;
    font-weight: normal;
}

/* === フィルタリスト内のform ==================== */
.tfList form {
    max-height: 150px;
    /* 縦幅 */
    overflow: scroll;
    overflow: overflow-y;
    overflow: auto;
}

/* === フィルタリスト内のチェックボックス ======== */
.tfMeisai {
    text-align: left;
    padding: 2px;
}

/* === フィルタリスト内の文字位置合わせ ========== */
.tfMeisai label {
    padding: 0 10px 0 3px;
}

/* === OK/CANCELボタン =========================== */
.tfBtnArea {
    text-align: center;
    font-size: 8pt;
    padding: 3px 5px;
}

.tfBtnArea input {
    display: inline-block;
    margin: 0 5px;
}

/* === 含むボタンの入力エリア ==================== */
.tfInStr {
    padding: 5px 3px;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
}

.tfInStr input {
    box-sizing: border-box;
    width: 100%;
    padding: 1px 3px;
    font-weight: normal;
    font-size: 95%;
    border: 1px solid #ccc;
}

/* === フィルタ非表示 ============================ */
#filter-table tr[cmanFilterNone] {
    display: none;
}

/* === フィルタ非表示行と次行の間を二重線にする == */
#filter-table tr[cmanFilterNone]+tr td {
    border-top: 3px double #777;
}

#filter-table th {
    width: 12%;
}

#filter-table th:nth-child(3) {
    width: 25%;
}

#filter-table th:nth-child(4) {
    width: 15%;
}

.search input::-webkit-input-placeholder {
    font-family: 'Material Icons Outlined';
    font-size: 24px;
    position: absolute;
    top: 6px;
}

.search input::-moz-placeholder {
    font-family: 'Material Icons Outlined';
    font-size: 24px;
    position: absolute;
    top: 6px;
}

.search input:-ms-input-placeholder {
    font-family: 'Material Icons Outlined';
    font-size: 24px;
    position: absolute;
    top: 6px;
}

.search input:-moz-placeholder {
    font-family: 'Material Icons Outlined';
    font-size: 24px;
    position: absolute;
    top: 6px;
}

.report_contents_checkbox {
    width: 1.5rem;
    height: 1.5rem;
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
    margin-right: 1rem;
}

.report_contents_checkbox_label {
    align-items: center;
    display: flex;
    margin: 0 !important;
}

/* input[type="date"] {
    padding-left: 2rem;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
} */

.toggle-button {
    position: relative;
    height: 100px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 10px 20px -8px #c5d6d6;
    border-radius: 4px;
}

.toggle-button:before {
    counter-increment: button-counter;
    content: counter(button-counter);
    position: absolute;
    right: 0;
    bottom: 0;
    color: #d7e3e3;
    font-size: 12px;
    line-height: 1;
    padding: 5px;
}

.knob,
.btn-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.btn_ {
    position: relative;
    top: 50%;
    width: 90px;
    height: 40px;
    overflow: hidden;
    transform: translateY(-50%);
}

.btn_.btn-pill,
.btn_.btn-pill>.btn-bg {
    border-radius: 100px;
}

.btn_.btn-rect {
    border-radius: 2px;
    box-shadow: 7px 6px 15px -3px rgba(0, 0, 0, 0.3);
}

.checkbox {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.knob {
    z-index: 2;
}

.btn-bg {
    background: linear-gradient(70deg, rgba(207, 207, 207, 1) 0%, rgba(255, 255, 255, 1) 100%);
    width: 100%;
    transition: 0.3s ease all;
    z-index: 1;
}

.btn-rect .knob:before,
.btn-rect .knob:after,
.btn-rect .knob span {
    position: absolute;
    top: 50%;
    width: 20px;
    font-size: 20px;
    text-align: center;
    border-radius: 2px;
    transition: 0.3s ease all;
    transform: translateY(-50%);
}

.btn-rect .knob:before,
.btn-rect .knob:after {
    color: #FFF;
    z-index: 1;
}

.btn-rect .knob__:before,
.btn-rect .knob__:after {
    color: #00a5e1;
}

.btn-rect .knob:before {
    content: "ON";
    left: 10px;
}

.btn-rect .knob:after {
    content: "OFF";
    left: 50px;
}

.btn-rect .knob span {
    left: 5px;
    width: 40px;
    height: 33px;
    background: linear-gradient(70deg, rgba(207, 207, 207, 1) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
    box-shadow: 0 9px 28px -6px rgba(0, 0, 0, 0.3);
}

.btn-rect .checkbox:checked+.knob span {
    left: 45px;
}

.btn-rect .checkbox:checked~.btn-bg {
    background: linear-gradient(70deg, rgba(0, 165, 225, 1) 0%, rgba(81, 178, 216, 1) 100%);
}

.pagination-links .button {
    color: #000000;
    vertical-align: baseline;
    min-width: 30px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.pagination-links .button.disabled {
    color: #a7aaad !important;
    border-color: #dcdcde !important;
    background: #f6f7f7 !important;
    box-shadow: none !important;
    cursor: default;
    transform: none !important;
}

/* components */

.search-box {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.search-box h5 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* フォーム要素 */
.form-select {
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    width: 100%;
}

.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.table {
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    padding: 15px;
    background-color: #1281c9;
    color: #fff;
    font-weight: normal;
    border: none;
    white-space: nowrap;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, .03);
}

/* ボタンスタイル */
.btn-edit {
    background: #58D3DB;
    color: #fff;
    border: none;
    padding: 6px 20px;
    margin-right: 10px;
    border-radius: 4px;
}

.btn-delete {
    background: #D9D9D9;
    color: #333;
    border: none;
    padding: 6px 20px;
    border-radius: 4px;
}

.btn-edit:hover,
.btn-delete:hover {
    opacity: 0.9;
}

/* 検索ボタン */
.btn-secondary {
    background-color: #51B2D8;
    border: none;
    color: #fff;
    padding: 8px 16px;
}

.btn-secondary:hover {
    background-color: #3c98bd;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination .page-item .page-link {
    padding: 8px 16px;
    color: #51B2D8;
    border: 1px solid #dee2e6;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #51B2D8;
    border-color: #51B2D8;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

.image-grid .row {
    margin: -10px;
}

.image-grid .col-md-3 {
    padding: 10px;
}

.image-grid .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    height: 100%;
}

.image-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.image-grid .card-img-top {
    width: 100%;
    /* height: auto; */
    height: 200px;
    object-fit: cover;
}

.image-grid .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-grid .card-title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.image-grid .card-text {
    font-size: 12px;
    color: #666;
}

/* Select2カスタマイズ */
.select2-container .select2-selection--single {
    height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 21px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
}


/* プレビューアイテムスタイル */
.preview-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.card-img-preview {
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

.card-img-preview img {
    object-fit: cover;
    max-height: 100%;
    width: 100%;
}

.file-preview {
    padding: 1rem;
    text-align: center;
}

.video-preview {
    position: relative;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

/* アップロード進捗バー */
.upload-progress {
    width: 50%;
}

.progress {
    background-color: #e9ecef;
    height: 4px;
}

.progress-bar {
    transition: width 0.3s ease;
}

.comment-list {
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.comment-item.new-comment {
    background-color: rgba(255, 193, 7, 0.1);
    animation: highlight 3s ease-out;
}

@keyframes highlight {
    0% {
        background-color: rgba(255, 193, 7, 0.3);
    }

    100% {
        background-color: rgba(255, 193, 7, 0.1);
    }
}

.comment-bubble {
    position: relative;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-left .comment-bubble:after,
.comment-right .comment-bubble:after {
    content: "";
    position: absolute;
    top: -8px;
    border-width: 0 8px 8px;
    border-style: solid;
    border-color: #f8f9fa transparent;
}

.comment-left .comment-bubble:after {
    left: 20px;
}

.comment-right .comment-bubble:after {
    right: 20px;
}

.attachment-preview {
    max-height: 250px;
    object-fit: contain;
}

.attachment-card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#fileNameDisplay {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.design-preview-section {
    width: 100%
}

.design-preview-section .card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.design-preview-section .card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.design-preview-container,
.design-container {
    position: relative;
}

.annotation-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.instruction-image,
.design-image {
    object-fit: contain;
    max-width: 100%;
    height: auto;
    max-height: 800px;
}

.design-preview-section .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 作業進捗画像用のスタイル */
.progress-image-link {
    display: block;
    background-color: transparent;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.progress-image-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.progress-image-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-wrapper {
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.workflow-timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-step-active .timeline-icon {
    transform: scale(1.1);
}

.timeline-step-current .timeline-icon {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timeline-label {
    font-size: 0.8rem;
    font-weight: 500;
}

.timeline-step-active .timeline-label {
    color: #495057;
    font-weight: 600;
}

.timeline-step-inactive .timeline-label {
    color: #adb5bd;
}

.timeline-connector {
    flex: 0 0 20px;
    display: flex;
    align-items: center;
}

.connector-line {
    height: 2px;
    width: 100%;
}

.design-history-container {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.design-history-container::-webkit-scrollbar {
    height: 6px;
}

.design-history-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.design-history-item {
    transition: all 0.2s ease;
}

.design-history-item:hover {
    transform: translateY(-2px);
}

.thumbnail-preview {
    object-fit: contain;
    background-color: #f8f9fa;
    width: 100%;
    height: 100px;
}

.design-comment-item {
    border-left: 3px solid #17a2b8;
}

/* プレビューカードのスタイル */
#filePreviewContainer .card {
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#filePreviewContainer .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* ボタン */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#filePreviewContainer .card {
    animation: fadeIn 0.3s ease;
}

/* スピナー */
.spinner {
    display: inline-block;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    width: 1em;
    height: 1em;
    animation: spin 1s linear infinite;
}

/* ドラッグ＆ドロップ関連のスタイル */
.file-upload-container {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.file-upload-container.drag-over {
    background-color: rgba(13, 110, 253, 0.1);
    border: 2px dashed #0d6efd;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

.upload-placeholder {
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.drag-drop-guidance {
    color: #6c757d;
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
}

.drag-drop-guidance i {
    color: #0d6efd;
    opacity: 0.7;
}

.drag-drop-guidance p {
    margin-bottom: 0;
}

/* ファイルが選択された時の表示 */
.file-selected .upload-placeholder {
    min-height: auto;
    padding: 10px;
}

.file-selected .drag-drop-guidance {
    display: none;
}


/* スマホ対応のためのレスポンシブスタイル */
@media (max-width: 768px) {
    .upload-placeholder {
        min-height: 150px;
    }

    .drag-drop-guidance {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* レスポンシブ調整 */
@media (max-width: 767.98px) {
    .upload-progress {
        width: 100%;
        margin-bottom: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch !important;
    }

    .modal-footer>div {
        width: 100% !important;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
        padding: 10px;
    }

    .table-container {
        padding: 10px;
    }

    .btn-edit,
    .btn-delete {
        padding: 4px 12px;
        font-size: 12px;
    }

    .image-grid .col-md-3 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .search-box {
        padding: 15px;
    }

    .table thead th {
        padding: 10px;
    }

    .table tbody td {
        padding: 10px;
    }

    .image-grid .col-md-3 {
        width: 100%;
    }
}
