﻿/* テンキーの基本スタイル */
#numpad {
    display: none;
    grid-template-columns: repeat(3, 1fr); /* 3列のグリッド */
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.key {
    display: inline-block;
    width: 60px;
    height: 60px;
    font-size: 18px;
    margin: 5px;
    text-align: center;
    line-height: 40px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

    .key:hover {
        background: #e0e0e0;
    }

#numpad2 {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.key2 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 2px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

    .key2:hover {
        background: #e0e0e0;
    }

    .key2.special {
        background: #ddd;
    }

    .key2.shift-active {
        background: #a0d2ff; /* Shift有効時は水色 */
    }

.row {
    display: flex;
    margin-bottom: 5px;
}