/* 基本的なレスポンシブ設定 */
body {
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダーの調整 */
header {
    padding: 10px 0;
}

header h1 {
    font-size: 24px;
}

/* ナビゲーションの調整 */
nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

nav ul li {
    margin: 5px 10px;
}

/* メインコンテンツの調整 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* インデックスリストの調整 */
.index-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.index-item {
    width: calc(33.33% - 20px);
    margin-bottom: 20px;
}

/* チャートの調整 */
.chart-container {
    width: 100%;
}

/* テーブルの調整 */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 20px;
    }

    .index-item {
        width: calc(50% - 15px);
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 6px;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .index-item {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 300px;
    }
}
/* テーブルを囲むコンテナ */
.table-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* テーブル自体のスタイリング */
table {
    margin: 0 auto; /* 左右のマージンを自動で調整し、中央に配置 */
    border-collapse: collapse;
    width: 80%; /* テーブルの幅を80%に設定（調整可能） */
    max-width: 1000px; /* 最大幅を設定（必要に応じて調整） */
}

/* テーブルのセルのスタイリング */
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

/* テーブルヘッダーのスタイリング */
thead {
    background-color: #f2f2f2;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    table {
        width: 95%; /* 小さい画面では幅を広げる */
    }
    
    th, td {
        padding: 8px;
        font-size: 14px; /* フォントサイズを小さくする */
    }
}

/* 既存のCSSに追加または修正 */

/* テーブルコンテナの調整 */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

/* テーブルのスタイリング */
table {
    width: 100%;
    min-width: 600px; /* スクロールを確保するための最小幅 */
    border-collapse: collapse;
}

/* ヘッダー行の固定 */
thead {
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
    z-index: 1;
}

/* セルのパディングとボーダー */
th, td {
    padding: 12px 8px;
    border: 1px solid #ddd;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

/* 奇数行と偶数行の背景色 */
tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

/* ホバー効果 */
tbody tr:hover {
    background-color: #e8e8e8;
}

/* レスポンシブ対応の強化 */
@media screen and (max-width: 768px) {
    .table-container {
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 8px 6px;
    }
}

@media screen and (max-width: 480px) {
    table {
        font-size: 12px;
    }

    th, td {
        padding: 6px 4px;
    }

    .flag img {
        width: 16px;
        height: auto;
    }
}

/* フラグアイコンのサイズ調整 */
.flag img {
    max-width: 24px;
    height: auto;
    vertical-align: middle;
}

/* 範囲バーのスタイリング */
.range_bar {
    display: inline-block;
    width: 60px;
    height: 10px;
    background-color: #e0e0e0;
    position: relative;
}

.range_bar .point {
    position: absolute;
    width: 6px;
    height: 10px;
    background-color: #007bff;
}

/* ブランド名（リンク）のスタイリング */
.brand a {
    color: #007bff;
    text-decoration: none;
}

.brand a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}