body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.page-content {
    background: white;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

h2 {
    text-align: center;
    color: #333;
}

form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    width: 100%;
    padding: 10px;
    background: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

form button img {
    height: 18px;
    margin-right: 10px;
}

form button:hover {
    background: #357ae8;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #666;
}

.center-link {
    text-align: center;
    margin-top: 10px;
}

.error-message {
    background: #ffcdd2;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 4px;
}

.flash-message {
    background: #ffeb3b;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 4px;
}
/* ランキングテーブル全体のデザイン */
table.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table.ranking-table th,
table.ranking-table td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
}

table.ranking-table th {
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
}

table.ranking-table tr:nth-child(even) {
    background-color: #fafafa;
}

table.ranking-table tr:hover {
    background-color: #f1f7ff;
}

/* 1位～3位の行の背景色 */
table.ranking-table tr.rank-1 {
    background-color: #fff4d4;
}
table.ranking-table tr.rank-2 {
    background-color: #e5f1ff;
}
table.ranking-table tr.rank-3 {
    background-color: #f9e0e0;
}

/* 自分の行を太字で強調 */
table.ranking-table tr.me {
    font-weight: bold;
    border-left: 5px solid #4caf50;
    background-color: #e6ffe6;
}



/* チェックボックスをデフォルト幅に */
.checkbox-container input[type="checkbox"] {
    width: auto;    /* ここで幅100%をリセット */
    margin: 0;      /* form input 由来の余白もリセット */
    /* 必要なら左右にちょっとスペース */
    margin-right: 8px;
}

/* 横並びかつ中央揃え */
.checkbox-container {
    display: flex;
    align-items: center;
    /* gap が効かない場合は margin-right で調整 */
}


