/* boostrap customize */
.btn-80 { width:80px; }
.btn-100 { width:100px; }
.btn-120 { width:120px; }
.btn-150 { width:150px; }

/* width*/
.w-100 { width:100px; }
.w-120 { width:120px; }
.w-140 { width:140px; }
.w-150 { width:150px; }

/* min-width*/
.min-w-100 { min-width:100px; }
.min-w-120 { min-width:120px; }
.min-w-140 { min-width:140px; }
.min-w-150 { min-width:150px; }

/* Responsive list pages */
.list-page__toolbar {
    gap: 0.75rem;
}

.list-page__filters {
    width: 100%;
    margin: 0;
}

.list-page__filters-actions {
    display: flex;
    gap: 0.5rem;
}

.list-page__filters-actions > .btn {
    flex: 1 1 0;
}

.list-page__heading {
    gap: 0.75rem;
}

.list-page__heading-meta {
    width: 100%;
}

.list-page__panel-form {
    gap: 0.5rem;
    margin: 0;
}

.list-page__panel-form.row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0.5rem;
}

.list-page__panel-form > .col,
.list-page__panel-form > .col-auto,
.list-page__panel-form > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.list-page__panel-form > .list-page__panel-actions {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.list-page__panel-actions {
    display: grid;
    gap: 0.375rem;
}

.list-page__panel-actions .btn {
    width: 100%;
}

.pf-slideout-panel.list-search-panel {
    --pf-slideout-panel-shell-top: max(3rem, 8vh);
    --pf-slideout-panel-shell-top: max(3rem, 7dvh);
    --pf-slideout-panel-panel-width: min(360px, calc(100vw - 1.25rem));
    --pf-slideout-panel-panel-padding: 0.75rem 0.75rem 0.85rem;
    --pf-slideout-panel-content-gap: 0.5rem;
}

.pf-slideout-panel.list-search-panel .pf-slideout-panel__header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pf-slideout-panel.list-search-panel .pf-slideout-panel__title {
    line-height: 1.3;
}

.pf-slideout-panel.list-search-panel .list-page__panel-form .form-label {
    margin-bottom: 0.2rem !important;
    line-height: 1.2;
}

.pf-slideout-panel.list-search-panel .list-page__panel-form .form-control,
.pf-slideout-panel.list-search-panel .list-page__panel-form .form-select {
    min-height: calc(1.5em + 0.6rem + 2px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.pf-slideout-panel.list-search-panel .list-page__panel-actions .btn {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

/* ボタングループ内のボタン幅 */
.btn-group-equal > .btn,
.btn-group-equal > .btn-wrapper { flex: 1 1 0;}
.btn-group-equal > .btn-wrapper > .btn { width: 100%;}

.btn-group-mobile-equal > .btn,
.btn-group-mobile-equal > .btn-wrapper {
    min-width: 0;
}
.btn-group-mobile-equal > .btn-wrapper {
    display: flex;
}
.btn-group-mobile-equal > .btn-wrapper > .btn {
    width: 100%;
}

:root {
  --bs-primary: rgb(111, 62, 216);
  --bs-primary-rgb: 111, 62, 216;
}

.btn-primary {
  background-color: var(--bs-primary); /* カスタムの背景色 */
  border-color: rgb(66, 29, 148); /* カスタムのボーダーカラー */
  color: #ffffff; /* テキストカラー */
}
.btn-success {
  background-color: rgb(38, 176, 38); /* カスタムの背景色 */
  border-color: rgb(36, 133, 36); /* カスタムのボーダーカラー */
  color: #ffffff; /* テキストカラー */
}

/* バッジ */
.badge-40 { width:40px;}
.badge-60 { width:60px;}
.badge-80 { width:80px;}
.badge-100 { width:100px;}
.badge-120 { width:120px;}

/* Nav menu bar */
.bg-deepgray {
    background-color: rgb(54, 54, 54); /* カスタムの背景色 */
}
/* メニューの水平開閉 */
.hideable-menu-div {
    position: relative;
}
.toggle-button-menu-showhide {
    position: absolute;
    font-size: 12px;
    padding: 2px 5px;
    opacity: 0.5;
    z-index:99;
}
.toggle-button-menu-showhide:hover {
    opacity: 1;
}
/* 隠すボタン専用の位置情報 */
#hide-menu-button {
    top: 0;
    right: 0;
}

/* 開くボタン専用の位置情報 */
#show-menu-button {
    top: 0;
    left: 0;
    z-index:99;
}

/* エラーメッセージ */
.form-errors {
    color: red;     /* 文字色 */
}

.error-message {
    color: red;
}

.is-invalid {
    border-color: red;
}

.is-invalid + .invalid-feedback {
    color: red;
    display: block;
}


@media (max-width: 1032px) {
    
}

/* 画面幅が768px以下の場合のスタイル */
@media (max-width: 768px) {
    #page-title-content {
        display: none;
    }
}

/* 画面幅が576px以下の場合のスタイル */
@media (max-width: 576px) {
    .btn-group-mobile-equal {
        display: flex;
        width: 100%;
    }
    .btn-group-mobile-equal > .btn,
    .btn-group-mobile-equal > .btn-wrapper {
        flex: 1 1 0;
    }
    .btn-group-mobile-equal > .btn,
    .btn-group-mobile-equal > .btn-wrapper > .btn {
        width: 100%;
    }
    #page-title-content {
        position: relative;
        top: auto;
        left: auto;
        padding-top: 0.25rem;
        text-align: center;
    }
    .mobile-margin {
        margin-top: 5px !important;
    }
    /* 列を非表示にするクラス */
    .hidden-column {
        display: none;
    }

}

