@font-face {
    font-display: swap;
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/NotoSansJP-Medium.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 800;
    src: url('/assets/fonts/NotoSansJP-Bold.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/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('/assets/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;
    /* background-color: #f7f7f7; */
    /* padding-left: env(safe-area-inset-left); */
    /* padding-right: env(safe-area-inset-right); */
}

.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;
}

.container-fluid {
    margin: 0 auto;
    max-width: 1400px;
}

.container {
    margin: 0 auto;
    max-width: 1140px;
}

::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: #dfdfdf;
    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:#dfdfdf;
}

.form-check-input {
    margin-top: .3rem;
    transform: scale(1.1);
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* テキスト */

a {
    text-decoration: none;
}

.small, small {
    font-size: 80%;
}

p.form-title {
    font-size: 90%;
    font-weight: bold;
    padding-left: .25rem;
    margin-bottom: 0;
}

/* 色 */

.text-success {
    color: #28a745 !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.btn-light {
    background-color: #fff !important;
}

.btn-light:hover {
    background-color: #d3d4d5 !important;
}

/* ツールチップ */

.tooltip {
    --bs-tooltip-max-width: 310px;
    --bs-tooltip-padding-y: 0.5rem;
    --bs-tooltip-color: var(--bs-dark);
    --bs-tooltip-bg: #fff;
    --bs-tooltip-border-radius: 3px;
    --bs-tooltip-opacity: 1;
    filter: drop-shadow(0px 0px 4px #212529);
    z-index: 10000;
}

.tooltip > .tooltip-inner {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: var(--bs-body-font-size);
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
}

.custom-tooltip {
    --bs-tooltip-color: var(--bs-danger);
}

/* 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: #dfdfdf !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;
    }
}

/* ドロップダウンメニュー */

.dropdown-menu {
	max-height: 510px;
    overflow-y: auto;
    z-index: 9997;
}

.dropdown-item:hover {
    background-color: #fbfcd5;
}

.dropdown-item:active {
    background-color: #f8f9ab;
    color: #212529;
}

/* 
.dropdown-toggle:hover {
    border-color: #dc3545;
    box-shadow: 2px 2px 4px rgba(220, 53, 69, 0.5);
}
 */

/* モーダル */

.modal {
    z-index: 9995;
}

.modal-content {
    border: 2px solid #212529;
    box-shadow: 0px 0px 15px #fff;
}

/* ボタン */

.btn {
    box-shadow: 2px 2px 4px gray;
    transition: transform .1s;
    word-break: break-all;
}

.btn:not(.dropdown-toggle):active {
    transform: translateY(2px);
}

.btn.edit-icon,
.btn.contact-icon,
.btn.soumu-icon,
.btn.print-icon {
    box-shadow: 1px 1px 2px gray;
    padding: 0 0.3rem 0.25rem;
}

/* TOTOPボタン・BACKボタン・Reloadボタン */

#footer-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1050;
}

#btn-totop,
#btn-back,
#btn-reload {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 1.25rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
}

/* 
#btn-totop:hover,
#btn-back:hover,
#btn-reload:hover {
    transform: scale(1.1);
}
*/

@media screen and (max-width: 768px) {
    #footer-button {
        bottom: calc(env(safe-area-inset-bottom) + 45px);
    }
}

/* ヘッダー */

.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block !important;
}

@media screen and (min-width: 576px) {
    ul.navbar-nav > li.nav-item > a.selected {
        background: linear-gradient(transparent 90%, #d9534f 90%);
    }
}

@media screen and (max-width: 576px) {
    .navbar-toggler {
        color: #212529;
        background-color: #fff;
        border-color: #212529;
        box-shadow: 2px 2px 4px gray;
        transition: transform .1s;
    }

    .navbar-toggler:active {
        transform: translateY(2px);
    }

    .navbar-toggler:focus {
        box-shadow: 2px 2px 4px gray;
    }
}

/* スマホ下部ナビ */

#sp-navi {
    z-index: 9994;
}
#sp-navi > div {
    padding-bottom: env(safe-area-inset-bottom);
}

#sp-navi > div > button {
    background: linear-gradient(to bottom , #373a3e , #212529);
    box-shadow: 0px 0px 8px gray;
    z-index: 9993;
}
#offcanvasBottom {
    /* height: 70vh;
    height: 70dvh; */
    height: calc(env(safe-area-inset-bottom) + 470px);
    /* z-index: 1051; */
}

/* 
#offcanvasBottom > .offcanvas-header,
#offcanvasBottom > .offcanvas-body {
    padding-bottom: 0;
}
 */

 /* サイドバー */

#sidebar {
	position: fixed;
	width: calc((100vw - 1420px) / 2);
    max-width: 120px;
	top: 70px;
    left: 0;
    overflow-x: hidden;
    /* ↓がないとフッターに隠れる */
    z-index: 1;
}

#sidebar .list-group-item {
    background-color: transparent;
    color: var(--bs-secondary-color);
}

#sidebar .list-group-item:hover {
    background-color: #fbfcd5;
    color: #212529;
}

#sidebar .list-group-item.selected {
    background-color: #f8f9ab;
    color: #212529;
}

#sidebar2 {
	position: fixed;
	width: calc((100vw - 1420px) / 2);
	top: 70px;
    right: 0;
    overflow-x: hidden;
    /* ↓がないとフッターに隠れる */
    z-index: 1;
}

