#nece-alert {
    width: 100%;
    background-color: var(--first_color);
    color: var(--second_font_color);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
}

.nece-badge {
    z-index: 9;
    transform: translate(-50%, -50%);
    padding: 4px;
    color: #fff;
    border-radius: 50%;
    height: 24px;
    width: 24px;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
}

.nav-link:not(.active) .icon i {
    color: var(--admin_color3) !important;
}

.sidenav-footer .icon i {
    color: var(--admin_color3) !important;
}

.preview-image-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.preview-image-wrap .default-area,
.preview-image-wrap .preview-area:not(span) {
    width: 45%;
}

@media (max-width:768px) {
    .preview-image-wrap {
        display: block;
    }

    .preview-image-wrap .default-area,
    .preview-image-wrap .preview-area:not(span) {
        display: block;
        width: 100%;
    }

    .preview-image-wrap span.preview-area {
        text-align: center;
        display: block;
        transform: rotate(90deg);
    }
}

/* プログレスバーのスタイル */
#progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

#progress-bar {
    width: 0%;
    height: 20px;
    background-color: #4caf50;
    text-align: center;
    color: white;
    line-height: 20px;
    font-size: 12px;
}

.nece-pc {
    display: block;
}

.nece-sp {
    display: none;
}

form label.required:after {
    content: "*";
    display: inline-block;
    color: var(--admin_color5);
    margin-left: 5px;
}


@media (max-width:768px) {
    .nece-pc {
        display: none;
    }

    .nece-sp {
        display: block;
    }
}

/* .nece-btn {
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
} */

/* .nece-not-btn {
    border: none;
    background: transparent;
    color: var(--bs-dropdown-link-color);
} */

/* ページネーション */
.container-fluid nav[aria-label="Pagination Navigation"]>div:first-child {
    display: flex;
    width: 100%;
}

.container-fluid nav[aria-label="Pagination Navigation"]>div:nth-child(2)>:nth-child(2)>span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: none !important;
}

.container-fluid nav[aria-label="Pagination Navigation"]>div:nth-child(2)>:nth-child(2)>span>a[aria-label="&laquo; Previous"],
.container-fluid nav[aria-label="Pagination Navigation"]>div:nth-child(2)>:nth-child(2)>span>a[aria-label="Next &raquo;"]> {
    width: 100%;
}

.container-fluid nav[aria-label="Pagination Navigation"]>div:nth-child(2)>:nth-child(2)>span>a[aria-label="&laquo; Previous"]>svg,
.container-fluid nav[aria-label="Pagination Navigation"]>div:nth-child(2)>:nth-child(2)>span>a[aria-label="Next &raquo;"]>svg {
    display: none;
}

.container-fluid nav[aria-label="Pagination Navigation"]>div:nth-child(2)>:nth-child(2)>span>a[aria-label="&laquo; Previous"]::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\3c";
}

.container-fluid nav[aria-label="Pagination Navigation"]>div:nth-child(2)>:nth-child(2)>span>a[aria-label="Next &raquo;"]::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\3e";
}

.container-fluid nav[aria-label="Pagination Navigation"]>div:nth-child(2)>:nth-child(2)>span>span:not([aria-label="&laquo; Previous"]):not([aria-label="Next &raquo;"])>span {
    color: #fff;
    background: #8392AB !important;
}

/* bootstrap上書き */
.table td,
.table th {
    border-top: 0;
}

/* .nece-color {
    color: var(--admin_color3) !important;
} */


/* ログイン画面 */
.page-login .page-header {
    display: block;
}

/* ログイン画面の波打つアニメーション */
.wave-container {
    position: relative;
    width: 100%;
    height: 250px;
    /* 高さを調整 */
    perspective: 800px;
    /* 3Dの視点を設定 */
    overflow: hidden;
}

.waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

/* 各波レイヤーのアニメーション遅延と速度を調整 */
.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

/* 新しく追加する波レイヤー */
.parallax>use:nth-child(5) {
    animation-delay: -6s;
    animation-duration: 22s;
}

.parallax>use:nth-child(6) {
    animation-delay: -7s;
    animation-duration: 25s;
}

.parallax>use:nth-child(7) {
    animation-delay: -8s;
    animation-duration: 28s;
}

.parallax>use:nth-child(8) {
    animation-delay: -9s;
    animation-duration: 30s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0) scaleY(1);
    }

    50% {
        transform: translate3d(0, 0, 20px) scaleY(1.05);
        /* 中間で少し拡大とZ軸移動 */
    }

    100% {
        transform: translate3d(85px, 0, 0) scaleY(1);
    }
}

.waves path {
    transition: fill 0.3s ease;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .wave-container {
        height: 90px;
    }

    .waves {
        transform: rotateX(10deg);
    }
}

