.pref-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    box-sizing: border-box;
}

.pref-modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    min-width: 300px;
    max-height: 80%;
    min-height: 200px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pref-modal-body {
    min-height: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pref-item {
    padding: 12px 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1.4rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: bold;
}

.pref-item:hover {
    background-color: #e9e9e9;
}

.pref-modal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    text-align: center;
}

.pref-modal-header-content {
    flex: 1;
    text-align: center;
}

.pref-modal-title {
    margin: 0 auto;
    font-size: 2.4rem;
    font-weight: bold;
}

.pref-modal-explain {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.pref-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}

/* sp表示 */
@media (max-width: 767px) {
    .pref-modal-content {
        width: 80%;
    }
}
