/* 基本スタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header_img {
	text-align: center;
	margin-bottom: 1rem;
}

.logo {
	width: 210px;
}

h1 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 25px;
	font-size: 30px;
}

/* タブのスタイル */
.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: all 0.2s ease-in-out;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #000;
    background-color: #f0f0f0;
}

.tab-button.active {
    color: #1a237e;
    border-bottom-color: #1a237e;
    font-weight: bold;
}

/* フィルター (プルダウン) のスタイル */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 15px;
}

.filter-select.hidden {
    display: none;
}

/* テーブルのスタイル */
#ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

#ranking-table th,
#ranking-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

#ranking-table th {
    background-color: #3f51b5;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

#ranking-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#ranking-table tr:hover {
    background-color: #eeeeee;
}

#ranking-table td:first-child {
    text-align: center;
    font-weight: bold;
    color: #3f51b5;
}

#ranking-table td:nth-child(3) {
    text-align: center;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    body { padding: 10px; }
    .container { padding: 15px; }
    .filters { flex-direction: column; }
    .tab-button, .filter-select, #ranking-table th, #ranking-table td { font-size: 14px; }
}
