
body {
    margin-bottom: 60px;
    color: black; /*文字色変更*/
    max-width: 1280px; /* 最大幅を1280ピクセルに設定 */
    margin: 0 auto; /* 水平方向に中央寄せ */
    padding: 0 20px; /* 横幅が狭い画面でも余白を確保 */
}

/* 特定のページで最大幅を1600ピクセルに設定 */
.page-wide {
    margin-bottom: 60px;
    color: black; /*文字色変更*/
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}


/*ボタン_primaryの色変更*/
.btn-primary {
    background-color: #3563ED;
    border-color: #3563ED;
    border: none;
    color: #FFFFFF;
    text-decoration: none;
}

    .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
        background-color: #507CFF;
    }

    .btn-primary:active, .btn-primary:focus {
        background-color: #3563ED;
    }

/*ボタン_secondaryの色変更*/
.btn-secondary {
    background-color: #9F9F9F;
    border-color: #9F9F9F;
    border: none;
    color: #FFFFFF;
    text-decoration: none;
}

    .btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus {
        background-color: #ABABAB;
    }

    .btn-secondary:active, .btn-secondary:focus {
        background-color: #9F9F9F;
    }

/*ボタン_dangerの色変更*/
.btn-danger {
    background-color: #F44545;
    border-color: #F44545;
    border: none;
}

/*コンボボックスの文字色変更*/
.my-combobox {
    color: black;
    width: auto;
    height: 30px;
    margin-left: 10px;
    margin-right: 6px;
    margin-bottom: 10px;
    padding-left: 8px;
    padding-right: 10px;
}

/*左スペース追加*/
.space_left {
    margin-left: 16px;
}

/* テーブルの加工 */
.table, .table th, .table td {
    border: 1px solid #9F9F9F; /* 罫線をグレーで表示 */
}

.table {
    border-collapse: collapse; /* セルの枠を隣接するセルの枠と重ねて表示 */
    margin-top: 7px; /* テーブル上の余白 */
}

    .table th, .table td {
        padding: 8px; /* セル内の余白 */
        text-align: center; /* テキストを左寄せ */
        color: black; /* ヘッダーとデータの文字色設定 */
    }

.custom-width-table {
    width: 70%;
    /* margin: 0 auto; */ /* 中央寄せ */
    margin-left: 0; /* 左寄せ */
}

/* ボタン上下のpaddingを縮める */
.custom-btn-small {
    padding: 2px 10px; /* 上下のpaddingを縮める */
    font-size: 0.9rem; /* 必要に応じてフォントサイズを少し小さめに */
    line-height: 1.5; /* line-heightを調整して見た目を整える */
}


/*既存CSS変更*/
.btn {
    /* padding: 0.2rem 0.7rem !important; */
    /* border-radius: 0; */
}

    /*既存CSS打消し*/
    .btn:focus, .btn:active:focus {
        box-shadow: none;
    }

.button-spacing {
    margin-left: 25px; /* 希望するスペースの幅に変更可能 */
}

/*既存CSS変更_プルダウンボタン位置*/
button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: 14px;
}

.float_r, .pc_float_r {
    float: right;
}

.custom-button {
    width: 120px; /* ボタンの幅設定 */
    height: 80px; /* ボタンの高さ設定 */
    display: flex; /* フレックスボックスを利用 */
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center; /* 垂直方向に中央揃え */
}

.delete-button {
    width: 112px;
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 下部にテキストを持ってくる */
    align-items: center;
    background-image: url('/images/Delete.svg'); /* 正しいパスを指定 */
    background-size: 40px 40px; /* 画像の幅と高さを指定 */
    background-repeat: no-repeat;
    background-position: top center; /* 位置を調整 */
    padding-bottom: 0px; /* テキストと画像の間のスペースを設定 */
    /* 背景画像の表示位置を少し下に配置して空間を設ける */
    background-origin: content-box; /* 内容のボックスを基準に背景をセットするオプション */
    padding-top: 10px; /* 画像の上部に余白を作る（他の要素には影響）*/
    margin-right: 40px; /* ボタン右横に余白を作る*/
}

    .delete-button:hover {
        background-color: #FD6767;
    }

/*ログインボタン*/
.login-button {
    font-family: 'Noto Sans CJK JP';
    width: 160px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 下部にテキストを持ってくる */
    align-items: flex-start;
    background-image: url('/images/Login.svg'); /* 正しいパスを指定 */
    background-size: 36px 36px; /* 画像の幅と高さを指定 */
    background-repeat: no-repeat;
    background-position: right; /* 位置を調整 */
    padding-bottom: 0px; /* テキストと画像の間のスペースを設定 */
    /* 背景画像の表示位置を少し下に配置して空間を設ける */
    background-origin: content-box; /* 内容のボックスを基準に背景をセットするオプション */
    padding-top: 0px; /* 画像の上部に余白を作る（他の要素には影響）*/
    padding-left: 12px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 0px;
}

    .login-button:hover {
        background-color: #507CFF;
        color: #FFFFFF;
        text-decoration: none;
    }

