body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #ddd;
}

header {
    display: flex;
    padding: 1em;
    flex-direction: column;
    align-items: center;
}

footer {
    padding: 20px;
}

.main {
    padding: 20px;
    padding-top: 0;
}

.sidebar {
    padding-top: 8px;
    top: 0rem;
    position: sticky;
    align-self: flex-start;
}



.main {
    background-color: #333;
}

footer {
    text-align: center;
    background-color: #111;
    color: #fff;
}

ul {
    padding-left: 20px;
}

li {
    list-style: none;
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: #fff;
}

table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    background-color: #111;
}

th {
    /*border-bottom: 1px solid gray;*/
    background-color: #d00;
}

thead th:nth-child(1) {
    width: 30%;
}

thead th:nth-child(2) {
    width: 20%;
}

thead th:nth-child(3) {
    width: 15%;
}

thead th:nth-child(4) {
    width: 35%;
}

th,
td {
    padding: 8px;
}

th,
td {
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #111;
}

tbody tr:nth-child(odd) {
    background-color: #222;
}

p {
    margin: 0.5em;
}

img {
    max-width: 100%;
    height: auto;
}




/* Home page */
.home-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #111 70%);
}

.home-content {
    text-align: center;
    padding: 2rem;
}

.home-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: #fff;
    letter-spacing: 0.04em;
}

.home-content > p {
    color: #888;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.language-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.language-card {
    display: inline-block;
    width: 16rem;
    padding: 0.85rem 0;
    text-align: center;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ccc;
    font-size: 1rem;
    background-color: #1a1a2e;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.language-card:hover {
    background-color: #d00;
    border-color: #d00;
    color: #fff;
}

@media screen and (min-width : 768px) {

    /* デスクトップ用CSS */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: 1820px;
    }

    .container {
        display: flex;
    }

    .sidebar {
        width: 220px;
    }

    .main {
        flex: 1;
        order: 2;
    }

    .content {
        max-width: 1600px;
    }
}