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

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

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

/* 単位つき入力（input-group-unit）
   soft-ui は「入力欄の後ろの input-group-text」を position:absolute にするため、
   「円以上」「営業日」などの単位が入力欄に重なる。単位つきの入力はこのクラスで通常の並びに戻す。 */
.input-group.input-group-unit {
    flex-wrap: nowrap;
    align-items: stretch;
}

.input-group.input-group-unit > .form-control {
    min-width: 4.5rem;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    border: 1px solid #d2d6da !important;
    border-radius: 0 !important;
    text-align: right;
}

.input-group.input-group-unit > .input-group-text {
    position: static;
    flex: 0 0 auto;
    border: 1px solid #d2d6da !important;
    border-radius: 0;
    background-color: #f8f9fa;
    color: #495057;
    white-space: nowrap;
}

.input-group.input-group-unit > :not(:first-child) {
    margin-left: -1px;
}

.input-group.input-group-unit > :first-child {
    border-top-left-radius: 0.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
}

.input-group.input-group-unit > :last-child {
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

.input-group.input-group-unit > .form-control:focus {
    position: relative;
    z-index: 3;
    border-color: var(--admin_color3, #e293d3) !important;
}

.input-group.input-group-unit.focused {
    box-shadow: none;
}

.input-group.input-group-unit > .form-control.is-empty {
    border-color: #ea0606 !important;
}

/* 単位つき入力ここまで */

/* 帳票を発行したあとの「開く（印刷）」の案内 */
.open-document-notice {
    background-color: #fff8e6;
    border: 1px solid #f5c26b;
}

/* 期間（日付2つ）の入力：欄を縮められるようにして、カードの右へはみ出さない */
.date-range > input { flex: 1 1 0; min-width: 0; }
.date-range > span { flex: none; }

/* 一覧の列の見出しで並び替えるボタン（濃い見出しの帯の上でも読めるように白文字＋下線で押せることを示す） */
.sort-button { text-decoration: underline dotted; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; }
.sort-button:hover, .sort-button:focus-visible { text-decoration: underline; color: #fff !important; }

/*
 * アイコンの図形（.icon-shape）の中のアイコンを、上下左右の真ん中に置く。
 *
 * テーマ（soft-ui）は .icon-shape i { position: relative; top: 11px }（.icon-sm は 2px、.ni は 14px）で、
 * 行の高さを頼りに下へずらして真ん中に見せる作り。
 * この案件では図形を d-flex / d-inline-flex + align-items-center で真ん中に揃えているため、
 * top の分だけアイコンが下へずれていた（ダッシュボードの件数カードで 11px、サイドメニューで 2px）。
 * flex で揃えている図形に限って top を打ち消す。
 */
.icon-shape.d-flex i,
.icon-shape.d-inline-flex i,
.icon-shape.d-flex .ni,
.icon-shape.d-inline-flex .ni {
    top: 0;
}

/* 横並びの中で図形がつぶれないようにする（カードの幅が狭いときに楕円になる） */
.icon-shape.d-flex,
.icon-shape.d-inline-flex {
    flex-shrink: 0;
}

/*
 * 表のセルに直接置いたチェックボックス（注文一覧の「選ぶ」など）。
 *
 * .form-check で包まずに置くと、次の2つが効いてずれて・見えなくなる。
 * ・Bootstrap 4 の .form-check-input { position: absolute; margin-top: .3rem; margin-left: -1.25rem }
 *   （.form-check の左の余白に置く前提）で、左上へずれる
 * ・テーマの枠線とチェックの印は .form-check:not(.form-switch) の中だけに付くため、
 *   白い行では枠が無くて見えない。チェックしても印が出ない
 * セルの真ん中に置き、枠線とチェックの印を付け直す。
 */
td > .form-check-input[type="checkbox"],
th > .form-check-input[type="checkbox"] {
    position: static;
    float: none;
    display: inline-block;
    margin: 0;
    vertical-align: middle;
    border: 1px solid #b0bac4;
}

td > .form-check-input[type="checkbox"]:checked,
th > .form-check-input[type="checkbox"]:checked {
    border-color: transparent;
    background-image:
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e"),
        linear-gradient(310deg, var(--admin_color6) 0%, var(--admin_color7) 100%);
}

td > .form-check-input[type="checkbox"]:focus-visible,
th > .form-check-input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--admin_color3, #e293d3);
    outline-offset: 2px;
}

/*
 * 「noindex 指定中」の表示（ヘッダーのページ名の横）。
 * 公開前は意図して noindex にしているため消さないが、公開時に外し忘れないよう、
 * 読める大きさと濃さで常に見えるようにする（黄色の地に濃い文字でコントラストを確保）。
 */
.noindex-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    padding: .35rem .85rem;
    border: 1px solid #d39e00;
    border-radius: 999px;
    background: #ffe08a;
    color: #4d3a00 !important;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.noindex-badge:hover,
.noindex-badge:focus-visible {
    background: #ffd45c;
    color: #3d2e00 !important;
}

/*
 * 本番以外であることを示す帯（css/env-banner.css）と管理画面のヘッダーの重なり。
 *
 * 帯はレイアウトを押し下げない（fixed で重ねる）作りだが、管理画面のヘッダーは画面の上端にあるため、
 * 帯を開いているとヘッダー（ページ名・ログイン中の名前）の上半分を隠し、
 * 畳んだ丸いアイコン（右上 40px ほど）は「サイト確認」ボタンやメニューの開閉に重なっていた。
 * ヘッダーは fixed ではなく普通に並んでいるだけなので、ヘッダーだけを帯の分ずらす。
 * （body に余白を足すと fixed のサイドメニューとずれるため、帯の注意書きどおり body には足さない）
 */
body:has(> .env-banner:not(.is-collapsed)) .main-content > .navbar-main {
    margin-top: 26px;
}

/* スクロールするとテーマの JS（navbar-scroll）がヘッダーを上端に貼り付ける（.position-sticky.top-1）。
   そのときも帯の下に貼り付くようにする */
body:has(> .env-banner:not(.is-collapsed)) .main-content > .navbar-main.position-sticky {
    top: calc(26px + .25rem) !important;
}

body:has(> .env-banner.is-collapsed) .main-content > .navbar-main > .container-fluid {
    padding-right: 48px !important;
}

/*
 * 注文の登録・編集の商品選択（select2）。soft-ui の .form-control と同じ高さ・枠・角丸にそろえる
 * （resources/views/livewire/admin/shop/order-form.blade.php の .order-product-select）
 */
.order-product-select .select2-container--default .select2-selection--single {
    height: calc(1.4rem + 1rem + 2px);
    border: 1px solid #d2d6da;
    border-radius: 0.5rem;
    background-color: #fff;
}
.order-product-select .select2-container--default .select2-selection--single .select2-selection__rendered {
    /* 同梱の select2.css が上下に 8px の余白を付けているため消す（付いたままだと文字が下にずれる） */
    padding-top: 0;
    padding-bottom: 0;
    line-height: calc(1.4rem + 1rem);
    padding-left: 0.75rem;
    padding-right: 2rem;
    font-size: 0.875rem;
    color: #495057;
}
.order-product-select .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #adb5bd;
}
.order-product-select .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.4rem + 1rem);
    right: 0.5rem;
}
.order-product-select .select2-container--default.select2-container--focus .select2-selection--single,
.order-product-select .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--admin_color2);
    box-shadow: 0 0 0 2px var(--admin_color2);
    outline: 0;
}
/* ドロップダウンは body に付くため、画面の中に限らず select2 全体に効く。文字の大きさだけそろえる */
.select2-container--default .select2-results__group {
    font-size: 0.75rem;
    color: #67748e;
    background: #f8f9fa;
}
.select2-container--default .select2-results__option {
    font-size: 0.875rem;
}
.select2-container--default .select2-results__option--disabled {
    color: #adb5bd;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 0.375rem;
    border-color: #d2d6da;
}

