/* 基本的なレスポンシブ設定 */
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;
}

.chart-container, .data-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;
    }

    .chart-container, .data-container {
        width: 100%;
    }

    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;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 300px;
    }
}
/* 全体のレイアウト調整 */
.content-size {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダーのレスポンシブ対応 */
.main-header-frame {
    padding: 10px 0;
}

.header-size {
    flex-wrap: wrap;
}

.head-menu-search-area {
    margin-left: 0 !important;
    margin-top: 10px;
}

/* オーバービューセクションの調整 */
.overview {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.overview .date,
.overview .name_official,
.overview .index {
    width: 100%;
    margin-bottom: 10px;
}

/* チャートセクションの調整 */
.chart {
    margin-bottom: 30px;
}

.select_time {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.select_time p {
    margin: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

/* 期間収益率テーブルの調整 */
.rate_of_return {
    overflow-x: auto;
}

.rate_of_return table {
    min-width: 800px;
}

/* 相関関係と概要セクションの調整 */
.correlation_and_comment {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.correlation_wrap,
.comment_wrap {
    width: 100%;
}

/* レスポンシブ対応の強化 */
@media screen and (max-width: 768px) {
    .overview .ratio {
        grid-template-columns: 1fr;
    }

    .select_time p {
        font-size: 12px;
    }

    .correlation_and_comment > div {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .main-header .link-logo img {
        max-width: 150px;
    }

    .head-search-box {
        width: 100%;
    }

    .overview h1 {
        font-size: 20px;
    }

    .select_time {
        justify-content: flex-start;
    }

    .select_time p {
        margin: 2px;
        padding: 3px 6px;
    }
}

/* モーダルメニューの調整 */
.modal-dialog.menu-content {
    max-width: 300px;
    margin: 1.75rem auto;
}

.menu-search-box {
    width: 100%;
}

.menu-link-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}