/* ログイン画面のツールチップ（ユーザー一覧の？説明も同じ仕様） */
.tooltip-message {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Noto Sans CJK JP', sans-serif;
    white-space: nowrap;
    z-index: 100;
}

/* はてなマークの上にカーソルを置いたら表示 */
.tooltip-trigger:hover + .tooltip-message {
    display: block;
}

/* ユーザー一覧の？をログイン画面と同じ見た目に（緑色・サイズ・配置を揃える） */
.ai-th-tooltip-wrap .tooltip-trigger {
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(33%) sepia(23%) saturate(1382%) hue-rotate(79deg) brightness(93%) contrast(87%);
}

/*送信ボタン*/
.send-button {
    font-family: 'Noto Sans CJK JP';
    width: 160px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 下部にテキストを持ってくる */
    align-items: flex-start;
    background-image: url('/images/ic_send36.svg'); /* 正しいパスを指定 */
    background-size: 36px 36px; /* 画像の幅と高さを指定 */
    background-repeat: no-repeat;
    background-position: right; /* 位置を調整 */
    padding-bottom: 0px; /* テキストと画像の間のスペースを設定 */
    /* 背景画像の表示位置を少し下に配置して空間を設ける */
    background-origin: content-box; /* 内容のボックスを基準に背景をセットするオプション */
    padding-top: 0px; /* 画像の上部に余白を作る（他の要素には影響）*/
    padding-left: 40px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 0px;
}

    .send-button:hover {
        background-color: #507CFF;
        color: #FFFFFF;
        text-decoration: none;
    }

/*変更ボタン*/
.change-button {
    font-family: 'Noto Sans CJK JP';
    width: auto;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 下部にテキストを持ってくる */
    align-items: flex-start;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 0px;
}

    .change-button:hover {
        background-color: #507CFF;
        color: #FFFFFF;
        text-decoration: none;
    }

/*キャンセルボタン*/
.cencel-button {
    font-family: 'Noto Sans CJK JP';
    width: 140px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 下部にテキストを持ってくる */
    align-items: center;
    background-image: url('/images/ic_cancel.svg'); /* 正しいパスを指定 */
    background-size: 24px 24px; /* 画像の幅と高さを指定 */
    background-repeat: no-repeat;
    background-position: left; /* 位置を調整 */
    background-origin: content-box; /* 内容のボックスを基準に背景をセットするオプション */
    padding-top: 0px; /* 画像の上部に余白を作る（他の要素には影響）*/
    padding-bottom: 0px;
    padding-right: 0px;
    padding-left: 10px;
    margin-left: 50px;
    margin-top: 100px;
    margin-bottom: 0px;
}

.cancel-button:hover {
    background-color: #ABABAB;
    color: #FFFFFF;
    text-decoration: none;
}

/*戻るボタン*/
.return-button {
    font-family: 'Noto Sans CJK JP';
    width: 140px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 下部にテキストを持ってくる */
    align-items: center;
    background-image: url('/images/ic_arrow_back.svg'); /* 正しいパスを指定 */
    background-size: 24px 24px; /* 画像の幅と高さを指定 */
    background-repeat: no-repeat;
    background-position: left; /* 位置を調整 */
    background-origin: content-box; /* 内容のボックスを基準に背景をセットするオプション */
    padding-top: 0px; /* 画像の上部に余白を作る（他の要素には影響）*/
    padding-bottom: 0px;
    padding-right: 0px;
    padding-left: 10px;
    margin-left: 50px;
    margin-top: 100px;
    margin-bottom: 0px;
}

.returun-button:hover {
    background-color: #ABABAB;
    color: #FFFFFF;
    text-decoration: none;
}


/*登録ボタン*/
.regist-button {
    font-family: 'Noto Sans CJK JP';
    width: 140px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 下部にテキストを持ってくる */
    align-items: center;
    background-image: url('/images/ic_ragister.svg'); /* 正しいパスを指定 */
    background-size: 24px 24px; /* 画像の幅と高さを指定 */
    background-repeat: no-repeat;
    background-position: left; /* 位置を調整 */
    background-origin: content-box; /* 内容のボックスを基準に背景をセットするオプション */
    padding-top: 0px; /* 画像の上部に余白を作る（他の要素には影響）*/
    padding-bottom: 0px;
    padding-left: 20px;
    margin-right: 50px;
    margin-top: 100px;
    margin-bottom: 0px;
}

    .regist-button:hover {
        background-color: #507CFF;
        color: #FFFFFF;
        text-decoration: none;
    }