/* 一覧の行のどこを押しても詳細へ移る（public/js/admin/row-link.js。注文・顧客・品種の一覧）。
   押せる行だと分かるよう、カーソルとマウスを乗せたときの色を付ける。
   未確認の注文の行（table-warning）も、乗せたときは少し濃くして分かるようにする */
tr.row-link[data-href] {
  cursor: pointer;
}
tr.row-link[data-href]:hover > td {
  background-color: rgba(245, 214, 20, 0.12);
}
tr.row-link.table-warning[data-href]:hover > td {
  background-color: rgba(245, 214, 20, 0.28);
}
/* 並べ替えの持ち手の上では、つかめることが分かるカーソルのままにする */
tr.row-link[data-href] > td.handle {
  cursor: grab;
}

/* 注文詳細：ご注文者とお届け先の枠（resources/views/admin/shop/order/show.blade.php）。
   見出しは「贈答用」のバッジで折り返すことがあるため、見出しの高さをそろえて左右の枠の上端を合わせる。
   長いメールアドレスや住所で枠の外へはみ出さないよう、折り返しを許す */
.order-party-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  min-height: 1.75rem;
  margin-bottom: .5rem;
}
.order-party-box {
  overflow-wrap: anywhere;
  line-height: 1.7;
}

/* 注文詳細：取引履歴（resources/views/admin/shop/order/show.blade.php）。
   PC は日時を左の列に、スマホは日時を1行目に分ける。長い宛先・件名は枠の中で折り返す */
