/* 全体設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* ヘッダー */
.site-header {
    padding: 10px 0;
}
.site-header .header-top {
    display: flex;
    align-items: center;
}
.site-header .site-logo {
    max-width: 100px;
height:auto;
    margin-right: 20px;
}
.site-header nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}
.site-header nav ul li {
    margin-right: 15px;
}
.site-header nav ul li a {
    text-decoration: none;
    color: #333;
font-weight:700;
}
.site-header nav ul li a.active { color:#003366 ; text-decoration: underline;}
.site-header nav ul li a:hover { color:#003366;
text-decoration: underline;
}

.site-header nav ul li a.onegai {
color: #333 ;
text-decoration: none;}
.site-header nav ul li a.onegai:hover { color:#003366; text-decoration: underline;}
/* ナビゲーションバナー */
.nav-banner {
    background-color: #003366;
    color: white;
    padding: 5px 0;
    text-align: center;
width: 100vw;
font-weight: 300;
font-size: 13px;
}
/* レイアウト */
.news-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 左にメインコンテンツ、右にサイドバー */
    gap:5px; /*もと20*/
    margin-top: 5px;/*元20*/
}
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* 最新ニュース */
.latest-news {
    background-color: #transparent;
    padding: 15px;
        border-radius: 5px;
    font-size: 18px; /* 最新ニュースの文字を大きめに */
}
.latest-news .news-item-large {
    display: flex;
    flex-direction: row-reverse; /* 画像を右側に配置 */
    gap: 15px;
}
.latest-news .news-item-large img {
    width: 25%;
    height: auto;
    border-radius: 5px;
}
.latest-news .news-item-large div {
    flex: 1;
    font-size: 16px; /* テキストのサイズを調整 */
    line-height: 1.6;
}
.latest-news a {
    text-decoration: none;
    color: #000; /* 黒に変更 */
    font-weight:900;
}
.latest-news a:hover { color:#003366;
}
.latest-news p {
    margin: 0;
    font-size: 14px; /* プレビューのサイズを調整 */
    line-height: 1.4;
    font-weight: 500; /* 太字解除 */
}
/* ニュース一覧 */
.news-grid {
    display: grid;
  grid-template-columns:repeat(2,1fr); /* 2列配置 */
    gap: 10px;
}
.news-grid .news-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
    background-color: transparent;
    font-size: 10px; /* 小さく調整 */
    font-weight: normal;
    height: 90px; /* 縦幅を調整 */
}
.news-grid .news-item img {
    width: 100px; /* 画像をさらに小さく */
    height: 90px;
    margin-right: 10px;
    border-radius: 5px;
}
.news-grid .news-item div {
    flex: 1;
    line-height: 1.5;
}
.news-grid .news-item a {
text-decoration: none;
color: #000;
font-weight: 900;
font-size: 16px;}
.news-grid .news-item a:hover { color:#003366;
}
/* サイドバー */
.sidebar {
    align-self: start;
}
.sidebar h2 {
    margin-bottom: 10px;
    font-weight: 700; /* 人気記事のタイトルの太さを通常に */
 
}
.sidebar ul li a {
    text-decoration: none;
    color: #333; /* サイドバーのリンクを黒色に */
    font-size: 14px;
    font-weight: 700; /* サイドバーリンクの太さを通常に */
}
.sidebar ul li a:hover {
   color:#003366;
}
.sidebar .ad-banner img {
    width: 100%;
    border-radius: 5px;
}
/* フッター */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}
footer a {
    color: #003366;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
footer .disclaimer {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}







/* === スマホ版（768px以下）用のメディアクエリ === */
@media (max-width: 768px) {
    /* ナビゲーションバナーを非表示 */
    .nav-banner {
        display: none; /* バナーを非表示に */
    }

    /* カテゴリ選択部分（バナー位置に配置） */
    nav.category-scroll {
        display: flex;
        overflow-x: auto; /* 横スクロールを有効に */
        white-space: nowrap; /* 改行を防止 */
        background-color: #f9f9f9; /* 背景を落ち着いた色に */
        padding: 10px 0; /* パディングを調整もと１０ */
        border-bottom: 1px solid #ddd; /* 下線を追加 */
    }

    nav.category-scroll a {
        flex-shrink: 0; /* リンク幅を縮めない */
        color: #333; /* 通常の文字色 */
        text-decoration: none;
        padding: 5px 15px; /* ボタンの内側スペース */
        font-size: 14px;
        font-weight: bold;
        border-radius: 4px; /* 角を丸く */
        margin-right: 10px; /* ボタン間のスペース */
    }

 /* 検索フォーム */
    .site-header .header-top {
        display: block; /* フォームを下に配置 */
        padding-bottom: 0px; /*もと10*/
    }

    .search-form {
        display: flex;
        align-items: center;
        margin-top: 0px; /*もと10*/
        background-color: #f0f0f0; /* 背景色を薄いグレーに */
        border-radius: 4px;
        padding: 5px;
    }

    .search-form input[type="text"] {
        border: none;
        background-color: transparent;
        padding: 5px;
        font-size: 14px;
        outline: none; /* フォーカス時のアウトラインを削除 */
        flex: 1;
    }

    .search-form button {
        border: none;
        background: none;
        cursor: pointer;
        padding: 5px;
        font-size: 16px;
        color: #333;
    }

    nav.category-scroll a:hover {
        background-color: #ddd; /* ホバー時の背景色 */
    }

    nav.category-scroll a.active {
        border-bottom: 2px solid #003366; /* アクティブ状態を下線で強調 */
        color: #003366; /* アクティブ状態の文字色 */
    }

.latest-news .news-item-large {
    display: flex;
    flex-direction: column; /* 画像を右側に配置 */
align-items: flex-start;
    gap: 10px;
}
 
.latest-news .news-item-large img {
    width: 100%;

    height: auto;

    border-radius: 5px;

}
  
.news-grid{display:flex; flex-direction: column; ailgn-items:5px;}/*もと10px*/
    /* ニュースリストの調整 */
    .news-grid .news-item {
        display: flex;
        align-items: center;
        padding:  0; /*もと10px 0*/
        border-tp@: 1px solid #ddd; /* 各ニュース項目の下線 */
        background-color: transparent;
    }

    .news-grid .news-item img {
        width: 80px; /* 80px画像サイズを調整 */
        height: auto;
max-height: 80px;

        margin-right: 10px;
        border-radius: 4px;
    }

    .news-grid .news-item div {
        flex: 1;
        line-height: 1.5;
    }

    .news-grid .news-item a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
    }

    .news-grid .news-item a:hover {
        color: #003366;
    }

    /* 人気記事ランキングをメインの下に配置 */
    .sidebar {
        margin-top: 20px;
        order: 2; /* グリッドの順序を後ろに */
    }

    .sidebar h2 {
        font-size: 16px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .sidebar ul {
        padding: 0;
        list-style: none;
    }

    .sidebar ul li {
        margin-bottom: 10px;
    }

    .sidebar ul li a {
        text-decoration: none;
        color: #333;
        font-size: 14px;
    }

    .sidebar ul li a:hover {
        color: #003366;
    }

    /* レイアウト調整 */
    .news-layout {
        display: flex;
        flex-direction: column; /* 上から下に順に配置 */
    }
}