/* ページヘッダー */
.page-header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 0px;
    }
}

.header-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-image h1 {
    position: absolute;
    top: 10%;
    left: 28%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #92bb44;
    width: 400px; /* 線の横幅を指定 */
    text-align: left; /* テキストを中央揃え */
    padding: 0 50px 0;
}

.header-image p {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .header-image h1 {
        font-size: 24px;
        width: 150px;
        left: 30%;
        top: 20%;
        padding-left: 10px;
    }


    .header-image p {
        font-size: 18px;
        width: 300px;
        left: 50%;
        top: 59%;
    }
}

/* ニュースページ全体のスタイル */
.news-page {
    padding: 20px 10px;
    background-color: #f9f9f9;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    word-wrap: break-word; /* レガシーブラウザ用の互換設定 */
    white-space: normal; /* 改行を有効にする */
}

.news-content {
    margin-top: 10px; /* 上部の余白を縮小 */
    padding: 0; /* 不要な内側の余白を削除 */
}

/* カテゴリと日時のスタイル */
.article-header {
    display: flex; /* 横並びに配置 */
    justify-content: space-between; /* 左右に配置 */
    align-items: center; /* 縦方向を中央揃え */
}

/* カテゴリ */
.article-category {
    font-size: 14px;
    color: #92bb44; /* 緑色 */
    font-weight: bold; /* 強調 */
    text-align: left;
}

/* 日時 */
.article-date {
    font-size: 14px;
    color: #666; /* 薄い灰色 */
    text-align: right;
}

/* h2の黒文字と緑の下線 */
.news-content h2 {
    color: #000; /* 黒文字 */
    font-size: 22px;
    margin: 0;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px; /* 下線との距離調整 */
}

.news-content h2::after {
    content: '';
    display: block;
    width: 100%; /* 下線の幅を全体に調整 */
    height: 3px; /* 下線の太さ */
    background-color: #92bb44; /* 緑色の下線 */
    margin-top: 5px; /* h2と下線の間隔 */
    margin-left: 0;
}

/* h3の緑色設定 */
.news-content h3 {
    color: #92bb44; /* 緑文字 */
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* メインコンテンツ */
.news-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* セクションスタイル */
.news-section {
    margin-bottom: 5px;
}

.news-section p {
    font-size: 16px !important;
    line-height: 1.8;
    color: #333;
    margin: 0 auto;
}

.button {
    background-color: #92bb44;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 40px 2px 4px 0; 
    cursor: pointer;
    border-radius: 4px;
}
.pagination {
    text-align: center;
    margin: 10px;
}