﻿html {
    font-size: 14px;
}

　
/*start モーダル表示時の右側の余白を消す*/
body {
    padding-right: var(--bs-body-padding-right);
}



/* end モーダル表示時の右側の余白を消す*/
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #E4E4E4;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text-theme-black);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


:root {
    --color-text-theme-black: #4A4A58;
    --color-text-theme-blue: #222259;
    --color-brand-blue: #124F89;
    --color-brand-slate: #313E4B;
    --color-input-yellow: #FDFDE8;
    --color-theme-red: #EF6A63;
    --color-bg-light-gray-100: #F2F2F2;
    --color-bg-light-gray-200: #E9E9E9;
    --color-btn-gray: #A5A5A5;
    --color-btn-boarder-gray: #CCCCCC;
    --color-text-gray: #B1B1B1;
}
.floating-alert {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw; /* ★ 画面の80% */
    max-width: 1200px; /* 大画面対策（任意） */

    z-index: 1080;
}
@media (max-width: 576px) {
    .floating-alert {
        width: 92vw; /* スマホは少し広め */
    }
}


.bg-red {
    background-color: var(--color-theme-red) !important;
    color: white !important;
}

.page-link {
    color: var(--color-brand-blue);
}

    .page-link:hover,
    .page-link:focus {
        color: #0e3e6b;
        box-shadow: none;
    }

    .active > .page-link,
    .page-link.active {
        z-index: 3;
        color: white;
        background-color: var(--color-brand-blue);
        border-color: var(--color-btn-boarder-gray);
    }

input[readonly],
input[readonly]:focus,
input[readonly]:hover,
input[readonly]:visited,
input[readonly]:active {
    background-color: var(--color-bg-light-gray); /* 薄いグレー */
    border-color: var(--color-btn-boarder-gray);
    color: #6c757d; /* Bootstrap の text-muted 相当 */
    cursor: not-allowed;
}
/* required かつ read-only じゃない input/textarea/select にだけ適用 */
input:required:not(:read-only),
textarea:required:not(:read-only),
select:required:not(:read-only) {
    border-color: var(--color-btn-boarder-gray);
}

/* ===============================
   Bootstrap range (input[type=range])
   =============================== */