/* パンくずリストの加工 */
.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

    .breadcrumb li {
        /* margin: 0 5px; */
        font-size: 1.25rem;
        color: #8F8F8F;
        font-weight: bold;
    }

        .breadcrumb li a {
            text-decoration: none;
            color: #8F8F8F;
        }

        .breadcrumb li.active {
            color: #0C2266;
        }

        .breadcrumb li + li:before {
            /*    content: ">"; */
            margin: 0 5px;
            color: gray;
        }

.table-fixed {
    table-layout: fixed;
    width: 100%;
}

th, td {
    word-wrap: break-word;
    white-space: normal; /* 折り返しを有効にする */
}

.th-width-4 {
    width: 4%;
}

.th-width-6 {
    width: 6%;
}

.th-width-8 {
    width: 8%;
}

.th-width-9 {
    width: 9%;
}

.th-width-10 {
    width: 10%;
}

.th-width-12 {
    width: 12%;
}

.th-width-14 {
    width: 14%;
}

.th-width-20 {
    width: 20%;
}

input.radiosetting {
    display: none;
}

    input.radiosetting + label {
        color: #79889A;
        background-color: #E9EEF0;
        border-radius: 10px;
        border: 1px solid #E9EEF0;
        padding: 8px 10px;
        cursor: pointer;
        width: 100px;
        font-weight: 700;
        font-size: 15px;
        line-height: 17px;
        margin-left: -20px;
        text-align: center;
    }

        input.radiosetting + label:active,
        input.radiosetting:checked + label {
            background: #0c5ab6;
            border: 1px solid #0c5ab6;
            color: #fff;
            position: relative;
            z-index: 2;
        }

/*登録、編集、削除に枠の最小高さをセットし、ボタンは底辺に配置*/
.my-div {
    min-height: 500px; /* 最小高さを500pxに設定 */
    display: flex; /* フレックスボックスを適用 */
    flex-direction: column; /* 縦並びにする */
    padding: 50px; /* 枠の内側の余白を調整 */
}

.row {
    flex-grow: 1; /* コンテンツ部分が均等に成長可能になる */
}

.margin-top-auto {
    margin-top: auto; /* ボタンのコンテナを底辺に配置する */
}

/*既存CSS打消し*/
p {
    margin-top: 0;
    margin-bottom: 0;
}

.container-fluid {
    padding-right: 0;
    padding-left: 0;
}

/*.mb-4 {
    margin-bottom: 0 !important;
}*/

.my-3 {
    margin-bottom: 0px !important;
}

/*既存CSS上書き*/
.container {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
}

h4 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.2;
    color: #0C2266;
    font-size: 1.4rem;
}


/*登録・編集ページの枠線*/
.border {
    border: 1px solid #D2DDFF !important;
}

/*ボタン2_全体設定*/
.btn2 {
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    font-size: 1rem;
    padding: 0.1rem 0.7rem !important;
    border-radius: 0;
}

/*ボタン_白地・青枠*/
.btn_ptn1 {
    background-color: #FFFFFF;
    border: solid 1.5px #3563ED;
    border-radius: 0.25rem;
    color: #3563ED;
    font-weight: 600;
    padding: 0.2rem 0.7rem !important;
    text-decoration: none;
}

    .btn_ptn1:hover {
        background-color: #507CFF;
        color: #FFFFFF;
        text-decoration: none;
    }

/*ボタン_Search*/
.btn_ptn2 {
    background-color: #FFFFFF;
    border: solid 1.5px #3563ED;
    border-radius: 0.25rem;
    color: #3563ED;
    font-weight: 600;
    padding: 0.22rem 0.7rem 0.22rem 1.7rem !important;
    background-image: url("/images/Search.svg");
    background-size: 24px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 3px; /*位置調整*/
    margin-bottom: 6px; /*位置調整*/
    margin-left: 10px; /*位置調整*/
    margin-right: 22px; /*位置調整*/
}

    .btn_ptn2:hover {
        background-color: #E7EDFF;
        text-decoration: none;
        color: #3563ED;
    }

    .btn_ptn2:active {
        background-color: #E7EDFF;
        text-decoration: none;
        color: #3563ED;
        box-shadow: 0px 0px 3px #7598FF;
    }

