/* カード高さ修正用の最優先CSSファイル */

/* 基本的なカードのリセット */
.card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
}

/* 特定のカードクラスの上書き */
.card.h-100,
.h-100.card,
div[class*="col"] .card,
.row .card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* カードボディのリセット */
.card-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* カード内のコンテンツ調整 */
.card-body .card-text,
.card-body .card-title {
    width: 100% !important;
}

/* 最後の要素の余白をなくす */
.card-body > *:last-child {
    margin-bottom: 0 !important;
}

/* テーブルを含むカードの特別な処理 */
.card .table-responsive {
    height: auto !important;
}

/* ページ内で高さが100%のクラスをキャンセルするための特別ルール */
[class*="h-100"] {
    height: auto !important;
    min-height: 0 !important;
}
