/* myblog/template/myblog/blog-list.html */


/* 左側の列のスタイル */
.left-column-wrapper {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* タイトルスタイル */
.blog-list-title {
    color: #212529;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}
/* テーブルのスタイル */
.blog-list-table {
    background-color: #fff;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 8px;
}
.blog-list-table thead {
    background-color: #d4ffa6;
    color: #fff;
}
.blog-list-table th {
    text-align: center;
    padding: 14px;
    font-size: 0.9rem;
}
.blog-list-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}
.blog-list-table tbody tr:hover {
    background-color: #f8f9fa;
}
/* リンクスタイル */
.blog-list-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}
.blog-list-link:hover {
    color: #0056b3;
}
/* 記事がない場合 */
.blog-list-no-articles {
    color: #dc3545;
    font-weight: bold;
    padding: 20px;
}

/* ==========================
   レスポンシブ調整
========================== */
/* --- タブレット対応 (768px～991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
    /* 左側の列 (ブログ記事) */
    .col-md-9 {
        width: 100%;
        margin-bottom: 20px;
    }
    .left-column-wrapper {
        padding: 20px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    /* タイトル */
    .blog-list-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 20px;
    }
    /* テーブルのスタイル */
    .blog-list-table {
        font-size: 0.9rem;
    }
    .blog-list-table th,
    .blog-list-table td {
        padding: 10px;
    }
    /* リンク */
    .blog-list-link {
        font-size: 1rem;
    }
    /* 記事がない場合 */
    .blog-list-no-articles {
        font-size: 1.1rem;
        text-align: center;
    }
    /* 右側の列 (サイドバー) */
    .col-md-3 {
        width: 100%;
    }
    .sidebar-wrapper {
        padding: 15px;
        margin-top: 20px;
        background-color: #f8f9fa;
        border-radius: 8px;
    }
}

/* --- スマホ対応 --- */
@media (max-width: 767px) {
    /* 左側のコンテンツのスタイル */
    .left-column-wrapper {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 5px;
    }
    /* タイトルのスタイル */
    .blog-list-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 15px;
    }
    /* テーブルのスタイル */
    .blog-list-table {
        display: block;
        overflow-x: auto;
        /* 横スクロールを有効化 */
        white-space: nowrap;
        /* テキストの折り返しを無効化 */
        border-radius: 5px;
    }
    .blog-list-table th,
    .blog-list-table td {
        padding: 8px;
        font-size: 0.85rem;
        text-align: left;
    }
    /* リンクのスタイル */
    .blog-list-link {
        font-size: 0.9rem;
        display: block;
        margin-bottom: 5px;
    }
    /* 記事がない場合 */
    .blog-list-no-articles {
        font-size: 1rem;
        text-align: center;
        padding: 15px;
    }
    /* 列の幅を100%に */
    .col-md-9,
    .col-md-3 {
        width: 100%;
    }
}