@media (max-width: 767.98px) {
    .page-header > .w-75,
    .page-header > .w-100 {
        width: auto !important;
        flex: 1 1 0;
        min-width: 0;
    }

    .pf-slideout-panel.list-search-panel {
        --pf-slideout-panel-shell-top: max(2.75rem, 6vh);
        --pf-slideout-panel-shell-top: max(2.75rem, 5dvh);
        --pf-slideout-panel-panel-width: min(340px, calc(100vw - 1rem));
        --pf-slideout-panel-panel-padding: 0.7rem 0.7rem 0.8rem;
    }

    .list-page__heading,
    .list-page__toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
    }

    .list-page__toolbar > .btn,
    .list-page__primary-action {
        width: 100%;
    }

    .list-page__toolbar .btn-group {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5rem;
    }

    .list-page__toolbar .btn-group > .btn,
    .list-page__toolbar .btn-group > form,
    .list-page__toolbar .btn-group > form > .btn {
        flex: 1 1 calc(50% - 0.25rem);
        width: 100%;
    }

    .responsive-stack-table-wrap {
        overflow: visible;
    }

    .responsive-stack-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .responsive-stack-table,
    .responsive-stack-table tbody,
    .responsive-stack-table tr,
    .responsive-stack-table td {
        display: block;
        width: 100%;
    }

    .responsive-stack-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .responsive-stack-table tbody > tr {
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-border-radius);
        background-color: var(--bs-body-bg);
        box-shadow: var(--bs-box-shadow-sm);
        overflow: hidden;
    }

    .responsive-stack-table tbody > tr > td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.25rem 0.875rem;
        border-top: 1px solid var(--bs-border-color);
        text-align: left !important;
    }

    .responsive-stack-table tbody > tr > td:first-child {
        border-top: 0;
    }

    .responsive-stack-table tbody > tr > td::before {
        content: attr(data-label);
        flex: 0 0 6.5rem;
        max-width: 45%;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1.4;
        color: var(--bs-secondary-color);
    }

    .responsive-stack-table tbody > tr > td[colspan] {
        display: block;
        text-align: center !important;
    }

    .responsive-stack-table tbody > tr > td[colspan]::before {
        content: none;
    }

    .responsive-stack-table tbody > tr > td > * {
        min-width: 0;
    }

    .responsive-stack-table tbody > tr > td .btn-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
        gap: 0.5rem;
    }

    .responsive-stack-table tbody > tr > td .btn-group > .btn,
    .responsive-stack-table tbody > tr > td .btn-group > form,
    .responsive-stack-table tbody > tr > td .btn-group > form > .btn {
        flex: 1 1 calc(50% - 0.25rem);
        width: 100%;
        border-radius: var(--bs-btn-border-radius) !important;
    }

    .responsive-stack-table tbody > tr > td .badge {
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .list-page__toolbar {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center !important;
    }

    .list-page__filters {
        flex: 1 1 auto;
        max-width: min(100%, 56rem);
    }

    .list-page__toolbar > .btn,
    .list-page__primary-action {
        width: auto;
        white-space: nowrap;
    }

    .list-page__heading {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center !important;
    }

    .list-page__heading-meta {
        width: auto;
    }
}

@media print {
    .print-only {
        display: block !important;
    }
    .print-ex {
        display:none !important;
    }
    .scrollable-content {
        margin-top: 0 !important;
        overflow: hidden !important;
    }
}

/* col-X-5 */
.col-1-5 { width: 12.5%; }
.col-2-5 { width: 20.83%; }
.col-3-5 { width: 29.17%; }
.col-4-5 { width: 37.5%; }
@media (min-width: 576px) {
    .col-sm-1-5 { width: 4.16%; }
    .col-sm-4-5 { width: 37.5%; }
}
@media (min-width: 768px) {
    .col-md-1-5 { width: 12.5%; }
    .col-md-4-5 { width: 37.5%; }
}
@media (min-width: 992px) {
    .col-lg-1-5 { width: 12.5%; }
    .col-lg-4-5 { width: 37.5%; }
}
@media (min-width: 1200px) {
    .col-xl-1-5 { width: 12.5%; }
    .col-xl-4-5 { width: 37.5%; }
}
