/*
 * ---------------------------------------------------------- Generic ----------
 */
.c-dark-theme .alert-secondary {
    background-color: #28292e;
    border-color: #34343b;
}

.c-dark-theme .page-link {
    color: #e1e1e1;
    background-color: rgba(255, 255, 255, .075);
    border-color: #181924;
}

.c-dark-theme .page-link:hover {
    color: #e1e1e1;
    background-color: #181924;
    border-color: #181924;
}

.c-dark-theme .page-item.active .page-link {
    color: #fff;
    background-color: #4638c2;
    border-color: #321fdb;
}

.c-dark-theme .page-item.disabled .page-link {
    color: rgba(255, 255, 255, .5);
    background-color: rgba(255, 255, 255, .025);
    border-color: #181924;
}

.c-dark-theme .input-group-text {
    color: rgba(225, 225, 225, 0.5);
    background-color: #181924;
    border-color: #181924;
}

.c-dark-theme .table td {
    color: #e1e1e1;
}

.c-dark-theme iframe {
    background-color: rgba(255, 255, 255, 0.8);
}

a.card {
    transition: 0.3s all linear;
    color: #e1e1e1;
}
a.card:hover {
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.6);
    border-style: dashed;
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
}
.card-image .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(255, 255, 255, .05);
}

.card-header b {
    font-size: 90%;
    font-weight: bold;
    color: #768192;
}

.card-header-actions .card-header-action {
    font-size: .75rem;
}

.card-filter {
    padding: 1.25rem;
    background-color: rgba(255, 255, 255, .05);
    margin-bottom: 1.25rem;
    border-radius: .5rem;
}

.filter.filtering:after {
    content: 'あり';
    color: #fff;
    background-color: #3399ff;
    border-radius: 1em;
    padding: .25em .4em;
    font-size: 75%;
}

.filter.error:after {
    content: 'エラー';
    color: #fff;
    background-color: #f86c6b;
    border-radius: 1em;
    padding: .25em .4em;
    font-size: 75%;
}

.close {
    color: #fff;
    text-shadow: 0 1px 0 #000015;
    opacity: .5;
    transition: all .3s ease;
}

.close:hover {
    color: #fff;
    text-shadow: 0 1px 0 #000015;
    opacity: 1;
}

.terms {
    width: 100%;
    height: 30vh;
    background-color: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .2);
    border-width: 1px;
    border-style: solid;
    border-radius: .5rem;
    overflow-y: scroll;
    padding: 1rem;
    white-space: pre-wrap;
    font-size: .8rem;
}

/*
 * ----------------------------------------------------------- Toastr ----------
 */
#toast-container.toast-top-right {
    top: 70px;
    right: 30px;
}

#toast-container>.toast {
    display: flex;
    padding: 5px 15px;
    min-width: 300px;
    width: auto;
}

#toast-container>.toast.toast-success {
    background-image: none !important;
    background-color: #2eb85c;
    box-shadow: none;
}

#toast-container>.toast.toast-error {
    background-image: none !important;
    background-color: #e55353;
    box-shadow: none;
}

#toast-container>.toast.toast-success:before {
    font-family: 'Font Awesome 5 Free';
    font-size: 200%;
    font-weight: 900;
    content: '\f00c';
    float: left;
    padding-right: 15px;
}

#toast-container>.toast.toast-error:before {
    font-family: 'Font Awesome 5 Free';
    font-size: 200%;
    font-weight: 900;
    content: '\f071';
    float: left;
    padding-right: 15px;
}

#toast-container>.toast .toast-message {
    align-self: center !important;
    font-size: .7rem;
    white-space: nowrap;
}

/*
 * ------------------------------------------------------------ Table ----------
 */
.table thead .sorting a {
    display: block;
    position: relative;
}

.table thead .sorting a:after {
    font-family: 'Font Awesome 5 Free';
    display: block;
    float: right;
    opacity: .5;
    right: 0;
    content: '\f0dc';
}

.table thead .sorting a.asc:after {
    content: '\f0de';
    opacity: .8;
}

.table thead .sorting a.desc:after {
    content: '\f0dd';
    opacity: .8;
}

.table tbody tr[data-href] {
    cursor: pointer;
}

/*
 * --------------------------------------------------------- DataList ----------
 */
.dl-horizontal dd {
    min-height: 1.4rem;
}

.dl-horizontal dd ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .dl-horizontal dt {
        float: left;
        width: 160px;
        overflow: hidden;
        clear: left;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dl-horizontal dd {
        margin-left: 180px !important;
    }
}

/*
 * ------------------------------------------------------------- Form ----------
 */
.invalid-feedback {
    display: block;
    opacity: 0.9;
    color: #f86c6b;
    margin-left: 1rem;
}

