input[type=checkbox]:checked {
    background: var(--admin_color7);
    accent-color: var(--admin_color7);
}

#nece-alert {
    width: 100%;
    background-color: var(--admin_color1);
    color: var(--admin_color2);
    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;
}

/* コンテンツ内の白背景アイコン（システム設定のメニュー一覧など）。
   テーマの .icon-shape i は color:#fff 固定のため、白背景だと見えなくなる */
.icon-on-white i {
    color: var(--admin_color3) !important;
    opacity: 1;
}

/* システム設定のメニュー。サイドメニューと同様に行全体をクリックできるようにする */
.system-menu-item {
    padding: 14px 12px;
    border-radius: 0.75rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.system-menu-item + .system-menu-item {
    border-top: 1px solid #e9ecef;
}

a.system-menu-item:hover {
    background-color: var(--admin_color9, #eff3f6);
    border-top-color: transparent;
}

a.system-menu-item:hover + .system-menu-item {
    border-top-color: transparent;
}

.system-menu-item.is-disabled {
    opacity: 0.6;
}

.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-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;
} */

.modal-content footer {
    display: none;
}

.modal-content .fixed-submit {
    position: relative;
    left: 0;
    box-shadow: none;
}

.modal-content .inner.card {
    display: block;
    margin: auto;
    box-shadow: none;
}

.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;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10000;
}

.custom-modal[aria-hidden="false"] {
    display: block;
}

.custom-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    width: 100%;
    height: 100%;
}

.custom-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 600px;
    margin: 5% auto;
    padding: 1rem;
    border-radius: 8px;
    z-index: 10001;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.custom-modal-close {
    position: absolute;
    top: -20px;
    right: -40px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

/* 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ここまで */

#date_range {
    background-image: linear-gradient(310deg, var(--admin_color2) 0%, var(--admin_color1) 100%);
    color: #fff;
    height: 100%;
    text-align: center;
    font-size: 0.75em;
    font-weight: 500;
}

/* tooltip */
.tooltip-bubble {
    position: absolute;
    background: var(--admin_color3);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9999;
    display: none;
    white-space: normal;
    /* 改行を有効 */
    word-break: break-word;
    /* 長文・URL対策 */
    overflow-wrap: break-word;
    /* 互換用 */
}

/* カレンダー選択ここから */
select#date_range option {
    color: var(--admin_color3);
    text-align: center;
}

/* カレンダー選択ここまで */

/* リロードボタンここから */
.reload-btn-wrap {
    position: fixed;
    bottom: 30px;
    right: 10px;
    background-color: var(--admin_color3);
    border-radius: 0.5rem;
    z-index: 10007;
}

.reload-btn-wrap a i {
    padding: 10px;
    font-size: 22px;
    width: 40px;
    text-align: center;
}

/* リロードボタンここまで */

/* 戻るボタンここから */
.back-btn-wrap {
    position: fixed;
    bottom: 80px;
    right: 10px;
    background-color: var(--admin_color3);
    border-radius: 0.5rem;
    z-index: 10007;
}

.back-btn-wrap a i {
    padding: 10px;
    font-size: 22px;
    width: 40px;
    text-align: center;
}

/* 戻るボタンここまで */

/* 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ここまで */

/* テーブルクリックデータ表示ここから */
.table-responsive th {
    background: var(--admin_color2);
    color: #fff !important;
}

.table-responsive th:first-child {
    border-radius: 10px 0 0 0;
}

.table-responsive th:last-child {
    border-radius: 0 10px 0 0;
}

.table-responsive table:not(.calendar) tbody tr[data-class="modal-link"] {
    cursor: pointer;
}

/* テーブルクリックデータ表示ここまで */

/* ajaxmodalここから */

/* モーダルを全画面に近い高さにする */
#ajaxModal .modal-dialog {
    max-width: 95%;
    /* 横幅 */
    height: 95vh;
    /* 高さを画面の90%に */
}

#ajaxModal .modal-content {
    height: 100%;
}

#ajaxModal .modal-body {
    overflow-y: auto;
    max-height: calc(94vh);
    /* ヘッダーとフッター分を引く */
}


#ajaxModal .modal-dialog .navbar {
    display: none;
}

#ajaxModal .modal-dialog .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

#ajaxModal .modal-dialog .breadcrumb {
    margin-right: 0 !important;
}

#ajaxModal .modal-dialog .btn-close i {
    color: var(--admin_color3);
}

#ajaxModal .modal-dialog input[type='file'] {
    display: none;
}

#ajaxModal .modal-dialog input[type='file']::after {
    content: '※modal内では画像の変更はできません。';
}

@media (max-width: 991px) {
    #ajaxModal .modal-dialog .modal-header {
        position: fixed;
        z-index: 99;
        background: #fff;
        margin: 0 11px;
        justify-content: space-between;
        width: 92%;
    }

    #ajaxModal .modal-dialog .modal-body {
        margin-top: 60px;
    }
}

@media (min-width: 1200px) {
    #ajaxModal .modal-dialog .main-content {
        margin-left: 0 !important;
    }
}

/* ajaxmodalここまで */

/* 検索エリアここから */
/*
 * ⚠ max-height と overflow-y は持たせない。
 *   項目数が多いフォームで検索欄が内部スクロールになり、
 *   画面に出ていない欄の存在に気づけなくなる（一覧側のスクロールと二重にもなる）。
 *   欄は row グリッドで折り返す（admin/form/data.blade.php）
 */
form .search-area{
    padding: 20px;
}