/* ===== 共通：ネイティブ無効化 ===== */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
}

    /* ===== バー ===== */
    input[type="range"]::-webkit-slider-runnable-track {
        height: 6px;
        background: #ffffff;
        border-radius: 999px;
    }

    input[type="range"]::-moz-range-track {
        height: 6px;
        background: #ffffff;
        border-radius: 999px;
    }

    /* ===== 〇（通常） ===== */
    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        background: #ffffff;
        border-radius: 50%;
        border: none;
        margin-top: -6px;
        box-shadow: none !important;
    }

    /* ===== 〇（ドラッグ中 / active） ===== */
    input[type="range"]:active::-webkit-slider-thumb {
        background: #ffffff !important;
        box-shadow: none !important;
    }

    /* ===== 〇（focus / focus-visible） ===== */
    input[type="range"]:focus::-webkit-slider-thumb,
    input[type="range"]:focus-visible::-webkit-slider-thumb {
        background: #ffffff !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* ===== Firefox ===== */
    input[type="range"]::-moz-range-thumb {
        width: 18px;
        height: 18px;
        background: #ffffff;
        border-radius: 50%;
        border: none;
        box-shadow: none !important;
    }

    input[type="range"]:active::-moz-range-thumb,
    input[type="range"]:focus::-moz-range-thumb,
    input[type="range"]:focus-visible::-moz-range-thumb {
        background: #ffffff !important;
        box-shadow: none !important;
    }

/* ================================
                       Radio Cards
     ================================ */
.rule-radio-cards {
    display: flex;
    gap: 16px;
    align-items: center;
}

    .rule-radio-cards input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

/* カード本体 */
.rule-radio-card {
    min-width: 120px;
    height: 50px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #7a7a7a;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, color .12s ease;
    border: 1px solid var(--color-btn-boarder-gray);
}

    /* 左のラジオ丸（外枠） */
    .rule-radio-card .radio-dot {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #F2F2F2; /* ← 白リング */
        border: 2px solid rgba(255,255,255,.9);
        position: relative;
        flex: 0 0 auto;
        border: 1px solid var(--color-btn-boarder-gray);
    }

    /* テキスト */
    .rule-radio-card .radio-text {
        /*  font-weight: 600;*/
        font-size: 0.9rem;
        letter-spacing: .02em;
    }

/* ================================
                       選択中
       ================================ */
.rule-radio-cards input[type="radio"]:checked + .rule-radio-card {
    background: #0b4f8a; /* 濃い青 */
    border-color: #0b4f8a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(11,79,138,.28);
    border: 1px solid var(--color-btn-boarder-gray);
}

    /* 白リングを維持 */
    .rule-radio-cards input[type="radio"]:checked + .rule-radio-card .radio-dot {
        background: #ffffff; /* ○ 白 */
        border-color: rgba(255,255,255,.95);
    }

        /* 中央の青ドット */
        .rule-radio-cards input[type="radio"]:checked + .rule-radio-card .radio-dot::after {
            content: "";
            position: absolute;
            inset: 2px; /* ● サイズ */
            border-radius: 50%;
            background: #2f6fae; /* ← 中央の青 ● */
            border: 1px solid var(--color-btn-boarder-gray);
        }

/* ================================
                       hover（未選択）
                    ================================ */
.rule-radio-cards input[type="radio"]:not(:checked) + .rule-radio-card:hover {
    border-color: #bfc7d1;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* ================================
                       focus（キーボード）
                    ================================ */
.rule-radio-cards input[type="radio"]:focus-visible + .rule-radio-card {
    outline: 3px solid rgba(13,110,253,.25);
    outline-offset: 2px;
}


/*ハンバーガーメニューを表示するのを早くするため*/
@media (max-width: 576px) {
    .navbar-collapse {
        transition: none !important;
    }
}

.navbar-toggler {
    color: #fff;
    border-color: rgba(255,255,255,.6);

    &:hover {
        border-color: #fff;
    }

    &:focus {
        box-shadow: 0 0 0 .2rem rgba(255,255,255,.35);
    }
}

.navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url( "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e" );
}

.sub-title {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 6px;
    padding-right: 6px;
    top: 3.5px;
    position: relative;
}
/* profile */
.profile-dropdown .active,
.profile-dropdown a:hover,
.profile-dropdown a:active,
.profile-dropdown button:hover,
.profile-dropdown button:active {
    background: var(--color-brand-blue);
    color: white;
}
/* Footer Bar */
.footer-bar {
    height: 40px;
    font-size: 0.875rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}
/* 画面下に固定したい場合 */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.footer-left {
    font-weight: 500;
    color: #495057;
}

.footer-right {
    white-space: nowrap;
}
/* Custom Spacing Utilities */

.mx-1_5 {
    margin-right: .375rem !important;
    margin-left: .375rem !important;
}

.px-4_5 {
    padding-right: 2.25rem !important;
    padding-left: 2.25rem !important;
}

.py-2_5 {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}

.my-1_5 {
    margin-top: .375rem !important;
    margin-bottom: .375rem !important;
}

.min-width-80 {
    min-width: 80px !important;
}

.min-width-90 {
    min-width: 90px !important;
}

.min-width-100 {
    min-width: 100px !important;
}
.min-width-110 {
    min-width: 110px !important;
}

.min-width-120 {
    min-width: 120px !important;
}

.min-width-130 {
    min-width: 130px !important;
}

.min-width-140 {
    min-width: 140px !important;
}

.min-width-150 {
    min-width: 150px !important;
}
.min-width-160 {
    min-width: 160px !important;
}
.min-width-170 {
    min-width: 170px !important;
}
.min-width-180 {
    min-width: 180px !important;
}
.min-width-190 {
    min-width: 190px !important;
}
.min-width-200 {
    min-width: 200px !important;
}
.min-width-210 {
    min-width: 210px !important;
}
.min-width-220 {
    min-width: 220px !important;
}
.min-width-230 {
    min-width: 230px !important;
}
.min-width-240 {
    min-width: 240px !important;
}
.min-width-250 {
    min-width: 250px !important;
}
.min-width-260 {
    min-width: 260px !important;
}
.min-width-270 {
    min-width: 270px !important;
}
.min-width-280 {
    min-width: 280px !important;
}

.max-width-60 {
    max-width: 60px !important;
}
.max-width-70 {
    max-width: 70px !important;
}
.max-width-80 {
    max-width: 80px !important;
}
.max-width-90 {
    max-width: 90px !important;
}
.max-width-100 {
    max-width: 100px !important;
}

.max-width-120 {
    max-width: 120px !important;
}

.max-width-140 {
    max-width: 140px !important;
}

.max-width-180 {
    max-width: 180px !important;
}
.max-width-190 {
    max-width: 190px !important;
}

.max-width-200 {
    max-width: 200px !important;
}

.max-width-210 {
    max-width: 210px !important;
}

.max-width-220 {
    max-width: 220px !important;
}
.max-width-230 {
    max-width: 230px !important;
}

.max-width-240 {
    max-width: 240px !important;
}
.max-width-250 {
    max-width: 250px !important;
}

.max-width-260 {
    max-width: 260px !important;
}


.max-width-270 {
    max-width: 270px !important;
}

.max-width-280 {
    max-width: 280px !important;
}
.max-width-290 {
    max-width: 290px !important;
}
.max-width-300 {
    max-width: 300px !important;
}
.max-width-320 {
    max-width: 320px !important;
}
.max-width-340 {
    max-width: 340px !important;
}
.max-width-360 {
    max-width: 360px !important;
}
.bg-brand-blue {
    background-color: var(--color-brand-blue);
}

.bg-brand-slate {
    background-color: var(--color-brand-slate);
}

.text-theme-black {
    color: var(--color-text-theme-black);
}

.text-theme-blue {
    color: var(--color-text-theme-blue);
}

.text-brand-blue {
    color: var(--color-brand-blue);
}

.text-brand-slate {
    color: var(--color-brand-slate);
}

.text-red {
    color: var(--color-theme-red);
}

.text-ellipsis {
    white-space: nowrap; /* 折り返さない */
    overflow: hidden; /* はみ出し隠す */
    text-overflow: ellipsis; /* … を出す */
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.letter-spacing-3 {
    letter-spacing: 3px;
}

.letter-spacing-4 {
    letter-spacing: 4px;
}

.letter-spacing-5 {
    letter-spacing: 5px;
}

.letter-spacing-6 {
    letter-spacing: 6px;
}


.form-check-input[type=checkbox]:indeterminate {
    background-color: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
}
/* Make checkbox background blue when checked */
.form-check-input:checked {
    background-color: var(--color-brand-blue);
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 .1rem rgba(18, 79, 137, 0.25);
}
/* Optional: make the checkbox border blue even when not checked */
.form-check-input {
    border: 1px solid var(--color-btn-boarder-gray);
    transform: scale(1.2); /* 1.5 = 150% size */
    margin-right: 0.3rem;
}

    .form-check-input:checked {
    }

.form-control {
    border: 1px solid var(--color-btn-boarder-gray);
}

    .form-control:focus {
        color: var(--bs-body-color);
        background-color: var(--bs-body-bg);
        border-color: #124F89;
        outline: 0;
        /* box-shadow: 0 0 0 .25rem rgba(18, 79, 137, 0.25);*/

        box-shadow: none;
    }
    /* エラー時：薄い赤背景 */
    .form-control.is-invalid {
        background-color: #FFF4F4 !important;
        border-color: #dc3545;
        background-image: none;
        box-shadow: none;
    }
        /* フォーカス時も赤を維持 */
        .form-control.is-invalid:focus {
            background-color: #FFF4F4 !important;
            box-shadow: 0 0 0 .2rem rgba(220, 53, 69, 0.15);
            background-image: none;
            box-shadow: none;
        }

.text-input-required {
    background-color: var(--color-input-yellow);
}



.login-area .form-control {
    background-color: var(--color-input-yellow);
}

.login-area .text-input input {
    /*    border: 1px solid #CCCCCC;
    background-color: #FDFDE8;*/
}

    .login-area .text-input input:focus,
    .login-area .text-input input:active {
    }

.login-error {
    color: #EF6A63;
    display: block;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

    .login-error ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

.modal-backdrop.show {
    background-color: #000;
    opacity: 0.65; /* ← 黒＋透明感 */
}

/* button  */
.dropdown-center .btn-icon {
    cursor: pointer;
}
/* テキストは完全センター */
.btn-icon-text .btn-text,
.btn-icon-text-sm .btn-text {
    pointer-events: none; /* クリック邪魔しない */
}
/* アイコンは絶対配置 */
.btn-icon-text .btn-icon,
.btn-icon-text-sm .btn-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.btn-icon-text.icon-left .btn-icon {
    left: 12px;
}

.btn-icon-text-sm.icon-left .btn-icon {
    left: 8px;
}

.btn-icon-text.icon-right .btn-icon {
    right: 12px;
}

.btn-icon-text-sm.icon-right .btn-icon {
    right: 8px;
}

.btn-icon-text img {
    width: 16px;
    height: 16px;
    display: block;
}

.btn-icon-text-sm img {
    width: 12px;
    height: 12px;
    display: block;
}

.btn-icon-text .img-sm {
    width: 10px;
    height: 10px;
    display: block;
}

.btn-brand-blue {
    min-height: 40px;
    border-radius: 4px;
    background-color: var(--color-brand-blue) !important;
    border-color: var(--color-brand-blue) !important;
    color: white !important;
}

    .btn-brand-blue:hover,
    .btn-brand-blue:active,
    .btn-brand-blue:visited,
    .btn-brand-blue:focus {
        opacity: 0.8;
    }
        /* フォーカスが外れたら戻す */
        .btn-brand-blue:focus:not(:hover):not(:active) {
            opacity: 1;
        }

.btn-brand-blue-small {
    min-height: 20px;
    /*   border-radius: 4px;*/
    background-color: var(--color-brand-blue) !important;
    border-color: var(--color-brand-blue) !important;
    color: white !important;
    --bs-btn-padding-x: 0.17rem !important;
    --bs-btn-padding-y: 0.15rem !important;
}

    .btn-brand-blue-small:hover,
    .btn-brand-blue-small:active,
    .btn-brand-blue-small:visited,
    .btn-brand-blue-small:focus {
        opacity: 0.8;
    }

.btn-brand-red-save {
    min-height: 40px;
    border: none;
    border-radius: 999px;
    max-width: 230px;
    width: 230px;
    background-color: var(--color-theme-red) !important;
    /* border-color: var(--color-theme-red) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-red-save span {
        /*    letter-spacing: 12px;
    transform: translateX(6px);*/
    }

    .btn-brand-red-save:hover,
    .btn-brand-red-save:active,
    .btn-brand-red-save:visited,
    .btn-brand-red-save:focus {
        opacity: 0.8;
        border: none;
    }

    .btn-brand-red-save:disabled {
    /*    background-color: #707070 !important;*/
        border: none;
        color: white;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.6; /* Bootstrapのopacityを上書き */
    }

.btn-brand-red-round-sm {
    min-height: 36px;
    border: none;
    border-radius: 999px;
    background-color: var(--color-theme-red) !important;
    /* border-color: var(--color-theme-red) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-red-round-sm span {
        /*   transform: translateX(6px);*/
    }

    .btn-brand-red-round-sm:hover,
    .btn-brand-red-round-sm:active,
    .btn-brand-red-round-sm:visited,
    .btn-brand-red-round-sm:focus {
        opacity: 0.8;
        border: none;
    }

    .btn-brand-red-round-sm:disabled {
        background-color: #707070 !important;
        border: none;
        color: white;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 1; /* Bootstrapのopacityを上書き */
    }
.btn-brand-red-outline-round-xs {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-theme-red) !important;
    border-radius: 999px;
    background-color: white !important;
    border-color: var(--color-theme-red) !important;
    color: var(--color-theme-red) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-red-outline-round-xs span {
        /*   transform: translateX(6px);*/
    }

    .btn-brand-red-outline-round-xs:hover,
    .btn-brand-red-outline-round-xs:active,
    .btn-brand-red-outline-round-xs:visited,
    .btn-brand-red-outline-round-xs:focus {
        opacity: 0.7;
        border: none;
    }

    .btn-brand-red-outline-round-xs:disabled {
        background-color: #707070 !important;
        border: none;
        color: white;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 1; /* Bootstrapのopacityを上書き */
    }
.btn-brand-red-outline-round-sm {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-theme-red) !important;
    border-radius: 999px;
    background-color: white !important;
    border-color: var(--color-theme-red) !important;
    color: var(--color-theme-red) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-red-outline-round-sm span {
        /*   transform: translateX(6px);*/
    }

    .btn-brand-red-outline-round-sm:hover,
    .btn-brand-red-outline-round-sm:active,
    .btn-brand-red-outline-round-sm:visited,
    .btn-brand-red-outline-round-sm:focus {
        opacity: 0.7;
        border: none;
    }

    .btn-brand-red-outline-round-sm:disabled {
        background-color: #707070 !important;
        border: none;
        color: white;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 1; /* Bootstrapのopacityを上書き */
    }
.btn-brand-blue-sm {
    min-height: 32px;
    min-width: 60px;
    width: 60px;
    background-color: var(--color-brand-blue) !important;
    /*    border-color: var(--color-btn-gray) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-blue-sm span {
        letter-spacing: 6px;
        transform: translateX(3px);
    }

    .btn-brand-blue-sm:hover,
    .btn-brand-blue-sm:active,
    .btn-brand-blue-sm:visited,
    .btn-brand-blue-sm:focus {
        opacity: 0.8;
    }

.btn-brand-blue-round-sm {
    border-radius: 24px;
    min-height: 36px;
    border-radius: 999px;
    min-width: 80px;
    width: 80px;
    background-color: var(--color-brand-blue) !important;
    /*    border-color: var(--color-btn-gray) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-blue-round-sm span {
        /*     letter-spacing: 6px;
        transform: translateX(3px);*/
    }

    .btn-brand-blue-round-sm:hover,
    .btn-brand-blue-round-sm:active,
    .btn-brand-blue-round-sm:visited,
    .btn-brand-blue-round-sm:focus {
        opacity: 0.8;
        border: 1px solid var(--color-btn-boarder-gray) !important;
    }

.btn-brand-gray-sm {
    min-height: 32px;
    min-width: 60px;
    width: 60px;
    background-color: var(--color-btn-gray) !important;
    /*    border-color: var(--color-btn-gray) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-gray-sm span {
        letter-spacing: 6px;
        transform: translateX(3px);
    }

    .btn-brand-gray-sm:hover,
    .btn-brand-gray-sm:active,
    .btn-brand-gray-sm:visited,
    .btn-brand-gray-sm:focus {
        opacity: 0.8;
        border: 1px solid var(--color-btn-boarder-gray) !important;
    }

.btn-brand-gray-round-sm {
    border-radius: 24px;
    min-height: 36px;
    border-radius: 999px;
    min-width: 80px;
    width: 80px;
    background-color: var(--color-btn-gray) !important;
    /*    border-color: var(--color-btn-gray) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-gray-round-sm span {
       /* transform: translateX(3px);*/
    }

    .btn-brand-gray-round-sm:hover,
    .btn-brand-gray-round-sm:active,
    .btn-brand-gray-round-sm:visited,
    .btn-brand-gray-round-sm:focus {
        opacity: 0.8;
        border: 1px solid var(--color-btn-boarder-gray) !important;
    }

.btn-brand-gray-cancel {
    min-height: 40px;
    border-radius: 999px;
    max-width: 230px;
    width: 230px;
    background-color: var(--color-btn-gray) !important;
    border: 1px solid var(--color-btn-boarder-gray) !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-gray-cancel span {
        /* letter-spacing: 6px;*/
       /* transform: translateX(3px);*/
    }

    .btn-brand-gray-cancel:hover,
    .btn-brand-gray-cancel:active,
    .btn-brand-gray-cancel:visited,
    .btn-brand-gray-cancel:focus {
        opacity: 0.8;
        border: 1px solid var(--color-btn-boarder-gray) !important;
    }

.btn-brand-gray-cancel-sm {
    min-height: 36px;
    border-radius: 999px;
    background-color: var(--color-btn-gray) !important;
    /*    border-color: var(--color-btn-gray) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-gray-cancel-sm span {
        /* letter-spacing: 6px;*/
        /* transform: translateX(3px);*/
    }

    .btn-brand-gray-cancel-sm:hover,
    .btn-brand-gray-cancel-sm:active,
    .btn-brand-gray-cancel-sm:visited,
    .btn-brand-gray-cancel-sm:focus {
        opacity: 0.8;
    }
/* フォーカスが外れたら戻す */
.btn-brand-blue:focus:not(:hover):not(:active) {
    opacity: 1;
}

.btn-brand-gray-delivery-preview {
    min-height: 40px;
    border-radius: 999px;
    max-width: 230px;
    width: 230px;
    background-color: #CCCCCC;
    border: 1px solid var(--color-btn-boarder-gray) !important;
    color: var(--color-text-theme-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-gray-delivery-preview span {
        letter-spacing: 2px;
        transform: translateX(3px);
    }

    .btn-brand-gray-delivery-preview:hover,
    .btn-brand-gray-delivery-preview:active,
    .btn-brand-gray-delivery-preview:visited,
    .btn-brand-gray-delivery-preview:focus {
        opacity: 0.9 !important;
        border: 1px solid var(--color-btn-boarder-gray) !important;
    }
/* フォーカスが外れたら戻す */
.btn-brand-blue:focus:not(:hover):not(:active) {
    opacity: 1;
}

.btn-brand-gray-preview {
    min-height: 40px;
    border-radius: 999px;
    max-width: 230px;
    width: 230px;
    background-color: var(--color-btn-gray) !important;
    border: 1px solid var(--color-btn-boarder-gray) !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-gray-preview span {
        letter-spacing: 6px;
        transform: translateX(3px);
    }

    .btn-brand-gray-preview:hover,
    .btn-brand-gray-preview:active,
    .btn-brand-gray-preview:visited,
    .btn-brand-gray-preview:focus {
        opacity: 0.8;
        border: 1px solid var(--color-btn-boarder-gray) !important;
    }

.btn-brand-gray-noheight {
    border-radius: 4px;
    max-width: 230px;
    width: 230px;
    background-color: var(--color-btn-gray) !important;
    /*    border-color: var(--color-btn-gray) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-brand-gray-goback {
    min-height: 40px;
    border-radius: 4px;
    max-width: 230px;
    width: 230px;
    background-color: var(--color-btn-gray) !important;
    /*    border-color: var(--color-btn-gray) !important;*/
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-brand-gray-preview span {
    letter-spacing: 6px;
    transform: translateX(3px);
}

.btn-brand-gray-goback img {
    position: absolute;
    left: 12px;
}

.btn-brand-gray-goback:hover,
.btn-brand-gray-goback:active,
.btn-brand-gray-goback:visited,
.btn-brand-gray-goback:focus {
    opacity: 0.8;
    border: 1px solid var(--color-btn-boarder-gray) !important;
}
/* フォーカスが外れたら戻す */
.btn-brand-blue:focus:not(:hover):not(:active) {
    opacity: 1;
}

.btn-outline-brand-blue {
    font-size: 0.9rem;
    min-height: 40px;
    border-radius: 999px;
    border: 2px solid var(--color-brand-blue) !important;
    color: var(--color-brand-blue) !important;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-brand-outline-blue:hover,
.btn-brand-outline-blue:active,
.btn-brand-outline-blue:visited,
.btn-brand-outline-blue:focus {
    opacity: 0.8;
}
    /* フォーカスが外れたら戻す */
    .btn-brand-outline-blue:focus:not(:hover):not(:active) {
        opacity: 1;
    }

.btn-brand-red-delete-outline {
    border: 2px solid var(--color-theme-red) !important;
    background-color: white !important;
    border-color: var(--color-theme-red) !important;
    color: var(--color-theme-red) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .btn-brand-red-delete-outline span {
        /*        letter-spacing: 12px;
        transform: translateX(6px);*/
    }

    .btn-brand-red-delete-outline:hover,
    .btn-brand-red-delete-outline:active,
    .btn-brand-red-delete-outline:visited,
    .btn-brand-red-delete-outline:focus {
        opacity: 0.8;
        border: none;
    }

    .btn-brand-red-delete-outline:disabled {
        background-color: #707070 !important;
        border: none;
        color: white;
        cursor: not-allowed;
        box-shadow: none;
        opacity: 1; /* Bootstrapのopacityを上書き */
    }

.link-brand-blue {
    color: var(--color-brand-blue) !important;
    -webkit-text-decoration-color: var(--color-brand-blue) !important;
    text-decoration-color: var(--color-brand-blue) !important;
}

    .link-brand-blue:hover, .link-brand-blue:focus {
        opacity: 0.8;
    }

.link-brand-blue-outline {
    min-height: 40px;
    border-radius: 4px;
    background-color: white !important;
    border-color: #187A60 !important;
    color: #187A60 !important;
}

    .link-brand-blue-outline:hover,
    .link-brand-blue-outline:active,
    .link-brand-blue-outline:visited,
    .link-brand-blue-outline:focus {
        opacity: 0.8;
    }

.link-red-outline {
    background-color: white !important;
    border-color: var(--color-theme-red) !important;
    color: var(--color-theme-red) !important;
}

    .link-red-outline:hover,
    .link-red-outline:active,
    .link-red-outline:visited,
    .link-red-outline:focus {
        opacity: 0.8;
    }


.contents-menu-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: white;
}

.btn-contents-menu {
    color: var(--color-text-theme-black);
    padding: 10px 18px;
    border-radius: 999px; /* ピル型 */
    border: 1px solid var(--color-btn-boarder-gray);
    background: var(--color-bg-light-gray);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-wrap-mode: nowrap;
}
    /* hover */
    .btn-contents-menu:hover,
    .btn-contents-menu:active,
    .btn-contents-menu:focus {
        background: var(--color-brand-blue) !important;
        color: white;
    }
    /* active（最初のボタン） */
    .btn-contents-menu.active {
        background: var(--color-brand-blue);
        color: white;
    }
        /* active + hover */
        .btn-contents-menu.active:hover {
            background: #184c88;
        }

    .btn-contents-menu.active {
        background: var(--color-brand-blue);
        color: #fff;
    }

.fs-7 {
    font-size: 0.9rem !important;
}

.fs-8 {
    font-size: 0.8rem !important;
}

.fs-9 {
    font-size: 0.7rem !important;
}

.fs-10 {
    font-size: 0.6rem !important;
}

.card-gray .card-header {
    background-color: #707070 !important;
    color: white;
}

.card-gray span {
    color: white !important;
}

.card-gray button {
 /*   background-color: white !important;*/
}

.link-theme-black {
    color: #4A4A58;
    -webkit-text-decoration-color: #4A4A58 !important;
    text-decoration-color: #4A4A58 !important;
}
/** body-card */
.profile-card {
    border-radius: 6px;
    border: 1px solid var(--color-btn-boarder-gray);
    background: #fff;
}
/* メニュー本体 */
/* ▼ クリックの真下・中央に表示 */
.dropdown-menu-updown {
    background: #6f6f6f;
    color: #fff;
    border-radius: 10px;
    padding: 0;
    min-width: 100px;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}
    /* 中身 */
    .dropdown-menu-updown .dropdown-item {
        color: #fff;
        padding: 7px 16px;
    }

        .dropdown-menu-updown .dropdown-item:hover {
            background: rgba(255,255,255,0.15);
        }

    .dropdown-menu-updown .dropdown-divider {
        border-color: rgba(255,255,255,0.3);
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 8px;
        margin-right: 8px;
    }
    /* default = 下向き */
    .dropdown-menu-updown::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 12px 12px 12px;
        border-style: solid;
        border-color: transparent transparent #6f6f6f transparent;
    }

    .dropdown-menu-updown[data-popper-placement^="top"]::before {
        top: auto;
        bottom: -12px;
        border-width: 12px 12px 0 12px;
        border-style: solid;
        border-color: #6f6f6f transparent transparent transparent;
    }

    .dropdown-menu-updown[data-popper-placement$="start"]::before {
        left: 20px;
        transform: none;
    }

    .dropdown-menu-updown[data-popper-placement$="end"]::before {
        left: auto;
        right: 20px;
        transform: none;
    }
/* メニュー本体 */
/* ▼ 歯車の真下・中央に表示 */
.dropdown-menu-leftright,
.dropdown-menu-leftright * {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.dropdown-menu-leftright {
    background: #6f6f6f;
    color: #fff;
    border-radius: 10px;
    padding: 0;
    min-width: 100px;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}
    /* 中身 */
    .dropdown-menu-leftright .dropdown-item {
        color: #fff;
        padding: 7px 16px;
    }

        .dropdown-menu-leftright .dropdown-item:hover {
            background: rgba(255,255,255,0.15);
        }

    .dropdown-menu-leftright .dropdown-divider {
        border-color: rgba(255,255,255,0.3);
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 8px;
        margin-right: 8px;
    }
    /*
▼ デフォルト（下向き：▼）*/
    /* 吹き出し三角も中央に */
    .dropdown-menu-leftright::before {
        content: "";
        position: absolute;
        top: -12px;
        left: var(--arrow-x, 50%);
        transform: translateX(-50%);
        border-width: 0 10px 12px 10px;
        border-style: solid;
        border-color: transparent transparent #6f6f6f transparent;
    }
    /*上向き（top に flip されたとき）*/
    .dropdown-menu-leftright[data-popper-placement^="top"]::before {
        top: auto;
        bottom: -12px;
        border-width: 12px 10px 0 10px;
        border-color: #6f6f6f transparent transparent transparent;
    }
    /*▶ 左向き（三角が左に来る）*/
    .dropdown-menu-leftright[data-popper-placement^="right"]::before {
        top: 50%;
        left: -12px;
        transform: translateY(-50%);
        border-width: 10px 12px 10px 0;
        border-color: transparent #6f6f6f transparent transparent;
    }
    /*◀ 右向き（三角が右に来る）*/
    .dropdown-menu-leftright[data-popper-placement^="left"]::before {
        top: 50%;
        right: -12px;
        left: auto;
        transform: translateY(-50%);
        border-width: 10px 0 10px 12px;
        border-color: transparent transparent transparent #6f6f6f;
    }
/* ================================
           Standard Page search Panel
    ================================ */
/* 検索ボックス */
.list-search-box-wrap {
    width: 100%;
    border: none;
    position: relative;
}

    .list-search-box-wrap input {
        width: 100%;
        height: 36px;
        border: none;
        border-radius: 999px;
        padding-left: 32px; /* アイコン分の余白 */
    }

    .list-search-box-wrap .search-icon {
        position: absolute;
        top: 48%;
        left: 8px;
        transform: translateY(-50%);
        font-size: 12px;
        opacity: 1;
        pointer-events: none;
    }
    .list-search-box-wrap .search-input-wrap {
        position: relative;
        flex: 1 1 auto; /* 伸びる */
        min-width: 0;
    }

        .list-search-box-wrap .search-input-wrap .search-icon {
            position: absolute;
            right: 32px; /* input枠の右端から */
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            z-index: 1;
        }

        .list-search-box-wrap .search-input-wrap .clear-icon {
            position: absolute;
            right: 8px; /* input枠の右端から */
            top: 45%;
            transform: translateY(-50%);
            cursor: pointer;
            display: none;
            z-index: 2;
        }

            .list-search-box-wrap .search-input-wrap .clear-icon img {
                width: 18px;
                height: 18px;
                opacity: .7;
            }

            .list-search-box-wrap .search-input-wrap .clear-icon:hover img {
                opacity: 1;
            }

/* ================================
           Standard Content Panel
    ================================ */
.standardModalPanel {
    display: flex;
    z-index: 9999;
    background: none;
    /*  resize: both; */
    overflow: hidden; /* resize とセットで必須 */
    min-width: 360px;
}
/* ヘッダー全体 */
.standardModalPanelHeader {
    background: var(--color-brand-blue);
    padding: 8px 10px;
    color: white;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
}
    /* 左 */
    .standardModalPanelHeader .header-left {
        display: flex;
        align-items: center;
    }
    /* 中央（完全センター） */
    .standardModalPanelHeader .header-center {
        display: flex;
        justify-content: center;
    }
    /* 右 */
    .standardModalPanelHeader .header-right {
        display: flex;
        justify-content: flex-end;
    }
    /* 検索ボックス */
    .standardModalPanelHeader .search-box-wrap {
        width: 100%;
        max-width: 320px;
        border: none;
        position: relative;
    }

        .standardModalPanelHeader .search-box-wrap input {
            width: 100%;
            border: none;
            border-radius: 999px;
            padding-left: 32px; /* アイコン分の余白 */
        }

        .standardModalPanelHeader .search-box-wrap .search-icon {
            position: absolute;
            top: 48%;
            left: 8px;
            transform: translateY(-50%);
            font-size: 12px;
            opacity: 1;
            pointer-events: none;
        }
    /* × ボタンは今のままでOK */
    .standardModalPanelHeader .close-btn {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        font-size: 16px;
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    }
/* 中身（ここだけスクロール） */
.standardModalPanelBody {
    height: calc(100% - 60px);
    overflow-y: auto;
    overflow-x: hidden; /* 横スクロール禁止 */
    padding: 0;
}

.standardModalPanelListArea {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px); /* ← 固定幅 */
    justify-content: center;
    justify-items: start;
    gap: 20px;
    padding: 12px 20px;
}

.standardModalPanel-list-item {
    width: 100%;
    cursor: grab;
    text-align: center;
    min-width: 0;
    background: white;
    padding-top: 10px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 10px;
    cursor: grab;
    text-align: center;
    /* min-width: 0; */
    border-radius: 10px;
    position: relative;
    font-size: 0.8rem;
}

    .standardModalPanel-list-item .small-icon {
        position: absolute;
        border-radius: 0;
        top: 4px;
        right: 4px;
        width: 24px;
        height: 24px;
        z-index: 5;
        pointer-events: none;
    }

    .standardModalPanel-list-item img {
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 12px;
        width: 100%;
        height: 80px; /* ← 100 → 120 */
        object-fit: contain;
    }

    .standardModalPanel-list-item .name {
        font-size: 12px; /* 少し大きく */
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .standardModalPanel-list-item.selected {
        outline: 3px solid var(--color-brand-blue);
        outline-offset: -3px;
    }
        /* 透明カバー */
        .standardModalPanel-list-item.selected::after {
            content: "";
            position: absolute;
            inset: 0;
            background-color: rgba(18, 79, 137, 0.15); /* #124F89 の半透明 */
            pointer-events: none; /* クリック透過 */
            border-radius: inherit; /* 角丸ある場合 */
        }

.standardModalPanel .modal-content {
    border: none;
    background: none;
    max-height: 80vh;
}
/* ★ header + body wrapper */
.standardModalPanel .modal-main-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0; /* ← これ超重要（スクロール有効化） */

    background: var(--color-bg-light-gray-100);
    border: 2px solid var(--color-brand-blue);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* body（ここだけスクロール） */
.standardModalPanel .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}
/* footer（下固定） */
.standardModalPanel .modal-footer {
    flex-shrink: 0;
    border-top: none;
    padding: 12px 0 16px;
}


th,tr, td {
    font-weight: normal;
    white-space: normal; /* 折り返しOK */
    word-break: break-word;
}
.table-rounded-top {
    border: 1px solid #dee2e6;
    border-top-left-radius: var(--bs-border-radius);
    border-top-right-radius: var(--bs-border-radius);
    overflow: hidden; /* ← これが超重要 */
    background-color: white;
}

    .table-rounded-top thead th {
        color: #fff;
        padding: 8px 20px;
        background-color: #707070 !important;
    }

    .table-rounded-top td {
        padding: 8px 20px;
    }

.list-table {
    border: 1px solid #dee2e6;
    border-top-left-radius: var(--bs-border-radius);
    border-top-right-radius: var(--bs-border-radius);
    overflow: hidden; /* ← これが超重要 */
}
    .list-table .table-scroll {
        min-height: 200px;
    }

/* 内側：横スクロール担当 */
    .list-table .table-scroll {
        overflow-x: auto;
        overflow-y: visible; /* dropdown のため */
    }

    /* table を溢れさせる */
        .list-table .table-scroll table {
            min-width: 860px;
        }

    .list-table thead th {
        color: #fff;
        background-color: #707070 !important;
    }

    /* 折り返さない */
        .list-table .table-scroll thead,
        .list-table .table-scroll th,
        .list-table .table-scroll td {
            white-space: nowrap;
            padding: 8px 20px;
        }



.bulk-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.8);
}