.form-group>label {
    font-weight: bold;
}

.form-group.radio>label {
    display: block;
}

.form-group.radio .form-check.form-check-inline {
    padding: .375rem 0;
}

.form-group.radio .form-check label {
    cursor: pointer;
}

.form-group.required>label:after {
    font-family: 'Font Awesome 5 Free';
    display: inline-block;
    content: '\f06a  必須';
    font-size: 70%;
    font-weight: bold;
    vertical-align: super;
    color: #f86c6b;
    margin-left: .2rem;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea,
.form-group.error .drop-area,
.form-group.error .input-group-append .input-group-text {
    border-color: #f86c6b;
}

.form-group>label+.help {
    font-size: 90%;
    font-weight: bold;
    color: #63c2de;
    padding-left: .5rem;
    opacity: .5;
    cursor: pointer;
    transition: all .3s ease;
}

.form-group>label+.help:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    content: '\f059';
    padding-right: .25rem;
}

.form-group>label+.help:hover {
    opacity: 1;
}

/*
 * ----------------------------------------------------------- Upload ----------
 */
.upload .drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    padding: 20px 10px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.01);
    text-align: center;
    color: #666;
    line-height: 2em;
}

.upload .drop-area.focus {
    border-color: #009dcd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.upload .drop-area .help-block {
    margin-top: .5rem;
    color: #f86c6b;
    font-weight: bold;
}

.upload .drop-area .help-block:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f071';
    padding-right: .5rem;
}

.upload .thumbnail-area img {
    width: 100%;
    border-radius: 0.5em;
}
.upload .fileinfo-area.visible {
    cursor: pointer;
    transition: 0.3s all linear;
}
.upload .fileinfo-area.visible:hover {
    color: #f86c6b !important;
    opacity: .9;
}
.upload .fileinfo-area.visible .filename:after {
    font-family: "Font Awesome 5 Free";
    display: inline-block;
    content: '\f05e  削除';
    font-size: 70%;
    font-weight: bold;
    color: #f86c6b;
    margin-left: .2rem;
    opacity: 0;
    transition: 0.3s all linear;
}
.upload .fileinfo-area.visible:hover .filename:after {
    opacity: .9;
}
.upload .fileinfo-area .filename {
    color: #FFF;
    font-size: .85em;
    margin-top: 0.5em;
}
.upload .fileinfo-area .filetype {
    color: #999;
    font-size: .75em;
    font-style: italic;
}
.upload .fileinfo-area .filesize {
    color: #999;
    font-size: .75em;
    font-style: italic;
}
.upload .multiple-fileinfo-area .file {
    cursor: pointer;
    transition: 0.3s all linear;
}
.upload .multiple-fileinfo-area .file:after {
    font-family: "Font Awesome 5 Free";
    display: inline-block;
    content: '\f05e  削除';
    font-size: 70%;
    font-weight: bold;
    color: #f86c6b;
    margin-left: .2rem;
    opacity: 0;
    transition: 0.3s all linear;
}

.upload .multiple-fileinfo-area .file:hover {
    text-decoration: underline;
}

.upload .multiple-fileinfo-area .file:hover:after {
    opacity: .9;
}

.upload .multiple-fileinfo-area .filetype {
    color: #999;
    font-size: .75em;
    font-style: italic;
    margin-bottom: .75em;
    padding-left: .75em;
}

/*
 * -------------------------------------------------------- Thumbnail ----------
 */
.thumbnail {
    border-radius: .5em;
    margin-bottom: .5em;
}

/*
 * ----------------------------------------------------------- Avatar ----------
 */
