.haikei {
    width: 100%;
    min-height: 830px; 
    height: auto;
    overflow: hidden; /* 画像がはみ出さないように隠す */
    background-image: url(../img/news.png); /* 背景画像 */
    background-size: 100% auto; /* 横幅100%、縦は自動調整 */
    background-position: center; /* 画像の中心を親要素の中心に合わせる */
    background-repeat: no-repeat; /* 画像が繰り返し表示されないように */
    position: relative; /* 内容を画像の上に配置するため */
    background-color: #f5f5f5;
}


.title h2 {
    text-align: center; /* 文字を中央揃え */
}

/* ニュース全体のコンテナ */
.content-container {
    width: 70%; /* 横幅を広げる */
    max-width: 1200px; /* 最大幅を1200pxに */
    padding: 20px;
    margin: 20px auto 0 auto; /* 上に20pxの余白を追加 */
}

/* ニュースアイテムのコンテナ */
.news-items {
    display: flex;
    justify-content: space-between; /* 均等配置 */
    gap: 20px; /* アイテム間の余白 */
    flex-wrap: nowrap; /* 改行しない */
    overflow-x: auto; /* 横スクロールバーを表示 */
    max-width: 100%; /* 横幅を最大100%に設定 */
}

/* 各ニュースアイテムのスタイル */
.news-item {
    width: 32%; /* 横幅を32%に設定して3列に */
    max-width: 500px; /* 最大幅を500pxに */
    background-color: rgba(255, 255, 255, 0.9); /* 半透明の白背景 */
    border-radius: 10px; /* 角丸 */
    padding: 20px; /* 余白 */
    box-sizing: border-box;
    text-align: left;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* 影 */
}

/* ニュースアイテムの画像スタイル */
.news-item img {
    width: 100%;
    height: auto; /* 高さは自動調整 */
    object-fit: cover; /* アスペクト比を崩さずにトリミング */
    border-radius: 5px;
}


/* Moreリンクのスタイル */
.more-link {
    text-align: center; /* 中央揃え */
    margin-top: 50px; /* 上の余白 */
}

.more-link a {
    text-decoration: none; /* 下線をなくす */
    font-size: 18px; /* 文字サイズを設定 */
    color: #333; /* 初期文字色 */
    font-weight: bold; /* 文字を太く */
    display: inline-flex; /* アイコンとテキストを横並びに */
    align-items: center; /* アイコンとテキストを垂直に中央揃え */
    position: relative;
    overflow: hidden; /* 文字がはみ出さないように */
    background-image: linear-gradient(to right, #b69917, #050505); /* 左から右へのグラデーション */
    background-clip: text; /* 文字の色にグラデーションを適用 */
    -webkit-background-clip: text; /* Safari対応 */
    transition: color 0.3s ease; /* 色が変わるアニメーション */
}

/* アイコンのスタイル */
.more-link a svg {
    margin-left: 8px; /* アイコンとテキストの間隔 */
    vertical-align: middle; /* アイコンをテキストと垂直方向に整列 */
}

/* ホバー時の文字色変化 */
.more-link a:hover {
    color: transparent; /* 文字自体は透明にする */
    background-image: linear-gradient(to right, #665013, #d8a90d); /* ホバー時の色を反転させる */
}


/* ...既存のコード... */

@media screen and (max-width: 768px) {
    .news-items {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 12px;
        justify-content: center;
    }
    .news-item {
        width: 48%;
        max-width: 320px;
        min-width: 160px;
        margin: 0 auto;
        padding: 10px;
    }
    .news-item img {
        width: 100%;
        height: 120px;
        max-width: 100%;
        object-fit: cover;
        margin: 0 0 8px 0;
        border-radius: 6px;
    }
    .news-item {
        display: block;
        text-align: left;
    }
    .news-items {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 12px;
        justify-content: center;
        /* ↓追加：下に余白を追加して途切れ防止 */
        padding-bottom: 24px;
    }
}

/* スマホ（1カラム） */
@media screen and (max-width: 490px) {
     .news-items {
        flex-direction: column;
        gap: 10px;
        /* ↓追加：下に余白を追加して途切れ防止 */
        padding-bottom: 24px;
    }
    .news-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding: 8px;
        display: block;
    }
    .news-item img {
        width: 100%;
        height: 120px;
        max-width: 100%;
        object-fit: cover;
        margin: 0 0 8px 0;
        border-radius: 6px;
    }
      .more-link {
        margin-bottom: 24px; /* 下に余白を追加して途切れ防止 */
    }
.news-item-sp-hide {
        display: none !important;
    }
}

/* ...既存のコード... */