/* ===============================
   Wrapper（外枠：カード風）
   =============================== */
.Table2-container {
    width: 100%;
    margin: 0.1rem 0;
    padding: 0.75rem 0.9rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.scroll-wrapper {
    position: relative;
}

.Table2-scroll-top {
    height: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    /* ← 余白なくす */
    padding: 0;
}

.Table2-scroll-main {
    overflow: auto;
    margin: 0;
    /* ← 余白なくす */
    padding: 0;
}
/* ===============================
   Table Base
   =============================== */
#myTable {
    width: max-content;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: #111827;
    letter-spacing: 0.01em;
    min-width: 100%;
}

/* ===============================
   Header（ヘッダ行）
   =============================== */
#myTable thead th {
    padding: 0.6rem 0.7rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;

    /* 軽いグラデーション＋薄いボーダーでモダン感 */
    background: linear-gradient(180deg, #f9fafb 0%, #eef2ff 100%);
    color: #0f172a;
}

/* 左端ヘッダ（号俸）を少しだけ強調 */
#myTable thead th:first-child {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* ===============================
   Body rows（行）
   =============================== */
#myTable tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease, transform 0.08s ease;
}

/* 偶数行のほんのりストライプ */
#myTable tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* hover で軽く浮く感じに */
#myTable tbody tr:hover {
    background-color: #e5f0ff;
    transform: translateY(-1px);
}

/* ===============================
   Cells（セル）
   =============================== */
#myTable tbody td {
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
}

/* 号俸列（左固定） */
#myTable tbody td:first-child {
    font-weight: 500;
    text-align: center;
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

/* 金額セル：右寄せ */
#myTable tbody td:not(:first-child) {
    text-align: center;
}

/* 中の数値をほんの少し小さく */
#myTable tbody td span {
    font-size: 0.82rem;
    display: inline-block;
}

/* ===============================
   Scrollbar（モダンな細スクロール）
   =============================== */
.Table2-scroll,
.Table2-scroll-main,
.Table2-scroll-top {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #f3f4f6;
    
}

.Table2-scroll::-webkit-scrollbar,
.Table2-scroll-main::-webkit-scrollbar,
.Table2-scroll-top::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.Table2-scroll::-webkit-scrollbar-track,
.Table2-scroll-main::-webkit-scrollbar-track,
.Table2-scroll-top::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.Table2-scroll::-webkit-scrollbar-thumb,
.Table2-scroll-main::-webkit-scrollbar-thumb,
.Table2-scroll-top::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 9999px;
}

/* ===============================
   小さめ画面向け微調整
   =============================== */
@media (max-width: 768px) {
    .Table2-container {
        padding: 0.6rem 0.5rem 0.8rem;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }

    #myTable thead th {
        padding: 0.45rem 0.5rem;
        font-size: 0.8rem;
    }

    #myTable tbody td {
        padding: 0.35rem 0.5rem;
    }
}

/* グラフ用カード */
.hokyu-chart-card {
    width: 100%;
    margin: 1.5rem 0 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    margin-top: 0.8rem;
        /* ← 今より少し詰める */
        padding-top: 0.8rem;
        /* ← グラフ上の空間を詰める */
}

/* PC / タブレットのデフォルト高さ */
.hokyu-chart-canvas {
    width: 100% !important;
    height: 500px !important;
    /* ここは好みで 240?300px */
}

/* スマホはむしろ縦に広げる */
@media (max-width: 768px) {
    .hokyu-chart-canvas {
        height: 500px !important;
        /* ←スマホで潰れないようにガッと確保 */
    }

    .hokyu-chart-card {
        padding-top: 0.6rem;
        padding-bottom: 0.8rem;
    }
}

/* ★これを追加（超重要） */
.Table2-scroll-top-inner {
    display: block;
    height: 1px;
}