



#media-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#media-list th,
#media-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#media-list th {
    background-color: #f8f8f8;
    font-weight: bold;
}

#media-list tr:hover {
    background-color: #f5f5f5;
}

/* 「もっと見る」ボタン */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-button {
    background-color: #0000ff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px !important;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0px;
}

.load-more-button:hover {
    background-color: #ff0000;
    border: none;
}

.load-more-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* ローディングインジケーター */
.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
   #media-list  table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* テーブル列の幅調整 */
#media-list table th:nth-child(1), /* 地域 */
#media-list table td:nth-child(1) {
    width: 10%;
    min-width: 80px;
}

#media-list table th:nth-child(2), /* 掲載日 */
#media-list table td:nth-child(2) {
    width: 15%;
    min-width: 120px;
}

#media-list table th:nth-child(3), /* 記事タイトル */
#media-list table td:nth-child(3) {
    width: 55%;
}

#media-list table th:nth-child(4), /* 媒体名 */
#media-list table td:nth-child(4) {
    width: 20%;
    min-width: 100px;
}

/* テーブルヘッダーのスタイル強化 */
#media-list table th {
    position: sticky;
    top: 0;
    background-color: #f8f8f8;
    z-index: 10;
    border-bottom: 2px solid #ddd;
    text-align: left;
    padding: 12px 15px;
    font-weight: bold;
}

/* 各セルのスタイル */
.region-cell {
    font-weight: bold;
    white-space: nowrap;
}

.date-cell {
    white-space: nowrap;
}

.title-cell {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-cell {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* テーブル全体を表示するための調整 */
@media screen and (max-width: 768px) {
    #media-list table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        margin-bottom: 20px;
    }
    
    #media-list th,
    #media-list td {
        min-width: auto !important;
        padding: 5px;
        font-size: 12px;
    }

}
