:root {
    --bs-dark-rgb: 50, 50, 50;
    --color-primary-light: #daeaff;
    --color-primary: #007bbb;
    --color-primary-dark: #164a84;
    --color-notice : #fdeff2;
}
.pagination {
    --bs-pagination-active-bg: var(--color-primary);
    --bs-pagination-color: var(--color-primary-dark);
    list-style: none;
}

html {
    font-size: 18px;
}

/**
 * 表示非表示
 */
.sp-block,.sp-inline {
    display: none;
}
@media only screen and (max-width: 1200px) {
    .sp-block {
        display: block;
    }
    .sp-inline {
        display: inline;
    }
}

/**
 * スピナー
 */
.overlay{
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height:100%;
    display: none;
    background: rgba(0,0,0,0.6);
}
.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 6px #ddd solid;
    border-top: 6px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 1s infinite linear;
}
@keyframes sp-anime {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/**
 * チェックボックス
 */
.form-check-input {
    width: 1.4rem!important;
    height: 1.4rem!important;
    margin: 0 0.5rem 0 0;
}
.form-check-label {
    display: flex;
    align-items: center;
}

/**
 * ホバーでポインター
 */
.pointer:hover {
    cursor: pointer;
}

/**
 * page-title
 */
.page-title {
    width: 100%;
    background-color: var(--color-primary-dark);
    color:white;
    font-size: 1.3rem;
    padding: 0.7rem 1.2rem 0.7rem 1.2rem;
    border: none;
    border-radius: 10px;
}

/**
 * table
 */
.user-table {
    border-collapse: collapse;
    border: 0;
    width: 100%;
    box-shadow: 1px 3px 14px 5px rgba(0, 0, 0, 0.2);
    background-color: #FFF;
}
.user-table tbody {
    display: table-row-group;
    vertical-align: middle;
    unicode-bidi: isolate;
    border-color: inherit;
}
.user-table th {
    background-color: var(--color-primary-light);
    padding: 1rem 1rem 1rem 1.3rem;
    font-weight: bold;
    color: #383838;
}
.user-table th:not(:last-child) {
    border-right: 1px solid #FFF;
}
.user-table td {
    padding: 1rem 1.3rem;
    color:#383838;
}
.user-table tr:not(:last-child) {
    border-bottom: 1px solid #CCC;
}
@media only screen and (max-width: 1200px) {
    .user-table th {
        background-color: var(--color-primary-dark);
        color: #FFF;
    }
    .user-table tr:first-child th {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
}
@media only screen and (max-width: 1200px) {
    .user-table thead th {
        display: none;
    }

    .user-table tbody th {
        width: 100% !important;
        display: block;
        padding: 11px 15px;
    }
    .user-table td {
        width: 100% !important;
        display: block;
        padding: 8px 15px;
    }
}
.table-cell {
    display: table-cell!important;
}

/**
 * カレンダー
 */
.calendar-table {
    border-collapse: collapse;
    border: 0;
    width: 100%;
    box-shadow: 1px 3px 14px 5px rgba(0, 0, 0, 0.2);
    background-color: #FFF;
    text-align: center;
}
.calendar-table tbody {
    display: table-row-group;
    vertical-align: middle;
    unicode-bidi: isolate;
    border-color: inherit;
}
.calendar-table th {
    background-color: var(--color-primary-dark);
    padding: 15px 15px 15px 15px;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}
.calendar-table th,td:not(:last-child) {
    border-right: 1px solid #ccc;
}
.calendar-table td {
    padding: 15px 30px;
    color:#383838;
}
.calendar-table tr:not(:last-child) {
    border-bottom: 1px solid #CCC;
}
.calendar-table td div:first-child {
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.calendar-table td div:first-child span {
    font-size: 0.9rem;
    margin-left: 0.05rem;
}
.calendar-table td div:not(:first-child) {
    line-height: 1.1rem;
}
@media only screen and (max-width: 1200px) {
    .calendar-table th {
        width: 14%;
        padding: 10px 0px;
    }
    .calendar-table td {
        width: 14%;
        padding: 15px 0px;
    }
}

/**
 * title系
 */
.title {
    display: table;
    position: relative;
    margin-left: 40px;
    font-size: 2.3rem;
    font-weight: 600;
}
.title:before {
    display: table-cell!important;
    vertical-align: middle!important;
    content: '';
    /*#display: block;*/
    position: absolute;
    left: -35px; /* 位置調整 */
    transform: translate(0%); /* 位置調整 */
    top: 0px; /* 下線の上下位置調整 */
    width: 5px; /* 下線の幅 */
    height: 55px; /* 下線の太さ */
    background-color: #007aff; /* 下線の色 */
}
.title>span {
    display: table-cell!important;
    vertical-align: middle!important;
}

/**
 * modal系
 */
.modal-header {
    background-color: var(--color-primary-dark) !important;
    color: white!important;
    font-size: 1.25rem!important;
}

/**
 * カード系
 */
.card-header {
    font-weight: 600!important;
    font-size: 1.1rem!important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1.4rem !important;
    padding-left: 1.4rem !important;
    background-color: var(--color-primary-dark) !important;
    color: white!important;
}
.card-header > label {
    font-size: 1.25rem !important;
}
.card-body {
    padding: 1rem 2rem!important;
}
.card-body > .row > div {
    margin-bottom: 1.2rem!important;
}
.card-footer {
    padding: 1rem 2rem!important;
}

/**
 * その他
 */
.readonly {
    background-color: white!important;
}
.flatpickr-monthDropdown-months {
    background-color: white!important;
}

.btn-close {
    color: white!important;
}

a, a:hover{
    color: var(--color-primary-dark);
    text-decoration: none;
}
page-link:hover{
    color: #1c1c1c;
}
.demo-change {
    color:red;
}
.check-label {
    font-size: 15px;
    line-height: 30px;
}
.readonly {
    background-color: #f2f2f2;
}

/* select2 で 入力チェックエラーの時に、赤枠にする処理 */
.is-invalid .select2-selection,
.needs-validation ~ span > .select2-dropdown{
    border-color:red !important;
}

/* form-control付きのボタンは大きくする */
.btn.form-control {
    font-size: 1.2rem!important;
    padding: 0.8rem 0rem!important;
}
.btn-sm {
    font-size: 0.9rem!important;
}

/*
 * 色系
 */
.btn-primary {
    background-color: var(--color-primary) !important;
}
.bg-primary-light {
    background-color: var(--color-primary-light) !important;
}
.bg-primary {
    background-color: var(--color-primary) !important;
}
.bg-primary-dark {
    background-color: var(--color-primary-dark) !important;
}
.bg-notice {
    background-color: var(--color-notice)!important;
}

/*
 * input-group,form-controlでinputの幅を指定するクラス
 */
.form-control.w-8rem {
    width: 8rem;
    flex: unset;
}