.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border-radius: 50em;
    transition: margin 0.15s;
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
}
.avatar-md {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

/*
 * ----------------------------------------------------------- Editor ----------
 */
.editors .button-container {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.editors .card {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.editors .card .card-header {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/*
 * ----------------------------------------------------------- Switch ----------
 */
.switch {
    display: inline-block;
    width: 40px;
    height: 26px;
}
.switch-input {
    display: none;
}
.switch-slider {
    position: relative;
    display: block;
    height: inherit;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #c8ced3;
    transition: .15s ease-out;
    border-radius: 0.25rem;
}
.switch-slider::before {
    position: absolute;
    top: 2px;
    left: 2px;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    content: "";
    background-color: #fff;
    border: 1px solid #c8ced3;
    transition: .15s ease-out;
    border-radius: 0.125rem;
}
.switch-input:checked~.switch-slider::before {
    transform: translateX(14px);
}
.switch-input:disabled~.switch-slider {
    cursor: not-allowed;
    opacity: .5;
}
.switch-lg {
    width: 48px;
    height: 30px;
}
.switch-lg .switch-slider {
    font-size: 12px;
}
.switch-lg .switch-slider::before {
    width: 24px;
    height: 24px;
}
.switch-lg .switch-slider::after {
    font-size: 12px;
}
.switch-lg .switch-input:checked~.switch-slider::before {
    transform: translateX(18px);
}
.switch-sm {
    width: 32px;
    height: 22px;
}
.switch-sm .switch-slider {
    font-size: 8px;
}
.switch-sm .switch-slider::before {
    width: 16px;
    height: 16px;
}
.switch-sm .switch-slider::after {
    font-size: 8px;
}
.switch-sm .switch-input:checked~.switch-slider::before {
    transform: translateX(10px);
}
.switch-label {
    width: 48px;
}
.switch-label .switch-slider::before {
    z-index: 2;
}
.switch-label .switch-slider::after {
    position: absolute;
    top: 50%;
    right: 1px;
    z-index: 1;
    width: 50%;
    margin-top: -.5em;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: #c8ced3;
    text-align: center;
    text-transform: uppercase;
    content: attr(data-unchecked);
    transition: inherit;
}
.switch-label .switch-input:checked~.switch-slider::before {
    transform: translateX(22px);
}
.switch-label .switch-input:checked~.switch-slider::after {
    left: 1px;
    color: #fff;
    content: attr(data-checked);
}
.switch-label.switch-lg {
    width: 56px;
    height: 30px;
}
.switch-label.switch-lg .switch-slider {
    font-size: 12px;
}
.switch-label.switch-lg .switch-slider::before {
    width: 24px;
    height: 24px;
}
.switch-label.switch-lg .switch-slider::after {
    font-size: 12px;
}
.switch-label.switch-lg .switch-input:checked~.switch-slider::before {
    transform: translateX(26px);
}
.switch-label.switch-sm {
    width: 40px;
    height: 22px;
}
.switch-label.switch-sm .switch-slider {
    font-size: 8px;
}
.switch-label.switch-sm .switch-slider::before {
    width: 16px;
    height: 16px;
}
.switch-label.switch-sm .switch-slider::after {
    font-size: 8px;
}
.switch-label.switch-sm .switch-input:checked~.switch-slider::before {
    transform: translateX(18px);
}
.switch-3d .switch-slider {
    background-color: #f0f3f5;
    border-radius: 50em;
}
.switch-3d .switch-slider::before {
    top: -1px;
    left: -1px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.switch-3d.switch-lg {
    width: 48px;
    height: 30px;
}
.switch-3d.switch-lg .switch-slider::before {
    width: 30px;
    height: 30px;
}
.switch-3d.switch-lg .switch-input:checked~.switch-slider::before {
    transform: translateX(18px);
}
.switch-3d.switch-sm {
    width: 32px;
    height: 22px;
}
.switch-3d.switch-sm .switch-slider::before {
    width: 22px;
    height: 22px;
}
.switch-3d.switch-sm .switch-input:checked~.switch-slider::before {
    transform: translateX(10px);
}
.switch-primary .switch-input:checked+.switch-slider {
    background-color: #20a8d8;
    border-color: #1985ac;
}
.switch-primary .switch-input:checked+.switch-slider::before {
    border-color: #1985ac;
}
.switch-outline-primary .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #20a8d8;
}
.switch-outline-primary .switch-input:checked+.switch-slider::before {
    border-color: #20a8d8;
}
.switch-outline-primary .switch-input:checked+.switch-slider::after {
    color: #20a8d8;
}
.switch-outline-primary-alt .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #20a8d8;
}
.switch-outline-primary-alt .switch-input:checked+.switch-slider::before {
    background-color: #20a8d8;
    border-color: #20a8d8;
}
.switch-outline-primary-alt .switch-input:checked+.switch-slider::after {
    color: #20a8d8;
}
.switch-secondary .switch-input:checked+.switch-slider {
    background-color: #c8ced3;
    border-color: #acb5bc;
}
.switch-secondary .switch-input:checked+.switch-slider::before {
    border-color: #acb5bc;
}
.switch-outline-secondary .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #c8ced3;
}
.switch-outline-secondary .switch-input:checked+.switch-slider::before {
    border-color: #c8ced3;
}
.switch-outline-secondary .switch-input:checked+.switch-slider::after {
    color: #c8ced3;
}
.switch-outline-secondary-alt .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #c8ced3;
}
.switch-outline-secondary-alt .switch-input:checked+.switch-slider::before {
    background-color: #c8ced3;
    border-color: #c8ced3;
}
.switch-outline-secondary-alt .switch-input:checked+.switch-slider::after {
    color: #c8ced3;
}
.switch-success .switch-input:checked+.switch-slider {
    background-color: #4dbd74;
    border-color: #3a9d5d;
}
.switch-success .switch-input:checked+.switch-slider::before {
    border-color: #3a9d5d;
}
.switch-outline-success .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #4dbd74;
}
.switch-outline-success .switch-input:checked+.switch-slider::before {
    border-color: #4dbd74;
}
.switch-outline-success .switch-input:checked+.switch-slider::after {
    color: #4dbd74;
}
.switch-outline-success-alt .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #4dbd74;
}
.switch-outline-success-alt .switch-input:checked+.switch-slider::before {
    background-color: #4dbd74;
    border-color: #4dbd74;
}
.switch-outline-success-alt .switch-input:checked+.switch-slider::after {
    color: #4dbd74;
}
.switch-info .switch-input:checked+.switch-slider {
    background-color: #63c2de;
    border-color: #39b2d5;
}
.switch-info .switch-input:checked+.switch-slider::before {
    border-color: #39b2d5;
}
.switch-outline-info .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #63c2de;
}
.switch-outline-info .switch-input:checked+.switch-slider::before {
    border-color: #63c2de;
}
.switch-outline-info .switch-input:checked+.switch-slider::after {
    color: #63c2de;
}
.switch-outline-info-alt .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #63c2de;
}
.switch-outline-info-alt .switch-input:checked+.switch-slider::before {
    background-color: #63c2de;
    border-color: #63c2de;
}
.switch-outline-info-alt .switch-input:checked+.switch-slider::after {
    color: #63c2de;
}
.switch-warning .switch-input:checked+.switch-slider {
    background-color: #ffc107;
    border-color: #d39e00;
}
.switch-warning .switch-input:checked+.switch-slider::before {
    border-color: #d39e00;
}
.switch-outline-warning .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #ffc107;
}
.switch-outline-warning .switch-input:checked+.switch-slider::before {
    border-color: #ffc107;
}
.switch-outline-warning .switch-input:checked+.switch-slider::after {
    color: #ffc107;
}
.switch-outline-warning-alt .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #ffc107;
}
.switch-outline-warning-alt .switch-input:checked+.switch-slider::before {
    background-color: #ffc107;
    border-color: #ffc107;
}
.switch-outline-warning-alt .switch-input:checked+.switch-slider::after {
    color: #ffc107;
}
.switch-danger .switch-input:checked+.switch-slider {
    background-color: #f86c6b;
    border-color: #f63c3a;
}
.switch-danger .switch-input:checked+.switch-slider::before {
    border-color: #f63c3a;
}
.switch-outline-danger .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #f86c6b;
}
.switch-outline-danger .switch-input:checked+.switch-slider::before {
    border-color: #f86c6b;
}
.switch-outline-danger .switch-input:checked+.switch-slider::after {
    color: #f86c6b;
}
.switch-outline-danger-alt .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #f86c6b;
}
.switch-outline-danger-alt .switch-input:checked+.switch-slider::before {
    background-color: #f86c6b;
    border-color: #f86c6b;
}
.switch-outline-danger-alt .switch-input:checked+.switch-slider::after {
    color: #f86c6b;
}
.switch-light .switch-input:checked+.switch-slider {
    background-color: #f0f3f5;
    border-color: #d1dbe1;
}
.switch-light .switch-input:checked+.switch-slider::before {
    border-color: #d1dbe1;
}
.switch-outline-light .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #f0f3f5;
}
.switch-outline-light .switch-input:checked+.switch-slider::before {
    border-color: #f0f3f5;
}
.switch-outline-light .switch-input:checked+.switch-slider::after {
    color: #f0f3f5;
}
.switch-outline-light-alt .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #f0f3f5;
}
.switch-outline-light-alt .switch-input:checked+.switch-slider::before {
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}
.switch-outline-light-alt .switch-input:checked+.switch-slider::after {
    color: #f0f3f5;
}
.switch-dark .switch-input:checked+.switch-slider {
    background-color: #2f353a;
    border-color: #181b1e;
}
.switch-dark .switch-input:checked+.switch-slider::before {
    border-color: #181b1e;
}
.switch-outline-dark .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #2f353a;
}
.switch-outline-dark .switch-input:checked+.switch-slider::before {
    border-color: #2f353a;
}
.switch-outline-dark .switch-input:checked+.switch-slider::after {
    color: #2f353a;
}
.switch-outline-dark-alt .switch-input:checked+.switch-slider {
    background-color: #fff;
    border-color: #2f353a;
}
.switch-outline-dark-alt .switch-input:checked+.switch-slider::before {
    background-color: #2f353a;
    border-color: #2f353a;
}
.switch-outline-dark-alt .switch-input:checked+.switch-slider::after {
    color: #2f353a;
}
.switch-pill .switch-slider {
    border-radius: 50em;
}
.switch-pill .switch-slider::before {
    border-radius: 50em;
}
