@font-face {
    font-display: swap;
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/NotoSansJP-Medium.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/NotoSansJP-Bold.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Oswald-Medium.woff2') format('woff2');
    /* 数字とスラッシュのみ */
    unicode-range: U+0030-0039, U+002F;
}
@font-face {
    font-display: swap;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Oswald-Bold.woff2') format('woff2');
    /* 数字とスラッシュのみ */
    unicode-range: U+0030-0039, U+002F;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-feature-settings: "palt";
    background-color: #f7f7f2;
}

.oswald {
    font-family: 'Oswald', 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

.oswald-bold {
    font-family: 'Oswald', 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

::selection {
    background-color: #e00079;
    color: #fff;
}

::-moz-selection {
    background-color: #e00079;
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background-color: #d4d6d7;
    /* border-radius: 10px; */
}

::-webkit-scrollbar-thumb {
    background-color: #212529;
    /* border-radius: 10px; */
}

/* https://codepen.io/peiche/pen/NWPMYxJ */
.form-group {
    position: relative;
}

.form-control-placeholder {
    position: absolute;
    top: 0;
    padding: 0 .15rem;
    margin: .375rem .6rem;
    transition: all 200ms;
    color: #ffaabb;
    pointer-events: none;
}

.form-control-lg + .form-control-placeholder {
    margin: .6rem .6rem;
}

.form-control:focus + .form-control-placeholder,
.form-control:not(:placeholder-shown) + .form-control-placeholder,
.SumoSelect[is-selected="true"] + .form-control-placeholder {
    font-size: 90%;
    transform: translate3d(0, -90%, 0);
    color: #212529;
    font-weight: bold;
    background-color: white;
}

.form-control-lg:focus + .form-control-placeholder,
.form-control-lg:not(:placeholder-shown) + .form-control-placeholder {
    transform: translate3d(0, -100%, 0);
}

.form-control,
.form-check-input {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #dc3545;
    box-shadow: 0px 0px 4px rgba(220, 53, 69, 0.5);
}

.form-control::placeholder {
    color:#ffaabb;
}

.form-check-input {
    margin-top: .3rem;
    transform: scale(1.1);
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* SumoSelect */

.SumoSelect * {
    border-radius: 0 !important;
}

.SumoSelect {
    width: 100% !important;
    display: block !important;
}

.SumoSelect > .CaptionCont {
    border-color: #dee2e6 !important;
}

/* 
.SumoSelect > .optWrapper:not(.isFloating) > .options {
    max-height: 370px !important;
}
 */

.SumoSelect.open > .optWrapper,
.SumoSelect.open > .CaptionCont,
.SumoSelect:focus > .CaptionCont,
.SumoSelect:hover > .CaptionCont {
    border-color: #dc3545 !important;
    box-shadow: 0px 0px 4px rgba(220, 53, 69, 0.5) !important;
}

.SumoSelect>.CaptionCont>span {
    padding-right: 10px !important;
}

.SumoSelect > .CaptionCont > span.placeholder {
    color: #ffaabb !important;
    background-color: #fff !important;
    font-style: normal !important;
    opacity: 1 !important;
}

.SumoSelect > .optWrapper.multiple > .select-all span i,
.SumoSelect > .optWrapper.multiple > .options li.opt span i {
    transform: scale(1.1);
}

.SumoSelect > .optWrapper.multiple > .select-all.selected span i,
.SumoSelect > .optWrapper.multiple > .options li.opt.selected span i {
    background-color: #dc3545 !important;
}

.SumoSelect .select-all {
    padding-top: 2px !important;
    height: unset !important;
}

.SumoSelect .SelectBox {
    padding: .375rem .75rem !important;
}

.SumoSelect > .optWrapper.multiple > .options li.group > label {
    cursor: pointer !important;
}

.SumoSelect > .optWrapper > .options li.group > label:hover {
    background-color: #fafac4 !important;
}

.SumoSelect > .optWrapper > .options li.opt:hover {
    background-color: #fbfcd5 !important;
}

.SumoSelect .SelectBox.hide-arrow span {
    padding-right: 0 !important;
}

.SumoSelect .SelectBox.hide-arrow label {
    display: none;
}

@media screen and (max-width: 576px) {
    .SumoSelect .SelectBox.hide-sm-arrow span {
        padding-right: 0 !important;
    }

    .SumoSelect .SelectBox.hide-sm-arrow label {
        display: none;
    }
}

/* ボタン */

.btn:not(.open-btn):not(.close-btn) {
    box-shadow: 2px 2px 4px gray;
    transition: transform .1s;
    word-break: break-all;
}

.btn:not(.open-btn):not(.close-btn):active {
    transform: translateY(2px);
}

/* モーダル */

.modal-content {
    border: 2px solid #212529;
    box-shadow: 0px 0px 15px #fff;
}

/* テキスト */

a {
    text-decoration: none;
}

.small, small {
    font-size: 80%;
}

/* フェードイン */

.fadein {
    opacity: 0;
    animation: fadeIn 1s linear;
    animation-fill-mode: both;
}

/* テキストエリア */

textarea {
    resize: none;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    cursor: auto;
    font-size: 90% !important;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

#side_nav {
    background: #2c3237;
    min-width: 250px;
    max-width: 250px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    transition: all 0.3s;
    /* 固定 */
    position: sticky;
    top: 0;
}

.content {
    min-height: 100vh;
    width: calc(100% - 250px);
}

hr.h-color {
    border-top: 1px solid #eee;
}

.sidebar li.active,
.sidebar li.active:hover {
    background: #eee;
}

.sidebar li:hover {
    background: #434b53;
}

.sidebar li.active a,
.sidebar li.active a:hover {
    font-weight: bold;
    color: #212529;
}

.sidebar li a {
    color: #fff;
}

.underline {
    border-image: linear-gradient(to right, #c5c5c1 0%, #eee) 1/0 0 1px 0;
    border-style: solid;
}

h2 {
    text-shadow: 1px 1px 0 rgba(0,0,0,.3);
}

.table {
    /* スクロールバーの位置 */
    margin-bottom: 5px;
}

.table thead tr th,
.table tbody tr th {
    background-color: #deded9;
    /* text-shadow: 1px 1px 0 rgba(0,0,0,.2); */
}

.table img,
.h5 img {
    margin-top: -4px;
}

/* rowspanで結合したときに使用する */
.table-striped2 tbody:nth-child(even) > tr > td:not(.table-primary):not(.table-danger) {
    background: #F2F2F2;
}

.table-striped2 tbody:nth-child(odd) > tr > td:not(.table-primary):not(.table-danger) {
    background: #fff;
}

.table-striped2 tbody:hover > tr > td:not(.table-primary):not(.table-danger) {
    background: #ECECEC !important;
}

.modal-content {
    background: #f7f7f2;
}

.bg-success {
    background: #28a745 !important;
}

.radio_box {
    background: #fff;
    padding: .36rem .5rem;
    border: 1px solid #dee2e6;
}

.sticky-bottom {
    position: sticky;
    bottom: 10px;
}

.nav-tabs .nav-link.active {
    font-weight: bold;
}

.navbar-toggler {
    color: #fff;
}

.bg-primary {
    background-color: #3b5998 !important;
}
.btn-primary {
    background-color: #3b5998 !important;
    border-color: #3b5998 !important;
}
.btn-primary:focus {
    background-color: #293e6a !important;
}
.btn-primary:hover {
    background-color: #293e6a !important;
}
.btn-primary:active {
    background-color: #293e6a !important;
}

.btn-outline-primary {
    color: #3b5998 !important;
    border-color: #3b5998 !important;
}
.btn-outline-primary:focus {
    color: #fff !important;
    background-color: #293e6a !important;
}
.btn-outline-primary:hover {
    color: #fff !important;
    background-color: #293e6a !important;
}
.btn-outline-primary:active {
    color: #fff !important;
    background-color: #293e6a !important;
}

/* ページネーション */
.active>.page-link {
    color: #fff !important;
    background-color: #3b5998;
    border-color: #3b5998;
}

.wysiwyg {
    min-height: 254px;
    padding: .375rem .75rem;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #212529;
    /* overflow: auto; */
    word-break: break-all;
}

.monthpicker {
    width: 95px;
    color: #fff;
    background-color: #3b5998;
    border-color: #3b5998;
    border-radius: 0;
    text-align: center;
    padding-right: 0;
    padding-left: 0;
    cursor: pointer;
}

.monthpicker:hover {
    background-color: #293e6a;
    border-color: #293e6a !important;
}

.monthpicker:focus {
    background-color: #293e6a !important;
    border-color: #293e6a !important;
    box-shadow: none;
}

iframe {
    border:none;
    width:100%;
    height:100%;
}

datalist{
    z-index: 10000 !important;
}

@media(max-width: 991px) {
    #side_nav {
        margin-left: -250px;
        position: fixed;
        z-index: 1;
    }
    #side_nav.active {
        margin-left: 0;
    }
    .content {
        width: 100%;
    }
}

/* ローディング画面 https://ponsyon.com/archives/3707 */
#loading-wrapper { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: #CCC5C1; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 9999;
}
.loader,
.loader:after {
    border-radius: 50% !important;
    width: 10em;
    height: 10em;
}
.loader {
    margin: 60px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(33,37,41, 0.2);
    border-right: 1.1em solid rgba(33,37,41, 0.2);
    border-bottom: 1.1em solid rgba(33,37,41, 0.2);
    border-left: 1.1em solid #212529;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}
.completed {
    opacity: 0;
    visibility: hidden;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
