/* html, body {
    height: 100%;
    overflow: hidden;
} */

.main_box {
    margin-top: 1rem;
    border-radius: 10px;
    background-color: #006243;
    padding: 0 10px;
    margin: 0 10px;
}
.num_box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 5px;
    color: #006243;
}
.name_box {
    background-color: #fff;
    border-radius: 5px;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #006243;
}
.placeholder {
    color: #B4B4B4;
}
.ranking_box {
    background-color: #E1E37D;
    border-radius: 5px;
    font-size: 0.7rem;
    color: #006243;
    text-align: center;
}
.box_label {
    color: #fff;
    font-size: 0.7rem;
    padding: 0 0.2rem 0 0.2rem;
}

/* プルダウン */
.dropdown {
    margin-bottom: 20px;
    position: relative;
    width: 200px;
}

.dropdown-select {
    margin: 0.5rem;
    font-size: 14px;
    padding: 10px;
    border: 1px solid #ccc; /* 白い枠 */
    border-radius: 5px;
    background-color: #005343; /* 緑色 */
    color: white; /* 白い文字 */
    width: 90%;
    cursor: pointer;
}


/* プルダウンの選択肢にスタイル */
.dropdown-select option {
    color: black; /* 選択肢の文字色 */
    text-align: left; /* 選択肢の文字も左寄せ */
}

/* フォーカス時のスタイル */
.dropdown-select:focus {
    border-color: #666;
    outline: none;
}
select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("../images/white_arrow.png");
    background-repeat: no-repeat;
    background-size: 20px auto; /* 画像のサイズ（幅 高さ）*/
    background-position: right 12px center; /* 画像の位置 */
}

.dis_btn {
    font-size: 1rem;
    width: 50%;
    text-align: center;
    display: block;
    padding: 0.5rem 1em;
    margin: 0.5rem auto;
    background: #BD9B60;
    color: #FFF;
    /* border: solid 3px #007cc9; */
    border-radius: 40px;
    border: 2px solid #ccc; /* 白い枠 */
}
.rank_h_text {
    font-size: 0.6rem;
    color: #C4B060;
}
.rank_h_text th {
    padding: 0 10px;
}
.rank_b_text {
    font-size: 0.8rem;
    color: #fff;
}
.rank_b_text td {
    padding: 10px;
}
.rank_table tr td img {
    width: 100%;
    height: auto;
}
.rank_table tr th:nth-of-type(1),
.rank_table tr td:nth-of-type(1) {
    width: 10%;
}
.rank_table tr td:nth-of-type(1):not(:has(img)) {
    font-weight: bold;
    text-align: center;
}


.rank_table td {
    padding: 8px;
}


/* ここから */
.ranking-table-wrapper {
    max-height: 60vh;
    overflow: hidden;
    width: 100%;
}

.rank_table {
    width: 100%;
}

.rank_table thead {
    position: sticky;
    top: 0;
    z-index: 1; 
}

.ranking_body {
    display: block;
    max-height: calc(60vh - 50px);
    overflow-y: auto;
    width: 100%;
    height: 100%;
}

.rank_table th,
.rank_table td {
    box-sizing: border-box;
}

.rank_table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-bottom: 1px solid #0800BB;
}

.rank_table td:nth-child(2),
.rank_table th:nth-child(2) {
    width: 40%;
}

.ranking_body {
    /* border-top: 1px solid #0800BB; */
}

/* ここまで */
.rank-display {
    position: relative;
    /* text-align: center; */
    font-size: 2rem;
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    left: -10%;
}

.total {
    font-size: 0.8rem;
    position: absolute;
    bottom: 0;
    right: 0;
}