.img-wrapper {
    height: 400px !important;
    padding: 20px;
    overflow: hidden;
    width: 100%;
}

.img-wrapper img {
    height: 100%;
    width: 100%;
    border-radius: 4px;
}

.card {
    overflow: hidden;
}

.btn-primary {
    background-color: #ff5a5a;
    border-radius: 4px;
    width: 135px;
    flex-shrink: 0;
    border: 0;
}

.btn-secondaryy {
    background-color: #0019ff !important;
    border-radius: 4px;
    width: 135px;
    flex-shrink: 0;
    border: 0;
    color: white;
}

.btn-info {
    background-color: #17a2b8 !important; /* 既存の水色を維持 */
    border-radius: 4px;
    width: 135px;
    flex-shrink: 0;
    border: 0;
    color: white;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #17a2b8 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #ff5a5a !important;
}

.no-found {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

#calendar {
    height: 1200px !important; /* カレンダー全体の高さをさらに増加 */
}

/* セルの高さを5個のイベントが収まるように調整 */
.fc-daygrid-day-frame {
    height: 220px !important; /* 200px → 250pxに増加 */
    overflow: visible !important; /* overflowをvisibleに変更してイベントが見えるように */
    min-height: 220px !important;
}

.fc-daygrid-day {
    height: 220px !important; /* 200px → 250pxに増加 */
    min-height: 220px !important;
}

/* カレンダーの行の高さも調整 */
.fc-daygrid-day-top {
    padding: 2px 4px;
}

/* イベントのスタイル調整 */
.fc-daygrid-event {
    margin: 1px 3px !important; /* 上下マージンを少し減らす */
    font-size: 12px !important; /* フォントサイズを少し調整 */
    line-height: 1.3 !important; /* 行間を少し狭く */
    padding: 3px 6px !important; /* 上下パディングを少し減らす */
    border-radius: 4px !important;
    min-height: 22px !important; /* 最小高さを少し小さく */
    display: flex !important;
    align-items: center !important;
}

/* イベントコンテンツの調整 */
.fc-event-title {
    font-weight: bold;
    font-size: 12px !important; /* フォントサイズを調整 */
}

.fc-daygrid {
    height: auto;
}

.d-none {
    display: none;
}

/* FullCalendarのイベント色を強制的に適用 */
.fc-event.event-confirmed {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.fc-event.event-pending {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: black !important;
}

.fc-event.event-morning,
.fc-event.event-afternoon,
.fc-event.event-evening {
    background-color: #E6B9B8 !important;
    border-color: #E6B9B8 !important;
    color: white !important;
}

.fc-event.event-default {
    background-color: #E6B9B8 !important;
    border-color: #E6B9B8 !important;
    color: white !important;
}

/* 追加：more linkのスタイル調整 */
.fc-daygrid-more-link {
    font-size: 10px !important;
    padding: 1px 3px !important;
}

/* +more リンクのスタイル */
.fc-daygrid-more-link {
    font-size: 14px !important;
    font-weight: bold !important;
    padding: 4px 8px !important;
    margin: 2px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    color: #007bff !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    min-height: 24px !important;
    line-height: 16px !important;
}

/* FullCalendarイベントの中央揃えを強制 */
.fc-daygrid-event .fc-event-main {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
}

.fc-daygrid-event .fc-event-title {
    text-align: center !important;
    width: 100% !important;
}

/* カスタムイベントコンテンツの中央揃え */
.fc-daygrid-event > div {
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* FullCalendarの+moreポップオーバーよりモーダルを前面に表示 */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* FullCalendarの+moreポップオーバーのz-indexを下げる */
.fc-popover {
    z-index: 1040 !important;
}

/* FullCalendarのその他の要素のz-index調整 */
.fc-event {
    z-index: 1 !important;
}

.fc-event-dragging {
    z-index: 1000 !important;
}

/* Bootstrapのドロップダウンメニューとの競合回避 */
.dropdown-menu {
    z-index: 1030 !important;
}

/* トースト通知がモーダルより前に表示されるよう調整 */
.toast-top-right {
    z-index: 1070 !important;
}

/* その他のポップアップ要素の調整 */
.fc-daygrid-event-harness {
    z-index: auto !important;
}

.fc-h-event {
    z-index: auto !important;
}

/* 仮予約用のスタイル */
.fc-event.event-tentative {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* 仮予約モーダルのボタンスタイル */
#confirmTentativeBtn {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    margin-right: 10px;
}

#confirmTentativeBtn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

#declineTentativeBtn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#declineTentativeBtn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