#sidebar2 textarea {
    field-sizing: content;
    min-height: 5lh !important;
    min-width: 100px;
    background-color: transparent;
    border-color: #f7f7f7;
    box-shadow: none;
    font-size: 80%;
    padding: .25rem;
    color: #e50000;
    resize: none;
    word-break: break-all;
}

#sidebar2 textarea:hover,
#sidebar2 textarea:focus {
    border-color: #f9c9c9;
}

#sidebar2 textarea::placeholder {
    color: #dfdfdf;
}

#sidebar2 textarea:hover::placeholder,
#sidebar2 textarea:focus::placeholder {
    color: #dfdfdf;
}

/* フッター */

footer {
    padding-bottom: env(safe-area-inset-bottom);
}

@media screen and (min-width: 768px) {
    footer {
        background-color: #eaeaea;
    }

    /* footer-listクラスの親要素（>をつけているので直下） */
    footer div:not(:first-child):has(>.footer-list) {
        margin-left: 3rem;
    }

    footer .footer-list a,
    footer .footer-list span {
        display: block;
        font-size: 90%;
        color: var(--bs-secondary-color);
        border-bottom: 1px solid #c4c8cb;
        padding: .25rem .5rem;
    }

    footer .footer-list a:hover,
    footer .footer-list span:hover {
        background-color: #f0f0f0;
        color: #212529;
    }
}

/* フェードイン（サイドバーとフッター） */

.fadein {
    opacity: 0;
    animation: fadeIn 2s linear;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

 /* 伝言メモ */

.toast {
    background-color: #fffb96;
    border: 2px solid #ccc878;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}

.toast-body {
    white-space: pre-wrap;
    word-break: break-all;
}

/* https://coliss.com/articles/build-websites/operation/css/auto-resizing-text-input-with-form-sizing.html */
#message {
    field-sizing: content;
    min-height: 8lh !important;
}

#messageModal {
    z-index: 9996;
}

#messageConfirmModal,
#messageAttachmentModal {
    z-index: 9998;
}
/* sticky-bottom */

.sticky-bottom {
    position: sticky;
    bottom: 10px;
}

.sticky-bottom .btn-light,
.sticky-bottom .btn-light:hover {
    border-color: #212529 !important;
}

@media screen and (max-width: 767px) {
    .sticky-bottom {
        bottom: 50px;
    }
}

@media print {
    .print-off {
        display: none !important;
    }
}

/* ローディング画面 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;
}

.completed {
    opacity: 0;
    visibility: hidden;
}

.loader {
    margin: 100px auto;
    font-size: 20px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    -webkit-animation: load5 1.1s infinite ease;
    animation: load5 1.1s infinite ease;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

@-webkit-keyframes load5 {
    0%,
    100% {
        box-shadow: 0em -2.6em 0em 0em #212529, 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.5), -1.8em -1.8em 0 0em rgba(33,37,41, 0.7);
    }
    12.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.7), 1.8em -1.8em 0 0em #212529, 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.5);
    }
    25% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.5), 1.8em -1.8em 0 0em rgba(33,37,41, 0.7), 2.5em 0em 0 0em #212529, 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    37.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.5), 2.5em 0em 0 0em rgba(33,37,41, 0.7), 1.75em 1.75em 0 0em #212529, 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    50% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.5), 1.75em 1.75em 0 0em rgba(33,37,41, 0.7), 0em 2.5em 0 0em #212529, -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    62.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.5), 0em 2.5em 0 0em rgba(33,37,41, 0.7), -1.8em 1.8em 0 0em #212529, -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    75% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.5), -1.8em 1.8em 0 0em rgba(33,37,41, 0.7), -2.6em 0em 0 0em #212529, -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    87.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.5), -2.6em 0em 0 0em rgba(33,37,41, 0.7), -1.8em -1.8em 0 0em #212529;
    }
}
@keyframes load5 {
    0%,
    100% {
        box-shadow: 0em -2.6em 0em 0em #212529, 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.5), -1.8em -1.8em 0 0em rgba(33,37,41, 0.7);
    }
    12.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.7), 1.8em -1.8em 0 0em #212529, 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.5);
    }
    25% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.5), 1.8em -1.8em 0 0em rgba(33,37,41, 0.7), 2.5em 0em 0 0em #212529, 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    37.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.5), 2.5em 0em 0 0em rgba(33,37,41, 0.7), 1.75em 1.75em 0 0em #212529, 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    50% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.5), 1.75em 1.75em 0 0em rgba(33,37,41, 0.7), 0em 2.5em 0 0em #212529, -1.8em 1.8em 0 0em rgba(33,37,41, 0.2), -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    62.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.5), 0em 2.5em 0 0em rgba(33,37,41, 0.7), -1.8em 1.8em 0 0em #212529, -2.6em 0em 0 0em rgba(33,37,41, 0.2), -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    75% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.5), -1.8em 1.8em 0 0em rgba(33,37,41, 0.7), -2.6em 0em 0 0em #212529, -1.8em -1.8em 0 0em rgba(33,37,41, 0.2);
    }
    87.5% {
        box-shadow: 0em -2.6em 0em 0em rgba(33,37,41, 0.2), 1.8em -1.8em 0 0em rgba(33,37,41, 0.2), 2.5em 0em 0 0em rgba(33,37,41, 0.2), 1.75em 1.75em 0 0em rgba(33,37,41, 0.2), 0em 2.5em 0 0em rgba(33,37,41, 0.2), -1.8em 1.8em 0 0em rgba(33,37,41, 0.5), -2.6em 0em 0 0em rgba(33,37,41, 0.7), -1.8em -1.8em 0 0em #212529;
    }
}