/* 適用中の絞り込みバッジ */
form + .filter-badges,
.filter-badges .badge{
    font-weight: 400;
}
/* 検索エリアここまで */

.table-fixed {
    max-height: 600px;
    overflow: auto;
    position: relative;
}

.table-fixed th,
.table-fixed td {
    background: #fff;
}

.table-fixed .sticky-row {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-fixed .sticky-col {
    position: sticky;
    z-index: 9;
}

/* テーブルクリックデータ表示ここから */
.table-responsive th{
    background: var(--admin_color2);
    color: #fff !important;
}
.table-responsive th:first-child{
    border-radius: 10px 0 0 0;
}
.table-responsive th:last-child{
    border-radius: 0 10px 0 0;
}
.table-responsive table:not(.calendar) tbody tr[data-class="modal-link"] {
    cursor: pointer;
}

.table-responsive table:not(.calendar) tr:hover td {
  /* --admin_color9 はサイト設定に無い番号。他の2箇所と同じ既定値を持たせる
     （フォールバックが無いと宣言が無効になり、行ホバーの背景色が出ない） */
  background-color: var(--admin_color9, #eff3f6);
}
/* テーブルクリックデータ表示ここまで */

/* ログイン認証ここから */
.code-inputs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 10px;
}

/* 入力欄のカスタマイズ（下線のみ） */
.code-input {
    width: 45px;
    height: 50px;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--admin_color8, #c9d2e3);
    border-bottom: 3px solid var(--admin_color1, #9ba7bb);
    border-radius: 10px;
    padding: 0;
    background-color: transparent;
    color: var(--admin_color3, #344767);
    transition: border-color 0.2s ease-in-out;
}

.code-input:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: var(--admin_color2, #6b7a99);
}

/* 数字入力の上下スピンボタンを非表示にする */
.code-input::-webkit-outer-spin-button,
.code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.code-input[type=number] {
    -moz-appearance: textfield;
}

/* チャットここから */
.admin-chat-shell {
    background:
        radial-gradient(circle at top right, rgba(197, 207, 228, 0.75), transparent 35%),
        linear-gradient(160deg, rgba(239, 239, 241, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(155, 167, 187, 0.28);
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(20, 23, 39, 0.08);
    overflow: hidden;
}

.admin-chat-sidebar {
    background: linear-gradient(180deg, var(--admin_color3), var(--admin_color7));
    color: #fff;
    height: 100%;
}

.admin-chat-sidebar .text-muted-soft {
    color: rgba(255, 255, 255, 0.72) !important;
}

.admin-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-chat-stat {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.admin-chat-quicklink {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.admin-chat-body {
    background-color: rgba(255, 255, 255, 0.78);
}

.admin-chat-toolbar {
    border-bottom: 1px solid rgba(155, 167, 187, 0.25);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

.admin-chat-thread {
    max-height: 66vh;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(239, 239, 241, 0.8), rgba(255, 255, 255, 0.95)),
        repeating-linear-gradient(0deg,
            transparent 0,
            transparent 35px,
            rgba(197, 207, 228, 0.12) 36px);
}

.admin-chat-date {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(52, 71, 103, 0.08);
    color: var(--admin_color4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-chat-message {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
}

.admin-chat-meta {
    font-size: 0.75rem;
    color: var(--admin_color4);
}

.admin-chat-bubble {
    display: inline-block;
    width: fit-content;
    max-width: min(88%, 42rem);
    border-radius: 1.25rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 12px 28px rgba(20, 23, 39, 0.06);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-chat-message.-admin {
    align-items: flex-end;
}

.admin-chat-message.-system {
    align-items: flex-start;
}

.admin-chat-message.-admin .admin-chat-meta {
    text-align: right;
}

.admin-chat-message.-system .admin-chat-meta {
    text-align: left;
}

.admin-chat-message.-admin .admin-chat-bubble {
    background: linear-gradient(310deg, var(--admin_color2) 0%, var(--admin_color1) 100%);
    color: #fff;
    border-bottom-right-radius: 0.35rem;
}

.admin-chat-message.-system .admin-chat-bubble {
    background: #fff;
    color: var(--admin_color6);
    border: 1px solid #d2d6da;
    border-bottom-left-radius: 0.35rem;
}

.admin-chat-message.-admin .enlarge-img,
.admin-chat-message.-system .enlarge-img {
    display: block;
    max-width: min(240px, 100%);
    height: auto;
    width: 100%;
}

.admin-chat-bubble p {
    margin-bottom: 0;
}

.admin-chat-meta {
    color: var(--admin_color4);
    font-size: 0.75rem;
}

.admin-chat-message.-admin .admin-chat-meta {
    color: var(--admin_color3);
    text-align: right;
}

.admin-chat-composer {
    border-top: 1px solid #d2d6da;
    background: #fff;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-chat-composer.is-dragover {
    background-color: rgba(52, 71, 103, 0.06);
    box-shadow: inset 0 0 0 2px var(--admin_color3);
}

.admin-chat-textarea {
    min-height: 130px;
    border-radius: 1rem;
    resize: none;
    box-shadow: none !important;
}

.admin-chat-textarea:focus {
    border-color: var(--admin_color3);
}

.admin-chat-note {
    border-left: 4px solid var(--admin_color5);
    background: var(--admin_color2);
    color: var(--admin_color6);
}

@media (max-width: 991.98px) {
    .admin-chat-thread {
        max-height: none;
    }
}

/* チャットここまで */

/* ログイン認証ここまで */