/*ボタン_矢印*/
.btn_ptn3 {
    background-color: #FFFFFF;
    border: solid 1.5px #3563ED;
    border-radius: 0.25rem;
    color: #3563ED;
    font-weight: 600;
    padding: 0.20rem 0.48rem 0.20rem 0.48rem !important;
    margin-bottom: 6px; /*位置調整*/
    margin-left: 0px; /*位置調整*/
    margin-right: 12px; /*位置調整*/
    line-height: 20px;
}

    .btn_ptn3 img {
        width: 22px;
        height: 22px;
    }

    .btn_ptn3:hover {
        background-color: #E7EDFF;
        text-decoration: none;
        color: #3563ED;
    }

    .btn_ptn3:active {
        background-color: #E7EDFF;
        text-decoration: none;
        color: #3563ED;
        box-shadow: 0px 0px 3px #7598FF;
    }



/*ボタン_編集*/
.btn_edit {
    background-color: #FFFFFF;
    border: none;
    color: #3563ED;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #3563ED;
}

    .btn_edit:hover {
        background-color: #537EFF !important;
        color: #FFFFFF;
        text-decoration: none;
    }

/*ボタン_削除*/
.btn_del {
    background-color: #FFFFFF;
    border: none;
    color: #F44545;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #F44545;
}

    .btn_del:hover {
        background-color: #FD6767 !important;
        color: #FFFFFF;
        text-decoration: none;
    }

/*ボタン_オブジェクト位置調整*/
.btn-primary img {
    width: 18px;
    margin-bottom: 3px;
    margin-right: 5px;
}

/*ヘッダー_下ボーダーの特色指定*/
.border-bottom_header {
    border-bottom: 4px solid #D2DDFF;
    margin-bottom: 0.7rem;
}

/*リスト_タイトルthの特色指定*/
.thead-origin {
    background-color: #D9D9D9;
    vertical-align: middle;
    color: black; /* ヘッダーとデータの文字色設定 */
    border-color: #D9D9D9;
}

/*タイトル_大*/
.title_lg {
    color: #0C2266;
    border-top: 1px solid #D2DDFF;
    padding-top: 0.5em;
    margin-top: 0.7em;
}

/*タイトル_中*/
.title_m1 {
    color: #0C2266;
    font-weight: 600;
}

/*ホーム_アイコン*/
.ic_home {
    width: 10%;
    display: inline-block;
    float: left;
}

/*病院名_タブ装飾*/
.tab_deco {
    border: 1.5px solid #D2DDFF;
    border-bottom: 0px;
    border-radius: 5px 5px 0px 0px;
    display: inline-block;
    float: left;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 14px;
    padding-right: 14px;
    box-shadow: 2px 0px 0px 0px #D2DDFF;
}

/*入力画面_項目名*/
.control-label {
    color: #0C2266;
    font-weight: 600;
}

/*ボタン_グレー*/
.btn_gray {
    background-color: #8F8F8F;
    border: none;
    color: #FFFFFF;
}

    .btn_gray:hover {
        background-color: #ABABAB;
        color: #FFFFFF;
    }

/*ボタン＿ページネーション*/
.btn_pagen {
    background-color: none;
    color: #4A4A4A;
}

    .btn_pagen:hover {
        background-color: #D9D9D9;
        color: #4A4A4A;
    }

/*ボタン＿ページネーション_現在*/
.btn_pagen_crt {
    background-color: #688EFF;
    color: #FFFFFF;
}

    .btn_pagen_crt:hover {
        background: #688EFF;
        color: #FFFFFF;
    }

/*データなし表示*/
.ms_nodata {
    color: #F44545;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

/*青ボタン_disable（非活性）*/
.btn-primary.disabled {
    color: #fff;
    background-color: #D2DDFF;
    border-color: #D2DDFF;
    pointer-events: none;
    opacity: 100;
}

/*リスト_件数*/
.count_num {
    display: inline !important;
    font-weight: 600;
    margin-left: 4px;
    color: #0C2266;
}

/*既存CSS変更*/
.col-8 dd {
    margin-bottom: 1.2rem;
}


/*ラジオボタン_仕様変更*/
.form-check {
    margin-left: 20px;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0, 0 0 0 0;
}

/*アラート_仕様変更*/
.alert {
    position: relative;
    padding: 0.1rem 0.1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 0rem;
}

.alert-danger {
    color: #CE0013;
    background-color: #f8d7da;
}

.nav-item {
    display: flex;
    align-items: center; /* 縦位置を中央に */
}

.nav-link, .btn-link {
    height: 100%; /* 高さを親に合わせる */
    display: flex;
    align-items: center; /* 中央揃え */
}

.nav-bar {
    display: flex;
    align-items: center; /* 全体を縦中央揃え */
}

/*歯車マーク*/
.img-settings {
    width: 20px;
    height: 20px;
    margin-top: 0px;
}

.block-label {
    display: block;
}


.required-asterisk {
    color: red;
    margin-left: 5px; /* アスタリスクとラベルの間に少しスペースを空けるため */
}