/* 全体のレイアウト */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
}
/* バージョン番号のスタイル */
h1 small.version {
    font-size: 0.5em; /* h1の50%サイズ */
    vertical-align: baseline; /* h1のベースラインに揃える */
    margin-left: 0.5rem; /* タイトルとの間隔 */
}
/* メインコンテンツ */
.container-fluid {
    flex: 1;
    padding: 2rem;
    padding-bottom: 2rem;
}

/* カード */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* フッター */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 1.5rem 0;
}

/* テーブルのスタイル */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* レスポンシブテーブル対応 */
@media (max-width: 768px) {
    .table-responsive {
        border: 0;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    /* シマウマ模様のスタイル */
    .table-responsive tbody tr:nth-child(odd) {
        background-color: #f8f9fa;
    }
    
    .table-responsive tbody tr:nth-child(even) {
        background-color: #ffffff;
    }
    
    .table-responsive tbody td {
        display: block;
        text-align: right;
        padding: 1rem;
        border: none;
        border-bottom: 1px solid #dee2e6;
        position: relative;
    }
    
    .table-responsive tbody td:last-child {
        border-bottom: 0;
    }
    
    .table-responsive tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-align: left;
        color: #495057;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        margin-right: 0.5rem;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    /* バッジのスタイル調整 */
    .table-responsive tbody td .badge {
        display: inline-block;
        margin-top: 0.25rem;
    }
}

/* 検索フォームのスタイル */
.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ページネーションのスタイル */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #007bff;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* バッジのスタイル */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Select2のカスタマイズ */
.select2-container--bootstrap-5 .select2-selection {
    border-color: #ced4da;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.75rem + 2px);
}
/* カバー画像のスタイル */
.cover-image {
    position: relative !important;
    height: 400px !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    display: block !important;
}

.cover-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.cover-text {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    width: 100% !important;
    z-index: 2 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    padding: 0 1rem !important;
    color: white !important;
}

.cover-text h1 {
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
    color: white !important;
    font-weight: bold !important;
}

.cover-text p {
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
    color: white !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cover-image {
        height: 300px !important;
        margin-bottom: 1rem !important;
    }

    .cover-text h1 {
        font-size: 2.5rem !important;
    }

    .cover-text p {
        font-size: 1.2rem !important;
    }
}

@media (min-width: 1400px) {
    .cover-image {
        max-height: 230px; /* 大画面では元のサイズ */
    }
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .container-fluid {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}