.order-timeline-body {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-timeline-body summary {
  white-space: normal;
}
@media (min-width: 576px) {
  .order-timeline-date {
    flex: 0 0 110px;
  }
}

/* 注文詳細：明細。テーマの表はセルを折り返さないため、品名が長いと狭い画面で横にはみ出す */
.order-items-table td {
  white-space: normal;
}
@media (max-width: 575.98px) {
  /* スマホでは表を縦に組み替え、横スクロールさせない。
     品名を1行目に全幅で出し、その下に「単価・数量・箱・金額」を見出し付きで並べる */
  .order-items-wrap {
    overflow-x: visible;
  }
  .order-items-table thead {
    display: none;
  }
  .order-items-table,
  .order-items-table tbody,
  .order-items-table tr,
  .order-items-table td {
    display: block;
    width: 100%;
  }
  .order-items-table tr {
    border-bottom: 1px solid #e9ecef;
    padding: .5rem 0;
  }
  .order-items-table td {
    border: 0 !important;
    padding: .1rem .5rem !important;
    text-align: left !important;
  }
  .order-items-table tr.order-item-row td[data-label] {
    display: inline-block;
    width: auto;
    font-size: .8rem;
  }
  .order-items-table tr.order-item-row td[data-label]::before {
    content: attr(data-label) " ";
    color: #8392ab;
    font-size: .7rem;
  }
  .order-items-table tr.order-item-row td.order-item-amount {
    display: block;
    text-align: right !important;
    font-weight: 600;
    font-size: .875rem;
  }
  /* 合計の行は「見出し … 金額」を左右に置く */
  .order-items-table tr.order-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
  }
  .order-items-table tr.order-sum-row td {
    width: auto;
  }
  .order-items-table tr.order-sum-row td:last-child {
    flex-shrink: 0;
    text-align: right !important;
  }
}

/* 顧客詳細：注文履歴。セルを折り返せるようにし、カードの外へはみ出さないようにする */
.customer-orders-table {
  table-layout: auto;
  width: 100%;
}
.customer-orders-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.customer-orders-table td.text-end {
  white-space: nowrap;
  width: 1%;
}
