/* 全体スタイル */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* ナビゲーションスタイル */
header {
    width: 100%;
    background-color: #333;
    padding: 10px 0;
    text-align: center;
}

.nav-link {
    margin: 0 15px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #f4d03f;
}

/* メインコンテンツ */
main {
    text-align: center;
    margin-top: 20px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* オセロボード */
#board {
    display: grid;
    grid-template-columns: repeat(8, 50px);
    grid-template-rows: repeat(8, 50px);
    gap: 2px;
    background-color: #333; /* ボードの背景色 */
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

.cell {
    width: 50px;
    height: 50px;
    background-color: #4CAF50; /* セルの背景色をグリーンに設定 */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: #e0e0e0;
}

.black, .white {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.black {
    background-color: #000;
}

.white {
    background-color: #fff;
    border: 1px solid #000;
}

/* ステータス */
#status {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

/* フッター */
footer {
    margin-top: 30px;
    padding: 10px;
    font-size: 0.9em;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    h1 {
        font-size: 1.2em;
    }

    #board {
        grid-template-columns: repeat(8, 35px);
        grid-template-rows: repeat(8, 35px);
        padding: 5px;
    }

    .cell {
        width: 35px;
        height: 35px;
    }

    .black, .white {
        width: 30px;
        height: 30px;
    }

    #status {
        font-size: 1em;
    }
}