/* summernote調整ここから */
.note-toolbar .note-icon-caret {
    display: none;
}

.note-editor .note-toolbar .note-color .dropdown-toggle,
.note-popover .popover-content .note-color .dropdown-toggle {
    width: auto;
}

.note-editor .note-toolbar {
    position: sticky;
    top: 0px;
    z-index: 999;
}

/* 閉じるボタン */
.note-modal-content .note-modal-header .close {
    color: #000;
}

/* リンクモーダル */
.note-modal-content .note-modal-body .form-group.note-form-group:nth-child(2) {
    display: none;
}

/* 画像モーダル */
.note-modal-content .note-modal-body .form-group.note-group-image-url {
    display: none;
}

/* モーダルボタン */
.note-modal-footer {
    height: 70px;
}

/* summernote調整ここまで */

/* form調整ここから */
textarea.form-control {
    field-sizing: content;
    min-height: 200px;
}

/* セレクトボックスのスタイル */
select.form-control.mb-4 {
    cursor: pointer;
    appearance: none;
    /* デフォルトの矢印を隠す */
    background-image: linear-gradient(45deg, transparent 50%, #3e3e3e 50%),
        linear-gradient(135deg, #3e3e3e 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}



/* form調整ここまで */

/* fileここから */
.upload-container {
    border: 2px dashed;
    border-image: var(--admin_bg_color) 1;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.upload-container:hover {
    background-color: #f0f8ff;
}

.upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 50px;
}

.upload-text {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

.file-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.file-list-item {
    margin-bottom: 5px;
    color: #333;
}

.file-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.file-item .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-bottom: 10px;
}

.file-item .img-wrap {
    background-image: url('/images/admin/backgroud.png');
    background-repeat: repeat;
    width: fit-content;
    height: fit-content;
}

.file-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.file-item i {
    font-size: 50px;
}

.file-preview {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.file-name {
    font-size: 12px;
    word-wrap: break-word;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}


/* fileここまで */

/* modalここから */
#imageModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#imageModal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

#closeModal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* modalここまで */

/* パスワード切り替えここから */
.toggle-password {
    cursor: pointer;
}

/* パスワード切り替えここまで */

/* 管理画面画像拡大ここから */
.enlarge-img {
    cursor: pointer;
}

/* 管理画面画像拡大ここまで */

/* ロードアニメーションここから */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(155, 167, 187, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-wave {
    border-radius: 50%;
    position: relative;
    opacity: 1;
    width: 40px;
    height: 40px;
}

.sp-wave:before,
.sp-wave:after {
    content: "";
    border: 1px solid #fff;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0px;
}

.sp-wave:before {
    transform: scale(1, 1);
    opacity: 1;
    -webkit-animation: spWaveBe 0.6s infinite linear;
    animation: spWaveBe 0.6s infinite linear;
}

.sp-wave:after {
    transform: scale(0, 0);
    opacity: 0;
    -webkit-animation: spWaveAf 0.6s infinite linear;
    animation: spWaveAf 0.6s infinite linear;
}

@-webkit-keyframes spWaveAf {
    from {
        -webkit-transform: scale(0.5, 0.5);
        opacity: 0;
    }

    to {
        -webkit-transform: scale(1, 1);
        opacity: 1;
    }
}

@keyframes spWaveAf {
    from {
        transform: scale(0.5, 0.5);
        opacity: 0;
    }

    to {
        transform: scale(1, 1);
        opacity: 1;
    }
}

@-webkit-keyframes spWaveBe {
    from {
        -webkit-transform: scale(1, 1);
        opacity: 1;
    }

    to {
        -webkit-transform: scale(1.5, 1.5);
        opacity: 0;
    }
}

@keyframes spWaveBe {
    from {
        -webkit-transform: scale(1, 1);
        opacity: 1;
    }

    to {
        -webkit-transform: scale(1.5, 1.5);
        opacity: 0;
    }
}

/* ロードアニメーションここまで */

/* パスワードここから */
.password-container {
    position: relative;
}
.password-container .toggle-password {
    position: absolute;
    top: 80%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
}
/* パスワードここまで */

/* input type colorここから */
input[type="color"]{
    height: 40px;
    width: 80px;
}
/* input type colorここまで */

.fixed-submit {
    position: fixed;
    bottom: 0;
    left: 250px; /* ← サイドバーの幅 */
    right: 0;
    z-index: 1050;
}
.fixed-submit .inner {
    width: calc(100% - 250px);
    margin-left: 11px;
    padding: 1rem;
}

@media (max-width: 1200px) {
    .fixed-submit {
        left: 0; /* タブレット以下では全幅にする */
    }
    .fixed-submit .inner {
        width: 100%;
        margin-left: 0;
    }
}

/* chart.jsここから */

canvas {
    width: 100% !important;
    height: auto !important;
}



/* chart.jsここまで */