html {
  scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
}

header {
    text-align: left;
    padding: 192px 48px 192px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}
        h1{    
           color: #ffffff;
           font-size: 72px;
           font-weight: 600;
           font-weight: bold;    
           margin: 0px 0px 24px 0px;
          justify-content: flex-start;
    font-family: 'Arial', sans-serif;
            }
        p3{ 
           font-size: 28px;
           font-weight: bold;    
        }

main{
    background-color: #f4f4f4;
    padding-bottom: 10px;
}

.background-image {
  position: fixed; /* 画像を固定表示 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* 他の要素よりも奥に表示 */
 filter: brightness(0.9) grayscale(0.2);
}




.news-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .news-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    align-content: flex-start;
    align-items: flex-start;
    height: auto;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    border: solid 0px #000;
    border-bottom: solid 1px #EEEEEE;
    border-radius: 10px;
    justify-content: flex-start;
    margin: 0px 12px 24px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 24px;
    width: calc(90% - 24px);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    border-radius: 10px;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-filter{
    margin-bottom: 30px;
    padding-top: 30px;
    margin-left: 30px;
}

.news-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: white;
    background-color: #007bff;
}

.news-title {
    font-size: 18px;
    margin: 10px 0;
}

.news-date {
    font-size: 14px;
    color: gray;
}

.news-banner {
    position: relative;
    width: 100%;
    max-height: 250px;
    overflow: hidden;
    text-align: center;
}

.news-banner img {
    width: 100%;
    height: auto;
    filter: brightness(0.7);
}

.news-card a {
    color: inherit;       /* 親の色を引き継ぐ（黒など） */
    text-decoration: none; /* 下線を消す */
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#pageNumber {
    font-size: 18px;
    font-weight: bold;
}




