body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    line-height: 1.6;
}

#game-container {
    background-color: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

#typing-input {
    font-size: 18px;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

#typing-input:focus {
    outline: none;
    border-color: #00698f;
}

#timer {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

#results {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#japanese-translation {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

#word-info {
    font-size: 20px;
    font-weight: bold;
    color: #FF698f;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.hidden-word {
    visibility: hidden;
}

@media (max-width: 600px) {
    #game-container {
        padding: 10px;
    }

    #japanese-translation {
        font-size: 20px;
    }

    #word-info {
        font-size: 18px;
    }

    th, td {
        padding: 8px;
    }
}

#word-set {
    font-size: 16px;
    padding: 5px;
    margin-bottom: 15px;
}

#word-set:hover {
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* ハンバーガーメニュー */
.menu-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.menu-button {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    padding: 10px;
    transition: 0.3s;
}

.menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 10px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    width: 150px;
}

.menu.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu ul li {
    border-bottom: 1px solid #ddd;
}

.menu ul li:last-child {
    border-bottom: none;
}

.menu ul li a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.menu ul li a:hover {
    background: #f0f0f0;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
